diff --git a/src/generated/main/emu/nebula/proto/ActivityDetail.java b/src/generated/main/emu/nebula/proto/ActivityDetail.java index 39197f2..e7d15b4 100644 --- a/src/generated/main/emu/nebula/proto/ActivityDetail.java +++ b/src/generated/main/emu/nebula/proto/ActivityDetail.java @@ -120,6 +120,11 @@ public final class ActivityDetail { */ private final Public.ActivityGDS gDS = Public.ActivityGDS.newInstance(); + /** + * optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21; + */ + private final Public.ActivityHistoryStoryChapter historyStoryChapter = Public.ActivityHistoryStoryChapter.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -1255,12 +1260,69 @@ public final class ActivityDetail { return this; } + /** + * optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21; + * @return whether the historyStoryChapter field is set + */ + public boolean hasHistoryStoryChapter() { + return (bitField0_ & 0x00100000) != 0; + } + + /** + * optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21; + * @return this + */ + public ActivityMsg clearHistoryStoryChapter() { + bitField0_ &= ~0x00100000; + historyStoryChapter.clear(); + return this; + } + + /** + * optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableHistoryStoryChapter()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityHistoryStoryChapter getHistoryStoryChapter() { + return historyStoryChapter; + } + + /** + * optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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.ActivityHistoryStoryChapter getMutableHistoryStoryChapter() { + bitField0_ |= 0x00100000; + return historyStoryChapter; + } + + /** + * optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21; + * @param value the historyStoryChapter to set + * @return this + */ + public ActivityMsg setHistoryStoryChapter(final Public.ActivityHistoryStoryChapter value) { + bitField0_ |= 0x00100000; + historyStoryChapter.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00100000) != 0; + return (bitField0_ & 0x00200000) != 0; } /** @@ -1268,7 +1330,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg clearNextPackage() { - bitField0_ &= ~0x00100000; + bitField0_ &= ~0x00200000; nextPackage.clear(); return this; } @@ -1297,7 +1359,7 @@ public final class ActivityDetail { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return nextPackage; } @@ -1307,7 +1369,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addNextPackage(final byte value) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; nextPackage.add(value); return this; } @@ -1318,7 +1380,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addAllNextPackage(final byte... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; nextPackage.addAll(values); return this; } @@ -1329,7 +1391,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg setNextPackage(final byte... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; nextPackage.copyFrom(values); return this; } @@ -1359,6 +1421,7 @@ public final class ActivityDetail { penguinCard.copyFrom(other.penguinCard); throwGift.copyFrom(other.throwGift); gDS.copyFrom(other.gDS); + historyStoryChapter.copyFrom(other.historyStoryChapter); nextPackage.copyFrom(other.nextPackage); } return this; @@ -1430,6 +1493,9 @@ public final class ActivityDetail { if (other.hasGDS()) { getMutableGDS().mergeFrom(other.gDS); } + if (other.hasHistoryStoryChapter()) { + getMutableHistoryStoryChapter().mergeFrom(other.historyStoryChapter); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1463,6 +1529,7 @@ public final class ActivityDetail { penguinCard.clear(); throwGift.clear(); gDS.clear(); + historyStoryChapter.clear(); nextPackage.clear(); return this; } @@ -1493,6 +1560,7 @@ public final class ActivityDetail { penguinCard.clearQuick(); throwGift.clearQuick(); gDS.clearQuick(); + historyStoryChapter.clearQuick(); nextPackage.clear(); return this; } @@ -1527,6 +1595,7 @@ public final class ActivityDetail { && (!hasPenguinCard() || penguinCard.equals(other.penguinCard)) && (!hasThrowGift() || throwGift.equals(other.throwGift)) && (!hasGDS() || gDS.equals(other.gDS)) + && (!hasHistoryStoryChapter() || historyStoryChapter.equals(other.historyStoryChapter)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -1613,6 +1682,10 @@ public final class ActivityDetail { output.writeMessageNoTag(gDS); } if ((bitField0_ & 0x00100000) != 0) { + output.writeRawLittleEndian16((short) 426); + output.writeMessageNoTag(historyStoryChapter); + } + if ((bitField0_ & 0x00200000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -1682,6 +1755,9 @@ public final class ActivityDetail { size += 2 + ProtoSink.computeMessageSizeNoTag(gDS); } if ((bitField0_ & 0x00100000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(historyStoryChapter); + } + if ((bitField0_ & 0x00200000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -1870,6 +1946,15 @@ public final class ActivityDetail { input.readMessage(gDS); bitField0_ |= 0x00080000; tag = input.readTag(); + if (tag != 170) { + break; + } + } + case 170: { + // historyStoryChapter + input.readMessage(historyStoryChapter); + bitField0_ |= 0x00100000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -1877,7 +1962,7 @@ public final class ActivityDetail { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; tag = input.readTag(); if (tag != 0) { break; @@ -1961,6 +2046,9 @@ public final class ActivityDetail { output.writeMessage(FieldNames.gDS, gDS); } if ((bitField0_ & 0x00100000) != 0) { + output.writeMessage(FieldNames.historyStoryChapter, historyStoryChapter); + } + if ((bitField0_ & 0x00200000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -2193,11 +2281,22 @@ public final class ActivityDetail { } break; } + case -1036267476: { + if (input.isAtField(FieldNames.historyStoryChapter)) { + if (!input.trySkipNullValue()) { + input.readMessage(historyStoryChapter); + bitField0_ |= 0x00100000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; } } else { input.skipUnknownField(); @@ -2296,6 +2395,8 @@ public final class ActivityDetail { static final FieldName gDS = FieldName.forField("GDS"); + static final FieldName historyStoryChapter = FieldName.forField("HistoryStoryChapter"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java b/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java new file mode 100644 index 0000000..ca57b3e --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java @@ -0,0 +1,545 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class ActivityHistoryStoryApply { + /** + * Protobuf type {@code ActivityHistoryStoryApplyReq} + */ + public static final class ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq() { + } + + /** + * @return a new empty instance of {@code ActivityHistoryStoryApplyReq} + */ + public static ActivityHistoryStoryApplyReq newInstance() { + return new ActivityHistoryStoryApplyReq(); + } + + /** + * 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityHistoryStoryApplyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityHistoryStoryApplyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityHistoryStoryApplyReq copyFrom(final ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq mergeFrom(final ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + activityId = 0; + storyId = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq)) { + return false; + } + ActivityHistoryStoryApplyReq other = (ActivityHistoryStoryApplyReq) 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq 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 ActivityHistoryStoryApplyReq clone() { + return new ActivityHistoryStoryApplyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityHistoryStoryApplyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityHistoryStoryApplyReq(), data).checkInitialized(); + } + + public static ActivityHistoryStoryApplyReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStoryApplyReq(), input).checkInitialized(); + } + + public static ActivityHistoryStoryApplyReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStoryApplyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityHistoryStoryApplyReq messages + */ + public static MessageFactory getFactory() { + return ActivityHistoryStoryApplyReqFactory.INSTANCE; + } + + private enum ActivityHistoryStoryApplyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityHistoryStoryApplyReq create() { + return ActivityHistoryStoryApplyReq.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/ActivityHistoryStorySettle.java b/src/generated/main/emu/nebula/proto/ActivityHistoryStorySettle.java new file mode 100644 index 0000000..728796d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityHistoryStorySettle.java @@ -0,0 +1,723 @@ +// 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 ActivityHistoryStorySettle { + /** + * Protobuf type {@code ActivityHistoryStorySettleReq} + */ + public static final class ActivityHistoryStorySettleReq 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(ActivityStorySettleOuterClass.ActivityStorySettle.getFactory()); + + private ActivityHistoryStorySettleReq() { + } + + /** + * @return a new empty instance of {@code ActivityHistoryStorySettleReq} + */ + public static ActivityHistoryStorySettleReq newInstance() { + return new ActivityHistoryStorySettleReq(); + } + + /** + * 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityHistoryStorySettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq addEvidences(final int value) { + bitField0_ |= 0x00000008; + evidences.add(value); + return this; + } + + /** + * repeated uint32 Evidences = 15; + * @param values the evidences to add + * @return this + */ + public ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq addList( + final ActivityStorySettleOuterClass.ActivityStorySettle value) { + bitField0_ |= 0x00000010; + list.add(value); + return this; + } + + /** + * repeated .ActivityStorySettle List = 2; + * @param values the list to add + * @return this + */ + public ActivityHistoryStorySettleReq addAllList( + final ActivityStorySettleOuterClass.ActivityStorySettle... values) { + bitField0_ |= 0x00000010; + list.addAll(values); + return this; + } + + @Override + public ActivityHistoryStorySettleReq copyFrom(final ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq mergeFrom(final ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + events.clear(); + nextPackage.clear(); + evidences.clear(); + list.clear(); + return this; + } + + @Override + public ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq)) { + return false; + } + ActivityHistoryStorySettleReq other = (ActivityHistoryStorySettleReq) 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq 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 ActivityHistoryStorySettleReq clone() { + return new ActivityHistoryStorySettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityHistoryStorySettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityHistoryStorySettleReq(), data).checkInitialized(); + } + + public static ActivityHistoryStorySettleReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStorySettleReq(), input).checkInitialized(); + } + + public static ActivityHistoryStorySettleReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStorySettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityHistoryStorySettleReq messages + */ + public static MessageFactory getFactory() { + return ActivityHistoryStorySettleReqFactory.INSTANCE; + } + + private enum ActivityHistoryStorySettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityHistoryStorySettleReq create() { + return ActivityHistoryStorySettleReq.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"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/PlayerData.java b/src/generated/main/emu/nebula/proto/PlayerData.java index ccec768..cd83f58 100644 --- a/src/generated/main/emu/nebula/proto/PlayerData.java +++ b/src/generated/main/emu/nebula/proto/PlayerData.java @@ -263,6 +263,11 @@ public final class PlayerData { */ private final RepeatedMessage activityHonors = RepeatedMessage.newEmptyInstance(Public.ActivityHonor.getFactory()); + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + */ + private final RepeatedMessage personalityModels = RepeatedMessage.newEmptyInstance(Public.ActivityPersonalityModel.getFactory()); + /** * repeated .HonorInfo Honors = 124; */ @@ -3102,12 +3107,80 @@ public final class PlayerData { return this; } + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + * @return whether the personalityModels field is set + */ + public boolean hasPersonalityModels() { + return (bitField1_ & 0x00010000) != 0; + } + + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + * @return this + */ + public PlayerInfo clearPersonalityModels() { + bitField1_ &= ~0x00010000; + personalityModels.clear(); + return this; + } + + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePersonalityModels()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPersonalityModels() { + return personalityModels; + } + + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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 getMutablePersonalityModels() { + bitField1_ |= 0x00010000; + return personalityModels; + } + + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + * @param value the personalityModels to add + * @return this + */ + public PlayerInfo addPersonalityModels(final Public.ActivityPersonalityModel value) { + bitField1_ |= 0x00010000; + personalityModels.add(value); + return this; + } + + /** + * repeated .ActivityPersonalityModel PersonalityModels = 120; + * @param values the personalityModels to add + * @return this + */ + public PlayerInfo addAllPersonalityModels(final Public.ActivityPersonalityModel... values) { + bitField1_ |= 0x00010000; + personalityModels.addAll(values); + return this; + } + /** * repeated .HonorInfo Honors = 124; * @return whether the honors field is set */ public boolean hasHonors() { - return (bitField1_ & 0x00010000) != 0; + return (bitField1_ & 0x00020000) != 0; } /** @@ -3115,7 +3188,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonors() { - bitField1_ &= ~0x00010000; + bitField1_ &= ~0x00020000; honors.clear(); return this; } @@ -3144,7 +3217,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; return honors; } @@ -3154,7 +3227,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonors(final Public.HonorInfo value) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; honors.add(value); return this; } @@ -3165,7 +3238,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonors(final Public.HonorInfo... values) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; honors.addAll(values); return this; } @@ -3226,6 +3299,7 @@ public final class PlayerData { tutorialLevels.copyFrom(other.tutorialLevels); assists.copyFrom(other.assists); activityHonors.copyFrom(other.activityHonors); + personalityModels.copyFrom(other.personalityModels); honors.copyFrom(other.honors); } return this; @@ -3381,6 +3455,9 @@ public final class PlayerData { if (other.hasActivityHonors()) { getMutableActivityHonors().addAll(other.activityHonors); } + if (other.hasPersonalityModels()) { + getMutablePersonalityModels().addAll(other.personalityModels); + } if (other.hasHonors()) { getMutableHonors().addAll(other.honors); } @@ -3443,6 +3520,7 @@ public final class PlayerData { tutorialLevels.clear(); assists.clear(); activityHonors.clear(); + personalityModels.clear(); honors.clear(); return this; } @@ -3492,6 +3570,7 @@ public final class PlayerData { tutorialLevels.clearQuick(); assists.clearQuick(); activityHonors.clearQuick(); + personalityModels.clearQuick(); honors.clearQuick(); return this; } @@ -3555,6 +3634,7 @@ public final class PlayerData { && (!hasTutorialLevels() || tutorialLevels.equals(other.tutorialLevels)) && (!hasAssists() || assists.equals(other.assists)) && (!hasActivityHonors() || activityHonors.equals(other.activityHonors)) + && (!hasPersonalityModels() || personalityModels.equals(other.personalityModels)) && (!hasHonors() || honors.equals(other.honors)); } @@ -3801,6 +3881,12 @@ public final class PlayerData { } } if ((bitField1_ & 0x00010000) != 0) { + for (int i = 0; i < personalityModels.length(); i++) { + output.writeRawLittleEndian16((short) 1986); + output.writeMessageNoTag(personalityModels.get(i)); + } + } + if ((bitField1_ & 0x00020000) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawLittleEndian16((short) 2018); output.writeMessageNoTag(honors.get(i)); @@ -3956,6 +4042,9 @@ public final class PlayerData { size += (2 * activityHonors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityHonors); } if ((bitField1_ & 0x00010000) != 0) { + size += (2 * personalityModels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personalityModels); + } + if ((bitField1_ & 0x00020000) != 0) { size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } return size; @@ -4378,6 +4467,14 @@ public final class PlayerData { // activityHonors tag = input.readRepeatedMessage(activityHonors, tag); bitField1_ |= 0x00008000; + if (tag != 962) { + break; + } + } + case 962: { + // personalityModels + tag = input.readRepeatedMessage(personalityModels, tag); + bitField1_ |= 0x00010000; if (tag != 994) { break; } @@ -4385,7 +4482,7 @@ public final class PlayerData { case 994: { // honors tag = input.readRepeatedMessage(honors, tag); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; if (tag != 0) { break; } @@ -4588,6 +4685,9 @@ public final class PlayerData { output.writeRepeatedMessage(FieldNames.activityHonors, activityHonors); } if ((bitField1_ & 0x00010000) != 0) { + output.writeRepeatedMessage(FieldNames.personalityModels, personalityModels); + } + if ((bitField1_ & 0x00020000) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } output.endObject(); @@ -5128,11 +5228,22 @@ public final class PlayerData { } break; } + case 1297962584: { + if (input.isAtField(FieldNames.personalityModels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(personalityModels); + bitField1_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2127770263: { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -5287,6 +5398,8 @@ public final class PlayerData { static final FieldName activityHonors = FieldName.forField("ActivityHonors"); + static final FieldName personalityModels = FieldName.forField("PersonalityModels"); + static final FieldName honors = FieldName.forField("Honors"); } } diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java index 5b128ed..a201bdb 100644 --- a/src/generated/main/emu/nebula/proto/Public.java +++ b/src/generated/main/emu/nebula/proto/Public.java @@ -84301,4 +84301,1968 @@ public final class Public { static final FieldName nextPackage = FieldName.forField("NextPackage"); } } + + /** + * Protobuf type {@code ActivityPersonalityModel} + */ + public static final class ActivityPersonalityModel extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ChapterId = 1; + */ + private int chapterId; + + /** + * optional uint32 A = 2; + */ + private int a; + + /** + * optional uint32 B = 3; + */ + private int b; + + /** + * optional uint32 C = 4; + */ + private int c; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityPersonalityModel() { + } + + /** + * @return a new empty instance of {@code ActivityPersonalityModel} + */ + public static ActivityPersonalityModel newInstance() { + return new ActivityPersonalityModel(); + } + + /** + * optional uint32 ChapterId = 1; + * @return whether the chapterId field is set + */ + public boolean hasChapterId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ChapterId = 1; + * @return this + */ + public ActivityPersonalityModel clearChapterId() { + bitField0_ &= ~0x00000001; + chapterId = 0; + return this; + } + + /** + * optional uint32 ChapterId = 1; + * @return the chapterId + */ + public int getChapterId() { + return chapterId; + } + + /** + * optional uint32 ChapterId = 1; + * @param value the chapterId to set + * @return this + */ + public ActivityPersonalityModel setChapterId(final int value) { + bitField0_ |= 0x00000001; + chapterId = value; + return this; + } + + /** + * optional uint32 A = 2; + * @return whether the a field is set + */ + public boolean hasA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 A = 2; + * @return this + */ + public ActivityPersonalityModel clearA() { + bitField0_ &= ~0x00000002; + a = 0; + return this; + } + + /** + * optional uint32 A = 2; + * @return the a + */ + public int getA() { + return a; + } + + /** + * optional uint32 A = 2; + * @param value the a to set + * @return this + */ + public ActivityPersonalityModel setA(final int value) { + bitField0_ |= 0x00000002; + a = value; + return this; + } + + /** + * optional uint32 B = 3; + * @return whether the b field is set + */ + public boolean hasB() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 B = 3; + * @return this + */ + public ActivityPersonalityModel clearB() { + bitField0_ &= ~0x00000004; + b = 0; + return this; + } + + /** + * optional uint32 B = 3; + * @return the b + */ + public int getB() { + return b; + } + + /** + * optional uint32 B = 3; + * @param value the b to set + * @return this + */ + public ActivityPersonalityModel setB(final int value) { + bitField0_ |= 0x00000004; + b = value; + return this; + } + + /** + * optional uint32 C = 4; + * @return whether the c field is set + */ + public boolean hasC() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 C = 4; + * @return this + */ + public ActivityPersonalityModel clearC() { + bitField0_ &= ~0x00000008; + c = 0; + return this; + } + + /** + * optional uint32 C = 4; + * @return the c + */ + public int getC() { + return c; + } + + /** + * optional uint32 C = 4; + * @param value the c to set + * @return this + */ + public ActivityPersonalityModel setC(final int value) { + bitField0_ |= 0x00000008; + c = 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 ActivityPersonalityModel 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 ActivityPersonalityModel addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityPersonalityModel addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityPersonalityModel setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityPersonalityModel copyFrom(final ActivityPersonalityModel other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + chapterId = other.chapterId; + a = other.a; + b = other.b; + c = other.c; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPersonalityModel mergeFrom(final ActivityPersonalityModel other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChapterId()) { + setChapterId(other.chapterId); + } + if (other.hasA()) { + setA(other.a); + } + if (other.hasB()) { + setB(other.b); + } + if (other.hasC()) { + setC(other.c); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityPersonalityModel clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chapterId = 0; + a = 0; + b = 0; + c = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityPersonalityModel 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 ActivityPersonalityModel)) { + return false; + } + ActivityPersonalityModel other = (ActivityPersonalityModel) o; + return bitField0_ == other.bitField0_ + && (!hasChapterId() || chapterId == other.chapterId) + && (!hasA() || a == other.a) + && (!hasB() || b == other.b) + && (!hasC() || c == other.c) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(a); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(b); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(c); + } + 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(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(a); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(b); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(c); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityPersonalityModel mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // chapterId + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // a + a = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // b + b = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // c + c = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.chapterId, chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.a, a); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.b, b); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.c, c); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityPersonalityModel mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -766458328: { + if (input.isAtField(FieldNames.chapterId)) { + if (!input.trySkipNullValue()) { + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65: { + if (input.isAtField(FieldNames.a)) { + if (!input.trySkipNullValue()) { + a = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 66: { + if (input.isAtField(FieldNames.b)) { + if (!input.trySkipNullValue()) { + b = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 67: { + if (input.isAtField(FieldNames.c)) { + if (!input.trySkipNullValue()) { + c = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityPersonalityModel clone() { + return new ActivityPersonalityModel().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityPersonalityModel parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityPersonalityModel(), data).checkInitialized(); + } + + public static ActivityPersonalityModel parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityPersonalityModel(), input).checkInitialized(); + } + + public static ActivityPersonalityModel parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityPersonalityModel(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityPersonalityModel messages + */ + public static MessageFactory getFactory() { + return ActivityPersonalityModelFactory.INSTANCE; + } + + private enum ActivityPersonalityModelFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityPersonalityModel create() { + return ActivityPersonalityModel.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName chapterId = FieldName.forField("ChapterId"); + + static final FieldName a = FieldName.forField("A"); + + static final FieldName b = FieldName.forField("B"); + + static final FieldName c = FieldName.forField("C"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityHistoryStory} + */ + public static final class ActivityHistoryStory extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional bool Receive = 4; + */ + private boolean receive; + + /** + * 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 ActivityHistoryStory() { + } + + /** + * @return a new empty instance of {@code ActivityHistoryStory} + */ + public static ActivityHistoryStory newInstance() { + return new ActivityHistoryStory(); + } + + /** + * 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 ActivityHistoryStory 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 ActivityHistoryStory setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional bool Receive = 4; + * @return whether the receive field is set + */ + public boolean hasReceive() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Receive = 4; + * @return this + */ + public ActivityHistoryStory clearReceive() { + bitField0_ &= ~0x00000002; + receive = false; + return this; + } + + /** + * optional bool Receive = 4; + * @return the receive + */ + public boolean getReceive() { + return receive; + } + + /** + * optional bool Receive = 4; + * @param value the receive to set + * @return this + */ + public ActivityHistoryStory setReceive(final boolean value) { + bitField0_ |= 0x00000002; + receive = 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 ActivityHistoryStory 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 ActivityHistoryStory addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityHistoryStory addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityHistoryStory setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityStoryChoice Major = 2; + * @return whether the major field is set + */ + public boolean hasMajor() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ActivityStoryChoice Major = 2; + * @return this + */ + public ActivityHistoryStory clearMajor() { + bitField0_ &= ~0x00000008; + 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_ |= 0x00000008; + return major; + } + + /** + * repeated .ActivityStoryChoice Major = 2; + * @param value the major to add + * @return this + */ + public ActivityHistoryStory addMajor(final ActivityStoryChoice value) { + bitField0_ |= 0x00000008; + major.add(value); + return this; + } + + /** + * repeated .ActivityStoryChoice Major = 2; + * @param values the major to add + * @return this + */ + public ActivityHistoryStory addAllMajor(final ActivityStoryChoice... values) { + bitField0_ |= 0x00000008; + major.addAll(values); + return this; + } + + /** + * repeated .ActivityStoryChoice Personality = 3; + * @return whether the personality field is set + */ + public boolean hasPersonality() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .ActivityStoryChoice Personality = 3; + * @return this + */ + public ActivityHistoryStory clearPersonality() { + bitField0_ &= ~0x00000010; + 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_ |= 0x00000010; + return personality; + } + + /** + * repeated .ActivityStoryChoice Personality = 3; + * @param value the personality to add + * @return this + */ + public ActivityHistoryStory addPersonality(final ActivityStoryChoice value) { + bitField0_ |= 0x00000010; + personality.add(value); + return this; + } + + /** + * repeated .ActivityStoryChoice Personality = 3; + * @param values the personality to add + * @return this + */ + public ActivityHistoryStory addAllPersonality(final ActivityStoryChoice... values) { + bitField0_ |= 0x00000010; + personality.addAll(values); + return this; + } + + @Override + public ActivityHistoryStory copyFrom(final ActivityHistoryStory other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + receive = other.receive; + nextPackage.copyFrom(other.nextPackage); + major.copyFrom(other.major); + personality.copyFrom(other.personality); + } + return this; + } + + @Override + public ActivityHistoryStory mergeFrom(final ActivityHistoryStory other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasReceive()) { + setReceive(other.receive); + } + 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 ActivityHistoryStory clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + receive = false; + nextPackage.clear(); + major.clear(); + personality.clear(); + return this; + } + + @Override + public ActivityHistoryStory 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 ActivityHistoryStory)) { + return false; + } + ActivityHistoryStory other = (ActivityHistoryStory) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasReceive() || receive == other.receive) + && (!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.writeRawByte((byte) 32); + output.writeBoolNoTag(receive); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < major.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(major.get(i)); + } + } + if ((bitField0_ & 0x00000010) != 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; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * major.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(major); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * personality.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personality); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityHistoryStory 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 != 32) { + break; + } + } + case 32: { + // receive + receive = input.readBool(); + 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: { + // major + tag = input.readRepeatedMessage(major, tag); + bitField0_ |= 0x00000008; + if (tag != 26) { + break; + } + } + case 26: { + // personality + tag = input.readRepeatedMessage(personality, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.receive, receive); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.major, major); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.personality, personality); + } + output.endObject(); + } + + @Override + public ActivityHistoryStory 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 -1548023101: { + if (input.isAtField(FieldNames.receive)) { + if (!input.trySkipNullValue()) { + receive = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 74106265: { + if (input.isAtField(FieldNames.major)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(major); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1243902542: { + if (input.isAtField(FieldNames.personality)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(personality); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityHistoryStory clone() { + return new ActivityHistoryStory().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityHistoryStory parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityHistoryStory(), data).checkInitialized(); + } + + public static ActivityHistoryStory parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStory(), input).checkInitialized(); + } + + public static ActivityHistoryStory parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStory(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityHistoryStory messages + */ + public static MessageFactory getFactory() { + return ActivityHistoryStoryFactory.INSTANCE; + } + + private enum ActivityHistoryStoryFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityHistoryStory create() { + return ActivityHistoryStory.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName receive = FieldName.forField("Receive"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName major = FieldName.forField("Major"); + + static final FieldName personality = FieldName.forField("Personality"); + } + } + + /** + * Protobuf type {@code ActivityHistoryStoryChapter} + */ + public static final class ActivityHistoryStoryChapter extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 2; + */ + private long buildId; + + /** + * optional uint32 ChapterId = 1; + */ + private int chapterId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Evidences = 3; + */ + private final RepeatedInt evidences = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ActivityHistoryStory Stories = 4; + */ + private final RepeatedMessage stories = RepeatedMessage.newEmptyInstance(ActivityHistoryStory.getFactory()); + + private ActivityHistoryStoryChapter() { + } + + /** + * @return a new empty instance of {@code ActivityHistoryStoryChapter} + */ + public static ActivityHistoryStoryChapter newInstance() { + return new ActivityHistoryStoryChapter(); + } + + /** + * 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 ActivityHistoryStoryChapter 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 ActivityHistoryStoryChapter setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional uint32 ChapterId = 1; + * @return whether the chapterId field is set + */ + public boolean hasChapterId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ChapterId = 1; + * @return this + */ + public ActivityHistoryStoryChapter clearChapterId() { + bitField0_ &= ~0x00000002; + chapterId = 0; + return this; + } + + /** + * optional uint32 ChapterId = 1; + * @return the chapterId + */ + public int getChapterId() { + return chapterId; + } + + /** + * optional uint32 ChapterId = 1; + * @param value the chapterId to set + * @return this + */ + public ActivityHistoryStoryChapter setChapterId(final int value) { + bitField0_ |= 0x00000002; + chapterId = 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 ActivityHistoryStoryChapter 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 ActivityHistoryStoryChapter addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityHistoryStoryChapter addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityHistoryStoryChapter setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Evidences = 3; + * @return whether the evidences field is set + */ + public boolean hasEvidences() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 Evidences = 3; + * @return this + */ + public ActivityHistoryStoryChapter clearEvidences() { + bitField0_ &= ~0x00000008; + evidences.clear(); + return this; + } + + /** + * repeated uint32 Evidences = 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 #getMutableEvidences()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getEvidences() { + return evidences; + } + + /** + * repeated uint32 Evidences = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableEvidences() { + bitField0_ |= 0x00000008; + return evidences; + } + + /** + * repeated uint32 Evidences = 3; + * @param value the evidences to add + * @return this + */ + public ActivityHistoryStoryChapter addEvidences(final int value) { + bitField0_ |= 0x00000008; + evidences.add(value); + return this; + } + + /** + * repeated uint32 Evidences = 3; + * @param values the evidences to add + * @return this + */ + public ActivityHistoryStoryChapter addAllEvidences(final int... values) { + bitField0_ |= 0x00000008; + evidences.addAll(values); + return this; + } + + /** + * repeated .ActivityHistoryStory Stories = 4; + * @return whether the stories field is set + */ + public boolean hasStories() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .ActivityHistoryStory Stories = 4; + * @return this + */ + public ActivityHistoryStoryChapter clearStories() { + bitField0_ &= ~0x00000010; + stories.clear(); + return this; + } + + /** + * repeated .ActivityHistoryStory Stories = 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 #getMutableStories()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getStories() { + return stories; + } + + /** + * repeated .ActivityHistoryStory Stories = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableStories() { + bitField0_ |= 0x00000010; + return stories; + } + + /** + * repeated .ActivityHistoryStory Stories = 4; + * @param value the stories to add + * @return this + */ + public ActivityHistoryStoryChapter addStories(final ActivityHistoryStory value) { + bitField0_ |= 0x00000010; + stories.add(value); + return this; + } + + /** + * repeated .ActivityHistoryStory Stories = 4; + * @param values the stories to add + * @return this + */ + public ActivityHistoryStoryChapter addAllStories(final ActivityHistoryStory... values) { + bitField0_ |= 0x00000010; + stories.addAll(values); + return this; + } + + @Override + public ActivityHistoryStoryChapter copyFrom(final ActivityHistoryStoryChapter other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + chapterId = other.chapterId; + nextPackage.copyFrom(other.nextPackage); + evidences.copyFrom(other.evidences); + stories.copyFrom(other.stories); + } + return this; + } + + @Override + public ActivityHistoryStoryChapter mergeFrom(final ActivityHistoryStoryChapter other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasChapterId()) { + setChapterId(other.chapterId); + } + 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 ActivityHistoryStoryChapter clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + chapterId = 0; + nextPackage.clear(); + evidences.clear(); + stories.clear(); + return this; + } + + @Override + public ActivityHistoryStoryChapter 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 ActivityHistoryStoryChapter)) { + return false; + } + ActivityHistoryStoryChapter other = (ActivityHistoryStoryChapter) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasChapterId() || chapterId == other.chapterId) + && (!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.writeRawByte((byte) 8); + output.writeUInt32NoTag(chapterId); + } + 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) 24); + output.writeUInt32NoTag(evidences.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < stories.length(); i++) { + output.writeRawByte((byte) 34); + 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 += 1 + ProtoSink.computeUInt32SizeNoTag(chapterId); + } + 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 * stories.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(stories); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityHistoryStoryChapter mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // chapterId + chapterId = input.readUInt32(); + 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: { + // evidences [packed=true] + input.readPackedUInt32(evidences, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // stories + tag = input.readRepeatedMessage(stories, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // 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.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.chapterId, chapterId); + } + 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.stories, stories); + } + output.endObject(); + } + + @Override + public ActivityHistoryStoryChapter 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 -766458328: { + if (input.isAtField(FieldNames.chapterId)) { + if (!input.trySkipNullValue()) { + chapterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 991055068: { + if (input.isAtField(FieldNames.evidences)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(evidences); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -219613133: { + if (input.isAtField(FieldNames.stories)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(stories); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityHistoryStoryChapter clone() { + return new ActivityHistoryStoryChapter().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityHistoryStoryChapter parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityHistoryStoryChapter(), data).checkInitialized(); + } + + public static ActivityHistoryStoryChapter parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStoryChapter(), input).checkInitialized(); + } + + public static ActivityHistoryStoryChapter parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityHistoryStoryChapter(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityHistoryStoryChapter messages + */ + public static MessageFactory getFactory() { + return ActivityHistoryStoryChapterFactory.INSTANCE; + } + + private enum ActivityHistoryStoryChapterFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityHistoryStoryChapter create() { + return ActivityHistoryStoryChapter.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName chapterId = FieldName.forField("ChapterId"); + + 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/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java index 0cff02e..2f17e0a 100644 --- a/src/main/java/emu/nebula/GameConstants.java +++ b/src/main/java/emu/nebula/GameConstants.java @@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap; import emu.nebula.util.WeightedList; public class GameConstants { - public static final String VERSION = "1.9.0"; + public static final String VERSION = "1.11.0"; public static int DATA_VERSION = 0; public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); diff --git a/src/main/java/emu/nebula/game/achievement/AchievementCondition.java b/src/main/java/emu/nebula/game/achievement/AchievementCondition.java index c4c152f..a15243d 100644 --- a/src/main/java/emu/nebula/game/achievement/AchievementCondition.java +++ b/src/main/java/emu/nebula/game/achievement/AchievementCondition.java @@ -148,12 +148,11 @@ public enum AchievementCondition { } } - AchievementCondition(int value) { + private AchievementCondition(int value) { this.value = value; } public static AchievementCondition getByValue(int value) { return map.get(value); } - } diff --git a/src/main/java/emu/nebula/game/activity/ActivityType.java b/src/main/java/emu/nebula/game/activity/ActivityType.java index 7996c42..3c8744d 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityType.java +++ b/src/main/java/emu/nebula/game/activity/ActivityType.java @@ -26,7 +26,8 @@ public enum ActivityType { PenguinCard (18), ThrowGift (19), GoldenSpy (20), - Double (21); + Double (21), + HistoryStory (22); @Getter private final int value; diff --git a/src/main/java/emu/nebula/game/quest/QuestCondition.java b/src/main/java/emu/nebula/game/quest/QuestCondition.java index 6d340a4..fb3f2c1 100644 --- a/src/main/java/emu/nebula/game/quest/QuestCondition.java +++ b/src/main/java/emu/nebula/game/quest/QuestCondition.java @@ -148,12 +148,11 @@ public enum QuestCondition { } } - QuestCondition(int value) { + private QuestCondition(int value) { this.value = value; } public static QuestCondition getByValue(int value) { return map.get(value); } - } diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java index a1039d4..ea02184 100644 --- a/src/main/java/emu/nebula/net/NetMsgId.java +++ b/src/main/java/emu/nebula/net/NetMsgId.java @@ -688,6 +688,12 @@ public class NetMsgId { public static final int player_last_read_update_req = 8325; public static final int player_last_read_update_succeed_ack = 8326; public static final int player_last_read_update_failed_ack = 8327; + public static final int activity_history_story_apply_req = 8328; + public static final int activity_history_story_apply_succeed_ack = 8329; + public static final int activity_history_story_apply_failed_ack = 8330; + public static final int activity_history_story_settle_req = 8331; + public static final int activity_history_story_settle_succeed_ack = 8332; + public static final int activity_history_story_settle_failed_ack = 8333; public static final int activity_penguin_card_level_settle_req = 8401; public static final int activity_penguin_card_level_settle_succeed_ack = 8402; public static final int activity_penguin_card_level_settle_failed_ack = 8403; diff --git a/src/main/resources/versions.json b/src/main/resources/versions.json index 305fdfe..7c6a083 100644 --- a/src/main/resources/versions.json +++ b/src/main/resources/versions.json @@ -1,7 +1,7 @@ { - "global": 109, - "kr": 114, - "jp": 114, - "tw": 120, - "cn": 110 + "global": 113, + "kr": 118, + "jp": 118, + "tw": 124, + "cn": 114 } \ No newline at end of file