From a8e358d2d6b1e5211de60e4668a684e9576bedaa Mon Sep 17 00:00:00 2001
From: Melledy <121644117+Melledy@users.noreply.github.com>
Date: Mon, 22 Dec 2025 20:37:45 -0800
Subject: [PATCH] Update server to support latest version
---
.../main/emu/nebula/proto/ActivityDetail.java | 218 +-
.../emu/nebula/proto/ActivityStoryApply.java | 543 ++++
.../proto/ActivityStorySettleOuterClass.java | 1841 +++++++++++
.../proto/ActivityTrekkerVersusApply.java | 666 ++++
.../ActivityTrekkerVersusRewardReceive.java | 524 +++
.../proto/ActivityTrekkerVersusSettle.java | 1037 ++++++
.../main/emu/nebula/proto/GachaSpin.java | 629 +++-
.../main/emu/nebula/proto/NotifyGm.java | 603 ++++
.../main/emu/nebula/proto/PlayerData.java | 1038 +++++-
.../main/emu/nebula/proto/Public.java | 2867 ++++++++++++++++-
.../emu/nebula/proto/PublicStarTower.java | 512 ++-
.../proto/QuestAssistGroupRewardReceive.java | 619 ++++
.../proto/QuestAssistRewardReceive.java | 463 +++
.../proto/QuestWeeklyActiveRewardRecevie.java | 530 +++
.../proto/QuestWeeklyRewardRecevie.java | 5 +
.../main/emu/nebula/proto/ScoreBossRank.java | 116 +-
src/main/java/emu/nebula/GameConstants.java | 18 +-
.../nebula/game/activity/ActivityModule.java | 14 +-
.../game/scoreboss/ScoreBossRankEntry.java | 12 +-
src/main/java/emu/nebula/net/NetMsgId.java | 30 +-
.../HandlerNpcAffinityBookGetReq.java | 21 +
21 files changed, 11944 insertions(+), 362 deletions(-)
create mode 100644 src/generated/main/emu/nebula/proto/ActivityStoryApply.java
create mode 100644 src/generated/main/emu/nebula/proto/ActivityStorySettleOuterClass.java
create mode 100644 src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java
create mode 100644 src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRewardReceive.java
create mode 100644 src/generated/main/emu/nebula/proto/ActivityTrekkerVersusSettle.java
create mode 100644 src/generated/main/emu/nebula/proto/QuestAssistGroupRewardReceive.java
create mode 100644 src/generated/main/emu/nebula/proto/QuestAssistRewardReceive.java
create mode 100644 src/generated/main/emu/nebula/proto/QuestWeeklyActiveRewardRecevie.java
create mode 100644 src/generated/main/emu/nebula/proto/QuestWeeklyRewardRecevie.java
create mode 100644 src/main/java/emu/nebula/server/handlers/HandlerNpcAffinityBookGetReq.java
diff --git a/src/generated/main/emu/nebula/proto/ActivityDetail.java b/src/generated/main/emu/nebula/proto/ActivityDetail.java
index 44f683e..6a43bef 100644
--- a/src/generated/main/emu/nebula/proto/ActivityDetail.java
+++ b/src/generated/main/emu/nebula/proto/ActivityDetail.java
@@ -90,6 +90,16 @@ public final class ActivityDetail {
*/
private final Public.ActivityBuildConvert bdConvert = Public.ActivityBuildConvert.newInstance();
+ /**
+ * optional .ActivityTrekkerVersus TrekkerVersus = 15;
+ */
+ private final Public.ActivityTrekkerVersus trekkerVersus = Public.ActivityTrekkerVersus.newInstance();
+
+ /**
+ * optional .ActivityStoryChapter StoryChapter = 16;
+ */
+ private final Public.ActivityStoryChapter storyChapter = Public.ActivityStoryChapter.newInstance();
+
/**
* optional bytes NextPackage = 2047;
*/
@@ -883,12 +893,126 @@ public final class ActivityDetail {
return this;
}
+ /**
+ * optional .ActivityTrekkerVersus TrekkerVersus = 15;
+ * @return whether the trekkerVersus field is set
+ */
+ public boolean hasTrekkerVersus() {
+ return (bitField0_ & 0x00004000) != 0;
+ }
+
+ /**
+ * optional .ActivityTrekkerVersus TrekkerVersus = 15;
+ * @return this
+ */
+ public ActivityMsg clearTrekkerVersus() {
+ bitField0_ &= ~0x00004000;
+ trekkerVersus.clear();
+ return this;
+ }
+
+ /**
+ * optional .ActivityTrekkerVersus TrekkerVersus = 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 #getMutableTrekkerVersus()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.ActivityTrekkerVersus getTrekkerVersus() {
+ return trekkerVersus;
+ }
+
+ /**
+ * optional .ActivityTrekkerVersus TrekkerVersus = 15;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.ActivityTrekkerVersus getMutableTrekkerVersus() {
+ bitField0_ |= 0x00004000;
+ return trekkerVersus;
+ }
+
+ /**
+ * optional .ActivityTrekkerVersus TrekkerVersus = 15;
+ * @param value the trekkerVersus to set
+ * @return this
+ */
+ public ActivityMsg setTrekkerVersus(final Public.ActivityTrekkerVersus value) {
+ bitField0_ |= 0x00004000;
+ trekkerVersus.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional .ActivityStoryChapter StoryChapter = 16;
+ * @return whether the storyChapter field is set
+ */
+ public boolean hasStoryChapter() {
+ return (bitField0_ & 0x00008000) != 0;
+ }
+
+ /**
+ * optional .ActivityStoryChapter StoryChapter = 16;
+ * @return this
+ */
+ public ActivityMsg clearStoryChapter() {
+ bitField0_ &= ~0x00008000;
+ storyChapter.clear();
+ return this;
+ }
+
+ /**
+ * optional .ActivityStoryChapter StoryChapter = 16;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableStoryChapter()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.ActivityStoryChapter getStoryChapter() {
+ return storyChapter;
+ }
+
+ /**
+ * optional .ActivityStoryChapter StoryChapter = 16;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.ActivityStoryChapter getMutableStoryChapter() {
+ bitField0_ |= 0x00008000;
+ return storyChapter;
+ }
+
+ /**
+ * optional .ActivityStoryChapter StoryChapter = 16;
+ * @param value the storyChapter to set
+ * @return this
+ */
+ public ActivityMsg setStoryChapter(final Public.ActivityStoryChapter value) {
+ bitField0_ |= 0x00008000;
+ storyChapter.copyFrom(value);
+ return this;
+ }
+
/**
* optional bytes NextPackage = 2047;
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
- return (bitField0_ & 0x00004000) != 0;
+ return (bitField0_ & 0x00010000) != 0;
}
/**
@@ -896,7 +1020,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg clearNextPackage() {
- bitField0_ &= ~0x00004000;
+ bitField0_ &= ~0x00010000;
nextPackage.clear();
return this;
}
@@ -925,7 +1049,7 @@ public final class ActivityDetail {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00010000;
return nextPackage;
}
@@ -935,7 +1059,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg addNextPackage(final byte value) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00010000;
nextPackage.add(value);
return this;
}
@@ -946,7 +1070,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg addAllNextPackage(final byte... values) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00010000;
nextPackage.addAll(values);
return this;
}
@@ -957,7 +1081,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg setNextPackage(final byte... values) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00010000;
nextPackage.copyFrom(values);
return this;
}
@@ -981,6 +1105,8 @@ public final class ActivityDetail {
task.copyFrom(other.task);
shop.copyFrom(other.shop);
bdConvert.copyFrom(other.bdConvert);
+ trekkerVersus.copyFrom(other.trekkerVersus);
+ storyChapter.copyFrom(other.storyChapter);
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -1034,6 +1160,12 @@ public final class ActivityDetail {
if (other.hasBdConvert()) {
getMutableBdConvert().mergeFrom(other.bdConvert);
}
+ if (other.hasTrekkerVersus()) {
+ getMutableTrekkerVersus().mergeFrom(other.trekkerVersus);
+ }
+ if (other.hasStoryChapter()) {
+ getMutableStoryChapter().mergeFrom(other.storyChapter);
+ }
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -1061,6 +1193,8 @@ public final class ActivityDetail {
task.clear();
shop.clear();
bdConvert.clear();
+ trekkerVersus.clear();
+ storyChapter.clear();
nextPackage.clear();
return this;
}
@@ -1085,6 +1219,8 @@ public final class ActivityDetail {
task.clearQuick();
shop.clearQuick();
bdConvert.clearQuick();
+ trekkerVersus.clearQuick();
+ storyChapter.clearQuick();
nextPackage.clear();
return this;
}
@@ -1113,6 +1249,8 @@ public final class ActivityDetail {
&& (!hasTask() || task.equals(other.task))
&& (!hasShop() || shop.equals(other.shop))
&& (!hasBdConvert() || bdConvert.equals(other.bdConvert))
+ && (!hasTrekkerVersus() || trekkerVersus.equals(other.trekkerVersus))
+ && (!hasStoryChapter() || storyChapter.equals(other.storyChapter))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -1175,6 +1313,14 @@ public final class ActivityDetail {
output.writeMessageNoTag(bdConvert);
}
if ((bitField0_ & 0x00004000) != 0) {
+ output.writeRawByte((byte) 122);
+ output.writeMessageNoTag(trekkerVersus);
+ }
+ if ((bitField0_ & 0x00008000) != 0) {
+ output.writeRawLittleEndian16((short) 386);
+ output.writeMessageNoTag(storyChapter);
+ }
+ if ((bitField0_ & 0x00010000) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -1226,6 +1372,12 @@ public final class ActivityDetail {
size += 1 + ProtoSink.computeMessageSizeNoTag(bdConvert);
}
if ((bitField0_ & 0x00004000) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(trekkerVersus);
+ }
+ if ((bitField0_ & 0x00008000) != 0) {
+ size += 2 + ProtoSink.computeMessageSizeNoTag(storyChapter);
+ }
+ if ((bitField0_ & 0x00010000) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -1360,6 +1512,24 @@ public final class ActivityDetail {
input.readMessage(bdConvert);
bitField0_ |= 0x00002000;
tag = input.readTag();
+ if (tag != 122) {
+ break;
+ }
+ }
+ case 122: {
+ // trekkerVersus
+ input.readMessage(trekkerVersus);
+ bitField0_ |= 0x00004000;
+ tag = input.readTag();
+ if (tag != 130) {
+ break;
+ }
+ }
+ case 130: {
+ // storyChapter
+ input.readMessage(storyChapter);
+ bitField0_ |= 0x00008000;
+ tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -1367,7 +1537,7 @@ public final class ActivityDetail {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00010000;
tag = input.readTag();
if (tag != 0) {
break;
@@ -1433,6 +1603,12 @@ public final class ActivityDetail {
output.writeMessage(FieldNames.bdConvert, bdConvert);
}
if ((bitField0_ & 0x00004000) != 0) {
+ output.writeMessage(FieldNames.trekkerVersus, trekkerVersus);
+ }
+ if ((bitField0_ & 0x00008000) != 0) {
+ output.writeMessage(FieldNames.storyChapter, storyChapter);
+ }
+ if ((bitField0_ & 0x00010000) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -1599,11 +1775,33 @@ public final class ActivityDetail {
}
break;
}
+ case -1534874366: {
+ if (input.isAtField(FieldNames.trekkerVersus)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(trekkerVersus);
+ bitField0_ |= 0x00004000;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1858182728: {
+ if (input.isAtField(FieldNames.storyChapter)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(storyChapter);
+ bitField0_ |= 0x00008000;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00010000;
}
} else {
input.skipUnknownField();
@@ -1690,6 +1888,10 @@ public final class ActivityDetail {
static final FieldName bdConvert = FieldName.forField("BdConvert");
+ static final FieldName trekkerVersus = FieldName.forField("TrekkerVersus");
+
+ static final FieldName storyChapter = FieldName.forField("StoryChapter");
+
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
diff --git a/src/generated/main/emu/nebula/proto/ActivityStoryApply.java b/src/generated/main/emu/nebula/proto/ActivityStoryApply.java
new file mode 100644
index 0000000..e7a81e3
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/ActivityStoryApply.java
@@ -0,0 +1,543 @@
+// 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 ActivityStoryApply {
+ /**
+ * Protobuf type {@code ActivityStoryApplyReq}
+ */
+ public static final class ActivityStoryApplyReq extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint64 BuildId = 3;
+ */
+ private long buildId;
+
+ /**
+ * optional uint32 ActivityId = 1;
+ */
+ private int activityId;
+
+ /**
+ * optional uint32 StoryId = 2;
+ */
+ private int storyId;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private ActivityStoryApplyReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStoryApplyReq}
+ */
+ public static ActivityStoryApplyReq newInstance() {
+ return new ActivityStoryApplyReq();
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @return whether the buildId field is set
+ */
+ public boolean hasBuildId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @return this
+ */
+ public ActivityStoryApplyReq clearBuildId() {
+ bitField0_ &= ~0x00000001;
+ buildId = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @return the buildId
+ */
+ public long getBuildId() {
+ return buildId;
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @param value the buildId to set
+ * @return this
+ */
+ public ActivityStoryApplyReq setBuildId(final long value) {
+ bitField0_ |= 0x00000001;
+ buildId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 ActivityId = 1;
+ * @return whether the activityId field is set
+ */
+ public boolean hasActivityId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 ActivityId = 1;
+ * @return this
+ */
+ public ActivityStoryApplyReq clearActivityId() {
+ bitField0_ &= ~0x00000002;
+ 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 ActivityStoryApplyReq setActivityId(final int value) {
+ bitField0_ |= 0x00000002;
+ activityId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 StoryId = 2;
+ * @return whether the storyId field is set
+ */
+ public boolean hasStoryId() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 StoryId = 2;
+ * @return this
+ */
+ public ActivityStoryApplyReq clearStoryId() {
+ bitField0_ &= ~0x00000004;
+ storyId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 StoryId = 2;
+ * @return the storyId
+ */
+ public int getStoryId() {
+ return storyId;
+ }
+
+ /**
+ * optional uint32 StoryId = 2;
+ * @param value the storyId to set
+ * @return this
+ */
+ public ActivityStoryApplyReq setStoryId(final int value) {
+ bitField0_ |= 0x00000004;
+ storyId = 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 ActivityStoryApplyReq 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 ActivityStoryApplyReq addNextPackage(final byte value) {
+ bitField0_ |= 0x00000008;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStoryApplyReq addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000008;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStoryApplyReq setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000008;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStoryApplyReq copyFrom(final ActivityStoryApplyReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ buildId = other.buildId;
+ activityId = other.activityId;
+ storyId = other.storyId;
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryApplyReq mergeFrom(final ActivityStoryApplyReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBuildId()) {
+ setBuildId(other.buildId);
+ }
+ if (other.hasActivityId()) {
+ setActivityId(other.activityId);
+ }
+ if (other.hasStoryId()) {
+ setStoryId(other.storyId);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryApplyReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ buildId = 0L;
+ activityId = 0;
+ storyId = 0;
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStoryApplyReq 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 ActivityStoryApplyReq)) {
+ return false;
+ }
+ ActivityStoryApplyReq other = (ActivityStoryApplyReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBuildId() || buildId == other.buildId)
+ && (!hasActivityId() || activityId == other.activityId)
+ && (!hasStoryId() || storyId == other.storyId)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt64NoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(activityId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(storyId);
+ }
+ 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.computeUInt64SizeNoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStoryApplyReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 24: {
+ // buildId
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 8) {
+ break;
+ }
+ }
+ case 8: {
+ // activityId
+ activityId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 16) {
+ break;
+ }
+ }
+ case 16: {
+ // storyId
+ storyId = 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.writeUInt64(FieldNames.buildId, buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.activityId, activityId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.storyId, storyId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStoryApplyReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1895597065: {
+ if (input.isAtField(FieldNames.buildId)) {
+ if (!input.trySkipNullValue()) {
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -252882774: {
+ if (input.isAtField(FieldNames.activityId)) {
+ if (!input.trySkipNullValue()) {
+ activityId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -219598640: {
+ if (input.isAtField(FieldNames.storyId)) {
+ if (!input.trySkipNullValue()) {
+ storyId = 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 ActivityStoryApplyReq clone() {
+ return new ActivityStoryApplyReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStoryApplyReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStoryApplyReq(), data).checkInitialized();
+ }
+
+ public static ActivityStoryApplyReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryApplyReq(), input).checkInitialized();
+ }
+
+ public static ActivityStoryApplyReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryApplyReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStoryApplyReq messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStoryApplyReqFactory.INSTANCE;
+ }
+
+ private enum ActivityStoryApplyReqFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStoryApplyReq create() {
+ return ActivityStoryApplyReq.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName buildId = FieldName.forField("BuildId");
+
+ static final FieldName activityId = FieldName.forField("ActivityId");
+
+ static final FieldName storyId = FieldName.forField("StoryId");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/ActivityStorySettleOuterClass.java b/src/generated/main/emu/nebula/proto/ActivityStorySettleOuterClass.java
new file mode 100644
index 0000000..d8254ae
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/ActivityStorySettleOuterClass.java
@@ -0,0 +1,1841 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.nebula.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.RepeatedByte;
+import us.hebi.quickbuf.RepeatedInt;
+import us.hebi.quickbuf.RepeatedMessage;
+
+public final class ActivityStorySettleOuterClass {
+ /**
+ * Protobuf type {@code ActivityStorySettleReq}
+ */
+ public static final class ActivityStorySettleReq extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 ActivityId = 1;
+ */
+ private int activityId;
+
+ /**
+ * optional .Events Events = 14;
+ */
+ private final Public.Events events = Public.Events.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated uint32 Evidences = 15;
+ */
+ private final RepeatedInt evidences = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ */
+ private final RepeatedMessage list = RepeatedMessage.newEmptyInstance(ActivityStorySettle.getFactory());
+
+ private ActivityStorySettleReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStorySettleReq}
+ */
+ public static ActivityStorySettleReq newInstance() {
+ return new ActivityStorySettleReq();
+ }
+
+ /**
+ * 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 ActivityStorySettleReq 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 ActivityStorySettleReq setActivityId(final int value) {
+ bitField0_ |= 0x00000001;
+ activityId = value;
+ return this;
+ }
+
+ /**
+ * optional .Events Events = 14;
+ * @return whether the events field is set
+ */
+ public boolean hasEvents() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional .Events Events = 14;
+ * @return this
+ */
+ public ActivityStorySettleReq clearEvents() {
+ bitField0_ &= ~0x00000002;
+ events.clear();
+ return this;
+ }
+
+ /**
+ * optional .Events Events = 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 #getMutableEvents()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.Events getEvents() {
+ return events;
+ }
+
+ /**
+ * optional .Events Events = 14;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.Events getMutableEvents() {
+ bitField0_ |= 0x00000002;
+ return events;
+ }
+
+ /**
+ * optional .Events Events = 14;
+ * @param value the events to set
+ * @return this
+ */
+ public ActivityStorySettleReq setEvents(final Public.Events value) {
+ bitField0_ |= 0x00000002;
+ events.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 ActivityStorySettleReq 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 ActivityStorySettleReq addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStorySettleReq addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStorySettleReq setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 Evidences = 15;
+ * @return whether the evidences field is set
+ */
+ public boolean hasEvidences() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated uint32 Evidences = 15;
+ * @return this
+ */
+ public ActivityStorySettleReq clearEvidences() {
+ bitField0_ &= ~0x00000008;
+ evidences.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 Evidences = 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 #getMutableEvidences()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getEvidences() {
+ return evidences;
+ }
+
+ /**
+ * repeated uint32 Evidences = 15;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableEvidences() {
+ bitField0_ |= 0x00000008;
+ return evidences;
+ }
+
+ /**
+ * repeated uint32 Evidences = 15;
+ * @param value the evidences to add
+ * @return this
+ */
+ public ActivityStorySettleReq addEvidences(final int value) {
+ bitField0_ |= 0x00000008;
+ evidences.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 Evidences = 15;
+ * @param values the evidences to add
+ * @return this
+ */
+ public ActivityStorySettleReq addAllEvidences(final int... values) {
+ bitField0_ |= 0x00000008;
+ evidences.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ * @return whether the list field is set
+ */
+ public boolean hasList() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ * @return this
+ */
+ public ActivityStorySettleReq clearList() {
+ bitField0_ &= ~0x00000010;
+ list.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getList() {
+ return list;
+ }
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessage getMutableList() {
+ bitField0_ |= 0x00000010;
+ return list;
+ }
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ * @param value the list to add
+ * @return this
+ */
+ public ActivityStorySettleReq addList(final ActivityStorySettle value) {
+ bitField0_ |= 0x00000010;
+ list.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStorySettle List = 2;
+ * @param values the list to add
+ * @return this
+ */
+ public ActivityStorySettleReq addAllList(final ActivityStorySettle... values) {
+ bitField0_ |= 0x00000010;
+ list.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettleReq copyFrom(final ActivityStorySettleReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ activityId = other.activityId;
+ events.copyFrom(other.events);
+ nextPackage.copyFrom(other.nextPackage);
+ evidences.copyFrom(other.evidences);
+ list.copyFrom(other.list);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettleReq mergeFrom(final ActivityStorySettleReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasActivityId()) {
+ setActivityId(other.activityId);
+ }
+ if (other.hasEvents()) {
+ getMutableEvents().mergeFrom(other.events);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasEvidences()) {
+ getMutableEvidences().addAll(other.evidences);
+ }
+ if (other.hasList()) {
+ getMutableList().addAll(other.list);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettleReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ activityId = 0;
+ events.clear();
+ nextPackage.clear();
+ evidences.clear();
+ list.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettleReq clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ events.clearQuick();
+ nextPackage.clear();
+ evidences.clear();
+ list.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityStorySettleReq)) {
+ return false;
+ }
+ ActivityStorySettleReq other = (ActivityStorySettleReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasActivityId() || activityId == other.activityId)
+ && (!hasEvents() || events.equals(other.events))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasEvidences() || evidences.equals(other.evidences))
+ && (!hasList() || list.equals(other.list));
+ }
+
+ @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) 114);
+ output.writeMessageNoTag(events);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < evidences.length(); i++) {
+ output.writeRawByte((byte) 120);
+ output.writeUInt32NoTag(evidences.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ for (int i = 0; i < list.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(list.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(events);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * evidences.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(evidences);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += (1 * list.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(list);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStorySettleReq 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 != 114) {
+ break;
+ }
+ }
+ case 114: {
+ // events
+ input.readMessage(events);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 16378) {
+ break;
+ }
+ }
+ case 16378: {
+ // nextPackage
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 122) {
+ break;
+ }
+ }
+ case 122: {
+ // evidences [packed=true]
+ input.readPackedUInt32(evidences, tag);
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
+ if (tag != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // list
+ tag = input.readRepeatedMessage(list, tag);
+ bitField0_ |= 0x00000010;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 120: {
+ // evidences [packed=false]
+ tag = input.readRepeatedUInt32(evidences, tag);
+ bitField0_ |= 0x00000008;
+ 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.writeMessage(FieldNames.events, events);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedUInt32(FieldNames.evidences, evidences);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRepeatedMessage(FieldNames.list, list);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStorySettleReq 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 2087505209: {
+ if (input.isAtField(FieldNames.events)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(events);
+ 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 991055068: {
+ if (input.isAtField(FieldNames.evidences)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(evidences);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 2368702: {
+ if (input.isAtField(FieldNames.list)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(list);
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettleReq clone() {
+ return new ActivityStorySettleReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStorySettleReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStorySettleReq(), data).checkInitialized();
+ }
+
+ public static ActivityStorySettleReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStorySettleReq(), input).checkInitialized();
+ }
+
+ public static ActivityStorySettleReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStorySettleReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStorySettleReq messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStorySettleReqFactory.INSTANCE;
+ }
+
+ private enum ActivityStorySettleReqFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStorySettleReq create() {
+ return ActivityStorySettleReq.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName activityId = FieldName.forField("ActivityId");
+
+ static final FieldName events = FieldName.forField("Events");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName evidences = FieldName.forField("Evidences");
+
+ static final FieldName list = FieldName.forField("List");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityStorySettle}
+ */
+ public static final class ActivityStorySettle extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 StoryId = 1;
+ */
+ private int storyId;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .ActivityStoryOptions Major = 2;
+ */
+ private final RepeatedMessage major = RepeatedMessage.newEmptyInstance(ActivityStoryOptions.getFactory());
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 3;
+ */
+ private final RepeatedMessage personality = RepeatedMessage.newEmptyInstance(ActivityStoryOptions.getFactory());
+
+ private ActivityStorySettle() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStorySettle}
+ */
+ public static ActivityStorySettle newInstance() {
+ return new ActivityStorySettle();
+ }
+
+ /**
+ * optional uint32 StoryId = 1;
+ * @return whether the storyId field is set
+ */
+ public boolean hasStoryId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 StoryId = 1;
+ * @return this
+ */
+ public ActivityStorySettle clearStoryId() {
+ bitField0_ &= ~0x00000001;
+ storyId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 StoryId = 1;
+ * @return the storyId
+ */
+ public int getStoryId() {
+ return storyId;
+ }
+
+ /**
+ * optional uint32 StoryId = 1;
+ * @param value the storyId to set
+ * @return this
+ */
+ public ActivityStorySettle setStoryId(final int value) {
+ bitField0_ |= 0x00000001;
+ storyId = 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 ActivityStorySettle 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 ActivityStorySettle addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStorySettle addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStorySettle setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Major = 2;
+ * @return whether the major field is set
+ */
+ public boolean hasMajor() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Major = 2;
+ * @return this
+ */
+ public ActivityStorySettle clearMajor() {
+ bitField0_ &= ~0x00000004;
+ major.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Major = 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 #getMutableMajor()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getMajor() {
+ return major;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Major = 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 getMutableMajor() {
+ bitField0_ |= 0x00000004;
+ return major;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Major = 2;
+ * @param value the major to add
+ * @return this
+ */
+ public ActivityStorySettle addMajor(final ActivityStoryOptions value) {
+ bitField0_ |= 0x00000004;
+ major.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Major = 2;
+ * @param values the major to add
+ * @return this
+ */
+ public ActivityStorySettle addAllMajor(final ActivityStoryOptions... values) {
+ bitField0_ |= 0x00000004;
+ major.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 3;
+ * @return whether the personality field is set
+ */
+ public boolean hasPersonality() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 3;
+ * @return this
+ */
+ public ActivityStorySettle clearPersonality() {
+ bitField0_ &= ~0x00000008;
+ personality.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 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 #getMutablePersonality()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getPersonality() {
+ return personality;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 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 getMutablePersonality() {
+ bitField0_ |= 0x00000008;
+ return personality;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 3;
+ * @param value the personality to add
+ * @return this
+ */
+ public ActivityStorySettle addPersonality(final ActivityStoryOptions value) {
+ bitField0_ |= 0x00000008;
+ personality.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryOptions Personality = 3;
+ * @param values the personality to add
+ * @return this
+ */
+ public ActivityStorySettle addAllPersonality(final ActivityStoryOptions... values) {
+ bitField0_ |= 0x00000008;
+ personality.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettle copyFrom(final ActivityStorySettle other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ storyId = other.storyId;
+ nextPackage.copyFrom(other.nextPackage);
+ major.copyFrom(other.major);
+ personality.copyFrom(other.personality);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettle mergeFrom(final ActivityStorySettle other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasStoryId()) {
+ setStoryId(other.storyId);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasMajor()) {
+ getMutableMajor().addAll(other.major);
+ }
+ if (other.hasPersonality()) {
+ getMutablePersonality().addAll(other.personality);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettle clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ storyId = 0;
+ nextPackage.clear();
+ major.clear();
+ personality.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettle clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ major.clearQuick();
+ personality.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityStorySettle)) {
+ return false;
+ }
+ ActivityStorySettle other = (ActivityStorySettle) o;
+ return bitField0_ == other.bitField0_
+ && (!hasStoryId() || storyId == other.storyId)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasMajor() || major.equals(other.major))
+ && (!hasPersonality() || personality.equals(other.personality));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(storyId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < major.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(major.get(i));
+ }
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < personality.length(); i++) {
+ output.writeRawByte((byte) 26);
+ output.writeMessageNoTag(personality.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * major.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(major);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * personality.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personality);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStorySettle mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // storyId
+ storyId = 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: {
+ // major
+ tag = input.readRepeatedMessage(major, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // personality
+ tag = input.readRepeatedMessage(personality, 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.storyId, storyId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.major, major);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.personality, personality);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStorySettle mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -219598640: {
+ if (input.isAtField(FieldNames.storyId)) {
+ if (!input.trySkipNullValue()) {
+ storyId = 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 74106265: {
+ if (input.isAtField(FieldNames.major)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(major);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1243902542: {
+ if (input.isAtField(FieldNames.personality)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(personality);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ActivityStorySettle clone() {
+ return new ActivityStorySettle().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStorySettle parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStorySettle(), data).checkInitialized();
+ }
+
+ public static ActivityStorySettle parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStorySettle(), input).checkInitialized();
+ }
+
+ public static ActivityStorySettle parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStorySettle(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStorySettle messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStorySettleFactory.INSTANCE;
+ }
+
+ private enum ActivityStorySettleFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStorySettle create() {
+ return ActivityStorySettle.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName storyId = FieldName.forField("StoryId");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName major = FieldName.forField("Major");
+
+ static final FieldName personality = FieldName.forField("Personality");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityStoryOptions}
+ */
+ public static final class ActivityStoryOptions extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 Group = 1;
+ */
+ private int group;
+
+ /**
+ * optional uint32 Choice = 2;
+ */
+ private int choice;
+
+ /**
+ * optional uint32 Factor = 3;
+ */
+ private int factor;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private ActivityStoryOptions() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStoryOptions}
+ */
+ public static ActivityStoryOptions newInstance() {
+ return new ActivityStoryOptions();
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return whether the group field is set
+ */
+ public boolean hasGroup() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return this
+ */
+ public ActivityStoryOptions clearGroup() {
+ bitField0_ &= ~0x00000001;
+ group = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return the group
+ */
+ public int getGroup() {
+ return group;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @param value the group to set
+ * @return this
+ */
+ public ActivityStoryOptions setGroup(final int value) {
+ bitField0_ |= 0x00000001;
+ group = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 Choice = 2;
+ * @return whether the choice field is set
+ */
+ public boolean hasChoice() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 Choice = 2;
+ * @return this
+ */
+ public ActivityStoryOptions clearChoice() {
+ bitField0_ &= ~0x00000002;
+ choice = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Choice = 2;
+ * @return the choice
+ */
+ public int getChoice() {
+ return choice;
+ }
+
+ /**
+ * optional uint32 Choice = 2;
+ * @param value the choice to set
+ * @return this
+ */
+ public ActivityStoryOptions setChoice(final int value) {
+ bitField0_ |= 0x00000002;
+ choice = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 Factor = 3;
+ * @return whether the factor field is set
+ */
+ public boolean hasFactor() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 Factor = 3;
+ * @return this
+ */
+ public ActivityStoryOptions clearFactor() {
+ bitField0_ &= ~0x00000004;
+ factor = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Factor = 3;
+ * @return the factor
+ */
+ public int getFactor() {
+ return factor;
+ }
+
+ /**
+ * optional uint32 Factor = 3;
+ * @param value the factor to set
+ * @return this
+ */
+ public ActivityStoryOptions setFactor(final int value) {
+ bitField0_ |= 0x00000004;
+ factor = 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 ActivityStoryOptions 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 ActivityStoryOptions addNextPackage(final byte value) {
+ bitField0_ |= 0x00000008;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStoryOptions addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000008;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStoryOptions setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000008;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStoryOptions copyFrom(final ActivityStoryOptions other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ group = other.group;
+ choice = other.choice;
+ factor = other.factor;
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryOptions mergeFrom(final ActivityStoryOptions other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGroup()) {
+ setGroup(other.group);
+ }
+ if (other.hasChoice()) {
+ setChoice(other.choice);
+ }
+ if (other.hasFactor()) {
+ setFactor(other.factor);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryOptions clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ group = 0;
+ choice = 0;
+ factor = 0;
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStoryOptions 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 ActivityStoryOptions)) {
+ return false;
+ }
+ ActivityStoryOptions other = (ActivityStoryOptions) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGroup() || group == other.group)
+ && (!hasChoice() || choice == other.choice)
+ && (!hasFactor() || factor == other.factor)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(choice);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(factor);
+ }
+ 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(group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(choice);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(factor);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStoryOptions mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // group
+ group = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16) {
+ break;
+ }
+ }
+ case 16: {
+ // choice
+ choice = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 24) {
+ break;
+ }
+ }
+ case 24: {
+ // factor
+ factor = 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.group, group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.choice, choice);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.factor, factor);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStoryOptions mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 69076575: {
+ if (input.isAtField(FieldNames.group)) {
+ if (!input.trySkipNullValue()) {
+ group = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 2017610177: {
+ if (input.isAtField(FieldNames.choice)) {
+ if (!input.trySkipNullValue()) {
+ choice = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 2096686447: {
+ if (input.isAtField(FieldNames.factor)) {
+ if (!input.trySkipNullValue()) {
+ factor = 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 ActivityStoryOptions clone() {
+ return new ActivityStoryOptions().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStoryOptions parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStoryOptions(), data).checkInitialized();
+ }
+
+ public static ActivityStoryOptions parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryOptions(), input).checkInitialized();
+ }
+
+ public static ActivityStoryOptions parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryOptions(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStoryOptions messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStoryOptionsFactory.INSTANCE;
+ }
+
+ private enum ActivityStoryOptionsFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStoryOptions create() {
+ return ActivityStoryOptions.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName group = FieldName.forField("Group");
+
+ static final FieldName choice = FieldName.forField("Choice");
+
+ static final FieldName factor = FieldName.forField("Factor");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java
new file mode 100644
index 0000000..442f36b
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java
@@ -0,0 +1,666 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.nebula.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.RepeatedByte;
+import us.hebi.quickbuf.RepeatedInt;
+
+public final class ActivityTrekkerVersusApply {
+ /**
+ * Protobuf type {@code ActivityTrekkerVersusApplyReq}
+ */
+ public static final class ActivityTrekkerVersusApplyReq extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint64 BuildId = 3;
+ */
+ private long buildId;
+
+ /**
+ * optional uint32 ActivityId = 1;
+ */
+ private int activityId;
+
+ /**
+ * optional uint32 LevelId = 2;
+ */
+ private int levelId;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated uint32 AffixIds = 4;
+ */
+ private final RepeatedInt affixIds = RepeatedInt.newEmptyInstance();
+
+ private ActivityTrekkerVersusApplyReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityTrekkerVersusApplyReq}
+ */
+ public static ActivityTrekkerVersusApplyReq newInstance() {
+ return new ActivityTrekkerVersusApplyReq();
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @return whether the buildId field is set
+ */
+ public boolean hasBuildId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq clearBuildId() {
+ bitField0_ &= ~0x00000001;
+ buildId = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @return the buildId
+ */
+ public long getBuildId() {
+ return buildId;
+ }
+
+ /**
+ * optional uint64 BuildId = 3;
+ * @param value the buildId to set
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq setBuildId(final long value) {
+ bitField0_ |= 0x00000001;
+ buildId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 ActivityId = 1;
+ * @return whether the activityId field is set
+ */
+ public boolean hasActivityId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 ActivityId = 1;
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq clearActivityId() {
+ bitField0_ &= ~0x00000002;
+ 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 ActivityTrekkerVersusApplyReq setActivityId(final int value) {
+ bitField0_ |= 0x00000002;
+ activityId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 LevelId = 2;
+ * @return whether the levelId field is set
+ */
+ public boolean hasLevelId() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 LevelId = 2;
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq clearLevelId() {
+ bitField0_ &= ~0x00000004;
+ 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 ActivityTrekkerVersusApplyReq setLevelId(final int value) {
+ bitField0_ |= 0x00000004;
+ levelId = 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 ActivityTrekkerVersusApplyReq 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 ActivityTrekkerVersusApplyReq addNextPackage(final byte value) {
+ bitField0_ |= 0x00000008;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000008;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000008;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 4;
+ * @return whether the affixIds field is set
+ */
+ public boolean hasAffixIds() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 4;
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq clearAffixIds() {
+ bitField0_ &= ~0x00000010;
+ affixIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 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 #getMutableAffixIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getAffixIds() {
+ return affixIds;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 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 getMutableAffixIds() {
+ bitField0_ |= 0x00000010;
+ return affixIds;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 4;
+ * @param value the affixIds to add
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq addAffixIds(final int value) {
+ bitField0_ |= 0x00000010;
+ affixIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 4;
+ * @param values the affixIds to add
+ * @return this
+ */
+ public ActivityTrekkerVersusApplyReq addAllAffixIds(final int... values) {
+ bitField0_ |= 0x00000010;
+ affixIds.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusApplyReq copyFrom(final ActivityTrekkerVersusApplyReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ buildId = other.buildId;
+ activityId = other.activityId;
+ levelId = other.levelId;
+ nextPackage.copyFrom(other.nextPackage);
+ affixIds.copyFrom(other.affixIds);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusApplyReq mergeFrom(final ActivityTrekkerVersusApplyReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBuildId()) {
+ setBuildId(other.buildId);
+ }
+ if (other.hasActivityId()) {
+ setActivityId(other.activityId);
+ }
+ if (other.hasLevelId()) {
+ setLevelId(other.levelId);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasAffixIds()) {
+ getMutableAffixIds().addAll(other.affixIds);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusApplyReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ buildId = 0L;
+ activityId = 0;
+ levelId = 0;
+ nextPackage.clear();
+ affixIds.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusApplyReq clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ affixIds.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityTrekkerVersusApplyReq)) {
+ return false;
+ }
+ ActivityTrekkerVersusApplyReq other = (ActivityTrekkerVersusApplyReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBuildId() || buildId == other.buildId)
+ && (!hasActivityId() || activityId == other.activityId)
+ && (!hasLevelId() || levelId == other.levelId)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasAffixIds() || affixIds.equals(other.affixIds));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt64NoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(activityId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(levelId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ for (int i = 0; i < affixIds.length(); i++) {
+ output.writeRawByte((byte) 32);
+ output.writeUInt32NoTag(affixIds.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += (1 * affixIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(affixIds);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityTrekkerVersusApplyReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 24: {
+ // buildId
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 8) {
+ break;
+ }
+ }
+ case 8: {
+ // activityId
+ activityId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 16) {
+ break;
+ }
+ }
+ case 16: {
+ // levelId
+ levelId = input.readUInt32();
+ 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: {
+ // affixIds [packed=true]
+ input.readPackedUInt32(affixIds, tag);
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 32: {
+ // affixIds [packed=false]
+ tag = input.readRepeatedUInt32(affixIds, tag);
+ bitField0_ |= 0x00000010;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt64(FieldNames.buildId, buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.activityId, activityId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.levelId, levelId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRepeatedUInt32(FieldNames.affixIds, affixIds);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityTrekkerVersusApplyReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1895597065: {
+ if (input.isAtField(FieldNames.buildId)) {
+ if (!input.trySkipNullValue()) {
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -252882774: {
+ if (input.isAtField(FieldNames.activityId)) {
+ if (!input.trySkipNullValue()) {
+ activityId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1734437791: {
+ if (input.isAtField(FieldNames.levelId)) {
+ if (!input.trySkipNullValue()) {
+ levelId = 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 670408424: {
+ if (input.isAtField(FieldNames.affixIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(affixIds);
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusApplyReq clone() {
+ return new ActivityTrekkerVersusApplyReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityTrekkerVersusApplyReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusApplyReq(), data).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusApplyReq parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusApplyReq(), input).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusApplyReq parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusApplyReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityTrekkerVersusApplyReq messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityTrekkerVersusApplyReqFactory.INSTANCE;
+ }
+
+ private enum ActivityTrekkerVersusApplyReqFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityTrekkerVersusApplyReq create() {
+ return ActivityTrekkerVersusApplyReq.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName buildId = FieldName.forField("BuildId");
+
+ static final FieldName activityId = FieldName.forField("ActivityId");
+
+ static final FieldName levelId = FieldName.forField("LevelId");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName affixIds = FieldName.forField("AffixIds");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRewardReceive.java
new file mode 100644
index 0000000..f64d459
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRewardReceive.java
@@ -0,0 +1,524 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.nebula.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.RepeatedByte;
+import us.hebi.quickbuf.RepeatedMessage;
+
+public final class ActivityTrekkerVersusRewardReceive {
+ /**
+ * Protobuf type {@code ActivityTrekkerVersusRewardReceiveResp}
+ */
+ public static final class ActivityTrekkerVersusRewardReceiveResp extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ */
+ private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .ItemTpl AwardItems = 2;
+ */
+ private final RepeatedMessage awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
+
+ private ActivityTrekkerVersusRewardReceiveResp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityTrekkerVersusRewardReceiveResp}
+ */
+ public static ActivityTrekkerVersusRewardReceiveResp newInstance() {
+ return new ActivityTrekkerVersusRewardReceiveResp();
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @return whether the change field is set
+ */
+ public boolean hasChange() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp clearChange() {
+ bitField0_ &= ~0x00000001;
+ change.clear();
+ return this;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableChange()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.ChangeInfo getChange() {
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.ChangeInfo getMutableChange() {
+ bitField0_ |= 0x00000001;
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @param value the change to set
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp setChange(final Public.ChangeInfo value) {
+ bitField0_ |= 0x00000001;
+ change.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 ActivityTrekkerVersusRewardReceiveResp 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 ActivityTrekkerVersusRewardReceiveResp addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl AwardItems = 2;
+ * @return whether the awardItems field is set
+ */
+ public boolean hasAwardItems() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .ItemTpl AwardItems = 2;
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp clearAwardItems() {
+ bitField0_ &= ~0x00000004;
+ awardItems.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl AwardItems = 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 #getMutableAwardItems()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getAwardItems() {
+ return awardItems;
+ }
+
+ /**
+ * repeated .ItemTpl AwardItems = 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 getMutableAwardItems() {
+ bitField0_ |= 0x00000004;
+ return awardItems;
+ }
+
+ /**
+ * repeated .ItemTpl AwardItems = 2;
+ * @param value the awardItems to add
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp addAwardItems(final Public.ItemTpl value) {
+ bitField0_ |= 0x00000004;
+ awardItems.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl AwardItems = 2;
+ * @param values the awardItems to add
+ * @return this
+ */
+ public ActivityTrekkerVersusRewardReceiveResp addAllAwardItems(final Public.ItemTpl... values) {
+ bitField0_ |= 0x00000004;
+ awardItems.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp copyFrom(
+ final ActivityTrekkerVersusRewardReceiveResp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ change.copyFrom(other.change);
+ nextPackage.copyFrom(other.nextPackage);
+ awardItems.copyFrom(other.awardItems);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp mergeFrom(
+ final ActivityTrekkerVersusRewardReceiveResp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasChange()) {
+ getMutableChange().mergeFrom(other.change);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasAwardItems()) {
+ getMutableAwardItems().addAll(other.awardItems);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clear();
+ nextPackage.clear();
+ awardItems.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clearQuick();
+ nextPackage.clear();
+ awardItems.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityTrekkerVersusRewardReceiveResp)) {
+ return false;
+ }
+ ActivityTrekkerVersusRewardReceiveResp other = (ActivityTrekkerVersusRewardReceiveResp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasChange() || change.equals(other.change))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasAwardItems() || awardItems.equals(other.awardItems));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 10);
+ output.writeMessageNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < awardItems.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(awardItems.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityTrekkerVersusRewardReceiveResp mergeFrom(final ProtoSource input) throws
+ IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 10: {
+ // change
+ input.readMessage(change);
+ 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: {
+ // awardItems
+ tag = input.readRepeatedMessage(awardItems, 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.change, change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.awardItems, awardItems);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp mergeFrom(final JsonSource input) throws
+ IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2017198032: {
+ if (input.isAtField(FieldNames.change)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(change);
+ 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 -1943188605: {
+ if (input.isAtField(FieldNames.awardItems)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(awardItems);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp clone() {
+ return new ActivityTrekkerVersusRewardReceiveResp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityTrekkerVersusRewardReceiveResp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRewardReceiveResp(), data).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusRewardReceiveResp parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRewardReceiveResp(), input).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusRewardReceiveResp parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRewardReceiveResp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityTrekkerVersusRewardReceiveResp messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityTrekkerVersusRewardReceiveRespFactory.INSTANCE;
+ }
+
+ private enum ActivityTrekkerVersusRewardReceiveRespFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityTrekkerVersusRewardReceiveResp create() {
+ return ActivityTrekkerVersusRewardReceiveResp.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName change = FieldName.forField("Change");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName awardItems = FieldName.forField("AwardItems");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusSettle.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusSettle.java
new file mode 100644
index 0000000..1422a6f
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusSettle.java
@@ -0,0 +1,1037 @@
+// 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 ActivityTrekkerVersusSettle {
+ /**
+ * Protobuf type {@code ActivityTrekkerVersusSettleReq}
+ */
+ public static final class ActivityTrekkerVersusSettleReq extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 ActivityId = 1;
+ */
+ private int activityId;
+
+ /**
+ * optional uint32 Time = 2;
+ */
+ private int time;
+
+ /**
+ * optional bool Passed = 3;
+ */
+ private boolean passed;
+
+ /**
+ * optional .Events Events = 8;
+ */
+ private final Public.Events events = Public.Events.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private ActivityTrekkerVersusSettleReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityTrekkerVersusSettleReq}
+ */
+ public static ActivityTrekkerVersusSettleReq newInstance() {
+ return new ActivityTrekkerVersusSettleReq();
+ }
+
+ /**
+ * 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 ActivityTrekkerVersusSettleReq 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 ActivityTrekkerVersusSettleReq setActivityId(final int value) {
+ bitField0_ |= 0x00000001;
+ activityId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 Time = 2;
+ * @return whether the time field is set
+ */
+ public boolean hasTime() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 Time = 2;
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq clearTime() {
+ bitField0_ &= ~0x00000002;
+ time = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Time = 2;
+ * @return the time
+ */
+ public int getTime() {
+ return time;
+ }
+
+ /**
+ * optional uint32 Time = 2;
+ * @param value the time to set
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq setTime(final int value) {
+ bitField0_ |= 0x00000002;
+ time = value;
+ return this;
+ }
+
+ /**
+ * optional bool Passed = 3;
+ * @return whether the passed field is set
+ */
+ public boolean hasPassed() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional bool Passed = 3;
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq clearPassed() {
+ bitField0_ &= ~0x00000004;
+ passed = false;
+ return this;
+ }
+
+ /**
+ * optional bool Passed = 3;
+ * @return the passed
+ */
+ public boolean getPassed() {
+ return passed;
+ }
+
+ /**
+ * optional bool Passed = 3;
+ * @param value the passed to set
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq setPassed(final boolean value) {
+ bitField0_ |= 0x00000004;
+ passed = value;
+ return this;
+ }
+
+ /**
+ * optional .Events Events = 8;
+ * @return whether the events field is set
+ */
+ public boolean hasEvents() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional .Events Events = 8;
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq clearEvents() {
+ bitField0_ &= ~0x00000008;
+ events.clear();
+ return this;
+ }
+
+ /**
+ * optional .Events Events = 8;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableEvents()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.Events getEvents() {
+ return events;
+ }
+
+ /**
+ * optional .Events Events = 8;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.Events getMutableEvents() {
+ bitField0_ |= 0x00000008;
+ return events;
+ }
+
+ /**
+ * optional .Events Events = 8;
+ * @param value the events to set
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq setEvents(final Public.Events value) {
+ bitField0_ |= 0x00000008;
+ events.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @return whether the nextPackage field is set
+ */
+ public boolean hasNextPackage() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq 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 ActivityTrekkerVersusSettleReq addNextPackage(final byte value) {
+ bitField0_ |= 0x00000010;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000010;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleReq setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000010;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleReq copyFrom(final ActivityTrekkerVersusSettleReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ activityId = other.activityId;
+ time = other.time;
+ passed = other.passed;
+ events.copyFrom(other.events);
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleReq mergeFrom(final ActivityTrekkerVersusSettleReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasActivityId()) {
+ setActivityId(other.activityId);
+ }
+ if (other.hasTime()) {
+ setTime(other.time);
+ }
+ if (other.hasPassed()) {
+ setPassed(other.passed);
+ }
+ if (other.hasEvents()) {
+ getMutableEvents().mergeFrom(other.events);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ activityId = 0;
+ time = 0;
+ passed = false;
+ events.clear();
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleReq clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ events.clearQuick();
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityTrekkerVersusSettleReq)) {
+ return false;
+ }
+ ActivityTrekkerVersusSettleReq other = (ActivityTrekkerVersusSettleReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasActivityId() || activityId == other.activityId)
+ && (!hasTime() || time == other.time)
+ && (!hasPassed() || passed == other.passed)
+ && (!hasEvents() || events.equals(other.events))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(activityId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(time);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeBoolNoTag(passed);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 66);
+ output.writeMessageNoTag(events);
+ }
+ 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(activityId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2;
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(events);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityTrekkerVersusSettleReq 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: {
+ // time
+ time = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 24) {
+ break;
+ }
+ }
+ case 24: {
+ // passed
+ passed = input.readBool();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 66) {
+ break;
+ }
+ }
+ case 66: {
+ // events
+ input.readMessage(events);
+ 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.activityId, activityId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.time, time);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBool(FieldNames.passed, passed);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeMessage(FieldNames.events, events);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleReq 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 2606829: {
+ if (input.isAtField(FieldNames.time)) {
+ if (!input.trySkipNullValue()) {
+ time = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1911513968: {
+ if (input.isAtField(FieldNames.passed)) {
+ if (!input.trySkipNullValue()) {
+ passed = input.readBool();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 2087505209: {
+ if (input.isAtField(FieldNames.events)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(events);
+ 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 ActivityTrekkerVersusSettleReq clone() {
+ return new ActivityTrekkerVersusSettleReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityTrekkerVersusSettleReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusSettleReq(), data).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusSettleReq parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusSettleReq(), input).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusSettleReq parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusSettleReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityTrekkerVersusSettleReq messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityTrekkerVersusSettleReqFactory.INSTANCE;
+ }
+
+ private enum ActivityTrekkerVersusSettleReqFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityTrekkerVersusSettleReq create() {
+ return ActivityTrekkerVersusSettleReq.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName activityId = FieldName.forField("ActivityId");
+
+ static final FieldName time = FieldName.forField("Time");
+
+ static final FieldName passed = FieldName.forField("Passed");
+
+ static final FieldName events = FieldName.forField("Events");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityTrekkerVersusSettleResp}
+ */
+ public static final class ActivityTrekkerVersusSettleResp extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ */
+ private final Public.TrekkerVersusShow show = Public.TrekkerVersusShow.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private ActivityTrekkerVersusSettleResp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityTrekkerVersusSettleResp}
+ */
+ public static ActivityTrekkerVersusSettleResp newInstance() {
+ return new ActivityTrekkerVersusSettleResp();
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ * @return whether the show field is set
+ */
+ public boolean hasShow() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleResp clearShow() {
+ bitField0_ &= ~0x00000001;
+ show.clear();
+ return this;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 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 #getMutableShow()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.TrekkerVersusShow getShow() {
+ return show;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.TrekkerVersusShow getMutableShow() {
+ bitField0_ |= 0x00000001;
+ return show;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ * @param value the show to set
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleResp setShow(final Public.TrekkerVersusShow value) {
+ bitField0_ |= 0x00000001;
+ show.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 ActivityTrekkerVersusSettleResp 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 ActivityTrekkerVersusSettleResp addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleResp addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityTrekkerVersusSettleResp setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleResp copyFrom(final ActivityTrekkerVersusSettleResp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ show.copyFrom(other.show);
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleResp mergeFrom(final ActivityTrekkerVersusSettleResp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasShow()) {
+ getMutableShow().mergeFrom(other.show);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleResp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ show.clear();
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleResp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ show.clearQuick();
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityTrekkerVersusSettleResp)) {
+ return false;
+ }
+ ActivityTrekkerVersusSettleResp other = (ActivityTrekkerVersusSettleResp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasShow() || show.equals(other.show))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 10);
+ output.writeMessageNoTag(show);
+ }
+ 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(show);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityTrekkerVersusSettleResp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 10: {
+ // show
+ input.readMessage(show);
+ 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.show, show);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityTrekkerVersusSettleResp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2576157: {
+ if (input.isAtField(FieldNames.show)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(show);
+ 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 ActivityTrekkerVersusSettleResp clone() {
+ return new ActivityTrekkerVersusSettleResp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityTrekkerVersusSettleResp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusSettleResp(), data).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusSettleResp parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusSettleResp(), input).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersusSettleResp parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersusSettleResp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityTrekkerVersusSettleResp messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityTrekkerVersusSettleRespFactory.INSTANCE;
+ }
+
+ private enum ActivityTrekkerVersusSettleRespFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityTrekkerVersusSettleResp create() {
+ return ActivityTrekkerVersusSettleResp.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName show = FieldName.forField("Show");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/GachaSpin.java b/src/generated/main/emu/nebula/proto/GachaSpin.java
index 1ae07d9..69bbef7 100644
--- a/src/generated/main/emu/nebula/proto/GachaSpin.java
+++ b/src/generated/main/emu/nebula/proto/GachaSpin.java
@@ -35,6 +35,11 @@ public final class GachaSpin {
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+ /**
+ * repeated .ItemTpl Check = 15;
+ */
+ private final RepeatedMessage check = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
+
private GachaSpinReq() {
}
@@ -198,6 +203,74 @@ public final class GachaSpin {
return this;
}
+ /**
+ * repeated .ItemTpl Check = 15;
+ * @return whether the check field is set
+ */
+ public boolean hasCheck() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .ItemTpl Check = 15;
+ * @return this
+ */
+ public GachaSpinReq clearCheck() {
+ bitField0_ &= ~0x00000008;
+ check.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl Check = 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 #getMutableCheck()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getCheck() {
+ return check;
+ }
+
+ /**
+ * repeated .ItemTpl Check = 15;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessage getMutableCheck() {
+ bitField0_ |= 0x00000008;
+ return check;
+ }
+
+ /**
+ * repeated .ItemTpl Check = 15;
+ * @param value the check to add
+ * @return this
+ */
+ public GachaSpinReq addCheck(final Public.ItemTpl value) {
+ bitField0_ |= 0x00000008;
+ check.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl Check = 15;
+ * @param values the check to add
+ * @return this
+ */
+ public GachaSpinReq addAllCheck(final Public.ItemTpl... values) {
+ bitField0_ |= 0x00000008;
+ check.addAll(values);
+ return this;
+ }
+
@Override
public GachaSpinReq copyFrom(final GachaSpinReq other) {
cachedSize = other.cachedSize;
@@ -206,6 +279,7 @@ public final class GachaSpin {
id = other.id;
mode = other.mode;
nextPackage.copyFrom(other.nextPackage);
+ check.copyFrom(other.check);
}
return this;
}
@@ -225,6 +299,9 @@ public final class GachaSpin {
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
+ if (other.hasCheck()) {
+ getMutableCheck().addAll(other.check);
+ }
return this;
}
@@ -238,6 +315,7 @@ public final class GachaSpin {
id = 0;
mode = 0;
nextPackage.clear();
+ check.clear();
return this;
}
@@ -249,6 +327,7 @@ public final class GachaSpin {
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
+ check.clearQuick();
return this;
}
@@ -264,7 +343,8 @@ public final class GachaSpin {
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasMode() || mode == other.mode)
- && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasCheck() || check.equals(other.check));
}
@Override
@@ -281,6 +361,12 @@ public final class GachaSpin {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < check.length(); i++) {
+ output.writeRawByte((byte) 122);
+ output.writeMessageNoTag(check.get(i));
+ }
+ }
}
@Override
@@ -295,6 +381,9 @@ public final class GachaSpin {
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * check.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(check);
+ }
return size;
}
@@ -328,6 +417,14 @@ public final class GachaSpin {
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
tag = input.readTag();
+ if (tag != 122) {
+ break;
+ }
+ }
+ case 122: {
+ // check
+ tag = input.readRepeatedMessage(check, tag);
+ bitField0_ |= 0x00000008;
if (tag != 0) {
break;
}
@@ -358,6 +455,9 @@ public final class GachaSpin {
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.check, check);
+ }
output.endObject();
}
@@ -401,6 +501,17 @@ public final class GachaSpin {
}
break;
}
+ case 65074408: {
+ if (input.isAtField(FieldNames.check)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(check);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
default: {
input.skipUnknownField();
break;
@@ -458,6 +569,8 @@ public final class GachaSpin {
static final FieldName mode = FieldName.forField("Mode");
static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName check = FieldName.forField("Check");
}
}
@@ -2022,4 +2135,518 @@ public final class GachaSpin {
static final FieldName rewards = FieldName.forField("Rewards");
}
}
+
+ /**
+ * Protobuf type {@code GachaSpinSyncResp}
+ */
+ public static final class GachaSpinSyncResp extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .Res Res = 2;
+ */
+ private final RepeatedMessage res = RepeatedMessage.newEmptyInstance(Public.Res.getFactory());
+
+ /**
+ * repeated .Item Items = 3;
+ */
+ private final RepeatedMessage items = RepeatedMessage.newEmptyInstance(Public.Item.getFactory());
+
+ private GachaSpinSyncResp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code GachaSpinSyncResp}
+ */
+ public static GachaSpinSyncResp newInstance() {
+ return new GachaSpinSyncResp();
+ }
+
+ /**
+ * 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 GachaSpinSyncResp 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 GachaSpinSyncResp addNextPackage(final byte value) {
+ bitField0_ |= 0x00000001;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public GachaSpinSyncResp addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000001;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public GachaSpinSyncResp setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000001;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated .Res Res = 2;
+ * @return whether the res field is set
+ */
+ public boolean hasRes() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * repeated .Res Res = 2;
+ * @return this
+ */
+ public GachaSpinSyncResp clearRes() {
+ bitField0_ &= ~0x00000002;
+ res.clear();
+ return this;
+ }
+
+ /**
+ * repeated .Res 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 .Res 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_ |= 0x00000002;
+ return res;
+ }
+
+ /**
+ * repeated .Res Res = 2;
+ * @param value the res to add
+ * @return this
+ */
+ public GachaSpinSyncResp addRes(final Public.Res value) {
+ bitField0_ |= 0x00000002;
+ res.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .Res Res = 2;
+ * @param values the res to add
+ * @return this
+ */
+ public GachaSpinSyncResp addAllRes(final Public.Res... values) {
+ bitField0_ |= 0x00000002;
+ res.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .Item Items = 3;
+ * @return whether the items field is set
+ */
+ public boolean hasItems() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .Item Items = 3;
+ * @return this
+ */
+ public GachaSpinSyncResp clearItems() {
+ bitField0_ &= ~0x00000004;
+ items.clear();
+ return this;
+ }
+
+ /**
+ * repeated .Item Items = 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 #getMutableItems()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getItems() {
+ return items;
+ }
+
+ /**
+ * repeated .Item Items = 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 getMutableItems() {
+ bitField0_ |= 0x00000004;
+ return items;
+ }
+
+ /**
+ * repeated .Item Items = 3;
+ * @param value the items to add
+ * @return this
+ */
+ public GachaSpinSyncResp addItems(final Public.Item value) {
+ bitField0_ |= 0x00000004;
+ items.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .Item Items = 3;
+ * @param values the items to add
+ * @return this
+ */
+ public GachaSpinSyncResp addAllItems(final Public.Item... values) {
+ bitField0_ |= 0x00000004;
+ items.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GachaSpinSyncResp copyFrom(final GachaSpinSyncResp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ nextPackage.copyFrom(other.nextPackage);
+ res.copyFrom(other.res);
+ items.copyFrom(other.items);
+ }
+ return this;
+ }
+
+ @Override
+ public GachaSpinSyncResp mergeFrom(final GachaSpinSyncResp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasRes()) {
+ getMutableRes().addAll(other.res);
+ }
+ if (other.hasItems()) {
+ getMutableItems().addAll(other.items);
+ }
+ return this;
+ }
+
+ @Override
+ public GachaSpinSyncResp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ res.clear();
+ items.clear();
+ return this;
+ }
+
+ @Override
+ public GachaSpinSyncResp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ res.clearQuick();
+ items.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GachaSpinSyncResp)) {
+ return false;
+ }
+ GachaSpinSyncResp other = (GachaSpinSyncResp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasRes() || res.equals(other.res))
+ && (!hasItems() || items.equals(other.items));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ for (int i = 0; i < res.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(res.get(i));
+ }
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < items.length(); i++) {
+ output.writeRawByte((byte) 26);
+ output.writeMessageNoTag(items.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GachaSpinSyncResp 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 != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // res
+ tag = input.readRepeatedMessage(res, tag);
+ bitField0_ |= 0x00000002;
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // items
+ tag = input.readRepeatedMessage(items, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRepeatedMessage(FieldNames.res, res);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.items, items);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GachaSpinSyncResp 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 82048: {
+ if (input.isAtField(FieldNames.res)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(res);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 70973344: {
+ if (input.isAtField(FieldNames.items)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(items);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GachaSpinSyncResp clone() {
+ return new GachaSpinSyncResp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GachaSpinSyncResp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GachaSpinSyncResp(), data).checkInitialized();
+ }
+
+ public static GachaSpinSyncResp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GachaSpinSyncResp(), input).checkInitialized();
+ }
+
+ public static GachaSpinSyncResp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GachaSpinSyncResp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GachaSpinSyncResp messages
+ */
+ public static MessageFactory getFactory() {
+ return GachaSpinSyncRespFactory.INSTANCE;
+ }
+
+ private enum GachaSpinSyncRespFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public GachaSpinSyncResp create() {
+ return GachaSpinSyncResp.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName res = FieldName.forField("Res");
+
+ static final FieldName items = FieldName.forField("Items");
+ }
+ }
}
diff --git a/src/generated/main/emu/nebula/proto/NotifyGm.java b/src/generated/main/emu/nebula/proto/NotifyGm.java
index 55d71a7..649b9ba 100644
--- a/src/generated/main/emu/nebula/proto/NotifyGm.java
+++ b/src/generated/main/emu/nebula/proto/NotifyGm.java
@@ -10948,4 +10948,607 @@ public final class NotifyGm {
static final FieldName levels = FieldName.forField("levels");
}
}
+
+ /**
+ * Protobuf type {@code AssistAddBuildNotify}
+ */
+ public static final class AssistAddBuildNotify extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ */
+ private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ */
+ private final PublicStarTower.StarTowerBuildInfo buildInfo = PublicStarTower.StarTowerBuildInfo.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ */
+ private final RepeatedMessage buildRewards = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
+
+ private AssistAddBuildNotify() {
+ }
+
+ /**
+ * @return a new empty instance of {@code AssistAddBuildNotify}
+ */
+ public static AssistAddBuildNotify newInstance() {
+ return new AssistAddBuildNotify();
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @return whether the change field is set
+ */
+ public boolean hasChange() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @return this
+ */
+ public AssistAddBuildNotify clearChange() {
+ bitField0_ &= ~0x00000001;
+ change.clear();
+ return this;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableChange()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.ChangeInfo getChange() {
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.ChangeInfo getMutableChange() {
+ bitField0_ |= 0x00000001;
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @param value the change to set
+ * @return this
+ */
+ public AssistAddBuildNotify setChange(final Public.ChangeInfo value) {
+ bitField0_ |= 0x00000001;
+ change.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ * @return whether the buildInfo field is set
+ */
+ public boolean hasBuildInfo() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ * @return this
+ */
+ public AssistAddBuildNotify clearBuildInfo() {
+ bitField0_ &= ~0x00000002;
+ buildInfo.clear();
+ return this;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 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 #getMutableBuildInfo()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public PublicStarTower.StarTowerBuildInfo getBuildInfo() {
+ return buildInfo;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 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 PublicStarTower.StarTowerBuildInfo getMutableBuildInfo() {
+ bitField0_ |= 0x00000002;
+ return buildInfo;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ * @param value the buildInfo to set
+ * @return this
+ */
+ public AssistAddBuildNotify setBuildInfo(final PublicStarTower.StarTowerBuildInfo value) {
+ bitField0_ |= 0x00000002;
+ buildInfo.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 AssistAddBuildNotify 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 AssistAddBuildNotify addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public AssistAddBuildNotify addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public AssistAddBuildNotify setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @return whether the buildRewards field is set
+ */
+ public boolean hasBuildRewards() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @return this
+ */
+ public AssistAddBuildNotify clearBuildRewards() {
+ bitField0_ &= ~0x00000008;
+ buildRewards.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 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 #getMutableBuildRewards()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getBuildRewards() {
+ return buildRewards;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 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 getMutableBuildRewards() {
+ bitField0_ |= 0x00000008;
+ return buildRewards;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @param value the buildRewards to add
+ * @return this
+ */
+ public AssistAddBuildNotify addBuildRewards(final Public.ItemTpl value) {
+ bitField0_ |= 0x00000008;
+ buildRewards.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @param values the buildRewards to add
+ * @return this
+ */
+ public AssistAddBuildNotify addAllBuildRewards(final Public.ItemTpl... values) {
+ bitField0_ |= 0x00000008;
+ buildRewards.addAll(values);
+ return this;
+ }
+
+ @Override
+ public AssistAddBuildNotify copyFrom(final AssistAddBuildNotify other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ change.copyFrom(other.change);
+ buildInfo.copyFrom(other.buildInfo);
+ nextPackage.copyFrom(other.nextPackage);
+ buildRewards.copyFrom(other.buildRewards);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistAddBuildNotify mergeFrom(final AssistAddBuildNotify other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasChange()) {
+ getMutableChange().mergeFrom(other.change);
+ }
+ if (other.hasBuildInfo()) {
+ getMutableBuildInfo().mergeFrom(other.buildInfo);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasBuildRewards()) {
+ getMutableBuildRewards().addAll(other.buildRewards);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistAddBuildNotify clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clear();
+ buildInfo.clear();
+ nextPackage.clear();
+ buildRewards.clear();
+ return this;
+ }
+
+ @Override
+ public AssistAddBuildNotify clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clearQuick();
+ buildInfo.clearQuick();
+ nextPackage.clear();
+ buildRewards.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof AssistAddBuildNotify)) {
+ return false;
+ }
+ AssistAddBuildNotify other = (AssistAddBuildNotify) o;
+ return bitField0_ == other.bitField0_
+ && (!hasChange() || change.equals(other.change))
+ && (!hasBuildInfo() || buildInfo.equals(other.buildInfo))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasBuildRewards() || buildRewards.equals(other.buildRewards));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 10);
+ output.writeMessageNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 26);
+ output.writeMessageNoTag(buildInfo);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < buildRewards.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(buildRewards.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(buildInfo);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * buildRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buildRewards);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public AssistAddBuildNotify mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 10: {
+ // change
+ input.readMessage(change);
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // buildInfo
+ input.readMessage(buildInfo);
+ 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: {
+ // buildRewards
+ tag = input.readRepeatedMessage(buildRewards, 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.writeMessage(FieldNames.change, change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeMessage(FieldNames.buildInfo, buildInfo);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.buildRewards, buildRewards);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public AssistAddBuildNotify mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2017198032: {
+ if (input.isAtField(FieldNames.change)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(change);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 602658844: {
+ if (input.isAtField(FieldNames.buildInfo)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(buildInfo);
+ 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 1656054: {
+ if (input.isAtField(FieldNames.buildRewards)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(buildRewards);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public AssistAddBuildNotify clone() {
+ return new AssistAddBuildNotify().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static AssistAddBuildNotify parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new AssistAddBuildNotify(), data).checkInitialized();
+ }
+
+ public static AssistAddBuildNotify parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistAddBuildNotify(), input).checkInitialized();
+ }
+
+ public static AssistAddBuildNotify parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistAddBuildNotify(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating AssistAddBuildNotify messages
+ */
+ public static MessageFactory getFactory() {
+ return AssistAddBuildNotifyFactory.INSTANCE;
+ }
+
+ private enum AssistAddBuildNotifyFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public AssistAddBuildNotify create() {
+ return AssistAddBuildNotify.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName change = FieldName.forField("Change");
+
+ static final FieldName buildInfo = FieldName.forField("BuildInfo");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName buildRewards = FieldName.forField("BuildRewards");
+ }
+ }
}
diff --git a/src/generated/main/emu/nebula/proto/PlayerData.java b/src/generated/main/emu/nebula/proto/PlayerData.java
index 3463aed..0bc1375 100644
--- a/src/generated/main/emu/nebula/proto/PlayerData.java
+++ b/src/generated/main/emu/nebula/proto/PlayerData.java
@@ -153,6 +153,11 @@ public final class PlayerData {
*/
private final RepeatedInt dailyActiveIds = RepeatedInt.newEmptyInstance();
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ */
+ private final RepeatedInt weeklyActiveIds = RepeatedInt.newEmptyInstance();
+
/**
* repeated uint32 HonorList = 123;
*/
@@ -238,6 +243,11 @@ public final class PlayerData {
*/
private final RepeatedMessage tutorialLevels = RepeatedMessage.newEmptyInstance(Public.TutorialLevel.getFactory());
+ /**
+ * repeated .AssistInfo Assists = 39;
+ */
+ private final RepeatedMessage assists = RepeatedMessage.newEmptyInstance(AssistInfo.getFactory());
+
/**
* repeated .HonorInfo Honors = 124;
*/
@@ -1623,12 +1633,80 @@ public final class PlayerData {
return this;
}
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ * @return whether the weeklyActiveIds field is set
+ */
+ public boolean hasWeeklyActiveIds() {
+ return (bitField0_ & 0x04000000) != 0;
+ }
+
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ * @return this
+ */
+ public PlayerInfo clearWeeklyActiveIds() {
+ bitField0_ &= ~0x04000000;
+ weeklyActiveIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableWeeklyActiveIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getWeeklyActiveIds() {
+ return weeklyActiveIds;
+ }
+
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of 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 getMutableWeeklyActiveIds() {
+ bitField0_ |= 0x04000000;
+ return weeklyActiveIds;
+ }
+
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ * @param value the weeklyActiveIds to add
+ * @return this
+ */
+ public PlayerInfo addWeeklyActiveIds(final int value) {
+ bitField0_ |= 0x04000000;
+ weeklyActiveIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 WeeklyActiveIds = 38;
+ * @param values the weeklyActiveIds to add
+ * @return this
+ */
+ public PlayerInfo addAllWeeklyActiveIds(final int... values) {
+ bitField0_ |= 0x04000000;
+ weeklyActiveIds.addAll(values);
+ return this;
+ }
+
/**
* repeated uint32 HonorList = 123;
* @return whether the honorList field is set
*/
public boolean hasHonorList() {
- return (bitField0_ & 0x04000000) != 0;
+ return (bitField0_ & 0x08000000) != 0;
}
/**
@@ -1636,7 +1714,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearHonorList() {
- bitField0_ &= ~0x04000000;
+ bitField0_ &= ~0x08000000;
honorList.clear();
return this;
}
@@ -1665,7 +1743,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedInt getMutableHonorList() {
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
return honorList;
}
@@ -1675,7 +1753,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addHonorList(final int value) {
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
honorList.add(value);
return this;
}
@@ -1686,7 +1764,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllHonorList(final int... values) {
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
honorList.addAll(values);
return this;
}
@@ -1696,7 +1774,7 @@ public final class PlayerData {
* @return whether the res field is set
*/
public boolean hasRes() {
- return (bitField0_ & 0x08000000) != 0;
+ return (bitField0_ & 0x10000000) != 0;
}
/**
@@ -1704,7 +1782,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearRes() {
- bitField0_ &= ~0x08000000;
+ bitField0_ &= ~0x10000000;
res.clear();
return this;
}
@@ -1733,7 +1811,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableRes() {
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x10000000;
return res;
}
@@ -1743,7 +1821,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addRes(final Public.Res value) {
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x10000000;
res.add(value);
return this;
}
@@ -1754,7 +1832,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllRes(final Public.Res... values) {
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x10000000;
res.addAll(values);
return this;
}
@@ -1764,7 +1842,7 @@ public final class PlayerData {
* @return whether the items field is set
*/
public boolean hasItems() {
- return (bitField0_ & 0x10000000) != 0;
+ return (bitField0_ & 0x20000000) != 0;
}
/**
@@ -1772,7 +1850,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearItems() {
- bitField0_ &= ~0x10000000;
+ bitField0_ &= ~0x20000000;
items.clear();
return this;
}
@@ -1801,7 +1879,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableItems() {
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x20000000;
return items;
}
@@ -1811,7 +1889,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addItems(final Public.Item value) {
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x20000000;
items.add(value);
return this;
}
@@ -1822,7 +1900,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllItems(final Public.Item... values) {
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x20000000;
items.addAll(values);
return this;
}
@@ -1832,7 +1910,7 @@ public final class PlayerData {
* @return whether the chars field is set
*/
public boolean hasChars() {
- return (bitField0_ & 0x20000000) != 0;
+ return (bitField0_ & 0x40000000) != 0;
}
/**
@@ -1840,7 +1918,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearChars() {
- bitField0_ &= ~0x20000000;
+ bitField0_ &= ~0x40000000;
chars.clear();
return this;
}
@@ -1869,7 +1947,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableChars() {
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x40000000;
return chars;
}
@@ -1879,7 +1957,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addChars(final Public.Char value) {
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x40000000;
chars.add(value);
return this;
}
@@ -1890,7 +1968,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllChars(final Public.Char... values) {
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x40000000;
chars.addAll(values);
return this;
}
@@ -1900,7 +1978,7 @@ public final class PlayerData {
* @return whether the equipments field is set
*/
public boolean hasEquipments() {
- return (bitField0_ & 0x40000000) != 0;
+ return (bitField0_ & 0x80000000) != 0;
}
/**
@@ -1908,7 +1986,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearEquipments() {
- bitField0_ &= ~0x40000000;
+ bitField0_ &= ~0x80000000;
equipments.clear();
return this;
}
@@ -1937,7 +2015,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableEquipments() {
- bitField0_ |= 0x40000000;
+ bitField0_ |= 0x80000000;
return equipments;
}
@@ -1947,7 +2025,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addEquipments(final Public.EquipmentInfo value) {
- bitField0_ |= 0x40000000;
+ bitField0_ |= 0x80000000;
equipments.add(value);
return this;
}
@@ -1958,7 +2036,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllEquipments(final Public.EquipmentInfo... values) {
- bitField0_ |= 0x40000000;
+ bitField0_ |= 0x80000000;
equipments.addAll(values);
return this;
}
@@ -1968,7 +2046,7 @@ public final class PlayerData {
* @return whether the regionBossLevels field is set
*/
public boolean hasRegionBossLevels() {
- return (bitField0_ & 0x80000000) != 0;
+ return (bitField1_ & 0x00000001) != 0;
}
/**
@@ -1976,7 +2054,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearRegionBossLevels() {
- bitField0_ &= ~0x80000000;
+ bitField1_ &= ~0x00000001;
regionBossLevels.clear();
return this;
}
@@ -2005,7 +2083,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableRegionBossLevels() {
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000001;
return regionBossLevels;
}
@@ -2015,7 +2093,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addRegionBossLevels(final Public.RegionBossLevel value) {
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000001;
regionBossLevels.add(value);
return this;
}
@@ -2026,7 +2104,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllRegionBossLevels(final Public.RegionBossLevel... values) {
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000001;
regionBossLevels.addAll(values);
return this;
}
@@ -2036,7 +2114,7 @@ public final class PlayerData {
* @return whether the handbook field is set
*/
public boolean hasHandbook() {
- return (bitField1_ & 0x00000001) != 0;
+ return (bitField1_ & 0x00000002) != 0;
}
/**
@@ -2044,7 +2122,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearHandbook() {
- bitField1_ &= ~0x00000001;
+ bitField1_ &= ~0x00000002;
handbook.clear();
return this;
}
@@ -2073,7 +2151,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableHandbook() {
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000002;
return handbook;
}
@@ -2083,7 +2161,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addHandbook(final Public.HandbookInfo value) {
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000002;
handbook.add(value);
return this;
}
@@ -2094,7 +2172,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllHandbook(final Public.HandbookInfo... values) {
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000002;
handbook.addAll(values);
return this;
}
@@ -2104,7 +2182,7 @@ public final class PlayerData {
* @return whether the titles field is set
*/
public boolean hasTitles() {
- return (bitField1_ & 0x00000002) != 0;
+ return (bitField1_ & 0x00000004) != 0;
}
/**
@@ -2112,7 +2190,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearTitles() {
- bitField1_ &= ~0x00000002;
+ bitField1_ &= ~0x00000004;
titles.clear();
return this;
}
@@ -2141,7 +2219,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableTitles() {
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000004;
return titles;
}
@@ -2151,7 +2229,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addTitles(final Public.Title value) {
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000004;
titles.add(value);
return this;
}
@@ -2162,7 +2240,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllTitles(final Public.Title... values) {
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000004;
titles.addAll(values);
return this;
}
@@ -2172,7 +2250,7 @@ public final class PlayerData {
* @return whether the dailyInstances field is set
*/
public boolean hasDailyInstances() {
- return (bitField1_ & 0x00000004) != 0;
+ return (bitField1_ & 0x00000008) != 0;
}
/**
@@ -2180,7 +2258,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearDailyInstances() {
- bitField1_ &= ~0x00000004;
+ bitField1_ &= ~0x00000008;
dailyInstances.clear();
return this;
}
@@ -2209,7 +2287,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableDailyInstances() {
- bitField1_ |= 0x00000004;
+ bitField1_ |= 0x00000008;
return dailyInstances;
}
@@ -2219,7 +2297,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addDailyInstances(final Public.DailyInstance value) {
- bitField1_ |= 0x00000004;
+ bitField1_ |= 0x00000008;
dailyInstances.add(value);
return this;
}
@@ -2230,7 +2308,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllDailyInstances(final Public.DailyInstance... values) {
- bitField1_ |= 0x00000004;
+ bitField1_ |= 0x00000008;
dailyInstances.addAll(values);
return this;
}
@@ -2240,7 +2318,7 @@ public final class PlayerData {
* @return whether the dictionaries field is set
*/
public boolean hasDictionaries() {
- return (bitField1_ & 0x00000008) != 0;
+ return (bitField1_ & 0x00000010) != 0;
}
/**
@@ -2248,7 +2326,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearDictionaries() {
- bitField1_ &= ~0x00000008;
+ bitField1_ &= ~0x00000010;
dictionaries.clear();
return this;
}
@@ -2277,7 +2355,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableDictionaries() {
- bitField1_ |= 0x00000008;
+ bitField1_ |= 0x00000010;
return dictionaries;
}
@@ -2287,7 +2365,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addDictionaries(final DictionaryTab value) {
- bitField1_ |= 0x00000008;
+ bitField1_ |= 0x00000010;
dictionaries.add(value);
return this;
}
@@ -2298,7 +2376,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllDictionaries(final DictionaryTab... values) {
- bitField1_ |= 0x00000008;
+ bitField1_ |= 0x00000010;
dictionaries.addAll(values);
return this;
}
@@ -2308,7 +2386,7 @@ public final class PlayerData {
* @return whether the activities field is set
*/
public boolean hasActivities() {
- return (bitField1_ & 0x00000010) != 0;
+ return (bitField1_ & 0x00000020) != 0;
}
/**
@@ -2316,7 +2394,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearActivities() {
- bitField1_ &= ~0x00000010;
+ bitField1_ &= ~0x00000020;
activities.clear();
return this;
}
@@ -2345,7 +2423,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableActivities() {
- bitField1_ |= 0x00000010;
+ bitField1_ |= 0x00000020;
return activities;
}
@@ -2355,7 +2433,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addActivities(final Public.Activity value) {
- bitField1_ |= 0x00000010;
+ bitField1_ |= 0x00000020;
activities.add(value);
return this;
}
@@ -2366,7 +2444,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllActivities(final Public.Activity... values) {
- bitField1_ |= 0x00000010;
+ bitField1_ |= 0x00000020;
activities.addAll(values);
return this;
}
@@ -2376,7 +2454,7 @@ public final class PlayerData {
* @return whether the discs field is set
*/
public boolean hasDiscs() {
- return (bitField1_ & 0x00000020) != 0;
+ return (bitField1_ & 0x00000040) != 0;
}
/**
@@ -2384,7 +2462,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearDiscs() {
- bitField1_ &= ~0x00000020;
+ bitField1_ &= ~0x00000040;
discs.clear();
return this;
}
@@ -2413,7 +2491,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableDiscs() {
- bitField1_ |= 0x00000020;
+ bitField1_ |= 0x00000040;
return discs;
}
@@ -2423,7 +2501,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addDiscs(final Public.Disc value) {
- bitField1_ |= 0x00000020;
+ bitField1_ |= 0x00000040;
discs.add(value);
return this;
}
@@ -2434,7 +2512,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllDiscs(final Public.Disc... values) {
- bitField1_ |= 0x00000020;
+ bitField1_ |= 0x00000040;
discs.addAll(values);
return this;
}
@@ -2444,7 +2522,7 @@ public final class PlayerData {
* @return whether the equipmentInstances field is set
*/
public boolean hasEquipmentInstances() {
- return (bitField1_ & 0x00000040) != 0;
+ return (bitField1_ & 0x00000080) != 0;
}
/**
@@ -2452,7 +2530,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearEquipmentInstances() {
- bitField1_ &= ~0x00000040;
+ bitField1_ &= ~0x00000080;
equipmentInstances.clear();
return this;
}
@@ -2481,7 +2559,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableEquipmentInstances() {
- bitField1_ |= 0x00000040;
+ bitField1_ |= 0x00000080;
return equipmentInstances;
}
@@ -2491,7 +2569,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addEquipmentInstances(final Public.EquipmentInstance value) {
- bitField1_ |= 0x00000040;
+ bitField1_ |= 0x00000080;
equipmentInstances.add(value);
return this;
}
@@ -2502,7 +2580,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllEquipmentInstances(final Public.EquipmentInstance... values) {
- bitField1_ |= 0x00000040;
+ bitField1_ |= 0x00000080;
equipmentInstances.addAll(values);
return this;
}
@@ -2512,7 +2590,7 @@ public final class PlayerData {
* @return whether the skillInstances field is set
*/
public boolean hasSkillInstances() {
- return (bitField1_ & 0x00000080) != 0;
+ return (bitField1_ & 0x00000100) != 0;
}
/**
@@ -2520,7 +2598,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearSkillInstances() {
- bitField1_ &= ~0x00000080;
+ bitField1_ &= ~0x00000100;
skillInstances.clear();
return this;
}
@@ -2549,7 +2627,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableSkillInstances() {
- bitField1_ |= 0x00000080;
+ bitField1_ |= 0x00000100;
return skillInstances;
}
@@ -2559,7 +2637,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addSkillInstances(final Public.SkillInstance value) {
- bitField1_ |= 0x00000080;
+ bitField1_ |= 0x00000100;
skillInstances.add(value);
return this;
}
@@ -2570,7 +2648,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllSkillInstances(final Public.SkillInstance... values) {
- bitField1_ |= 0x00000080;
+ bitField1_ |= 0x00000100;
skillInstances.addAll(values);
return this;
}
@@ -2580,7 +2658,7 @@ public final class PlayerData {
* @return whether the weekBossLevels field is set
*/
public boolean hasWeekBossLevels() {
- return (bitField1_ & 0x00000100) != 0;
+ return (bitField1_ & 0x00000200) != 0;
}
/**
@@ -2588,7 +2666,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearWeekBossLevels() {
- bitField1_ &= ~0x00000100;
+ bitField1_ &= ~0x00000200;
weekBossLevels.clear();
return this;
}
@@ -2617,7 +2695,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableWeekBossLevels() {
- bitField1_ |= 0x00000100;
+ bitField1_ |= 0x00000200;
return weekBossLevels;
}
@@ -2627,7 +2705,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addWeekBossLevels(final Public.WeekBossLevel value) {
- bitField1_ |= 0x00000100;
+ bitField1_ |= 0x00000200;
weekBossLevels.add(value);
return this;
}
@@ -2638,7 +2716,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllWeekBossLevels(final Public.WeekBossLevel... values) {
- bitField1_ |= 0x00000100;
+ bitField1_ |= 0x00000200;
weekBossLevels.addAll(values);
return this;
}
@@ -2648,7 +2726,7 @@ public final class PlayerData {
* @return whether the charGemInstances field is set
*/
public boolean hasCharGemInstances() {
- return (bitField1_ & 0x00000200) != 0;
+ return (bitField1_ & 0x00000400) != 0;
}
/**
@@ -2656,7 +2734,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearCharGemInstances() {
- bitField1_ &= ~0x00000200;
+ bitField1_ &= ~0x00000400;
charGemInstances.clear();
return this;
}
@@ -2685,7 +2763,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableCharGemInstances() {
- bitField1_ |= 0x00000200;
+ bitField1_ |= 0x00000400;
return charGemInstances;
}
@@ -2695,7 +2773,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addCharGemInstances(final Public.CharGemInstance value) {
- bitField1_ |= 0x00000200;
+ bitField1_ |= 0x00000400;
charGemInstances.add(value);
return this;
}
@@ -2706,7 +2784,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllCharGemInstances(final Public.CharGemInstance... values) {
- bitField1_ |= 0x00000200;
+ bitField1_ |= 0x00000400;
charGemInstances.addAll(values);
return this;
}
@@ -2716,7 +2794,7 @@ public final class PlayerData {
* @return whether the tutorialLevels field is set
*/
public boolean hasTutorialLevels() {
- return (bitField1_ & 0x00000400) != 0;
+ return (bitField1_ & 0x00000800) != 0;
}
/**
@@ -2724,7 +2802,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearTutorialLevels() {
- bitField1_ &= ~0x00000400;
+ bitField1_ &= ~0x00000800;
tutorialLevels.clear();
return this;
}
@@ -2753,7 +2831,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableTutorialLevels() {
- bitField1_ |= 0x00000400;
+ bitField1_ |= 0x00000800;
return tutorialLevels;
}
@@ -2763,7 +2841,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addTutorialLevels(final Public.TutorialLevel value) {
- bitField1_ |= 0x00000400;
+ bitField1_ |= 0x00000800;
tutorialLevels.add(value);
return this;
}
@@ -2774,17 +2852,85 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllTutorialLevels(final Public.TutorialLevel... values) {
- bitField1_ |= 0x00000400;
+ bitField1_ |= 0x00000800;
tutorialLevels.addAll(values);
return this;
}
+ /**
+ * repeated .AssistInfo Assists = 39;
+ * @return whether the assists field is set
+ */
+ public boolean hasAssists() {
+ return (bitField1_ & 0x00001000) != 0;
+ }
+
+ /**
+ * repeated .AssistInfo Assists = 39;
+ * @return this
+ */
+ public PlayerInfo clearAssists() {
+ bitField1_ &= ~0x00001000;
+ assists.clear();
+ return this;
+ }
+
+ /**
+ * repeated .AssistInfo Assists = 39;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableAssists()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getAssists() {
+ return assists;
+ }
+
+ /**
+ * repeated .AssistInfo Assists = 39;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of 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 getMutableAssists() {
+ bitField1_ |= 0x00001000;
+ return assists;
+ }
+
+ /**
+ * repeated .AssistInfo Assists = 39;
+ * @param value the assists to add
+ * @return this
+ */
+ public PlayerInfo addAssists(final AssistInfo value) {
+ bitField1_ |= 0x00001000;
+ assists.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .AssistInfo Assists = 39;
+ * @param values the assists to add
+ * @return this
+ */
+ public PlayerInfo addAllAssists(final AssistInfo... values) {
+ bitField1_ |= 0x00001000;
+ assists.addAll(values);
+ return this;
+ }
+
/**
* repeated .HonorInfo Honors = 124;
* @return whether the honors field is set
*/
public boolean hasHonors() {
- return (bitField1_ & 0x00000800) != 0;
+ return (bitField1_ & 0x00002000) != 0;
}
/**
@@ -2792,7 +2938,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo clearHonors() {
- bitField1_ &= ~0x00000800;
+ bitField1_ &= ~0x00002000;
honors.clear();
return this;
}
@@ -2821,7 +2967,7 @@ public final class PlayerData {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableHonors() {
- bitField1_ |= 0x00000800;
+ bitField1_ |= 0x00002000;
return honors;
}
@@ -2831,7 +2977,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addHonors(final Public.HonorInfo value) {
- bitField1_ |= 0x00000800;
+ bitField1_ |= 0x00002000;
honors.add(value);
return this;
}
@@ -2842,7 +2988,7 @@ public final class PlayerData {
* @return this
*/
public PlayerInfo addAllHonors(final Public.HonorInfo... values) {
- bitField1_ |= 0x00000800;
+ bitField1_ |= 0x00002000;
honors.addAll(values);
return this;
}
@@ -2878,15 +3024,16 @@ public final class PlayerData {
board.copyFrom(other.board);
datingCharIds.copyFrom(other.datingCharIds);
dailyActiveIds.copyFrom(other.dailyActiveIds);
+ weeklyActiveIds.copyFrom(other.weeklyActiveIds);
honorList.copyFrom(other.honorList);
res.copyFrom(other.res);
items.copyFrom(other.items);
chars.copyFrom(other.chars);
equipments.copyFrom(other.equipments);
- regionBossLevels.copyFrom(other.regionBossLevels);
}
if ((bitField1_ | other.bitField1_) != 0) {
bitField1_ = other.bitField1_;
+ regionBossLevels.copyFrom(other.regionBossLevels);
handbook.copyFrom(other.handbook);
titles.copyFrom(other.titles);
dailyInstances.copyFrom(other.dailyInstances);
@@ -2898,6 +3045,7 @@ public final class PlayerData {
weekBossLevels.copyFrom(other.weekBossLevels);
charGemInstances.copyFrom(other.charGemInstances);
tutorialLevels.copyFrom(other.tutorialLevels);
+ assists.copyFrom(other.assists);
honors.copyFrom(other.honors);
}
return this;
@@ -2987,6 +3135,9 @@ public final class PlayerData {
if (other.hasDailyActiveIds()) {
getMutableDailyActiveIds().addAll(other.dailyActiveIds);
}
+ if (other.hasWeeklyActiveIds()) {
+ getMutableWeeklyActiveIds().addAll(other.weeklyActiveIds);
+ }
if (other.hasHonorList()) {
getMutableHonorList().addAll(other.honorList);
}
@@ -3038,6 +3189,9 @@ public final class PlayerData {
if (other.hasTutorialLevels()) {
getMutableTutorialLevels().addAll(other.tutorialLevels);
}
+ if (other.hasAssists()) {
+ getMutableAssists().addAll(other.assists);
+ }
if (other.hasHonors()) {
getMutableHonors().addAll(other.honors);
}
@@ -3078,6 +3232,7 @@ public final class PlayerData {
board.clear();
datingCharIds.clear();
dailyActiveIds.clear();
+ weeklyActiveIds.clear();
honorList.clear();
res.clear();
items.clear();
@@ -3095,6 +3250,7 @@ public final class PlayerData {
weekBossLevels.clear();
charGemInstances.clear();
tutorialLevels.clear();
+ assists.clear();
honors.clear();
return this;
}
@@ -3123,6 +3279,7 @@ public final class PlayerData {
board.clear();
datingCharIds.clear();
dailyActiveIds.clear();
+ weeklyActiveIds.clear();
honorList.clear();
res.clearQuick();
items.clearQuick();
@@ -3140,6 +3297,7 @@ public final class PlayerData {
weekBossLevels.clearQuick();
charGemInstances.clearQuick();
tutorialLevels.clearQuick();
+ assists.clearQuick();
honors.clearQuick();
return this;
}
@@ -3181,6 +3339,7 @@ public final class PlayerData {
&& (!hasBoard() || board.equals(other.board))
&& (!hasDatingCharIds() || datingCharIds.equals(other.datingCharIds))
&& (!hasDailyActiveIds() || dailyActiveIds.equals(other.dailyActiveIds))
+ && (!hasWeeklyActiveIds() || weeklyActiveIds.equals(other.weeklyActiveIds))
&& (!hasHonorList() || honorList.equals(other.honorList))
&& (!hasRes() || res.equals(other.res))
&& (!hasItems() || items.equals(other.items))
@@ -3198,6 +3357,7 @@ public final class PlayerData {
&& (!hasWeekBossLevels() || weekBossLevels.equals(other.weekBossLevels))
&& (!hasCharGemInstances() || charGemInstances.equals(other.charGemInstances))
&& (!hasTutorialLevels() || tutorialLevels.equals(other.tutorialLevels))
+ && (!hasAssists() || assists.equals(other.assists))
&& (!hasHonors() || honors.equals(other.honors));
}
@@ -3316,108 +3476,120 @@ public final class PlayerData {
}
}
if ((bitField0_ & 0x04000000) != 0) {
+ for (int i = 0; i < weeklyActiveIds.length(); i++) {
+ output.writeRawLittleEndian16((short) 688);
+ output.writeUInt32NoTag(weeklyActiveIds.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x08000000) != 0) {
for (int i = 0; i < honorList.length(); i++) {
output.writeRawLittleEndian16((short) 2008);
output.writeUInt32NoTag(honorList.array()[i]);
}
}
- if ((bitField0_ & 0x08000000) != 0) {
+ if ((bitField0_ & 0x10000000) != 0) {
for (int i = 0; i < res.length(); i++) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(res.get(i));
}
}
- if ((bitField0_ & 0x10000000) != 0) {
+ if ((bitField0_ & 0x20000000) != 0) {
for (int i = 0; i < items.length(); i++) {
output.writeRawByte((byte) 26);
output.writeMessageNoTag(items.get(i));
}
}
- if ((bitField0_ & 0x20000000) != 0) {
+ if ((bitField0_ & 0x40000000) != 0) {
for (int i = 0; i < chars.length(); i++) {
output.writeRawByte((byte) 34);
output.writeMessageNoTag(chars.get(i));
}
}
- if ((bitField0_ & 0x40000000) != 0) {
+ if ((bitField0_ & 0x80000000) != 0) {
for (int i = 0; i < equipments.length(); i++) {
output.writeRawByte((byte) 90);
output.writeMessageNoTag(equipments.get(i));
}
}
- if ((bitField0_ & 0x80000000) != 0) {
+ if ((bitField1_ & 0x00000001) != 0) {
for (int i = 0; i < regionBossLevels.length(); i++) {
output.writeRawByte((byte) 98);
output.writeMessageNoTag(regionBossLevels.get(i));
}
}
- if ((bitField1_ & 0x00000001) != 0) {
+ if ((bitField1_ & 0x00000002) != 0) {
for (int i = 0; i < handbook.length(); i++) {
output.writeRawLittleEndian16((short) 410);
output.writeMessageNoTag(handbook.get(i));
}
}
- if ((bitField1_ & 0x00000002) != 0) {
+ if ((bitField1_ & 0x00000004) != 0) {
for (int i = 0; i < titles.length(); i++) {
output.writeRawLittleEndian16((short) 426);
output.writeMessageNoTag(titles.get(i));
}
}
- if ((bitField1_ & 0x00000004) != 0) {
+ if ((bitField1_ & 0x00000008) != 0) {
for (int i = 0; i < dailyInstances.length(); i++) {
output.writeRawLittleEndian16((short) 434);
output.writeMessageNoTag(dailyInstances.get(i));
}
}
- if ((bitField1_ & 0x00000008) != 0) {
+ if ((bitField1_ & 0x00000010) != 0) {
for (int i = 0; i < dictionaries.length(); i++) {
output.writeRawLittleEndian16((short) 442);
output.writeMessageNoTag(dictionaries.get(i));
}
}
- if ((bitField1_ & 0x00000010) != 0) {
+ if ((bitField1_ & 0x00000020) != 0) {
for (int i = 0; i < activities.length(); i++) {
output.writeRawLittleEndian16((short) 450);
output.writeMessageNoTag(activities.get(i));
}
}
- if ((bitField1_ & 0x00000020) != 0) {
+ if ((bitField1_ & 0x00000040) != 0) {
for (int i = 0; i < discs.length(); i++) {
output.writeRawLittleEndian16((short) 482);
output.writeMessageNoTag(discs.get(i));
}
}
- if ((bitField1_ & 0x00000040) != 0) {
+ if ((bitField1_ & 0x00000080) != 0) {
for (int i = 0; i < equipmentInstances.length(); i++) {
output.writeRawLittleEndian16((short) 490);
output.writeMessageNoTag(equipmentInstances.get(i));
}
}
- if ((bitField1_ & 0x00000080) != 0) {
+ if ((bitField1_ & 0x00000100) != 0) {
for (int i = 0; i < skillInstances.length(); i++) {
output.writeRawLittleEndian16((short) 658);
output.writeMessageNoTag(skillInstances.get(i));
}
}
- if ((bitField1_ & 0x00000100) != 0) {
+ if ((bitField1_ & 0x00000200) != 0) {
for (int i = 0; i < weekBossLevels.length(); i++) {
output.writeRawLittleEndian16((short) 666);
output.writeMessageNoTag(weekBossLevels.get(i));
}
}
- if ((bitField1_ & 0x00000200) != 0) {
+ if ((bitField1_ & 0x00000400) != 0) {
for (int i = 0; i < charGemInstances.length(); i++) {
output.writeRawLittleEndian16((short) 674);
output.writeMessageNoTag(charGemInstances.get(i));
}
}
- if ((bitField1_ & 0x00000400) != 0) {
+ if ((bitField1_ & 0x00000800) != 0) {
for (int i = 0; i < tutorialLevels.length(); i++) {
output.writeRawLittleEndian16((short) 682);
output.writeMessageNoTag(tutorialLevels.get(i));
}
}
- if ((bitField1_ & 0x00000800) != 0) {
+ if ((bitField1_ & 0x00001000) != 0) {
+ for (int i = 0; i < assists.length(); i++) {
+ output.writeRawLittleEndian16((short) 698);
+ output.writeMessageNoTag(assists.get(i));
+ }
+ }
+ if ((bitField1_ & 0x00002000) != 0) {
for (int i = 0; i < honors.length(); i++) {
output.writeRawLittleEndian16((short) 2018);
output.writeMessageNoTag(honors.get(i));
@@ -3507,57 +3679,63 @@ public final class PlayerData {
size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds);
}
if ((bitField0_ & 0x04000000) != 0) {
- size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList);
+ size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds);
}
if ((bitField0_ & 0x08000000) != 0) {
- size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res);
+ size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList);
}
if ((bitField0_ & 0x10000000) != 0) {
- size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items);
+ size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res);
}
if ((bitField0_ & 0x20000000) != 0) {
- size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
+ size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items);
}
if ((bitField0_ & 0x40000000) != 0) {
- size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments);
+ size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
}
if ((bitField0_ & 0x80000000) != 0) {
- size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels);
+ size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments);
}
if ((bitField1_ & 0x00000001) != 0) {
- size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook);
+ size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels);
}
if ((bitField1_ & 0x00000002) != 0) {
- size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles);
+ size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook);
}
if ((bitField1_ & 0x00000004) != 0) {
- size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances);
+ size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles);
}
if ((bitField1_ & 0x00000008) != 0) {
- size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries);
+ size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances);
}
if ((bitField1_ & 0x00000010) != 0) {
- size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities);
+ size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries);
}
if ((bitField1_ & 0x00000020) != 0) {
- size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs);
+ size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities);
}
if ((bitField1_ & 0x00000040) != 0) {
- size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances);
+ size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs);
}
if ((bitField1_ & 0x00000080) != 0) {
- size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances);
+ size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances);
}
if ((bitField1_ & 0x00000100) != 0) {
- size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels);
+ size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances);
}
if ((bitField1_ & 0x00000200) != 0) {
- size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances);
+ size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels);
}
if ((bitField1_ & 0x00000400) != 0) {
- size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels);
+ size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances);
}
if ((bitField1_ & 0x00000800) != 0) {
+ size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels);
+ }
+ if ((bitField1_ & 0x00001000) != 0) {
+ size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists);
+ }
+ if ((bitField1_ & 0x00002000) != 0) {
size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors);
}
return size;
@@ -3800,6 +3978,15 @@ public final class PlayerData {
input.readPackedUInt32(dailyActiveIds, tag);
bitField0_ |= 0x02000000;
tag = input.readTag();
+ if (tag != 306) {
+ break;
+ }
+ }
+ case 306: {
+ // weeklyActiveIds [packed=true]
+ input.readPackedUInt32(weeklyActiveIds, tag);
+ bitField0_ |= 0x04000000;
+ tag = input.readTag();
if (tag != 986) {
break;
}
@@ -3807,7 +3994,7 @@ public final class PlayerData {
case 986: {
// honorList [packed=true]
input.readPackedUInt32(honorList, tag);
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
tag = input.readTag();
if (tag != 18) {
break;
@@ -3816,7 +4003,7 @@ public final class PlayerData {
case 18: {
// res
tag = input.readRepeatedMessage(res, tag);
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x10000000;
if (tag != 26) {
break;
}
@@ -3824,7 +4011,7 @@ public final class PlayerData {
case 26: {
// items
tag = input.readRepeatedMessage(items, tag);
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x20000000;
if (tag != 34) {
break;
}
@@ -3832,7 +4019,7 @@ public final class PlayerData {
case 34: {
// chars
tag = input.readRepeatedMessage(chars, tag);
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x40000000;
if (tag != 90) {
break;
}
@@ -3840,7 +4027,7 @@ public final class PlayerData {
case 90: {
// equipments
tag = input.readRepeatedMessage(equipments, tag);
- bitField0_ |= 0x40000000;
+ bitField0_ |= 0x80000000;
if (tag != 98) {
break;
}
@@ -3848,7 +4035,7 @@ public final class PlayerData {
case 98: {
// regionBossLevels
tag = input.readRepeatedMessage(regionBossLevels, tag);
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000001;
if (tag != 154) {
break;
}
@@ -3856,7 +4043,7 @@ public final class PlayerData {
case 154: {
// handbook
tag = input.readRepeatedMessage(handbook, tag);
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000002;
if (tag != 170) {
break;
}
@@ -3864,7 +4051,7 @@ public final class PlayerData {
case 170: {
// titles
tag = input.readRepeatedMessage(titles, tag);
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000004;
if (tag != 178) {
break;
}
@@ -3872,7 +4059,7 @@ public final class PlayerData {
case 178: {
// dailyInstances
tag = input.readRepeatedMessage(dailyInstances, tag);
- bitField1_ |= 0x00000004;
+ bitField1_ |= 0x00000008;
if (tag != 186) {
break;
}
@@ -3880,7 +4067,7 @@ public final class PlayerData {
case 186: {
// dictionaries
tag = input.readRepeatedMessage(dictionaries, tag);
- bitField1_ |= 0x00000008;
+ bitField1_ |= 0x00000010;
if (tag != 194) {
break;
}
@@ -3888,7 +4075,7 @@ public final class PlayerData {
case 194: {
// activities
tag = input.readRepeatedMessage(activities, tag);
- bitField1_ |= 0x00000010;
+ bitField1_ |= 0x00000020;
if (tag != 226) {
break;
}
@@ -3896,7 +4083,7 @@ public final class PlayerData {
case 226: {
// discs
tag = input.readRepeatedMessage(discs, tag);
- bitField1_ |= 0x00000020;
+ bitField1_ |= 0x00000040;
if (tag != 234) {
break;
}
@@ -3904,7 +4091,7 @@ public final class PlayerData {
case 234: {
// equipmentInstances
tag = input.readRepeatedMessage(equipmentInstances, tag);
- bitField1_ |= 0x00000040;
+ bitField1_ |= 0x00000080;
if (tag != 274) {
break;
}
@@ -3912,7 +4099,7 @@ public final class PlayerData {
case 274: {
// skillInstances
tag = input.readRepeatedMessage(skillInstances, tag);
- bitField1_ |= 0x00000080;
+ bitField1_ |= 0x00000100;
if (tag != 282) {
break;
}
@@ -3920,7 +4107,7 @@ public final class PlayerData {
case 282: {
// weekBossLevels
tag = input.readRepeatedMessage(weekBossLevels, tag);
- bitField1_ |= 0x00000100;
+ bitField1_ |= 0x00000200;
if (tag != 290) {
break;
}
@@ -3928,7 +4115,7 @@ public final class PlayerData {
case 290: {
// charGemInstances
tag = input.readRepeatedMessage(charGemInstances, tag);
- bitField1_ |= 0x00000200;
+ bitField1_ |= 0x00000400;
if (tag != 298) {
break;
}
@@ -3936,7 +4123,15 @@ public final class PlayerData {
case 298: {
// tutorialLevels
tag = input.readRepeatedMessage(tutorialLevels, tag);
- bitField1_ |= 0x00000400;
+ bitField1_ |= 0x00000800;
+ if (tag != 314) {
+ break;
+ }
+ }
+ case 314: {
+ // assists
+ tag = input.readRepeatedMessage(assists, tag);
+ bitField1_ |= 0x00001000;
if (tag != 994) {
break;
}
@@ -3944,7 +4139,7 @@ public final class PlayerData {
case 994: {
// honors
tag = input.readRepeatedMessage(honors, tag);
- bitField1_ |= 0x00000800;
+ bitField1_ |= 0x00002000;
if (tag != 0) {
break;
}
@@ -3983,10 +4178,16 @@ public final class PlayerData {
bitField0_ |= 0x02000000;
break;
}
+ case 304: {
+ // weeklyActiveIds [packed=false]
+ tag = input.readRepeatedUInt32(weeklyActiveIds, tag);
+ bitField0_ |= 0x04000000;
+ break;
+ }
case 984: {
// honorList [packed=false]
tag = input.readRepeatedUInt32(honorList, tag);
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
break;
}
}
@@ -4075,57 +4276,63 @@ public final class PlayerData {
output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds);
}
if ((bitField0_ & 0x04000000) != 0) {
- output.writeRepeatedUInt32(FieldNames.honorList, honorList);
+ output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds);
}
if ((bitField0_ & 0x08000000) != 0) {
- output.writeRepeatedMessage(FieldNames.res, res);
+ output.writeRepeatedUInt32(FieldNames.honorList, honorList);
}
if ((bitField0_ & 0x10000000) != 0) {
- output.writeRepeatedMessage(FieldNames.items, items);
+ output.writeRepeatedMessage(FieldNames.res, res);
}
if ((bitField0_ & 0x20000000) != 0) {
- output.writeRepeatedMessage(FieldNames.chars, chars);
+ output.writeRepeatedMessage(FieldNames.items, items);
}
if ((bitField0_ & 0x40000000) != 0) {
- output.writeRepeatedMessage(FieldNames.equipments, equipments);
+ output.writeRepeatedMessage(FieldNames.chars, chars);
}
if ((bitField0_ & 0x80000000) != 0) {
- output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels);
+ output.writeRepeatedMessage(FieldNames.equipments, equipments);
}
if ((bitField1_ & 0x00000001) != 0) {
- output.writeRepeatedMessage(FieldNames.handbook, handbook);
+ output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels);
}
if ((bitField1_ & 0x00000002) != 0) {
- output.writeRepeatedMessage(FieldNames.titles, titles);
+ output.writeRepeatedMessage(FieldNames.handbook, handbook);
}
if ((bitField1_ & 0x00000004) != 0) {
- output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances);
+ output.writeRepeatedMessage(FieldNames.titles, titles);
}
if ((bitField1_ & 0x00000008) != 0) {
- output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries);
+ output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances);
}
if ((bitField1_ & 0x00000010) != 0) {
- output.writeRepeatedMessage(FieldNames.activities, activities);
+ output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries);
}
if ((bitField1_ & 0x00000020) != 0) {
- output.writeRepeatedMessage(FieldNames.discs, discs);
+ output.writeRepeatedMessage(FieldNames.activities, activities);
}
if ((bitField1_ & 0x00000040) != 0) {
- output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances);
+ output.writeRepeatedMessage(FieldNames.discs, discs);
}
if ((bitField1_ & 0x00000080) != 0) {
- output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances);
+ output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances);
}
if ((bitField1_ & 0x00000100) != 0) {
- output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels);
+ output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances);
}
if ((bitField1_ & 0x00000200) != 0) {
- output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances);
+ output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels);
}
if ((bitField1_ & 0x00000400) != 0) {
- output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels);
+ output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances);
}
if ((bitField1_ & 0x00000800) != 0) {
+ output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels);
+ }
+ if ((bitField1_ & 0x00001000) != 0) {
+ output.writeRepeatedMessage(FieldNames.assists, assists);
+ }
+ if ((bitField1_ & 0x00002000) != 0) {
output.writeRepeatedMessage(FieldNames.honors, honors);
}
output.endObject();
@@ -4424,11 +4631,22 @@ public final class PlayerData {
}
break;
}
+ case -1042853327: {
+ if (input.isAtField(FieldNames.weeklyActiveIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(weeklyActiveIds);
+ bitField0_ |= 0x04000000;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case 1017359368: {
if (input.isAtField(FieldNames.honorList)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(honorList);
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
}
} else {
input.skipUnknownField();
@@ -4439,7 +4657,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.res)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(res);
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x10000000;
}
} else {
input.skipUnknownField();
@@ -4450,7 +4668,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.items)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(items);
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x20000000;
}
} else {
input.skipUnknownField();
@@ -4461,7 +4679,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.chars)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(chars);
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x40000000;
}
} else {
input.skipUnknownField();
@@ -4472,7 +4690,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.equipments)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(equipments);
- bitField0_ |= 0x40000000;
+ bitField0_ |= 0x80000000;
}
} else {
input.skipUnknownField();
@@ -4483,7 +4701,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.regionBossLevels)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(regionBossLevels);
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000001;
}
} else {
input.skipUnknownField();
@@ -4494,7 +4712,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.handbook)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(handbook);
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000002;
}
} else {
input.skipUnknownField();
@@ -4505,7 +4723,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.titles)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(titles);
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000004;
}
} else {
input.skipUnknownField();
@@ -4516,7 +4734,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.dailyInstances)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(dailyInstances);
- bitField1_ |= 0x00000004;
+ bitField1_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -4527,7 +4745,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.dictionaries)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(dictionaries);
- bitField1_ |= 0x00000008;
+ bitField1_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -4538,7 +4756,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.activities)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(activities);
- bitField1_ |= 0x00000010;
+ bitField1_ |= 0x00000020;
}
} else {
input.skipUnknownField();
@@ -4549,7 +4767,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.discs)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(discs);
- bitField1_ |= 0x00000020;
+ bitField1_ |= 0x00000040;
}
} else {
input.skipUnknownField();
@@ -4560,7 +4778,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.equipmentInstances)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(equipmentInstances);
- bitField1_ |= 0x00000040;
+ bitField1_ |= 0x00000080;
}
} else {
input.skipUnknownField();
@@ -4571,7 +4789,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.skillInstances)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(skillInstances);
- bitField1_ |= 0x00000080;
+ bitField1_ |= 0x00000100;
}
} else {
input.skipUnknownField();
@@ -4582,7 +4800,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.weekBossLevels)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(weekBossLevels);
- bitField1_ |= 0x00000100;
+ bitField1_ |= 0x00000200;
}
} else {
input.skipUnknownField();
@@ -4593,7 +4811,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.charGemInstances)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(charGemInstances);
- bitField1_ |= 0x00000200;
+ bitField1_ |= 0x00000400;
}
} else {
input.skipUnknownField();
@@ -4604,7 +4822,18 @@ public final class PlayerData {
if (input.isAtField(FieldNames.tutorialLevels)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(tutorialLevels);
- bitField1_ |= 0x00000400;
+ bitField1_ |= 0x00000800;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 959996682: {
+ if (input.isAtField(FieldNames.assists)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(assists);
+ bitField1_ |= 0x00001000;
}
} else {
input.skipUnknownField();
@@ -4615,7 +4844,7 @@ public final class PlayerData {
if (input.isAtField(FieldNames.honors)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(honors);
- bitField1_ |= 0x00000800;
+ bitField1_ |= 0x00002000;
}
} else {
input.skipUnknownField();
@@ -4726,6 +4955,8 @@ public final class PlayerData {
static final FieldName dailyActiveIds = FieldName.forField("DailyActiveIds");
+ static final FieldName weeklyActiveIds = FieldName.forField("WeeklyActiveIds");
+
static final FieldName honorList = FieldName.forField("HonorList");
static final FieldName res = FieldName.forField("Res");
@@ -4760,6 +4991,8 @@ public final class PlayerData {
static final FieldName tutorialLevels = FieldName.forField("TutorialLevels");
+ static final FieldName assists = FieldName.forField("Assists");
+
static final FieldName honors = FieldName.forField("Honors");
}
}
@@ -7134,4 +7367,451 @@ public final class PlayerData {
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
+
+ /**
+ * Protobuf type {@code AssistInfo}
+ */
+ public static final class AssistInfo extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 Attribute = 1;
+ */
+ private int attribute;
+
+ /**
+ * optional uint32 Group = 2;
+ */
+ private int group;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private AssistInfo() {
+ }
+
+ /**
+ * @return a new empty instance of {@code AssistInfo}
+ */
+ public static AssistInfo newInstance() {
+ return new AssistInfo();
+ }
+
+ /**
+ * optional uint32 Attribute = 1;
+ * @return whether the attribute field is set
+ */
+ public boolean hasAttribute() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 Attribute = 1;
+ * @return this
+ */
+ public AssistInfo clearAttribute() {
+ bitField0_ &= ~0x00000001;
+ attribute = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Attribute = 1;
+ * @return the attribute
+ */
+ public int getAttribute() {
+ return attribute;
+ }
+
+ /**
+ * optional uint32 Attribute = 1;
+ * @param value the attribute to set
+ * @return this
+ */
+ public AssistInfo setAttribute(final int value) {
+ bitField0_ |= 0x00000001;
+ attribute = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 Group = 2;
+ * @return whether the group field is set
+ */
+ public boolean hasGroup() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 Group = 2;
+ * @return this
+ */
+ public AssistInfo clearGroup() {
+ bitField0_ &= ~0x00000002;
+ group = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Group = 2;
+ * @return the group
+ */
+ public int getGroup() {
+ return group;
+ }
+
+ /**
+ * optional uint32 Group = 2;
+ * @param value the group to set
+ * @return this
+ */
+ public AssistInfo setGroup(final int value) {
+ bitField0_ |= 0x00000002;
+ group = 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 AssistInfo 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 AssistInfo addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public AssistInfo addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public AssistInfo setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public AssistInfo copyFrom(final AssistInfo other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ attribute = other.attribute;
+ group = other.group;
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistInfo mergeFrom(final AssistInfo other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasAttribute()) {
+ setAttribute(other.attribute);
+ }
+ if (other.hasGroup()) {
+ setGroup(other.group);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistInfo clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ attribute = 0;
+ group = 0;
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public AssistInfo 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 AssistInfo)) {
+ return false;
+ }
+ AssistInfo other = (AssistInfo) o;
+ return bitField0_ == other.bitField0_
+ && (!hasAttribute() || attribute == other.attribute)
+ && (!hasGroup() || group == other.group)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(attribute);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(group);
+ }
+ 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(attribute);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(group);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public AssistInfo mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // attribute
+ attribute = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16) {
+ break;
+ }
+ }
+ case 16: {
+ // group
+ group = 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.attribute, attribute);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.group, group);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public AssistInfo mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2017053308: {
+ if (input.isAtField(FieldNames.attribute)) {
+ if (!input.trySkipNullValue()) {
+ attribute = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 69076575: {
+ if (input.isAtField(FieldNames.group)) {
+ if (!input.trySkipNullValue()) {
+ group = 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 AssistInfo clone() {
+ return new AssistInfo().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static AssistInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new AssistInfo(), data).checkInitialized();
+ }
+
+ public static AssistInfo parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistInfo(), input).checkInitialized();
+ }
+
+ public static AssistInfo parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistInfo(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating AssistInfo messages
+ */
+ public static MessageFactory getFactory() {
+ return AssistInfoFactory.INSTANCE;
+ }
+
+ private enum AssistInfoFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public AssistInfo create() {
+ return AssistInfo.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName attribute = FieldName.forField("Attribute");
+
+ static final FieldName group = FieldName.forField("Group");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
}
diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java
index cecffce..ab73489 100644
--- a/src/generated/main/emu/nebula/proto/Public.java
+++ b/src/generated/main/emu/nebula/proto/Public.java
@@ -87,7 +87,17 @@ public final class Public {
/**
* TowerEvent = 12;
*/
- TowerEvent("TowerEvent", 12);
+ TowerEvent("TowerEvent", 12),
+
+ /**
+ * Weekly = 13;
+ */
+ Weekly("Weekly", 13),
+
+ /**
+ * Assist = 14;
+ */
+ Assist("Assist", 14);
/**
* UnknownQuest = 0;
@@ -154,6 +164,16 @@ public final class Public {
*/
public static final int TowerEvent_VALUE = 12;
+ /**
+ * Weekly = 13;
+ */
+ public static final int Weekly_VALUE = 13;
+
+ /**
+ * Assist = 14;
+ */
+ public static final int Assist_VALUE = 14;
+
private final java.lang.String name;
private final int number;
@@ -207,7 +227,7 @@ public final class Public {
enum QuestTypeConverter implements ProtoEnum.EnumConverter {
INSTANCE;
- private static final QuestType[] lookup = new QuestType[13];
+ private static final QuestType[] lookup = new QuestType[15];
static {
lookup[0] = UnknownQuest;
@@ -223,6 +243,8 @@ public final class Public {
lookup[10] = Tower;
lookup[11] = Demon;
lookup[12] = TowerEvent;
+ lookup[13] = Weekly;
+ lookup[14] = Assist;
}
@Override
@@ -248,6 +270,15 @@ public final class Public {
}
break;
}
+ case 6: {
+ if (ProtoUtil.isEqual("Weekly", value)) {
+ return Weekly;
+ }
+ if (ProtoUtil.isEqual("Assist", value)) {
+ return Assist;
+ }
+ break;
+ }
case 8: {
if (ProtoUtil.isEqual("Affinity", value)) {
return Affinity;
@@ -72216,4 +72247,2836 @@ public final class Public {
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
+
+ /**
+ * Protobuf type {@code TrekkerVersusShow}
+ */
+ public static final class TrekkerVersusShow extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 BuildScore = 3;
+ */
+ private int buildScore;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated uint32 CharIds = 1;
+ */
+ private final RepeatedInt charIds = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated uint32 AffixIds = 2;
+ */
+ private final RepeatedInt affixIds = RepeatedInt.newEmptyInstance();
+
+ private TrekkerVersusShow() {
+ }
+
+ /**
+ * @return a new empty instance of {@code TrekkerVersusShow}
+ */
+ public static TrekkerVersusShow newInstance() {
+ return new TrekkerVersusShow();
+ }
+
+ /**
+ * optional uint32 BuildScore = 3;
+ * @return whether the buildScore field is set
+ */
+ public boolean hasBuildScore() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 BuildScore = 3;
+ * @return this
+ */
+ public TrekkerVersusShow clearBuildScore() {
+ bitField0_ &= ~0x00000001;
+ buildScore = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 BuildScore = 3;
+ * @return the buildScore
+ */
+ public int getBuildScore() {
+ return buildScore;
+ }
+
+ /**
+ * optional uint32 BuildScore = 3;
+ * @param value the buildScore to set
+ * @return this
+ */
+ public TrekkerVersusShow setBuildScore(final int value) {
+ bitField0_ |= 0x00000001;
+ buildScore = 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 TrekkerVersusShow 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 TrekkerVersusShow addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public TrekkerVersusShow addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public TrekkerVersusShow setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 CharIds = 1;
+ * @return whether the charIds field is set
+ */
+ public boolean hasCharIds() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated uint32 CharIds = 1;
+ * @return this
+ */
+ public TrekkerVersusShow clearCharIds() {
+ bitField0_ &= ~0x00000004;
+ charIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 CharIds = 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 #getMutableCharIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getCharIds() {
+ return charIds;
+ }
+
+ /**
+ * repeated uint32 CharIds = 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 getMutableCharIds() {
+ bitField0_ |= 0x00000004;
+ return charIds;
+ }
+
+ /**
+ * repeated uint32 CharIds = 1;
+ * @param value the charIds to add
+ * @return this
+ */
+ public TrekkerVersusShow addCharIds(final int value) {
+ bitField0_ |= 0x00000004;
+ charIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 CharIds = 1;
+ * @param values the charIds to add
+ * @return this
+ */
+ public TrekkerVersusShow addAllCharIds(final int... values) {
+ bitField0_ |= 0x00000004;
+ charIds.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 2;
+ * @return whether the affixIds field is set
+ */
+ public boolean hasAffixIds() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 2;
+ * @return this
+ */
+ public TrekkerVersusShow clearAffixIds() {
+ bitField0_ &= ~0x00000008;
+ affixIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 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 #getMutableAffixIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getAffixIds() {
+ return affixIds;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 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 getMutableAffixIds() {
+ bitField0_ |= 0x00000008;
+ return affixIds;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 2;
+ * @param value the affixIds to add
+ * @return this
+ */
+ public TrekkerVersusShow addAffixIds(final int value) {
+ bitField0_ |= 0x00000008;
+ affixIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 AffixIds = 2;
+ * @param values the affixIds to add
+ * @return this
+ */
+ public TrekkerVersusShow addAllAffixIds(final int... values) {
+ bitField0_ |= 0x00000008;
+ affixIds.addAll(values);
+ return this;
+ }
+
+ @Override
+ public TrekkerVersusShow copyFrom(final TrekkerVersusShow other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ buildScore = other.buildScore;
+ nextPackage.copyFrom(other.nextPackage);
+ charIds.copyFrom(other.charIds);
+ affixIds.copyFrom(other.affixIds);
+ }
+ return this;
+ }
+
+ @Override
+ public TrekkerVersusShow mergeFrom(final TrekkerVersusShow other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBuildScore()) {
+ setBuildScore(other.buildScore);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasCharIds()) {
+ getMutableCharIds().addAll(other.charIds);
+ }
+ if (other.hasAffixIds()) {
+ getMutableAffixIds().addAll(other.affixIds);
+ }
+ return this;
+ }
+
+ @Override
+ public TrekkerVersusShow clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ buildScore = 0;
+ nextPackage.clear();
+ charIds.clear();
+ affixIds.clear();
+ return this;
+ }
+
+ @Override
+ public TrekkerVersusShow clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ charIds.clear();
+ affixIds.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof TrekkerVersusShow)) {
+ return false;
+ }
+ TrekkerVersusShow other = (TrekkerVersusShow) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBuildScore() || buildScore == other.buildScore)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasCharIds() || charIds.equals(other.charIds))
+ && (!hasAffixIds() || affixIds.equals(other.affixIds));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(buildScore);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < charIds.length(); i++) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(charIds.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < affixIds.length(); i++) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(affixIds.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(buildScore);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * charIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(charIds);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * affixIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(affixIds);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public TrekkerVersusShow mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 24: {
+ // buildScore
+ buildScore = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16378) {
+ break;
+ }
+ }
+ case 16378: {
+ // nextPackage
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 10) {
+ break;
+ }
+ }
+ case 10: {
+ // charIds [packed=true]
+ input.readPackedUInt32(charIds, tag);
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // affixIds [packed=true]
+ input.readPackedUInt32(affixIds, 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: {
+ // charIds [packed=false]
+ tag = input.readRepeatedUInt32(charIds, tag);
+ bitField0_ |= 0x00000004;
+ break;
+ }
+ case 16: {
+ // affixIds [packed=false]
+ tag = input.readRepeatedUInt32(affixIds, tag);
+ bitField0_ |= 0x00000008;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.buildScore, buildScore);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedUInt32(FieldNames.charIds, charIds);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedUInt32(FieldNames.affixIds, affixIds);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public TrekkerVersusShow mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1511471332: {
+ if (input.isAtField(FieldNames.buildScore)) {
+ if (!input.trySkipNullValue()) {
+ buildScore = 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 -1891280030: {
+ if (input.isAtField(FieldNames.charIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(charIds);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 670408424: {
+ if (input.isAtField(FieldNames.affixIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(affixIds);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public TrekkerVersusShow clone() {
+ return new TrekkerVersusShow().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static TrekkerVersusShow parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new TrekkerVersusShow(), data).checkInitialized();
+ }
+
+ public static TrekkerVersusShow parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new TrekkerVersusShow(), input).checkInitialized();
+ }
+
+ public static TrekkerVersusShow parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new TrekkerVersusShow(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating TrekkerVersusShow messages
+ */
+ public static MessageFactory getFactory() {
+ return TrekkerVersusShowFactory.INSTANCE;
+ }
+
+ private enum TrekkerVersusShowFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public TrekkerVersusShow create() {
+ return TrekkerVersusShow.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName buildScore = FieldName.forField("BuildScore");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName charIds = FieldName.forField("CharIds");
+
+ static final FieldName affixIds = FieldName.forField("AffixIds");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityTrekkerVersus}
+ */
+ public static final class ActivityTrekkerVersus extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint64 BuildId = 2;
+ */
+ private long buildId;
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ */
+ private final TrekkerVersusShow show = TrekkerVersusShow.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .ActivityQuest Quests = 3;
+ */
+ private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory());
+
+ private ActivityTrekkerVersus() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityTrekkerVersus}
+ */
+ public static ActivityTrekkerVersus newInstance() {
+ return new ActivityTrekkerVersus();
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @return whether the buildId field is set
+ */
+ public boolean hasBuildId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @return this
+ */
+ public ActivityTrekkerVersus clearBuildId() {
+ bitField0_ &= ~0x00000001;
+ buildId = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @return the buildId
+ */
+ public long getBuildId() {
+ return buildId;
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @param value the buildId to set
+ * @return this
+ */
+ public ActivityTrekkerVersus setBuildId(final long value) {
+ bitField0_ |= 0x00000001;
+ buildId = value;
+ return this;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ * @return whether the show field is set
+ */
+ public boolean hasShow() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ * @return this
+ */
+ public ActivityTrekkerVersus clearShow() {
+ bitField0_ &= ~0x00000002;
+ show.clear();
+ return this;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 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 #getMutableShow()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public TrekkerVersusShow getShow() {
+ return show;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 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 TrekkerVersusShow getMutableShow() {
+ bitField0_ |= 0x00000002;
+ return show;
+ }
+
+ /**
+ * optional .TrekkerVersusShow Show = 1;
+ * @param value the show to set
+ * @return this
+ */
+ public ActivityTrekkerVersus setShow(final TrekkerVersusShow value) {
+ bitField0_ |= 0x00000002;
+ show.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 ActivityTrekkerVersus 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 ActivityTrekkerVersus addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityTrekkerVersus addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityTrekkerVersus setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(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 ActivityTrekkerVersus 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 ActivityTrekkerVersus addQuests(final ActivityQuest value) {
+ bitField0_ |= 0x00000008;
+ quests.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityQuest Quests = 3;
+ * @param values the quests to add
+ * @return this
+ */
+ public ActivityTrekkerVersus addAllQuests(final ActivityQuest... values) {
+ bitField0_ |= 0x00000008;
+ quests.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersus copyFrom(final ActivityTrekkerVersus other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ buildId = other.buildId;
+ show.copyFrom(other.show);
+ nextPackage.copyFrom(other.nextPackage);
+ quests.copyFrom(other.quests);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersus mergeFrom(final ActivityTrekkerVersus other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBuildId()) {
+ setBuildId(other.buildId);
+ }
+ if (other.hasShow()) {
+ getMutableShow().mergeFrom(other.show);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasQuests()) {
+ getMutableQuests().addAll(other.quests);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersus clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ buildId = 0L;
+ show.clear();
+ nextPackage.clear();
+ quests.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityTrekkerVersus clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ show.clearQuick();
+ nextPackage.clear();
+ quests.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityTrekkerVersus)) {
+ return false;
+ }
+ ActivityTrekkerVersus other = (ActivityTrekkerVersus) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBuildId() || buildId == other.buildId)
+ && (!hasShow() || show.equals(other.show))
+ && (!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) 16);
+ output.writeUInt64NoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 10);
+ output.writeMessageNoTag(show);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ 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.computeUInt64SizeNoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(show);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityTrekkerVersus mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // buildId
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 10) {
+ break;
+ }
+ }
+ case 10: {
+ // show
+ input.readMessage(show);
+ 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: {
+ // 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.writeUInt64(FieldNames.buildId, buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeMessage(FieldNames.show, show);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.quests, quests);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityTrekkerVersus mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1895597065: {
+ if (input.isAtField(FieldNames.buildId)) {
+ if (!input.trySkipNullValue()) {
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 2576157: {
+ if (input.isAtField(FieldNames.show)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(show);
+ 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 -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 ActivityTrekkerVersus clone() {
+ return new ActivityTrekkerVersus().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityTrekkerVersus parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersus(), data).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersus parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersus(), input).checkInitialized();
+ }
+
+ public static ActivityTrekkerVersus parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityTrekkerVersus(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityTrekkerVersus messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityTrekkerVersusFactory.INSTANCE;
+ }
+
+ private enum ActivityTrekkerVersusFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityTrekkerVersus create() {
+ return ActivityTrekkerVersus.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName buildId = FieldName.forField("BuildId");
+
+ static final FieldName show = FieldName.forField("Show");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName quests = FieldName.forField("Quests");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityStoryChoice}
+ */
+ public static final class ActivityStoryChoice extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 Group = 1;
+ */
+ private int group;
+
+ /**
+ * optional uint32 Value = 2;
+ */
+ private int value_;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private ActivityStoryChoice() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStoryChoice}
+ */
+ public static ActivityStoryChoice newInstance() {
+ return new ActivityStoryChoice();
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return whether the group field is set
+ */
+ public boolean hasGroup() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return this
+ */
+ public ActivityStoryChoice clearGroup() {
+ bitField0_ &= ~0x00000001;
+ group = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return the group
+ */
+ public int getGroup() {
+ return group;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @param value the group to set
+ * @return this
+ */
+ public ActivityStoryChoice setGroup(final int value) {
+ bitField0_ |= 0x00000001;
+ group = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 Value = 2;
+ * @return whether the value_ field is set
+ */
+ public boolean hasValue() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 Value = 2;
+ * @return this
+ */
+ public ActivityStoryChoice clearValue() {
+ bitField0_ &= ~0x00000002;
+ value_ = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Value = 2;
+ * @return the value_
+ */
+ public int getValue() {
+ return value_;
+ }
+
+ /**
+ * optional uint32 Value = 2;
+ * @param value the value_ to set
+ * @return this
+ */
+ public ActivityStoryChoice setValue(final int value) {
+ bitField0_ |= 0x00000002;
+ value_ = 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 ActivityStoryChoice 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 ActivityStoryChoice addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStoryChoice addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStoryChoice setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChoice copyFrom(final ActivityStoryChoice other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ group = other.group;
+ value_ = other.value_;
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChoice mergeFrom(final ActivityStoryChoice other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGroup()) {
+ setGroup(other.group);
+ }
+ if (other.hasValue()) {
+ setValue(other.value_);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChoice clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ group = 0;
+ value_ = 0;
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChoice 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 ActivityStoryChoice)) {
+ return false;
+ }
+ ActivityStoryChoice other = (ActivityStoryChoice) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGroup() || group == other.group)
+ && (!hasValue() || value_ == other.value_)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(value_);
+ }
+ 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(group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(value_);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStoryChoice mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // group
+ group = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16) {
+ break;
+ }
+ }
+ case 16: {
+ // value_
+ value_ = 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.group, group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.value_, value_);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStoryChoice mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 69076575: {
+ if (input.isAtField(FieldNames.group)) {
+ if (!input.trySkipNullValue()) {
+ group = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 82420049: {
+ if (input.isAtField(FieldNames.value_)) {
+ if (!input.trySkipNullValue()) {
+ value_ = 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 ActivityStoryChoice clone() {
+ return new ActivityStoryChoice().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStoryChoice parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStoryChoice(), data).checkInitialized();
+ }
+
+ public static ActivityStoryChoice parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryChoice(), input).checkInitialized();
+ }
+
+ public static ActivityStoryChoice parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryChoice(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStoryChoice messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStoryChoiceFactory.INSTANCE;
+ }
+
+ private enum ActivityStoryChoiceFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStoryChoice create() {
+ return ActivityStoryChoice.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName group = FieldName.forField("Group");
+
+ static final FieldName value_ = FieldName.forField("Value");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityStory}
+ */
+ public static final class ActivityStory extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 Id = 1;
+ */
+ private int id;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .ActivityStoryChoice Major = 2;
+ */
+ private final RepeatedMessage major = RepeatedMessage.newEmptyInstance(ActivityStoryChoice.getFactory());
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 3;
+ */
+ private final RepeatedMessage personality = RepeatedMessage.newEmptyInstance(ActivityStoryChoice.getFactory());
+
+ private ActivityStory() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStory}
+ */
+ public static ActivityStory newInstance() {
+ return new ActivityStory();
+ }
+
+ /**
+ * 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 ActivityStory 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 ActivityStory setId(final int value) {
+ bitField0_ |= 0x00000001;
+ id = 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 ActivityStory 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 ActivityStory addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStory addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStory setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Major = 2;
+ * @return whether the major field is set
+ */
+ public boolean hasMajor() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Major = 2;
+ * @return this
+ */
+ public ActivityStory clearMajor() {
+ bitField0_ &= ~0x00000004;
+ major.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Major = 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 #getMutableMajor()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getMajor() {
+ return major;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Major = 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 getMutableMajor() {
+ bitField0_ |= 0x00000004;
+ return major;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Major = 2;
+ * @param value the major to add
+ * @return this
+ */
+ public ActivityStory addMajor(final ActivityStoryChoice value) {
+ bitField0_ |= 0x00000004;
+ major.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Major = 2;
+ * @param values the major to add
+ * @return this
+ */
+ public ActivityStory addAllMajor(final ActivityStoryChoice... values) {
+ bitField0_ |= 0x00000004;
+ major.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 3;
+ * @return whether the personality field is set
+ */
+ public boolean hasPersonality() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 3;
+ * @return this
+ */
+ public ActivityStory clearPersonality() {
+ bitField0_ &= ~0x00000008;
+ personality.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 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 #getMutablePersonality()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getPersonality() {
+ return personality;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 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 getMutablePersonality() {
+ bitField0_ |= 0x00000008;
+ return personality;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 3;
+ * @param value the personality to add
+ * @return this
+ */
+ public ActivityStory addPersonality(final ActivityStoryChoice value) {
+ bitField0_ |= 0x00000008;
+ personality.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStoryChoice Personality = 3;
+ * @param values the personality to add
+ * @return this
+ */
+ public ActivityStory addAllPersonality(final ActivityStoryChoice... values) {
+ bitField0_ |= 0x00000008;
+ personality.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStory copyFrom(final ActivityStory other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ id = other.id;
+ nextPackage.copyFrom(other.nextPackage);
+ major.copyFrom(other.major);
+ personality.copyFrom(other.personality);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStory mergeFrom(final ActivityStory other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasId()) {
+ setId(other.id);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasMajor()) {
+ getMutableMajor().addAll(other.major);
+ }
+ if (other.hasPersonality()) {
+ getMutablePersonality().addAll(other.personality);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStory clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ id = 0;
+ nextPackage.clear();
+ major.clear();
+ personality.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStory clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ major.clearQuick();
+ personality.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityStory)) {
+ return false;
+ }
+ ActivityStory other = (ActivityStory) o;
+ return bitField0_ == other.bitField0_
+ && (!hasId() || id == other.id)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasMajor() || major.equals(other.major))
+ && (!hasPersonality() || personality.equals(other.personality));
+ }
+
+ @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.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < major.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(major.get(i));
+ }
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < personality.length(); i++) {
+ output.writeRawByte((byte) 26);
+ output.writeMessageNoTag(personality.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * major.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(major);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * personality.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personality);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStory 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 != 16378) {
+ break;
+ }
+ }
+ case 16378: {
+ // nextPackage
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // major
+ tag = input.readRepeatedMessage(major, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // personality
+ tag = input.readRepeatedMessage(personality, 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.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.major, major);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.personality, personality);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStory 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 -2082324045: {
+ if (input.isAtField(FieldNames.nextPackage)) {
+ if (!input.trySkipNullValue()) {
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 74106265: {
+ if (input.isAtField(FieldNames.major)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(major);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1243902542: {
+ if (input.isAtField(FieldNames.personality)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(personality);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ActivityStory clone() {
+ return new ActivityStory().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStory parseFrom(final byte[] data) throws InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStory(), data).checkInitialized();
+ }
+
+ public static ActivityStory parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStory(), input).checkInitialized();
+ }
+
+ public static ActivityStory parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStory(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStory messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStoryFactory.INSTANCE;
+ }
+
+ private enum ActivityStoryFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStory create() {
+ return ActivityStory.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName id = FieldName.forField("Id");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName major = FieldName.forField("Major");
+
+ static final FieldName personality = FieldName.forField("Personality");
+ }
+ }
+
+ /**
+ * Protobuf type {@code ActivityStoryChapter}
+ */
+ public static final class ActivityStoryChapter extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint64 BuildId = 2;
+ */
+ private long buildId;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated uint32 Evidences = 1;
+ */
+ private final RepeatedInt evidences = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated .ActivityStory Stories = 3;
+ */
+ private final RepeatedMessage stories = RepeatedMessage.newEmptyInstance(ActivityStory.getFactory());
+
+ private ActivityStoryChapter() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ActivityStoryChapter}
+ */
+ public static ActivityStoryChapter newInstance() {
+ return new ActivityStoryChapter();
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @return whether the buildId field is set
+ */
+ public boolean hasBuildId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @return this
+ */
+ public ActivityStoryChapter clearBuildId() {
+ bitField0_ &= ~0x00000001;
+ buildId = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @return the buildId
+ */
+ public long getBuildId() {
+ return buildId;
+ }
+
+ /**
+ * optional uint64 BuildId = 2;
+ * @param value the buildId to set
+ * @return this
+ */
+ public ActivityStoryChapter setBuildId(final long value) {
+ bitField0_ |= 0x00000001;
+ buildId = value;
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @return whether the nextPackage field is set
+ */
+ public boolean hasNextPackage() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @return this
+ */
+ public ActivityStoryChapter 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 ActivityStoryChapter addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public ActivityStoryChapter addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public ActivityStoryChapter setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 Evidences = 1;
+ * @return whether the evidences field is set
+ */
+ public boolean hasEvidences() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated uint32 Evidences = 1;
+ * @return this
+ */
+ public ActivityStoryChapter clearEvidences() {
+ bitField0_ &= ~0x00000004;
+ evidences.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 Evidences = 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 #getMutableEvidences()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getEvidences() {
+ return evidences;
+ }
+
+ /**
+ * repeated uint32 Evidences = 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 getMutableEvidences() {
+ bitField0_ |= 0x00000004;
+ return evidences;
+ }
+
+ /**
+ * repeated uint32 Evidences = 1;
+ * @param value the evidences to add
+ * @return this
+ */
+ public ActivityStoryChapter addEvidences(final int value) {
+ bitField0_ |= 0x00000004;
+ evidences.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 Evidences = 1;
+ * @param values the evidences to add
+ * @return this
+ */
+ public ActivityStoryChapter addAllEvidences(final int... values) {
+ bitField0_ |= 0x00000004;
+ evidences.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStory Stories = 3;
+ * @return whether the stories field is set
+ */
+ public boolean hasStories() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .ActivityStory Stories = 3;
+ * @return this
+ */
+ public ActivityStoryChapter clearStories() {
+ bitField0_ &= ~0x00000008;
+ stories.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStory Stories = 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 #getMutableStories()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getStories() {
+ return stories;
+ }
+
+ /**
+ * repeated .ActivityStory Stories = 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 getMutableStories() {
+ bitField0_ |= 0x00000008;
+ return stories;
+ }
+
+ /**
+ * repeated .ActivityStory Stories = 3;
+ * @param value the stories to add
+ * @return this
+ */
+ public ActivityStoryChapter addStories(final ActivityStory value) {
+ bitField0_ |= 0x00000008;
+ stories.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ActivityStory Stories = 3;
+ * @param values the stories to add
+ * @return this
+ */
+ public ActivityStoryChapter addAllStories(final ActivityStory... values) {
+ bitField0_ |= 0x00000008;
+ stories.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChapter copyFrom(final ActivityStoryChapter other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ buildId = other.buildId;
+ nextPackage.copyFrom(other.nextPackage);
+ evidences.copyFrom(other.evidences);
+ stories.copyFrom(other.stories);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChapter mergeFrom(final ActivityStoryChapter other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBuildId()) {
+ setBuildId(other.buildId);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasEvidences()) {
+ getMutableEvidences().addAll(other.evidences);
+ }
+ if (other.hasStories()) {
+ getMutableStories().addAll(other.stories);
+ }
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChapter clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ buildId = 0L;
+ nextPackage.clear();
+ evidences.clear();
+ stories.clear();
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChapter clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ nextPackage.clear();
+ evidences.clear();
+ stories.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ActivityStoryChapter)) {
+ return false;
+ }
+ ActivityStoryChapter other = (ActivityStoryChapter) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBuildId() || buildId == other.buildId)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasEvidences() || evidences.equals(other.evidences))
+ && (!hasStories() || stories.equals(other.stories));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt64NoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < evidences.length(); i++) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(evidences.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < stories.length(); i++) {
+ output.writeRawByte((byte) 26);
+ output.writeMessageNoTag(stories.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * evidences.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(evidences);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * stories.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(stories);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ActivityStoryChapter mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // buildId
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16378) {
+ break;
+ }
+ }
+ case 16378: {
+ // nextPackage
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 10) {
+ break;
+ }
+ }
+ case 10: {
+ // evidences [packed=true]
+ input.readPackedUInt32(evidences, tag);
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // stories
+ tag = input.readRepeatedMessage(stories, tag);
+ bitField0_ |= 0x00000008;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 8: {
+ // evidences [packed=false]
+ tag = input.readRepeatedUInt32(evidences, tag);
+ bitField0_ |= 0x00000004;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt64(FieldNames.buildId, buildId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedUInt32(FieldNames.evidences, evidences);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.stories, stories);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ActivityStoryChapter mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1895597065: {
+ if (input.isAtField(FieldNames.buildId)) {
+ if (!input.trySkipNullValue()) {
+ buildId = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -2082324045: {
+ if (input.isAtField(FieldNames.nextPackage)) {
+ if (!input.trySkipNullValue()) {
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 991055068: {
+ if (input.isAtField(FieldNames.evidences)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(evidences);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -219613133: {
+ if (input.isAtField(FieldNames.stories)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(stories);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ActivityStoryChapter clone() {
+ return new ActivityStoryChapter().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ActivityStoryChapter parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ActivityStoryChapter(), data).checkInitialized();
+ }
+
+ public static ActivityStoryChapter parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryChapter(), input).checkInitialized();
+ }
+
+ public static ActivityStoryChapter parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ActivityStoryChapter(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ActivityStoryChapter messages
+ */
+ public static MessageFactory getFactory() {
+ return ActivityStoryChapterFactory.INSTANCE;
+ }
+
+ private enum ActivityStoryChapterFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public ActivityStoryChapter create() {
+ return ActivityStoryChapter.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName buildId = FieldName.forField("BuildId");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName evidences = FieldName.forField("Evidences");
+
+ static final FieldName stories = FieldName.forField("Stories");
+ }
+ }
}
diff --git a/src/generated/main/emu/nebula/proto/PublicStarTower.java b/src/generated/main/emu/nebula/proto/PublicStarTower.java
index c5c18b8..b7db10a 100644
--- a/src/generated/main/emu/nebula/proto/PublicStarTower.java
+++ b/src/generated/main/emu/nebula/proto/PublicStarTower.java
@@ -658,6 +658,11 @@ public final class PublicStarTower {
*/
private int totalTime;
+ /**
+ * optional uint32 DataVersion = 17;
+ */
+ private int dataVersion;
+
/**
* optional bytes NextPackage = 2047;
*/
@@ -1036,12 +1041,49 @@ public final class PublicStarTower {
return this;
}
+ /**
+ * optional uint32 DataVersion = 17;
+ * @return whether the dataVersion field is set
+ */
+ public boolean hasDataVersion() {
+ return (bitField0_ & 0x00000200) != 0;
+ }
+
+ /**
+ * optional uint32 DataVersion = 17;
+ * @return this
+ */
+ public StarTowerMeta clearDataVersion() {
+ bitField0_ &= ~0x00000200;
+ dataVersion = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 DataVersion = 17;
+ * @return the dataVersion
+ */
+ public int getDataVersion() {
+ return dataVersion;
+ }
+
+ /**
+ * optional uint32 DataVersion = 17;
+ * @param value the dataVersion to set
+ * @return this
+ */
+ public StarTowerMeta setDataVersion(final int value) {
+ bitField0_ |= 0x00000200;
+ dataVersion = value;
+ return this;
+ }
+
/**
* optional bytes NextPackage = 2047;
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
- return (bitField0_ & 0x00000200) != 0;
+ return (bitField0_ & 0x00000400) != 0;
}
/**
@@ -1049,7 +1091,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearNextPackage() {
- bitField0_ &= ~0x00000200;
+ bitField0_ &= ~0x00000400;
nextPackage.clear();
return this;
}
@@ -1078,7 +1120,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
return nextPackage;
}
@@ -1088,7 +1130,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addNextPackage(final byte value) {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
nextPackage.add(value);
return this;
}
@@ -1099,7 +1141,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addAllNextPackage(final byte... values) {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
nextPackage.addAll(values);
return this;
}
@@ -1110,7 +1152,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta setNextPackage(final byte... values) {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
nextPackage.copyFrom(values);
return this;
}
@@ -1120,7 +1162,7 @@ public final class PublicStarTower {
* @return whether the clientData field is set
*/
public boolean hasClientData() {
- return (bitField0_ & 0x00000400) != 0;
+ return (bitField0_ & 0x00000800) != 0;
}
/**
@@ -1128,7 +1170,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearClientData() {
- bitField0_ &= ~0x00000400;
+ bitField0_ &= ~0x00000800;
clientData.clear();
return this;
}
@@ -1154,7 +1196,7 @@ public final class PublicStarTower {
* @return internal {@code Utf8String} representation of clientData for modifications
*/
public Utf8String getMutableClientDataBytes() {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
return this.clientData;
}
@@ -1164,7 +1206,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta setClientData(final CharSequence value) {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
clientData.copyFrom(value);
return this;
}
@@ -1175,7 +1217,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta setClientData(final Utf8String value) {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
clientData.copyFrom(value);
return this;
}
@@ -1185,7 +1227,7 @@ public final class PublicStarTower {
* @return whether the totalDamages field is set
*/
public boolean hasTotalDamages() {
- return (bitField0_ & 0x00000800) != 0;
+ return (bitField0_ & 0x00001000) != 0;
}
/**
@@ -1193,7 +1235,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearTotalDamages() {
- bitField0_ &= ~0x00000800;
+ bitField0_ &= ~0x00001000;
totalDamages.clear();
return this;
}
@@ -1222,7 +1264,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedLong getMutableTotalDamages() {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
return totalDamages;
}
@@ -1232,7 +1274,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addTotalDamages(final long value) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
totalDamages.add(value);
return this;
}
@@ -1243,7 +1285,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addAllTotalDamages(final long... values) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
totalDamages.addAll(values);
return this;
}
@@ -1253,7 +1295,7 @@ public final class PublicStarTower {
* @return whether the activeSecondaryIds field is set
*/
public boolean hasActiveSecondaryIds() {
- return (bitField0_ & 0x00001000) != 0;
+ return (bitField0_ & 0x00002000) != 0;
}
/**
@@ -1261,7 +1303,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearActiveSecondaryIds() {
- bitField0_ &= ~0x00001000;
+ bitField0_ &= ~0x00002000;
activeSecondaryIds.clear();
return this;
}
@@ -1290,7 +1332,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedInt getMutableActiveSecondaryIds() {
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
return activeSecondaryIds;
}
@@ -1300,7 +1342,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addActiveSecondaryIds(final int value) {
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
activeSecondaryIds.add(value);
return this;
}
@@ -1311,7 +1353,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addAllActiveSecondaryIds(final int... values) {
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
activeSecondaryIds.addAll(values);
return this;
}
@@ -1321,7 +1363,7 @@ public final class PublicStarTower {
* @return whether the towerGrowthNodes field is set
*/
public boolean hasTowerGrowthNodes() {
- return (bitField0_ & 0x00002000) != 0;
+ return (bitField0_ & 0x00004000) != 0;
}
/**
@@ -1329,7 +1371,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearTowerGrowthNodes() {
- bitField0_ &= ~0x00002000;
+ bitField0_ &= ~0x00004000;
towerGrowthNodes.clear();
return this;
}
@@ -1358,7 +1400,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedInt getMutableTowerGrowthNodes() {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
return towerGrowthNodes;
}
@@ -1368,7 +1410,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addTowerGrowthNodes(final int value) {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
towerGrowthNodes.add(value);
return this;
}
@@ -1379,7 +1421,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addAllTowerGrowthNodes(final int... values) {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
towerGrowthNodes.addAll(values);
return this;
}
@@ -1389,7 +1431,7 @@ public final class PublicStarTower {
* @return whether the chars field is set
*/
public boolean hasChars() {
- return (bitField0_ & 0x00004000) != 0;
+ return (bitField0_ & 0x00008000) != 0;
}
/**
@@ -1397,7 +1439,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearChars() {
- bitField0_ &= ~0x00004000;
+ bitField0_ &= ~0x00008000;
chars.clear();
return this;
}
@@ -1426,7 +1468,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableChars() {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
return chars;
}
@@ -1436,7 +1478,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addChars(final StarTowerChar value) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
chars.add(value);
return this;
}
@@ -1447,7 +1489,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addAllChars(final StarTowerChar... values) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
chars.addAll(values);
return this;
}
@@ -1457,7 +1499,7 @@ public final class PublicStarTower {
* @return whether the discs field is set
*/
public boolean hasDiscs() {
- return (bitField0_ & 0x00008000) != 0;
+ return (bitField0_ & 0x00010000) != 0;
}
/**
@@ -1465,7 +1507,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta clearDiscs() {
- bitField0_ &= ~0x00008000;
+ bitField0_ &= ~0x00010000;
discs.clear();
return this;
}
@@ -1494,7 +1536,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableDiscs() {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
return discs;
}
@@ -1504,7 +1546,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addDiscs(final StarTowerDisc value) {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
discs.add(value);
return this;
}
@@ -1515,7 +1557,7 @@ public final class PublicStarTower {
* @return this
*/
public StarTowerMeta addAllDiscs(final StarTowerDisc... values) {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
discs.addAll(values);
return this;
}
@@ -1534,6 +1576,7 @@ public final class PublicStarTower {
nPCInteractions = other.nPCInteractions;
resurrectionCnt = other.resurrectionCnt;
totalTime = other.totalTime;
+ dataVersion = other.dataVersion;
nextPackage.copyFrom(other.nextPackage);
clientData.copyFrom(other.clientData);
totalDamages.copyFrom(other.totalDamages);
@@ -1578,6 +1621,9 @@ public final class PublicStarTower {
if (other.hasTotalTime()) {
setTotalTime(other.totalTime);
}
+ if (other.hasDataVersion()) {
+ setDataVersion(other.dataVersion);
+ }
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -1618,6 +1664,7 @@ public final class PublicStarTower {
nPCInteractions = 0;
resurrectionCnt = 0;
totalTime = 0;
+ dataVersion = 0;
nextPackage.clear();
clientData.clear();
totalDamages.clear();
@@ -1664,6 +1711,7 @@ public final class PublicStarTower {
&& (!hasNPCInteractions() || nPCInteractions == other.nPCInteractions)
&& (!hasResurrectionCnt() || resurrectionCnt == other.resurrectionCnt)
&& (!hasTotalTime() || totalTime == other.totalTime)
+ && (!hasDataVersion() || dataVersion == other.dataVersion)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasClientData() || clientData.equals(other.clientData))
&& (!hasTotalDamages() || totalDamages.equals(other.totalDamages))
@@ -1712,38 +1760,42 @@ public final class PublicStarTower {
output.writeUInt32NoTag(totalTime);
}
if ((bitField0_ & 0x00000200) != 0) {
+ output.writeRawLittleEndian16((short) 392);
+ output.writeUInt32NoTag(dataVersion);
+ }
+ if ((bitField0_ & 0x00000400) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
- if ((bitField0_ & 0x00000400) != 0) {
+ if ((bitField0_ & 0x00000800) != 0) {
output.writeRawByte((byte) 66);
output.writeStringNoTag(clientData);
}
- if ((bitField0_ & 0x00000800) != 0) {
+ if ((bitField0_ & 0x00001000) != 0) {
for (int i = 0; i < totalDamages.length(); i++) {
output.writeRawByte((byte) 120);
output.writeUInt64NoTag(totalDamages.array()[i]);
}
}
- if ((bitField0_ & 0x00001000) != 0) {
+ if ((bitField0_ & 0x00002000) != 0) {
for (int i = 0; i < activeSecondaryIds.length(); i++) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(activeSecondaryIds.array()[i]);
}
}
- if ((bitField0_ & 0x00002000) != 0) {
+ if ((bitField0_ & 0x00004000) != 0) {
for (int i = 0; i < towerGrowthNodes.length(); i++) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(towerGrowthNodes.array()[i]);
}
}
- if ((bitField0_ & 0x00004000) != 0) {
+ if ((bitField0_ & 0x00008000) != 0) {
for (int i = 0; i < chars.length(); i++) {
output.writeRawByte((byte) 42);
output.writeMessageNoTag(chars.get(i));
}
}
- if ((bitField0_ & 0x00008000) != 0) {
+ if ((bitField0_ & 0x00010000) != 0) {
for (int i = 0; i < discs.length(); i++) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(discs.get(i));
@@ -1782,24 +1834,27 @@ public final class PublicStarTower {
size += 1 + ProtoSink.computeUInt32SizeNoTag(totalTime);
}
if ((bitField0_ & 0x00000200) != 0) {
- size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ size += 2 + ProtoSink.computeUInt32SizeNoTag(dataVersion);
}
if ((bitField0_ & 0x00000400) != 0) {
- size += 1 + ProtoSink.computeStringSizeNoTag(clientData);
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000800) != 0) {
- size += (1 * totalDamages.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(totalDamages);
+ size += 1 + ProtoSink.computeStringSizeNoTag(clientData);
}
if ((bitField0_ & 0x00001000) != 0) {
- size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds);
+ size += (1 * totalDamages.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(totalDamages);
}
if ((bitField0_ & 0x00002000) != 0) {
- size += (1 * towerGrowthNodes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(towerGrowthNodes);
+ size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds);
}
if ((bitField0_ & 0x00004000) != 0) {
- size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
+ size += (1 * towerGrowthNodes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(towerGrowthNodes);
}
if ((bitField0_ & 0x00008000) != 0) {
+ size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
+ }
+ if ((bitField0_ & 0x00010000) != 0) {
size += (1 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs);
}
return size;
@@ -1889,6 +1944,15 @@ public final class PublicStarTower {
totalTime = input.readUInt32();
bitField0_ |= 0x00000100;
tag = input.readTag();
+ if (tag != 136) {
+ break;
+ }
+ }
+ case 136: {
+ // dataVersion
+ dataVersion = input.readUInt32();
+ bitField0_ |= 0x00000200;
+ tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -1896,7 +1960,7 @@ public final class PublicStarTower {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
tag = input.readTag();
if (tag != 66) {
break;
@@ -1905,7 +1969,7 @@ public final class PublicStarTower {
case 66: {
// clientData
input.readString(clientData);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
tag = input.readTag();
if (tag != 122) {
break;
@@ -1914,7 +1978,7 @@ public final class PublicStarTower {
case 122: {
// totalDamages [packed=true]
input.readPackedUInt64(totalDamages, tag);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
tag = input.readTag();
if (tag != 74) {
break;
@@ -1923,7 +1987,7 @@ public final class PublicStarTower {
case 74: {
// activeSecondaryIds [packed=true]
input.readPackedUInt32(activeSecondaryIds, tag);
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
tag = input.readTag();
if (tag != 90) {
break;
@@ -1932,7 +1996,7 @@ public final class PublicStarTower {
case 90: {
// towerGrowthNodes [packed=true]
input.readPackedUInt32(towerGrowthNodes, tag);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
tag = input.readTag();
if (tag != 42) {
break;
@@ -1941,7 +2005,7 @@ public final class PublicStarTower {
case 42: {
// chars
tag = input.readRepeatedMessage(chars, tag);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
if (tag != 50) {
break;
}
@@ -1949,7 +2013,7 @@ public final class PublicStarTower {
case 50: {
// discs
tag = input.readRepeatedMessage(discs, tag);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
if (tag != 0) {
break;
}
@@ -1967,19 +2031,19 @@ public final class PublicStarTower {
case 120: {
// totalDamages [packed=false]
tag = input.readRepeatedUInt64(totalDamages, tag);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
}
case 72: {
// activeSecondaryIds [packed=false]
tag = input.readRepeatedUInt32(activeSecondaryIds, tag);
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
}
case 88: {
// towerGrowthNodes [packed=false]
tag = input.readRepeatedUInt32(towerGrowthNodes, tag);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
break;
}
}
@@ -2017,24 +2081,27 @@ public final class PublicStarTower {
output.writeUInt32(FieldNames.totalTime, totalTime);
}
if ((bitField0_ & 0x00000200) != 0) {
- output.writeBytes(FieldNames.nextPackage, nextPackage);
+ output.writeUInt32(FieldNames.dataVersion, dataVersion);
}
if ((bitField0_ & 0x00000400) != 0) {
- output.writeString(FieldNames.clientData, clientData);
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000800) != 0) {
- output.writeRepeatedUInt64(FieldNames.totalDamages, totalDamages);
+ output.writeString(FieldNames.clientData, clientData);
}
if ((bitField0_ & 0x00001000) != 0) {
- output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds);
+ output.writeRepeatedUInt64(FieldNames.totalDamages, totalDamages);
}
if ((bitField0_ & 0x00002000) != 0) {
- output.writeRepeatedUInt32(FieldNames.towerGrowthNodes, towerGrowthNodes);
+ output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds);
}
if ((bitField0_ & 0x00004000) != 0) {
- output.writeRepeatedMessage(FieldNames.chars, chars);
+ output.writeRepeatedUInt32(FieldNames.towerGrowthNodes, towerGrowthNodes);
}
if ((bitField0_ & 0x00008000) != 0) {
+ output.writeRepeatedMessage(FieldNames.chars, chars);
+ }
+ if ((bitField0_ & 0x00010000) != 0) {
output.writeRepeatedMessage(FieldNames.discs, discs);
}
output.endObject();
@@ -2146,11 +2213,22 @@ public final class PublicStarTower {
}
break;
}
+ case 538270126: {
+ if (input.isAtField(FieldNames.dataVersion)) {
+ if (!input.trySkipNullValue()) {
+ dataVersion = input.readUInt32();
+ bitField0_ |= 0x00000200;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
}
} else {
input.skipUnknownField();
@@ -2161,7 +2239,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.clientData)) {
if (!input.trySkipNullValue()) {
input.readString(clientData);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
}
} else {
input.skipUnknownField();
@@ -2172,7 +2250,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.totalDamages)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt64(totalDamages);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
}
} else {
input.skipUnknownField();
@@ -2183,7 +2261,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.activeSecondaryIds)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(activeSecondaryIds);
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
}
} else {
input.skipUnknownField();
@@ -2194,7 +2272,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.towerGrowthNodes)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(towerGrowthNodes);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
}
} else {
input.skipUnknownField();
@@ -2205,7 +2283,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.chars)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(chars);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
}
} else {
input.skipUnknownField();
@@ -2216,7 +2294,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.discs)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(discs);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
}
} else {
input.skipUnknownField();
@@ -2293,6 +2371,8 @@ public final class PublicStarTower {
static final FieldName totalTime = FieldName.forField("TotalTime");
+ static final FieldName dataVersion = FieldName.forField("DataVersion");
+
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName clientData = FieldName.forField("ClientData");
@@ -16323,6 +16403,11 @@ public final class PublicStarTower {
*/
private int mapTableId;
+ /**
+ * optional uint32 DataVersion = 7;
+ */
+ private int dataVersion;
+
/**
* optional bytes NextPackage = 2047;
*/
@@ -16496,12 +16581,49 @@ public final class PublicStarTower {
return this;
}
+ /**
+ * optional uint32 DataVersion = 7;
+ * @return whether the dataVersion field is set
+ */
+ public boolean hasDataVersion() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * optional uint32 DataVersion = 7;
+ * @return this
+ */
+ public InteractEnterReq clearDataVersion() {
+ bitField0_ &= ~0x00000010;
+ dataVersion = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 DataVersion = 7;
+ * @return the dataVersion
+ */
+ public int getDataVersion() {
+ return dataVersion;
+ }
+
+ /**
+ * optional uint32 DataVersion = 7;
+ * @param value the dataVersion to set
+ * @return this
+ */
+ public InteractEnterReq setDataVersion(final int value) {
+ bitField0_ |= 0x00000010;
+ dataVersion = value;
+ return this;
+ }
+
/**
* optional bytes NextPackage = 2047;
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
- return (bitField0_ & 0x00000010) != 0;
+ return (bitField0_ & 0x00000020) != 0;
}
/**
@@ -16509,7 +16631,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq clearNextPackage() {
- bitField0_ &= ~0x00000010;
+ bitField0_ &= ~0x00000020;
nextPackage.clear();
return this;
}
@@ -16538,7 +16660,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
return nextPackage;
}
@@ -16548,7 +16670,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq addNextPackage(final byte value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
nextPackage.add(value);
return this;
}
@@ -16559,7 +16681,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq addAllNextPackage(final byte... values) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
nextPackage.addAll(values);
return this;
}
@@ -16570,7 +16692,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq setNextPackage(final byte... values) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
nextPackage.copyFrom(values);
return this;
}
@@ -16580,7 +16702,7 @@ public final class PublicStarTower {
* @return whether the clientData field is set
*/
public boolean hasClientData() {
- return (bitField0_ & 0x00000020) != 0;
+ return (bitField0_ & 0x00000040) != 0;
}
/**
@@ -16588,7 +16710,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq clearClientData() {
- bitField0_ &= ~0x00000020;
+ bitField0_ &= ~0x00000040;
clientData.clear();
return this;
}
@@ -16614,7 +16736,7 @@ public final class PublicStarTower {
* @return internal {@code Utf8String} representation of clientData for modifications
*/
public Utf8String getMutableClientDataBytes() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
return this.clientData;
}
@@ -16624,7 +16746,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq setClientData(final CharSequence value) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
clientData.copyFrom(value);
return this;
}
@@ -16635,7 +16757,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq setClientData(final Utf8String value) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
clientData.copyFrom(value);
return this;
}
@@ -16645,7 +16767,7 @@ public final class PublicStarTower {
* @return whether the mapParam field is set
*/
public boolean hasMapParam() {
- return (bitField0_ & 0x00000040) != 0;
+ return (bitField0_ & 0x00000080) != 0;
}
/**
@@ -16653,7 +16775,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq clearMapParam() {
- bitField0_ &= ~0x00000040;
+ bitField0_ &= ~0x00000080;
mapParam.clear();
return this;
}
@@ -16679,7 +16801,7 @@ public final class PublicStarTower {
* @return internal {@code Utf8String} representation of mapParam for modifications
*/
public Utf8String getMutableMapParamBytes() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
return this.mapParam;
}
@@ -16689,7 +16811,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq setMapParam(final CharSequence value) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
mapParam.copyFrom(value);
return this;
}
@@ -16700,7 +16822,7 @@ public final class PublicStarTower {
* @return this
*/
public InteractEnterReq setMapParam(final Utf8String value) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
mapParam.copyFrom(value);
return this;
}
@@ -16714,6 +16836,7 @@ public final class PublicStarTower {
paramId = other.paramId;
dateLen = other.dateLen;
mapTableId = other.mapTableId;
+ dataVersion = other.dataVersion;
nextPackage.copyFrom(other.nextPackage);
clientData.copyFrom(other.clientData);
mapParam.copyFrom(other.mapParam);
@@ -16739,6 +16862,9 @@ public final class PublicStarTower {
if (other.hasMapTableId()) {
setMapTableId(other.mapTableId);
}
+ if (other.hasDataVersion()) {
+ setDataVersion(other.dataVersion);
+ }
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -16762,6 +16888,7 @@ public final class PublicStarTower {
paramId = 0;
dateLen = 0;
mapTableId = 0;
+ dataVersion = 0;
nextPackage.clear();
clientData.clear();
mapParam.clear();
@@ -16795,6 +16922,7 @@ public final class PublicStarTower {
&& (!hasParamId() || paramId == other.paramId)
&& (!hasDateLen() || dateLen == other.dateLen)
&& (!hasMapTableId() || mapTableId == other.mapTableId)
+ && (!hasDataVersion() || dataVersion == other.dataVersion)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasClientData() || clientData.equals(other.clientData))
&& (!hasMapParam() || mapParam.equals(other.mapParam));
@@ -16819,14 +16947,18 @@ public final class PublicStarTower {
output.writeUInt32NoTag(mapTableId);
}
if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(dataVersion);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
- if ((bitField0_ & 0x00000020) != 0) {
+ if ((bitField0_ & 0x00000040) != 0) {
output.writeRawByte((byte) 34);
output.writeStringNoTag(clientData);
}
- if ((bitField0_ & 0x00000040) != 0) {
+ if ((bitField0_ & 0x00000080) != 0) {
output.writeRawByte((byte) 42);
output.writeStringNoTag(mapParam);
}
@@ -16848,12 +16980,15 @@ public final class PublicStarTower {
size += 1 + ProtoSink.computeUInt32SizeNoTag(mapTableId);
}
if ((bitField0_ & 0x00000010) != 0) {
- size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(dataVersion);
}
if ((bitField0_ & 0x00000020) != 0) {
- size += 1 + ProtoSink.computeStringSizeNoTag(clientData);
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000040) != 0) {
+ size += 1 + ProtoSink.computeStringSizeNoTag(clientData);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(mapParam);
}
return size;
@@ -16898,6 +17033,15 @@ public final class PublicStarTower {
mapTableId = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // dataVersion
+ dataVersion = input.readUInt32();
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -16905,7 +17049,7 @@ public final class PublicStarTower {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 34) {
break;
@@ -16914,7 +17058,7 @@ public final class PublicStarTower {
case 34: {
// clientData
input.readString(clientData);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 42) {
break;
@@ -16923,7 +17067,7 @@ public final class PublicStarTower {
case 42: {
// mapParam
input.readString(mapParam);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
tag = input.readTag();
if (tag != 0) {
break;
@@ -16959,12 +17103,15 @@ public final class PublicStarTower {
output.writeUInt32(FieldNames.mapTableId, mapTableId);
}
if ((bitField0_ & 0x00000010) != 0) {
- output.writeBytes(FieldNames.nextPackage, nextPackage);
+ output.writeUInt32(FieldNames.dataVersion, dataVersion);
}
if ((bitField0_ & 0x00000020) != 0) {
- output.writeString(FieldNames.clientData, clientData);
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000040) != 0) {
+ output.writeString(FieldNames.clientData, clientData);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
output.writeString(FieldNames.mapParam, mapParam);
}
output.endObject();
@@ -17021,11 +17168,22 @@ public final class PublicStarTower {
}
break;
}
+ case 538270126: {
+ if (input.isAtField(FieldNames.dataVersion)) {
+ if (!input.trySkipNullValue()) {
+ dataVersion = input.readUInt32();
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
@@ -17036,7 +17194,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.clientData)) {
if (!input.trySkipNullValue()) {
input.readString(clientData);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
}
} else {
input.skipUnknownField();
@@ -17047,7 +17205,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.mapParam)) {
if (!input.trySkipNullValue()) {
input.readString(mapParam);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
}
} else {
input.skipUnknownField();
@@ -17115,6 +17273,8 @@ public final class PublicStarTower {
static final FieldName mapTableId = FieldName.forField("MapTableId");
+ static final FieldName dataVersion = FieldName.forField("DataVersion");
+
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName clientData = FieldName.forField("ClientData");
@@ -17981,6 +18141,11 @@ public final class PublicStarTower {
*/
private int dateLen;
+ /**
+ * optional uint32 DataVersion = 7;
+ */
+ private int dataVersion;
+
/**
* optional .Events Events = 15;
*/
@@ -18122,12 +18287,49 @@ public final class PublicStarTower {
return this;
}
+ /**
+ * optional uint32 DataVersion = 7;
+ * @return whether the dataVersion field is set
+ */
+ public boolean hasDataVersion() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional uint32 DataVersion = 7;
+ * @return this
+ */
+ public VictoryData clearDataVersion() {
+ bitField0_ &= ~0x00000008;
+ dataVersion = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 DataVersion = 7;
+ * @return the dataVersion
+ */
+ public int getDataVersion() {
+ return dataVersion;
+ }
+
+ /**
+ * optional uint32 DataVersion = 7;
+ * @param value the dataVersion to set
+ * @return this
+ */
+ public VictoryData setDataVersion(final int value) {
+ bitField0_ |= 0x00000008;
+ dataVersion = value;
+ return this;
+ }
+
/**
* optional .Events Events = 15;
* @return whether the events field is set
*/
public boolean hasEvents() {
- return (bitField0_ & 0x00000008) != 0;
+ return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -18135,7 +18337,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData clearEvents() {
- bitField0_ &= ~0x00000008;
+ bitField0_ &= ~0x00000010;
events.clear();
return this;
}
@@ -18164,7 +18366,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public Public.Events getMutableEvents() {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
return events;
}
@@ -18174,7 +18376,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData setEvents(final Public.Events value) {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
events.copyFrom(value);
return this;
}
@@ -18184,7 +18386,7 @@ public final class PublicStarTower {
* @return whether the clientData field is set
*/
public boolean hasClientData() {
- return (bitField0_ & 0x00000010) != 0;
+ return (bitField0_ & 0x00000020) != 0;
}
/**
@@ -18192,7 +18394,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData clearClientData() {
- bitField0_ &= ~0x00000010;
+ bitField0_ &= ~0x00000020;
clientData.clear();
return this;
}
@@ -18218,7 +18420,7 @@ public final class PublicStarTower {
* @return internal {@code Utf8String} representation of clientData for modifications
*/
public Utf8String getMutableClientDataBytes() {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
return this.clientData;
}
@@ -18228,7 +18430,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData setClientData(final CharSequence value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
clientData.copyFrom(value);
return this;
}
@@ -18239,7 +18441,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData setClientData(final Utf8String value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
clientData.copyFrom(value);
return this;
}
@@ -18249,7 +18451,7 @@ public final class PublicStarTower {
* @return whether the damages field is set
*/
public boolean hasDamages() {
- return (bitField0_ & 0x00000020) != 0;
+ return (bitField0_ & 0x00000040) != 0;
}
/**
@@ -18257,7 +18459,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData clearDamages() {
- bitField0_ &= ~0x00000020;
+ bitField0_ &= ~0x00000040;
damages.clear();
return this;
}
@@ -18286,7 +18488,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedInt getMutableDamages() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
return damages;
}
@@ -18296,7 +18498,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData addDamages(final int value) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
damages.add(value);
return this;
}
@@ -18307,7 +18509,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData addAllDamages(final int... values) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
damages.addAll(values);
return this;
}
@@ -18317,7 +18519,7 @@ public final class PublicStarTower {
* @return whether the fateCardUsage field is set
*/
public boolean hasFateCardUsage() {
- return (bitField0_ & 0x00000040) != 0;
+ return (bitField0_ & 0x00000080) != 0;
}
/**
@@ -18325,7 +18527,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData clearFateCardUsage() {
- bitField0_ &= ~0x00000040;
+ bitField0_ &= ~0x00000080;
fateCardUsage.clear();
return this;
}
@@ -18354,7 +18556,7 @@ public final class PublicStarTower {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableFateCardUsage() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
return fateCardUsage;
}
@@ -18364,7 +18566,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData addFateCardUsage(final FateCardUsage value) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
fateCardUsage.add(value);
return this;
}
@@ -18375,7 +18577,7 @@ public final class PublicStarTower {
* @return this
*/
public VictoryData addAllFateCardUsage(final FateCardUsage... values) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
fateCardUsage.addAll(values);
return this;
}
@@ -18388,6 +18590,7 @@ public final class PublicStarTower {
hP = other.hP;
time = other.time;
dateLen = other.dateLen;
+ dataVersion = other.dataVersion;
events.copyFrom(other.events);
clientData.copyFrom(other.clientData);
damages.copyFrom(other.damages);
@@ -18411,6 +18614,9 @@ public final class PublicStarTower {
if (other.hasDateLen()) {
setDateLen(other.dateLen);
}
+ if (other.hasDataVersion()) {
+ setDataVersion(other.dataVersion);
+ }
if (other.hasEvents()) {
getMutableEvents().mergeFrom(other.events);
}
@@ -18436,6 +18642,7 @@ public final class PublicStarTower {
hP = 0;
time = 0;
dateLen = 0;
+ dataVersion = 0;
events.clear();
clientData.clear();
damages.clear();
@@ -18470,6 +18677,7 @@ public final class PublicStarTower {
&& (!hasHP() || hP == other.hP)
&& (!hasTime() || time == other.time)
&& (!hasDateLen() || dateLen == other.dateLen)
+ && (!hasDataVersion() || dataVersion == other.dataVersion)
&& (!hasEvents() || events.equals(other.events))
&& (!hasClientData() || clientData.equals(other.clientData))
&& (!hasDamages() || damages.equals(other.damages))
@@ -18491,20 +18699,24 @@ public final class PublicStarTower {
output.writeUInt32NoTag(dateLen);
}
if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(dataVersion);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 122);
output.writeMessageNoTag(events);
}
- if ((bitField0_ & 0x00000010) != 0) {
+ if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 34);
output.writeStringNoTag(clientData);
}
- if ((bitField0_ & 0x00000020) != 0) {
+ if ((bitField0_ & 0x00000040) != 0) {
for (int i = 0; i < damages.length(); i++) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(damages.array()[i]);
}
}
- if ((bitField0_ & 0x00000040) != 0) {
+ if ((bitField0_ & 0x00000080) != 0) {
for (int i = 0; i < fateCardUsage.length(); i++) {
output.writeRawByte((byte) 42);
output.writeMessageNoTag(fateCardUsage.get(i));
@@ -18525,15 +18737,18 @@ public final class PublicStarTower {
size += 1 + ProtoSink.computeUInt32SizeNoTag(dateLen);
}
if ((bitField0_ & 0x00000008) != 0) {
- size += 1 + ProtoSink.computeMessageSizeNoTag(events);
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(dataVersion);
}
if ((bitField0_ & 0x00000010) != 0) {
- size += 1 + ProtoSink.computeStringSizeNoTag(clientData);
+ size += 1 + ProtoSink.computeMessageSizeNoTag(events);
}
if ((bitField0_ & 0x00000020) != 0) {
- size += (1 * damages.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(damages);
+ size += 1 + ProtoSink.computeStringSizeNoTag(clientData);
}
if ((bitField0_ & 0x00000040) != 0) {
+ size += (1 * damages.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(damages);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
size += (1 * fateCardUsage.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(fateCardUsage);
}
return size;
@@ -18569,6 +18784,15 @@ public final class PublicStarTower {
dateLen = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // dataVersion
+ dataVersion = input.readUInt32();
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
if (tag != 122) {
break;
}
@@ -18576,7 +18800,7 @@ public final class PublicStarTower {
case 122: {
// events
input.readMessage(events);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 34) {
break;
@@ -18585,7 +18809,7 @@ public final class PublicStarTower {
case 34: {
// clientData
input.readString(clientData);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 50) {
break;
@@ -18594,7 +18818,7 @@ public final class PublicStarTower {
case 50: {
// damages [packed=true]
input.readPackedUInt32(damages, tag);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 42) {
break;
@@ -18603,7 +18827,7 @@ public final class PublicStarTower {
case 42: {
// fateCardUsage
tag = input.readRepeatedMessage(fateCardUsage, tag);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
if (tag != 0) {
break;
}
@@ -18621,7 +18845,7 @@ public final class PublicStarTower {
case 48: {
// damages [packed=false]
tag = input.readRepeatedUInt32(damages, tag);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
}
}
@@ -18641,15 +18865,18 @@ public final class PublicStarTower {
output.writeUInt32(FieldNames.dateLen, dateLen);
}
if ((bitField0_ & 0x00000008) != 0) {
- output.writeMessage(FieldNames.events, events);
+ output.writeUInt32(FieldNames.dataVersion, dataVersion);
}
if ((bitField0_ & 0x00000010) != 0) {
- output.writeString(FieldNames.clientData, clientData);
+ output.writeMessage(FieldNames.events, events);
}
if ((bitField0_ & 0x00000020) != 0) {
- output.writeRepeatedUInt32(FieldNames.damages, damages);
+ output.writeString(FieldNames.clientData, clientData);
}
if ((bitField0_ & 0x00000040) != 0) {
+ output.writeRepeatedUInt32(FieldNames.damages, damages);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
output.writeRepeatedMessage(FieldNames.fateCardUsage, fateCardUsage);
}
output.endObject();
@@ -18695,11 +18922,22 @@ public final class PublicStarTower {
}
break;
}
+ case 538270126: {
+ if (input.isAtField(FieldNames.dataVersion)) {
+ if (!input.trySkipNullValue()) {
+ dataVersion = input.readUInt32();
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case 2087505209: {
if (input.isAtField(FieldNames.events)) {
if (!input.trySkipNullValue()) {
input.readMessage(events);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -18710,7 +18948,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.clientData)) {
if (!input.trySkipNullValue()) {
input.readString(clientData);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
@@ -18721,7 +18959,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.damages)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(damages);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
}
} else {
input.skipUnknownField();
@@ -18732,7 +18970,7 @@ public final class PublicStarTower {
if (input.isAtField(FieldNames.fateCardUsage)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(fateCardUsage);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
}
} else {
input.skipUnknownField();
@@ -18797,6 +19035,8 @@ public final class PublicStarTower {
static final FieldName dateLen = FieldName.forField("DateLen");
+ static final FieldName dataVersion = FieldName.forField("DataVersion");
+
static final FieldName events = FieldName.forField("Events");
static final FieldName clientData = FieldName.forField("ClientData");
diff --git a/src/generated/main/emu/nebula/proto/QuestAssistGroupRewardReceive.java b/src/generated/main/emu/nebula/proto/QuestAssistGroupRewardReceive.java
new file mode 100644
index 0000000..6c3e6da
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/QuestAssistGroupRewardReceive.java
@@ -0,0 +1,619 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.nebula.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.RepeatedByte;
+import us.hebi.quickbuf.RepeatedMessage;
+
+public final class QuestAssistGroupRewardReceive {
+ /**
+ * Protobuf type {@code AssistGroupRewardResp}
+ */
+ public static final class AssistGroupRewardResp extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ */
+ private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ */
+ private final PublicStarTower.StarTowerBuildInfo buildInfo = PublicStarTower.StarTowerBuildInfo.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ */
+ private final RepeatedMessage buildRewards = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
+
+ private AssistGroupRewardResp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code AssistGroupRewardResp}
+ */
+ public static AssistGroupRewardResp newInstance() {
+ return new AssistGroupRewardResp();
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @return whether the change field is set
+ */
+ public boolean hasChange() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @return this
+ */
+ public AssistGroupRewardResp clearChange() {
+ bitField0_ &= ~0x00000001;
+ change.clear();
+ return this;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableChange()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.ChangeInfo getChange() {
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.ChangeInfo getMutableChange() {
+ bitField0_ |= 0x00000001;
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 1;
+ * @param value the change to set
+ * @return this
+ */
+ public AssistGroupRewardResp setChange(final Public.ChangeInfo value) {
+ bitField0_ |= 0x00000001;
+ change.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ * @return whether the buildInfo field is set
+ */
+ public boolean hasBuildInfo() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ * @return this
+ */
+ public AssistGroupRewardResp clearBuildInfo() {
+ bitField0_ &= ~0x00000002;
+ buildInfo.clear();
+ return this;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 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 #getMutableBuildInfo()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public PublicStarTower.StarTowerBuildInfo getBuildInfo() {
+ return buildInfo;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 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 PublicStarTower.StarTowerBuildInfo getMutableBuildInfo() {
+ bitField0_ |= 0x00000002;
+ return buildInfo;
+ }
+
+ /**
+ * optional .StarTowerBuildInfo BuildInfo = 3;
+ * @param value the buildInfo to set
+ * @return this
+ */
+ public AssistGroupRewardResp setBuildInfo(final PublicStarTower.StarTowerBuildInfo value) {
+ bitField0_ |= 0x00000002;
+ buildInfo.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 AssistGroupRewardResp 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 AssistGroupRewardResp addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public AssistGroupRewardResp addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public AssistGroupRewardResp setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @return whether the buildRewards field is set
+ */
+ public boolean hasBuildRewards() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @return this
+ */
+ public AssistGroupRewardResp clearBuildRewards() {
+ bitField0_ &= ~0x00000008;
+ buildRewards.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 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 #getMutableBuildRewards()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessage getBuildRewards() {
+ return buildRewards;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 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 getMutableBuildRewards() {
+ bitField0_ |= 0x00000008;
+ return buildRewards;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @param value the buildRewards to add
+ * @return this
+ */
+ public AssistGroupRewardResp addBuildRewards(final Public.ItemTpl value) {
+ bitField0_ |= 0x00000008;
+ buildRewards.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ItemTpl BuildRewards = 2;
+ * @param values the buildRewards to add
+ * @return this
+ */
+ public AssistGroupRewardResp addAllBuildRewards(final Public.ItemTpl... values) {
+ bitField0_ |= 0x00000008;
+ buildRewards.addAll(values);
+ return this;
+ }
+
+ @Override
+ public AssistGroupRewardResp copyFrom(final AssistGroupRewardResp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ change.copyFrom(other.change);
+ buildInfo.copyFrom(other.buildInfo);
+ nextPackage.copyFrom(other.nextPackage);
+ buildRewards.copyFrom(other.buildRewards);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistGroupRewardResp mergeFrom(final AssistGroupRewardResp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasChange()) {
+ getMutableChange().mergeFrom(other.change);
+ }
+ if (other.hasBuildInfo()) {
+ getMutableBuildInfo().mergeFrom(other.buildInfo);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasBuildRewards()) {
+ getMutableBuildRewards().addAll(other.buildRewards);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistGroupRewardResp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clear();
+ buildInfo.clear();
+ nextPackage.clear();
+ buildRewards.clear();
+ return this;
+ }
+
+ @Override
+ public AssistGroupRewardResp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clearQuick();
+ buildInfo.clearQuick();
+ nextPackage.clear();
+ buildRewards.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof AssistGroupRewardResp)) {
+ return false;
+ }
+ AssistGroupRewardResp other = (AssistGroupRewardResp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasChange() || change.equals(other.change))
+ && (!hasBuildInfo() || buildInfo.equals(other.buildInfo))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasBuildRewards() || buildRewards.equals(other.buildRewards));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 10);
+ output.writeMessageNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 26);
+ output.writeMessageNoTag(buildInfo);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < buildRewards.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(buildRewards.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(buildInfo);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * buildRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buildRewards);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public AssistGroupRewardResp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 10: {
+ // change
+ input.readMessage(change);
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // buildInfo
+ input.readMessage(buildInfo);
+ 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: {
+ // buildRewards
+ tag = input.readRepeatedMessage(buildRewards, 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.writeMessage(FieldNames.change, change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeMessage(FieldNames.buildInfo, buildInfo);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.buildRewards, buildRewards);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public AssistGroupRewardResp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2017198032: {
+ if (input.isAtField(FieldNames.change)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(change);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 602658844: {
+ if (input.isAtField(FieldNames.buildInfo)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(buildInfo);
+ 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 1656054: {
+ if (input.isAtField(FieldNames.buildRewards)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(buildRewards);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public AssistGroupRewardResp clone() {
+ return new AssistGroupRewardResp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static AssistGroupRewardResp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new AssistGroupRewardResp(), data).checkInitialized();
+ }
+
+ public static AssistGroupRewardResp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistGroupRewardResp(), input).checkInitialized();
+ }
+
+ public static AssistGroupRewardResp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistGroupRewardResp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating AssistGroupRewardResp messages
+ */
+ public static MessageFactory getFactory() {
+ return AssistGroupRewardRespFactory.INSTANCE;
+ }
+
+ private enum AssistGroupRewardRespFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public AssistGroupRewardResp create() {
+ return AssistGroupRewardResp.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName change = FieldName.forField("Change");
+
+ static final FieldName buildInfo = FieldName.forField("BuildInfo");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName buildRewards = FieldName.forField("BuildRewards");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/QuestAssistRewardReceive.java b/src/generated/main/emu/nebula/proto/QuestAssistRewardReceive.java
new file mode 100644
index 0000000..42304ae
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/QuestAssistRewardReceive.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 QuestAssistRewardReceive {
+ /**
+ * Protobuf type {@code AssistQuestReceiveReq}
+ */
+ public static final class AssistQuestReceiveReq extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional uint32 Group = 1;
+ */
+ private int group;
+
+ /**
+ * optional uint32 Quest = 2;
+ */
+ private int quest;
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ private AssistQuestReceiveReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code AssistQuestReceiveReq}
+ */
+ public static AssistQuestReceiveReq newInstance() {
+ return new AssistQuestReceiveReq();
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return whether the group field is set
+ */
+ public boolean hasGroup() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return this
+ */
+ public AssistQuestReceiveReq clearGroup() {
+ bitField0_ &= ~0x00000001;
+ group = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @return the group
+ */
+ public int getGroup() {
+ return group;
+ }
+
+ /**
+ * optional uint32 Group = 1;
+ * @param value the group to set
+ * @return this
+ */
+ public AssistQuestReceiveReq setGroup(final int value) {
+ bitField0_ |= 0x00000001;
+ group = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 Quest = 2;
+ * @return whether the quest field is set
+ */
+ public boolean hasQuest() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 Quest = 2;
+ * @return this
+ */
+ public AssistQuestReceiveReq clearQuest() {
+ bitField0_ &= ~0x00000002;
+ quest = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 Quest = 2;
+ * @return the quest
+ */
+ public int getQuest() {
+ return quest;
+ }
+
+ /**
+ * optional uint32 Quest = 2;
+ * @param value the quest to set
+ * @return this
+ */
+ public AssistQuestReceiveReq setQuest(final int value) {
+ bitField0_ |= 0x00000002;
+ quest = 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 AssistQuestReceiveReq 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 AssistQuestReceiveReq addNextPackage(final byte value) {
+ bitField0_ |= 0x00000004;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public AssistQuestReceiveReq addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public AssistQuestReceiveReq setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000004;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ @Override
+ public AssistQuestReceiveReq copyFrom(final AssistQuestReceiveReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ group = other.group;
+ quest = other.quest;
+ nextPackage.copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistQuestReceiveReq mergeFrom(final AssistQuestReceiveReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGroup()) {
+ setGroup(other.group);
+ }
+ if (other.hasQuest()) {
+ setQuest(other.quest);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ return this;
+ }
+
+ @Override
+ public AssistQuestReceiveReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ group = 0;
+ quest = 0;
+ nextPackage.clear();
+ return this;
+ }
+
+ @Override
+ public AssistQuestReceiveReq 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 AssistQuestReceiveReq)) {
+ return false;
+ }
+ AssistQuestReceiveReq other = (AssistQuestReceiveReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGroup() || group == other.group)
+ && (!hasQuest() || quest == other.quest)
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(quest);
+ }
+ 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(group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(quest);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public AssistQuestReceiveReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // group
+ group = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16) {
+ break;
+ }
+ }
+ case 16: {
+ // quest
+ quest = 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.group, group);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.quest, quest);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public AssistQuestReceiveReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 69076575: {
+ if (input.isAtField(FieldNames.group)) {
+ if (!input.trySkipNullValue()) {
+ group = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 78391490: {
+ if (input.isAtField(FieldNames.quest)) {
+ if (!input.trySkipNullValue()) {
+ quest = 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 AssistQuestReceiveReq clone() {
+ return new AssistQuestReceiveReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static AssistQuestReceiveReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new AssistQuestReceiveReq(), data).checkInitialized();
+ }
+
+ public static AssistQuestReceiveReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistQuestReceiveReq(), input).checkInitialized();
+ }
+
+ public static AssistQuestReceiveReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AssistQuestReceiveReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating AssistQuestReceiveReq messages
+ */
+ public static MessageFactory getFactory() {
+ return AssistQuestReceiveReqFactory.INSTANCE;
+ }
+
+ private enum AssistQuestReceiveReqFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public AssistQuestReceiveReq create() {
+ return AssistQuestReceiveReq.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName group = FieldName.forField("Group");
+
+ static final FieldName quest = FieldName.forField("Quest");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/QuestWeeklyActiveRewardRecevie.java b/src/generated/main/emu/nebula/proto/QuestWeeklyActiveRewardRecevie.java
new file mode 100644
index 0000000..e78744d
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/QuestWeeklyActiveRewardRecevie.java
@@ -0,0 +1,530 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.nebula.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.RepeatedByte;
+import us.hebi.quickbuf.RepeatedInt;
+
+public final class QuestWeeklyActiveRewardRecevie {
+ /**
+ * Protobuf type {@code QuestWeeklyActiveRewardReceiveResp}
+ */
+ public static final class QuestWeeklyActiveRewardReceiveResp extends ProtoMessage implements Cloneable {
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * optional .ChangeInfo Change = 2;
+ */
+ private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
+
+ /**
+ * optional bytes NextPackage = 2047;
+ */
+ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
+
+ /**
+ * repeated uint32 ActiveIds = 1;
+ */
+ private final RepeatedInt activeIds = RepeatedInt.newEmptyInstance();
+
+ private QuestWeeklyActiveRewardReceiveResp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code QuestWeeklyActiveRewardReceiveResp}
+ */
+ public static QuestWeeklyActiveRewardReceiveResp newInstance() {
+ return new QuestWeeklyActiveRewardReceiveResp();
+ }
+
+ /**
+ * optional .ChangeInfo Change = 2;
+ * @return whether the change field is set
+ */
+ public boolean hasChange() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 2;
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp clearChange() {
+ bitField0_ &= ~0x00000001;
+ change.clear();
+ return this;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 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 #getMutableChange()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public Public.ChangeInfo getChange() {
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public Public.ChangeInfo getMutableChange() {
+ bitField0_ |= 0x00000001;
+ return change;
+ }
+
+ /**
+ * optional .ChangeInfo Change = 2;
+ * @param value the change to set
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp setChange(final Public.ChangeInfo value) {
+ bitField0_ |= 0x00000001;
+ change.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 QuestWeeklyActiveRewardReceiveResp 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 QuestWeeklyActiveRewardReceiveResp addNextPackage(final byte value) {
+ bitField0_ |= 0x00000002;
+ nextPackage.add(value);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to add
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp addAllNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.addAll(values);
+ return this;
+ }
+
+ /**
+ * optional bytes NextPackage = 2047;
+ * @param values the nextPackage to set
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp setNextPackage(final byte... values) {
+ bitField0_ |= 0x00000002;
+ nextPackage.copyFrom(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 ActiveIds = 1;
+ * @return whether the activeIds field is set
+ */
+ public boolean hasActiveIds() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated uint32 ActiveIds = 1;
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp clearActiveIds() {
+ bitField0_ &= ~0x00000004;
+ activeIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 ActiveIds = 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 #getMutableActiveIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getActiveIds() {
+ return activeIds;
+ }
+
+ /**
+ * repeated uint32 ActiveIds = 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 getMutableActiveIds() {
+ bitField0_ |= 0x00000004;
+ return activeIds;
+ }
+
+ /**
+ * repeated uint32 ActiveIds = 1;
+ * @param value the activeIds to add
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp addActiveIds(final int value) {
+ bitField0_ |= 0x00000004;
+ activeIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 ActiveIds = 1;
+ * @param values the activeIds to add
+ * @return this
+ */
+ public QuestWeeklyActiveRewardReceiveResp addAllActiveIds(final int... values) {
+ bitField0_ |= 0x00000004;
+ activeIds.addAll(values);
+ return this;
+ }
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp copyFrom(
+ final QuestWeeklyActiveRewardReceiveResp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ change.copyFrom(other.change);
+ nextPackage.copyFrom(other.nextPackage);
+ activeIds.copyFrom(other.activeIds);
+ }
+ return this;
+ }
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp mergeFrom(
+ final QuestWeeklyActiveRewardReceiveResp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasChange()) {
+ getMutableChange().mergeFrom(other.change);
+ }
+ if (other.hasNextPackage()) {
+ getMutableNextPackage().copyFrom(other.nextPackage);
+ }
+ if (other.hasActiveIds()) {
+ getMutableActiveIds().addAll(other.activeIds);
+ }
+ return this;
+ }
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clear();
+ nextPackage.clear();
+ activeIds.clear();
+ return this;
+ }
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ change.clearQuick();
+ nextPackage.clear();
+ activeIds.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof QuestWeeklyActiveRewardReceiveResp)) {
+ return false;
+ }
+ QuestWeeklyActiveRewardReceiveResp other = (QuestWeeklyActiveRewardReceiveResp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasChange() || change.equals(other.change))
+ && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
+ && (!hasActiveIds() || activeIds.equals(other.activeIds));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawLittleEndian16((short) 32762);
+ output.writeBytesNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < activeIds.length(); i++) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(activeIds.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * activeIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeIds);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public QuestWeeklyActiveRewardReceiveResp mergeFrom(final ProtoSource input) throws
+ IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 18: {
+ // change
+ input.readMessage(change);
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 16378) {
+ break;
+ }
+ }
+ case 16378: {
+ // nextPackage
+ input.readBytes(nextPackage);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 10) {
+ break;
+ }
+ }
+ case 10: {
+ // activeIds [packed=true]
+ input.readPackedUInt32(activeIds, 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 8: {
+ // activeIds [packed=false]
+ tag = input.readRepeatedUInt32(activeIds, tag);
+ bitField0_ |= 0x00000004;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeMessage(FieldNames.change, change);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedUInt32(FieldNames.activeIds, activeIds);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2017198032: {
+ if (input.isAtField(FieldNames.change)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(change);
+ 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 -2086528590: {
+ if (input.isAtField(FieldNames.activeIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(activeIds);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp clone() {
+ return new QuestWeeklyActiveRewardReceiveResp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static QuestWeeklyActiveRewardReceiveResp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new QuestWeeklyActiveRewardReceiveResp(), data).checkInitialized();
+ }
+
+ public static QuestWeeklyActiveRewardReceiveResp parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new QuestWeeklyActiveRewardReceiveResp(), input).checkInitialized();
+ }
+
+ public static QuestWeeklyActiveRewardReceiveResp parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new QuestWeeklyActiveRewardReceiveResp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating QuestWeeklyActiveRewardReceiveResp messages
+ */
+ public static MessageFactory getFactory() {
+ return QuestWeeklyActiveRewardReceiveRespFactory.INSTANCE;
+ }
+
+ private enum QuestWeeklyActiveRewardReceiveRespFactory implements MessageFactory {
+ INSTANCE;
+
+ @Override
+ public QuestWeeklyActiveRewardReceiveResp create() {
+ return QuestWeeklyActiveRewardReceiveResp.newInstance();
+ }
+ }
+
+ /**
+ * Contains name constants used for serializing JSON
+ */
+ static class FieldNames {
+ static final FieldName change = FieldName.forField("Change");
+
+ static final FieldName nextPackage = FieldName.forField("NextPackage");
+
+ static final FieldName activeIds = FieldName.forField("ActiveIds");
+ }
+ }
+}
diff --git a/src/generated/main/emu/nebula/proto/QuestWeeklyRewardRecevie.java b/src/generated/main/emu/nebula/proto/QuestWeeklyRewardRecevie.java
new file mode 100644
index 0000000..e1dc36b
--- /dev/null
+++ b/src/generated/main/emu/nebula/proto/QuestWeeklyRewardRecevie.java
@@ -0,0 +1,5 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.nebula.proto;
+
+public final class QuestWeeklyRewardRecevie {
+}
diff --git a/src/generated/main/emu/nebula/proto/ScoreBossRank.java b/src/generated/main/emu/nebula/proto/ScoreBossRank.java
index 253c6a9..aaf6230 100644
--- a/src/generated/main/emu/nebula/proto/ScoreBossRank.java
+++ b/src/generated/main/emu/nebula/proto/ScoreBossRank.java
@@ -1262,6 +1262,11 @@ public final class ScoreBossRank {
*/
private int levelScore;
+ /**
+ * optional uint32 LevelId = 4;
+ */
+ private int levelId;
+
/**
* optional bytes NextPackage = 2047;
*/
@@ -1356,12 +1361,49 @@ public final class ScoreBossRank {
return this;
}
+ /**
+ * optional uint32 LevelId = 4;
+ * @return whether the levelId field is set
+ */
+ public boolean hasLevelId() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 LevelId = 4;
+ * @return this
+ */
+ public ScoreBossRankTeam clearLevelId() {
+ bitField0_ &= ~0x00000004;
+ levelId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 LevelId = 4;
+ * @return the levelId
+ */
+ public int getLevelId() {
+ return levelId;
+ }
+
+ /**
+ * optional uint32 LevelId = 4;
+ * @param value the levelId to set
+ * @return this
+ */
+ public ScoreBossRankTeam setLevelId(final int value) {
+ bitField0_ |= 0x00000004;
+ levelId = 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;
}
/**
@@ -1369,7 +1411,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam clearNextPackage() {
- bitField0_ &= ~0x00000004;
+ bitField0_ &= ~0x00000008;
nextPackage.clear();
return this;
}
@@ -1398,7 +1440,7 @@ public final class ScoreBossRank {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
return nextPackage;
}
@@ -1408,7 +1450,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addNextPackage(final byte value) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
nextPackage.add(value);
return this;
}
@@ -1419,7 +1461,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addAllNextPackage(final byte... values) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
nextPackage.addAll(values);
return this;
}
@@ -1430,7 +1472,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam setNextPackage(final byte... values) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
nextPackage.copyFrom(values);
return this;
}
@@ -1440,7 +1482,7 @@ public final class ScoreBossRank {
* @return whether the chars field is set
*/
public boolean hasChars() {
- return (bitField0_ & 0x00000008) != 0;
+ return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -1448,7 +1490,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam clearChars() {
- bitField0_ &= ~0x00000008;
+ bitField0_ &= ~0x00000010;
chars.clear();
return this;
}
@@ -1477,7 +1519,7 @@ public final class ScoreBossRank {
* @return internal storage object for modifications
*/
public RepeatedMessage getMutableChars() {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
return chars;
}
@@ -1487,7 +1529,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addChars(final ScoreBossRankChar value) {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
chars.add(value);
return this;
}
@@ -1498,7 +1540,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addAllChars(final ScoreBossRankChar... values) {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
chars.addAll(values);
return this;
}
@@ -1510,6 +1552,7 @@ public final class ScoreBossRank {
bitField0_ = other.bitField0_;
buildScore = other.buildScore;
levelScore = other.levelScore;
+ levelId = other.levelId;
nextPackage.copyFrom(other.nextPackage);
chars.copyFrom(other.chars);
}
@@ -1528,6 +1571,9 @@ public final class ScoreBossRank {
if (other.hasLevelScore()) {
setLevelScore(other.levelScore);
}
+ if (other.hasLevelId()) {
+ setLevelId(other.levelId);
+ }
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -1546,6 +1592,7 @@ public final class ScoreBossRank {
bitField0_ = 0;
buildScore = 0;
levelScore = 0;
+ levelId = 0;
nextPackage.clear();
chars.clear();
return this;
@@ -1575,6 +1622,7 @@ public final class ScoreBossRank {
return bitField0_ == other.bitField0_
&& (!hasBuildScore() || buildScore == other.buildScore)
&& (!hasLevelScore() || levelScore == other.levelScore)
+ && (!hasLevelId() || levelId == other.levelId)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasChars() || chars.equals(other.chars));
}
@@ -1590,10 +1638,14 @@ public final class ScoreBossRank {
output.writeUInt32NoTag(levelScore);
}
if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 32);
+ output.writeUInt32NoTag(levelId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
- if ((bitField0_ & 0x00000008) != 0) {
+ if ((bitField0_ & 0x00000010) != 0) {
for (int i = 0; i < chars.length(); i++) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(chars.get(i));
@@ -1611,9 +1663,12 @@ public final class ScoreBossRank {
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelScore);
}
if ((bitField0_ & 0x00000004) != 0) {
- size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
}
if ((bitField0_ & 0x00000008) != 0) {
+ size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
}
return size;
@@ -1640,6 +1695,15 @@ public final class ScoreBossRank {
levelScore = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
+ if (tag != 32) {
+ break;
+ }
+ }
+ case 32: {
+ // levelId
+ levelId = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -1647,7 +1711,7 @@ public final class ScoreBossRank {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 18) {
break;
@@ -1656,7 +1720,7 @@ public final class ScoreBossRank {
case 18: {
// chars
tag = input.readRepeatedMessage(chars, tag);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
if (tag != 0) {
break;
}
@@ -1685,9 +1749,12 @@ public final class ScoreBossRank {
output.writeUInt32(FieldNames.levelScore, levelScore);
}
if ((bitField0_ & 0x00000004) != 0) {
- output.writeBytes(FieldNames.nextPackage, nextPackage);
+ output.writeUInt32(FieldNames.levelId, levelId);
}
if ((bitField0_ & 0x00000008) != 0) {
+ output.writeBytes(FieldNames.nextPackage, nextPackage);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
output.writeRepeatedMessage(FieldNames.chars, chars);
}
output.endObject();
@@ -1722,11 +1789,22 @@ public final class ScoreBossRank {
}
break;
}
+ case 1734437791: {
+ if (input.isAtField(FieldNames.levelId)) {
+ if (!input.trySkipNullValue()) {
+ levelId = 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();
@@ -1737,7 +1815,7 @@ public final class ScoreBossRank {
if (input.isAtField(FieldNames.chars)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(chars);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -1801,6 +1879,8 @@ public final class ScoreBossRank {
static final FieldName levelScore = FieldName.forField("LevelScore");
+ static final FieldName levelId = FieldName.forField("LevelId");
+
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName chars = FieldName.forField("Chars");
diff --git a/src/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java
index 5352116..08c5d4d 100644
--- a/src/main/java/emu/nebula/GameConstants.java
+++ b/src/main/java/emu/nebula/GameConstants.java
@@ -6,25 +6,25 @@ import emu.nebula.game.inventory.ItemParam;
import emu.nebula.util.WeightedList;
public class GameConstants {
- public static final String VERSION = "1.3.0";
+ public static final String VERSION = "1.4.0";
public static int DATA_VERSION = 0;
// Set data versions for each region
static {
RegionConfig.getRegion("global")
- .setDataVersion(69);
-
- RegionConfig.getRegion("kr")
- .setDataVersion(76);
-
- RegionConfig.getRegion("jp")
.setDataVersion(72);
+ RegionConfig.getRegion("kr")
+ .setDataVersion(79);
+
+ RegionConfig.getRegion("jp")
+ .setDataVersion(75);
+
RegionConfig.getRegion("tw")
- .setDataVersion(70);
+ .setDataVersion(73);
RegionConfig.getRegion("cn")
- .setDataVersion(70);
+ .setDataVersion(73);
}
public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
diff --git a/src/main/java/emu/nebula/game/activity/ActivityModule.java b/src/main/java/emu/nebula/game/activity/ActivityModule.java
index 3c37072..2952611 100644
--- a/src/main/java/emu/nebula/game/activity/ActivityModule.java
+++ b/src/main/java/emu/nebula/game/activity/ActivityModule.java
@@ -25,13 +25,15 @@ public class ActivityModule extends GameContextModule {
// Tower defense activity
this.activities.add(102001);
- //
- this.activities.add(1010201);
- this.activities.add(1010203);
- this.activities.add(1010204);
+ // Beyond the dream
+ //this.activities.add(1010201);
+ //this.activities.add(1010203);
+ //this.activities.add(1010204);
- //this.activities.add(101002);
- //this.activities.add(101003);
+ // Christmas 2025
+ this.activities.add(2010101);
+ this.activities.add(2010103);
+ this.activities.add(2010104);
}
}
diff --git a/src/main/java/emu/nebula/game/scoreboss/ScoreBossRankEntry.java b/src/main/java/emu/nebula/game/scoreboss/ScoreBossRankEntry.java
index 8da72c0..b4bbea4 100644
--- a/src/main/java/emu/nebula/game/scoreboss/ScoreBossRankEntry.java
+++ b/src/main/java/emu/nebula/game/scoreboss/ScoreBossRankEntry.java
@@ -133,8 +133,16 @@ public class ScoreBossRankEntry implements GameDatabaseObject {
proto.addHonors(HonorInfo.newInstance().setId(id));
}
- for (var team : this.getTeams().values()) {
- proto.addTeams(team.toProto());
+ for (var entry : this.getTeams().entrySet()) {
+ // Get team and level id from entry
+ int levelId = entry.getKey();
+ var team = entry.getValue();
+
+ // Get team proto
+ var info = team.toProto()
+ .setLevelId(levelId);
+
+ proto.addTeams(info);
}
return proto;
diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java
index 1323cde..0ac7cfb 100644
--- a/src/main/java/emu/nebula/net/NetMsgId.java
+++ b/src/main/java/emu/nebula/net/NetMsgId.java
@@ -3,6 +3,7 @@ package emu.nebula.net;
public class NetMsgId {
public static final int none = 0;
+ public static final int assist_add_build_notify = -10047;
public static final int clear_all_activity_levels_notify = -10046;
public static final int clear_all_activity_avg_notify = -10045;
public static final int vs_add_fate_card_notify = -10044;
@@ -286,6 +287,18 @@ public class NetMsgId {
public static final int quest_tour_guide_group_reward_receive_req = 4216;
public static final int quest_tour_guide_group_reward_receive_succeed_ack = 4217;
public static final int quest_tour_guide_group_reward_receive_failed_ack = 4218;
+ public static final int quest_weekly_reward_receive_req = 4219;
+ public static final int quest_weekly_reward_receive_succeed_ack = 4220;
+ public static final int quest_weekly_reward_receive_failed_ack = 4221;
+ public static final int quest_weekly_active_reward_receive_req = 4222;
+ public static final int quest_weekly_active_reward_receive_succeed_ack = 4223;
+ public static final int quest_weekly_active_reward_receive_failed_ack = 4224;
+ public static final int quest_assist_reward_receive_req = 4225;
+ public static final int quest_assist_reward_receive_succeed_ack = 4226;
+ public static final int quest_assist_reward_receive_failed_ack = 4227;
+ public static final int quest_assist_group_reward_receive_req = 4228;
+ public static final int quest_assist_group_reward_receive_succeed_ack = 4229;
+ public static final int quest_assist_group_reward_receive_failed_ack = 4230;
public static final int activity_task_reward_receive_req = 4301;
public static final int activity_task_reward_receive_succeed_ack = 4302;
public static final int activity_task_reward_receive_failed_ack = 4303;
@@ -433,6 +446,7 @@ public class NetMsgId {
public static final int gacha_newbie_info_req = 6022;
public static final int gacha_newbie_info_succeed_ack = 6023;
public static final int gacha_newbie_info_failed_ack = 6024;
+ public static final int gacha_spin_sync_ack = 6025;
public static final int tower_book_fate_card_detail_req = 6101;
public static final int tower_book_fate_card_detail_succeed_ack = 6102;
public static final int tower_book_fate_card_detail_failed_ack = 6103;
@@ -598,6 +612,12 @@ public class NetMsgId {
public static final int vampire_survivor_info_req = 8313;
public static final int vampire_survivor_info_succeed_ack = 8314;
public static final int vampire_survivor_info_failed_ack = 8315;
+ public static final int activity_story_apply_req = 8316;
+ public static final int activity_story_apply_succeed_ack = 8317;
+ public static final int activity_story_apply_failed_ack = 8318;
+ public static final int activity_story_settle_req = 8319;
+ public static final int activity_story_settle_succeed_ack = 8320;
+ public static final int activity_story_settle_failed_ack = 8321;
public static final int mail_list_req = 9001;
public static final int mail_list_succeed_ack = 9002;
public static final int mail_list_failed_ack = 9003;
@@ -637,6 +657,15 @@ public class NetMsgId {
public static final int activity_tower_defense_level_settle_req = 9122;
public static final int activity_tower_defense_level_settle_succeed_ack = 9123;
public static final int activity_tower_defense_level_settle_failed_ack = 9124;
+ public static final int activity_trekker_versus_apply_req = 9125;
+ public static final int activity_trekker_versus_apply_succeed_ack = 9126;
+ public static final int activity_trekker_versus_apply_failed_ack = 9127;
+ public static final int activity_trekker_versus_settle_req = 9128;
+ public static final int activity_trekker_versus_settle_succeed_ack = 9129;
+ public static final int activity_trekker_versus_settle_failed_ack = 9130;
+ public static final int activity_trekker_versus_reward_receive_req = 9131;
+ public static final int activity_trekker_versus_reward_receive_succeed_ack = 9132;
+ public static final int activity_trekker_versus_reward_receive_failed_ack = 9133;
public static final int phone_contacts_info_req = 9201;
public static final int phone_contacts_info_succeed_ack = 9202;
public static final int phone_contacts_info_failed_ack = 9203;
@@ -758,7 +787,6 @@ public class NetMsgId {
public static final int order_collected_notify = 10052;
public static final int activity_end_item_change_notify = 10053;
public static final int item_expired_change_notify = 10054;
- public static final int activity_mining_grids_error_notify = 10055;
public static final int activity_mining_apply_req = 11001;
public static final int activity_mining_apply_succeed_ack = 11002;
public static final int activity_mining_apply_failed_ack = 11003;
diff --git a/src/main/java/emu/nebula/server/handlers/HandlerNpcAffinityBookGetReq.java b/src/main/java/emu/nebula/server/handlers/HandlerNpcAffinityBookGetReq.java
new file mode 100644
index 0000000..bd5c191
--- /dev/null
+++ b/src/main/java/emu/nebula/server/handlers/HandlerNpcAffinityBookGetReq.java
@@ -0,0 +1,21 @@
+package emu.nebula.server.handlers;
+
+import emu.nebula.net.NetHandler;
+import emu.nebula.net.NetMsgId;
+import emu.nebula.proto.NpcAffinityBookGet.NPCAffinityBookGetResp;
+import emu.nebula.net.HandlerId;
+import emu.nebula.net.GameSession;
+
+@HandlerId(NetMsgId.npc_affinity_book_get_req)
+public class HandlerNpcAffinityBookGetReq extends NetHandler {
+
+ @Override
+ public byte[] handle(GameSession session, byte[] message) throws Exception {
+ // Build response
+ var rsp = NPCAffinityBookGetResp.newInstance();
+
+ // Encode and send
+ return session.encodeMsg(NetMsgId.npc_affinity_book_get_succeed_ack, rsp);
+ }
+
+}