mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Update to support game version 1.11.0.*
This commit is contained in:
@@ -120,6 +120,11 @@ public final class ActivityDetail {
|
||||
*/
|
||||
private final Public.ActivityGDS gDS = Public.ActivityGDS.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21;</code>
|
||||
*/
|
||||
private final Public.ActivityHistoryStoryChapter historyStoryChapter = Public.ActivityHistoryStoryChapter.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
@@ -1255,12 +1260,69 @@ public final class ActivityDetail {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21;</code>
|
||||
* @return whether the historyStoryChapter field is set
|
||||
*/
|
||||
public boolean hasHistoryStoryChapter() {
|
||||
return (bitField0_ & 0x00100000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearHistoryStoryChapter() {
|
||||
bitField0_ &= ~0x00100000;
|
||||
historyStoryChapter.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21;</code>
|
||||
*
|
||||
* This method returns 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityHistoryStoryChapter HistoryStoryChapter = 21;</code>
|
||||
* @param value the historyStoryChapter to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setHistoryStoryChapter(final Public.ActivityHistoryStoryChapter value) {
|
||||
bitField0_ |= 0x00100000;
|
||||
historyStoryChapter.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<ActivityHistoryStoryApplyReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 3;</code>
|
||||
*/
|
||||
private long buildId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StoryId = 2;</code>
|
||||
*/
|
||||
private int storyId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private ActivityHistoryStoryApplyReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivityHistoryStoryApplyReq}
|
||||
*/
|
||||
public static ActivityHistoryStoryApplyReq newInstance() {
|
||||
return new ActivityHistoryStoryApplyReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 3;</code>
|
||||
* @return whether the buildId field is set
|
||||
*/
|
||||
public boolean hasBuildId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq clearBuildId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
buildId = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 3;</code>
|
||||
* @return the buildId
|
||||
*/
|
||||
public long getBuildId() {
|
||||
return buildId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 3;</code>
|
||||
* @param value the buildId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq setBuildId(final long value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
buildId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return whether the activityId field is set
|
||||
*/
|
||||
public boolean hasActivityId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq clearActivityId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
activityId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return the activityId
|
||||
*/
|
||||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @param value the activityId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StoryId = 2;</code>
|
||||
* @return whether the storyId field is set
|
||||
*/
|
||||
public boolean hasStoryId() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StoryId = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq clearStoryId() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
storyId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StoryId = 2;</code>
|
||||
* @return the storyId
|
||||
*/
|
||||
public int getStoryId() {
|
||||
return storyId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StoryId = 2;</code>
|
||||
* @param value the storyId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq setStoryId(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
storyId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*
|
||||
* This method returns 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStoryApplyReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @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<ActivityHistoryStoryApplyReq> getFactory() {
|
||||
return ActivityHistoryStoryApplyReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivityHistoryStoryApplyReqFactory implements MessageFactory<ActivityHistoryStoryApplyReq> {
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<ActivityHistoryStorySettleReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 14;</code>
|
||||
*/
|
||||
private final Public.Events events = Public.Events.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
*/
|
||||
private final RepeatedInt evidences = RepeatedInt.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
*/
|
||||
private final RepeatedMessage<ActivityStorySettleOuterClass.ActivityStorySettle> list = RepeatedMessage.newEmptyInstance(ActivityStorySettleOuterClass.ActivityStorySettle.getFactory());
|
||||
|
||||
private ActivityHistoryStorySettleReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivityHistoryStorySettleReq}
|
||||
*/
|
||||
public static ActivityHistoryStorySettleReq newInstance() {
|
||||
return new ActivityHistoryStorySettleReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return whether the activityId field is set
|
||||
*/
|
||||
public boolean hasActivityId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq clearActivityId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
activityId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return the activityId
|
||||
*/
|
||||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @param value the activityId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 14;</code>
|
||||
* @return whether the events field is set
|
||||
*/
|
||||
public boolean hasEvents() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 14;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq clearEvents() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
events.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 14;</code>
|
||||
*
|
||||
* This method returns 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 14;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 14;</code>
|
||||
* @param value the events to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq setEvents(final Public.Events value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
events.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*
|
||||
* This method returns 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
* @return whether the evidences field is set
|
||||
*/
|
||||
public boolean hasEvidences() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq clearEvidences() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
evidences.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
*
|
||||
* This method returns 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
* @param value the evidences to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq addEvidences(final int value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
evidences.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 Evidences = 15;</code>
|
||||
* @param values the evidences to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq addAllEvidences(final int... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
evidences.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
* @return whether the list field is set
|
||||
*/
|
||||
public boolean hasList() {
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq clearList() {
|
||||
bitField0_ &= ~0x00000010;
|
||||
list.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
*
|
||||
* This method returns 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<ActivityStorySettleOuterClass.ActivityStorySettle> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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<ActivityStorySettleOuterClass.ActivityStorySettle> getMutableList() {
|
||||
bitField0_ |= 0x00000010;
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
* @param value the list to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityHistoryStorySettleReq addList(
|
||||
final ActivityStorySettleOuterClass.ActivityStorySettle value) {
|
||||
bitField0_ |= 0x00000010;
|
||||
list.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityStorySettle List = 2;</code>
|
||||
* @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<ActivityHistoryStorySettleReq> getFactory() {
|
||||
return ActivityHistoryStorySettleReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivityHistoryStorySettleReqFactory implements MessageFactory<ActivityHistoryStorySettleReq> {
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -263,6 +263,11 @@ public final class PlayerData {
|
||||
*/
|
||||
private final RepeatedMessage<Public.ActivityHonor> activityHonors = RepeatedMessage.newEmptyInstance(Public.ActivityHonor.getFactory());
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
*/
|
||||
private final RepeatedMessage<Public.ActivityPersonalityModel> personalityModels = RepeatedMessage.newEmptyInstance(Public.ActivityPersonalityModel.getFactory());
|
||||
|
||||
/**
|
||||
* <code>repeated .HonorInfo Honors = 124;</code>
|
||||
*/
|
||||
@@ -3102,12 +3107,80 @@ public final class PlayerData {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
* @return whether the personalityModels field is set
|
||||
*/
|
||||
public boolean hasPersonalityModels() {
|
||||
return (bitField1_ & 0x00010000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
* @return this
|
||||
*/
|
||||
public PlayerInfo clearPersonalityModels() {
|
||||
bitField1_ &= ~0x00010000;
|
||||
personalityModels.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
*
|
||||
* This method returns 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<Public.ActivityPersonalityModel> getPersonalityModels() {
|
||||
return personalityModels;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of 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<Public.ActivityPersonalityModel> getMutablePersonalityModels() {
|
||||
bitField1_ |= 0x00010000;
|
||||
return personalityModels;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
* @param value the personalityModels to add
|
||||
* @return this
|
||||
*/
|
||||
public PlayerInfo addPersonalityModels(final Public.ActivityPersonalityModel value) {
|
||||
bitField1_ |= 0x00010000;
|
||||
personalityModels.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityPersonalityModel PersonalityModels = 120;</code>
|
||||
* @param values the personalityModels to add
|
||||
* @return this
|
||||
*/
|
||||
public PlayerInfo addAllPersonalityModels(final Public.ActivityPersonalityModel... values) {
|
||||
bitField1_ |= 0x00010000;
|
||||
personalityModels.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .HonorInfo Honors = 124;</code>
|
||||
* @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<Public.HonorInfo> 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");
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@ public enum ActivityType {
|
||||
PenguinCard (18),
|
||||
ThrowGift (19),
|
||||
GoldenSpy (20),
|
||||
Double (21);
|
||||
Double (21),
|
||||
HistoryStory (22);
|
||||
|
||||
@Getter
|
||||
private final int value;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"global": 109,
|
||||
"kr": 114,
|
||||
"jp": 114,
|
||||
"tw": 120,
|
||||
"cn": 110
|
||||
"global": 113,
|
||||
"kr": 118,
|
||||
"jp": 118,
|
||||
"tw": 124,
|
||||
"cn": 114
|
||||
}
|
||||
Reference in New Issue
Block a user