diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusIdleRefresh.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusIdleRefresh.java new file mode 100644 index 0000000..5446494 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusIdleRefresh.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityTrekkerVersusIdleRefresh { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusIdleRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusIdleRewardReceive.java new file mode 100644 index 0000000..0b11f06 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusIdleRewardReceive.java @@ -0,0 +1,605 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ActivityTrekkerVersusIdleRewardReceive { + /** + * Protobuf type {@code ActivityTrekkerVersusIdleRewardReceiveResp} + */ + public static final class ActivityTrekkerVersusIdleRewardReceiveResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 IdleTime = 3; + */ + private long idleTime; + + /** + * optional .ChangeInfo Change = 1; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ItemTpl AwardItems = 2; + */ + private final RepeatedMessage awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory()); + + private ActivityTrekkerVersusIdleRewardReceiveResp() { + } + + /** + * @return a new empty instance of {@code ActivityTrekkerVersusIdleRewardReceiveResp} + */ + public static ActivityTrekkerVersusIdleRewardReceiveResp newInstance() { + return new ActivityTrekkerVersusIdleRewardReceiveResp(); + } + + /** + * optional int64 IdleTime = 3; + * @return whether the idleTime field is set + */ + public boolean hasIdleTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 IdleTime = 3; + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp clearIdleTime() { + bitField0_ &= ~0x00000001; + idleTime = 0L; + return this; + } + + /** + * optional int64 IdleTime = 3; + * @return the idleTime + */ + public long getIdleTime() { + return idleTime; + } + + /** + * optional int64 IdleTime = 3; + * @param value the idleTime to set + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp setIdleTime(final long value) { + bitField0_ |= 0x00000001; + idleTime = value; + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 1; + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp 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 ActivityTrekkerVersusIdleRewardReceiveResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 2; + * @return whether the awardItems field is set + */ + public boolean hasAwardItems() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ItemTpl AwardItems = 2; + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp clearAwardItems() { + bitField0_ &= ~0x00000008; + awardItems.clear(); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAwardItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAwardItems() { + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAwardItems() { + bitField0_ |= 0x00000008; + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 2; + * @param value the awardItems to add + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp addAwardItems(final Public.ItemTpl value) { + bitField0_ |= 0x00000008; + awardItems.add(value); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 2; + * @param values the awardItems to add + * @return this + */ + public ActivityTrekkerVersusIdleRewardReceiveResp addAllAwardItems( + final Public.ItemTpl... values) { + bitField0_ |= 0x00000008; + awardItems.addAll(values); + return this; + } + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp copyFrom( + final ActivityTrekkerVersusIdleRewardReceiveResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + idleTime = other.idleTime; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + awardItems.copyFrom(other.awardItems); + } + return this; + } + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp mergeFrom( + final ActivityTrekkerVersusIdleRewardReceiveResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIdleTime()) { + setIdleTime(other.idleTime); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasAwardItems()) { + getMutableAwardItems().addAll(other.awardItems); + } + return this; + } + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + idleTime = 0L; + change.clear(); + nextPackage.clear(); + awardItems.clear(); + return this; + } + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + awardItems.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityTrekkerVersusIdleRewardReceiveResp)) { + return false; + } + ActivityTrekkerVersusIdleRewardReceiveResp other = (ActivityTrekkerVersusIdleRewardReceiveResp) o; + return bitField0_ == other.bitField0_ + && (!hasIdleTime() || idleTime == other.idleTime) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasAwardItems() || awardItems.equals(other.awardItems)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt64NoTag(idleTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < awardItems.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(awardItems.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(idleTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityTrekkerVersusIdleRewardReceiveResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // idleTime + idleTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // change + input.readMessage(change); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // awardItems + tag = input.readRepeatedMessage(awardItems, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.idleTime, idleTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.awardItems, awardItems); + } + output.endObject(); + } + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 120021217: { + if (input.isAtField(FieldNames.idleTime)) { + if (!input.trySkipNullValue()) { + idleTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1943188605: { + if (input.isAtField(FieldNames.awardItems)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(awardItems); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp clone() { + return new ActivityTrekkerVersusIdleRewardReceiveResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityTrekkerVersusIdleRewardReceiveResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusIdleRewardReceiveResp(), data).checkInitialized(); + } + + public static ActivityTrekkerVersusIdleRewardReceiveResp parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusIdleRewardReceiveResp(), input).checkInitialized(); + } + + public static ActivityTrekkerVersusIdleRewardReceiveResp parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusIdleRewardReceiveResp(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityTrekkerVersusIdleRewardReceiveResp messages + */ + public static MessageFactory getFactory() { + return ActivityTrekkerVersusIdleRewardReceiveRespFactory.INSTANCE; + } + + private enum ActivityTrekkerVersusIdleRewardReceiveRespFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityTrekkerVersusIdleRewardReceiveResp create() { + return ActivityTrekkerVersusIdleRewardReceiveResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName idleTime = FieldName.forField("IdleTime"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName awardItems = FieldName.forField("AwardItems"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRankBoost.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRankBoost.java new file mode 100644 index 0000000..48d0b6d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusRankBoost.java @@ -0,0 +1,1328 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ActivityTrekkerVersusRankBoost { + /** + * Protobuf type {@code ActivityTrekkerVersusRankBoostReq} + */ + public static final class ActivityTrekkerVersusRankBoostReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ItemInfo Items = 2; + */ + private final RepeatedMessage items = RepeatedMessage.newEmptyInstance(Public.ItemInfo.getFactory()); + + private ActivityTrekkerVersusRankBoostReq() { + } + + /** + * @return a new empty instance of {@code ActivityTrekkerVersusRankBoostReq} + */ + public static ActivityTrekkerVersusRankBoostReq newInstance() { + return new ActivityTrekkerVersusRankBoostReq(); + } + + /** + * 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 ActivityTrekkerVersusRankBoostReq 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 ActivityTrekkerVersusRankBoostReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityTrekkerVersusRankBoostReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000002; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusRankBoostReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusRankBoostReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityTrekkerVersusRankBoostReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ItemInfo Items = 2; + * @return whether the items field is set + */ + public boolean hasItems() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ItemInfo Items = 2; + * @return this + */ + public ActivityTrekkerVersusRankBoostReq clearItems() { + bitField0_ &= ~0x00000004; + items.clear(); + return this; + } + + /** + * repeated .ItemInfo Items = 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 #getMutableItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getItems() { + return items; + } + + /** + * repeated .ItemInfo Items = 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 getMutableItems() { + bitField0_ |= 0x00000004; + return items; + } + + /** + * repeated .ItemInfo Items = 2; + * @param value the items to add + * @return this + */ + public ActivityTrekkerVersusRankBoostReq addItems(final Public.ItemInfo value) { + bitField0_ |= 0x00000004; + items.add(value); + return this; + } + + /** + * repeated .ItemInfo Items = 2; + * @param values the items to add + * @return this + */ + public ActivityTrekkerVersusRankBoostReq addAllItems(final Public.ItemInfo... values) { + bitField0_ |= 0x00000004; + items.addAll(values); + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostReq copyFrom( + final ActivityTrekkerVersusRankBoostReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + nextPackage.copyFrom(other.nextPackage); + items.copyFrom(other.items); + } + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostReq mergeFrom( + final ActivityTrekkerVersusRankBoostReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasItems()) { + getMutableItems().addAll(other.items); + } + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + nextPackage.clear(); + items.clear(); + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + items.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityTrekkerVersusRankBoostReq)) { + return false; + } + ActivityTrekkerVersusRankBoostReq other = (ActivityTrekkerVersusRankBoostReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasItems() || items.equals(other.items)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < items.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(items.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityTrekkerVersusRankBoostReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // items + tag = input.readRepeatedMessage(items, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.items, items); + } + output.endObject(); + } + + @Override + public ActivityTrekkerVersusRankBoostReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70973344: { + if (input.isAtField(FieldNames.items)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(items); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostReq clone() { + return new ActivityTrekkerVersusRankBoostReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityTrekkerVersusRankBoostReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRankBoostReq(), data).checkInitialized(); + } + + public static ActivityTrekkerVersusRankBoostReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRankBoostReq(), input).checkInitialized(); + } + + public static ActivityTrekkerVersusRankBoostReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRankBoostReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityTrekkerVersusRankBoostReq messages + */ + public static MessageFactory getFactory() { + return ActivityTrekkerVersusRankBoostReqFactory.INSTANCE; + } + + private enum ActivityTrekkerVersusRankBoostReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityTrekkerVersusRankBoostReq create() { + return ActivityTrekkerVersusRankBoostReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName items = FieldName.forField("Items"); + } + } + + /** + * Protobuf type {@code ActivityTrekkerVersusRankBoostResp} + */ + public static final class ActivityTrekkerVersusRankBoostResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Level = 1; + */ + private int level; + + /** + * optional uint32 Exp = 2; + */ + private int exp; + + /** + * optional uint32 SelfHotValue = 3; + */ + private int selfHotValue; + + /** + * optional uint32 RivalHotValue = 4; + */ + private int rivalHotValue; + + /** + * optional .ChangeInfo Change = 5; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ItemTpl AwardItems = 6; + */ + private final RepeatedMessage awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory()); + + private ActivityTrekkerVersusRankBoostResp() { + } + + /** + * @return a new empty instance of {@code ActivityTrekkerVersusRankBoostResp} + */ + public static ActivityTrekkerVersusRankBoostResp newInstance() { + return new ActivityTrekkerVersusRankBoostResp(); + } + + /** + * optional uint32 Level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Level = 1; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 Level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 1; + * @param value the level to set + * @return this + */ + public ActivityTrekkerVersusRankBoostResp setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Exp = 2; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 2; + * @param value the exp to set + * @return this + */ + public ActivityTrekkerVersusRankBoostResp setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * optional uint32 SelfHotValue = 3; + * @return whether the selfHotValue field is set + */ + public boolean hasSelfHotValue() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 SelfHotValue = 3; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearSelfHotValue() { + bitField0_ &= ~0x00000004; + selfHotValue = 0; + return this; + } + + /** + * optional uint32 SelfHotValue = 3; + * @return the selfHotValue + */ + public int getSelfHotValue() { + return selfHotValue; + } + + /** + * optional uint32 SelfHotValue = 3; + * @param value the selfHotValue to set + * @return this + */ + public ActivityTrekkerVersusRankBoostResp setSelfHotValue(final int value) { + bitField0_ |= 0x00000004; + selfHotValue = value; + return this; + } + + /** + * optional uint32 RivalHotValue = 4; + * @return whether the rivalHotValue field is set + */ + public boolean hasRivalHotValue() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 RivalHotValue = 4; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearRivalHotValue() { + bitField0_ &= ~0x00000008; + rivalHotValue = 0; + return this; + } + + /** + * optional uint32 RivalHotValue = 4; + * @return the rivalHotValue + */ + public int getRivalHotValue() { + return rivalHotValue; + } + + /** + * optional uint32 RivalHotValue = 4; + * @param value the rivalHotValue to set + * @return this + */ + public ActivityTrekkerVersusRankBoostResp setRivalHotValue(final int value) { + bitField0_ |= 0x00000008; + rivalHotValue = value; + return this; + } + + /** + * optional .ChangeInfo Change = 5; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChangeInfo Change = 5; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearChange() { + bitField0_ &= ~0x00000010; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000010; + return change; + } + + /** + * optional .ChangeInfo Change = 5; + * @param value the change to set + * @return this + */ + public ActivityTrekkerVersusRankBoostResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000010; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearNextPackage() { + bitField0_ &= ~0x00000020; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000020; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusRankBoostResp addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusRankBoostResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityTrekkerVersusRankBoostResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 6; + * @return whether the awardItems field is set + */ + public boolean hasAwardItems() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .ItemTpl AwardItems = 6; + * @return this + */ + public ActivityTrekkerVersusRankBoostResp clearAwardItems() { + bitField0_ &= ~0x00000040; + awardItems.clear(); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAwardItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAwardItems() { + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAwardItems() { + bitField0_ |= 0x00000040; + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 6; + * @param value the awardItems to add + * @return this + */ + public ActivityTrekkerVersusRankBoostResp addAwardItems(final Public.ItemTpl value) { + bitField0_ |= 0x00000040; + awardItems.add(value); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 6; + * @param values the awardItems to add + * @return this + */ + public ActivityTrekkerVersusRankBoostResp addAllAwardItems(final Public.ItemTpl... values) { + bitField0_ |= 0x00000040; + awardItems.addAll(values); + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostResp copyFrom( + final ActivityTrekkerVersusRankBoostResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + exp = other.exp; + selfHotValue = other.selfHotValue; + rivalHotValue = other.rivalHotValue; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + awardItems.copyFrom(other.awardItems); + } + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostResp mergeFrom( + final ActivityTrekkerVersusRankBoostResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasSelfHotValue()) { + setSelfHotValue(other.selfHotValue); + } + if (other.hasRivalHotValue()) { + setRivalHotValue(other.rivalHotValue); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasAwardItems()) { + getMutableAwardItems().addAll(other.awardItems); + } + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + exp = 0; + selfHotValue = 0; + rivalHotValue = 0; + change.clear(); + nextPackage.clear(); + awardItems.clear(); + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + awardItems.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityTrekkerVersusRankBoostResp)) { + return false; + } + ActivityTrekkerVersusRankBoostResp other = (ActivityTrekkerVersusRankBoostResp) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasSelfHotValue() || selfHotValue == other.selfHotValue) + && (!hasRivalHotValue() || rivalHotValue == other.rivalHotValue) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasAwardItems() || awardItems.equals(other.awardItems)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(selfHotValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(rivalHotValue); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < awardItems.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(awardItems.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHotValue); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rivalHotValue); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityTrekkerVersusRankBoostResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // selfHotValue + selfHotValue = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // rivalHotValue + rivalHotValue = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // change + input.readMessage(change); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // awardItems + tag = input.readRepeatedMessage(awardItems, tag); + bitField0_ |= 0x00000040; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.selfHotValue, selfHotValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.rivalHotValue, rivalHotValue); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.awardItems, awardItems); + } + output.endObject(); + } + + @Override + public ActivityTrekkerVersusRankBoostResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1360474288: { + if (input.isAtField(FieldNames.selfHotValue)) { + if (!input.trySkipNullValue()) { + selfHotValue = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1039538350: { + if (input.isAtField(FieldNames.rivalHotValue)) { + if (!input.trySkipNullValue()) { + rivalHotValue = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1943188605: { + if (input.isAtField(FieldNames.awardItems)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(awardItems); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityTrekkerVersusRankBoostResp clone() { + return new ActivityTrekkerVersusRankBoostResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityTrekkerVersusRankBoostResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRankBoostResp(), data).checkInitialized(); + } + + public static ActivityTrekkerVersusRankBoostResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRankBoostResp(), input).checkInitialized(); + } + + public static ActivityTrekkerVersusRankBoostResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRankBoostResp(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityTrekkerVersusRankBoostResp messages + */ + public static MessageFactory getFactory() { + return ActivityTrekkerVersusRankBoostRespFactory.INSTANCE; + } + + private enum ActivityTrekkerVersusRankBoostRespFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityTrekkerVersusRankBoostResp create() { + return ActivityTrekkerVersusRankBoostResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName selfHotValue = FieldName.forField("SelfHotValue"); + + static final FieldName rivalHotValue = FieldName.forField("RivalHotValue"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName awardItems = FieldName.forField("AwardItems"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusScheduleRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusScheduleRewardReceive.java new file mode 100644 index 0000000..e5c3152 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusScheduleRewardReceive.java @@ -0,0 +1,1181 @@ +// 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 ActivityTrekkerVersusScheduleRewardReceive { + /** + * Protobuf type {@code ActivityTrekkerVersusScheduleRewardReceiveReq} + */ + public static final class ActivityTrekkerVersusScheduleRewardReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 ScheduleType = 2; + */ + private int scheduleType; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityTrekkerVersusScheduleRewardReceiveReq() { + } + + /** + * @return a new empty instance of {@code ActivityTrekkerVersusScheduleRewardReceiveReq} + */ + public static ActivityTrekkerVersusScheduleRewardReceiveReq newInstance() { + return new ActivityTrekkerVersusScheduleRewardReceiveReq(); + } + + /** + * 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 ActivityTrekkerVersusScheduleRewardReceiveReq 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 ActivityTrekkerVersusScheduleRewardReceiveReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 ScheduleType = 2; + * @return whether the scheduleType field is set + */ + public boolean hasScheduleType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ScheduleType = 2; + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveReq clearScheduleType() { + bitField0_ &= ~0x00000002; + scheduleType = 0; + return this; + } + + /** + * optional uint32 ScheduleType = 2; + * @return the scheduleType + */ + public int getScheduleType() { + return scheduleType; + } + + /** + * optional uint32 ScheduleType = 2; + * @param value the scheduleType to set + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveReq setScheduleType(final int value) { + bitField0_ |= 0x00000002; + scheduleType = 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 ActivityTrekkerVersusScheduleRewardReceiveReq 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 ActivityTrekkerVersusScheduleRewardReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq copyFrom( + final ActivityTrekkerVersusScheduleRewardReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + scheduleType = other.scheduleType; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq mergeFrom( + final ActivityTrekkerVersusScheduleRewardReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasScheduleType()) { + setScheduleType(other.scheduleType); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + scheduleType = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq 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 ActivityTrekkerVersusScheduleRewardReceiveReq)) { + return false; + } + ActivityTrekkerVersusScheduleRewardReceiveReq other = (ActivityTrekkerVersusScheduleRewardReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasScheduleType() || scheduleType == other.scheduleType) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(scheduleType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scheduleType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityTrekkerVersusScheduleRewardReceiveReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // scheduleType + scheduleType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.scheduleType, scheduleType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq 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 1326499473: { + if (input.isAtField(FieldNames.scheduleType)) { + if (!input.trySkipNullValue()) { + scheduleType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq clone() { + return new ActivityTrekkerVersusScheduleRewardReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityTrekkerVersusScheduleRewardReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusScheduleRewardReceiveReq(), data).checkInitialized(); + } + + public static ActivityTrekkerVersusScheduleRewardReceiveReq parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusScheduleRewardReceiveReq(), input).checkInitialized(); + } + + public static ActivityTrekkerVersusScheduleRewardReceiveReq parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusScheduleRewardReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityTrekkerVersusScheduleRewardReceiveReq messages + */ + public static MessageFactory getFactory() { + return ActivityTrekkerVersusScheduleRewardReceiveReqFactory.INSTANCE; + } + + private enum ActivityTrekkerVersusScheduleRewardReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveReq create() { + return ActivityTrekkerVersusScheduleRewardReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName scheduleType = FieldName.forField("ScheduleType"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityTrekkerVersusScheduleRewardReceiveResp} + */ + public static final class ActivityTrekkerVersusScheduleRewardReceiveResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ScheduleType = 1; + */ + private int scheduleType; + + /** + * optional .ChangeInfo Change = 3; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 RewardIds = 2; + */ + private final RepeatedInt rewardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ItemTpl AwardItems = 4; + */ + private final RepeatedMessage awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory()); + + private ActivityTrekkerVersusScheduleRewardReceiveResp() { + } + + /** + * @return a new empty instance of {@code ActivityTrekkerVersusScheduleRewardReceiveResp} + */ + public static ActivityTrekkerVersusScheduleRewardReceiveResp newInstance() { + return new ActivityTrekkerVersusScheduleRewardReceiveResp(); + } + + /** + * optional uint32 ScheduleType = 1; + * @return whether the scheduleType field is set + */ + public boolean hasScheduleType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ScheduleType = 1; + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp clearScheduleType() { + bitField0_ &= ~0x00000001; + scheduleType = 0; + return this; + } + + /** + * optional uint32 ScheduleType = 1; + * @return the scheduleType + */ + public int getScheduleType() { + return scheduleType; + } + + /** + * optional uint32 ScheduleType = 1; + * @param value the scheduleType to set + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp setScheduleType(final int value) { + bitField0_ |= 0x00000001; + scheduleType = value; + return this; + } + + /** + * optional .ChangeInfo Change = 3; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 3; + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 3; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 3; + * @param value the change to set + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp 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 ActivityTrekkerVersusScheduleRewardReceiveResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 RewardIds = 2; + * @return whether the rewardIds field is set + */ + public boolean hasRewardIds() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 RewardIds = 2; + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp clearRewardIds() { + bitField0_ &= ~0x00000008; + rewardIds.clear(); + return this; + } + + /** + * repeated uint32 RewardIds = 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 #getMutableRewardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getRewardIds() { + return rewardIds; + } + + /** + * repeated uint32 RewardIds = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableRewardIds() { + bitField0_ |= 0x00000008; + return rewardIds; + } + + /** + * repeated uint32 RewardIds = 2; + * @param value the rewardIds to add + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp addRewardIds(final int value) { + bitField0_ |= 0x00000008; + rewardIds.add(value); + return this; + } + + /** + * repeated uint32 RewardIds = 2; + * @param values the rewardIds to add + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp addAllRewardIds(final int... values) { + bitField0_ |= 0x00000008; + rewardIds.addAll(values); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 4; + * @return whether the awardItems field is set + */ + public boolean hasAwardItems() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .ItemTpl AwardItems = 4; + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp clearAwardItems() { + bitField0_ &= ~0x00000010; + awardItems.clear(); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 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 #getMutableAwardItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAwardItems() { + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 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 getMutableAwardItems() { + bitField0_ |= 0x00000010; + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 4; + * @param value the awardItems to add + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp addAwardItems( + final Public.ItemTpl value) { + bitField0_ |= 0x00000010; + awardItems.add(value); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 4; + * @param values the awardItems to add + * @return this + */ + public ActivityTrekkerVersusScheduleRewardReceiveResp addAllAwardItems( + final Public.ItemTpl... values) { + bitField0_ |= 0x00000010; + awardItems.addAll(values); + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp copyFrom( + final ActivityTrekkerVersusScheduleRewardReceiveResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + scheduleType = other.scheduleType; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + rewardIds.copyFrom(other.rewardIds); + awardItems.copyFrom(other.awardItems); + } + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp mergeFrom( + final ActivityTrekkerVersusScheduleRewardReceiveResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasScheduleType()) { + setScheduleType(other.scheduleType); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRewardIds()) { + getMutableRewardIds().addAll(other.rewardIds); + } + if (other.hasAwardItems()) { + getMutableAwardItems().addAll(other.awardItems); + } + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scheduleType = 0; + change.clear(); + nextPackage.clear(); + rewardIds.clear(); + awardItems.clear(); + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + rewardIds.clear(); + awardItems.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityTrekkerVersusScheduleRewardReceiveResp)) { + return false; + } + ActivityTrekkerVersusScheduleRewardReceiveResp other = (ActivityTrekkerVersusScheduleRewardReceiveResp) o; + return bitField0_ == other.bitField0_ + && (!hasScheduleType() || scheduleType == other.scheduleType) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRewardIds() || rewardIds.equals(other.rewardIds)) + && (!hasAwardItems() || awardItems.equals(other.awardItems)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(scheduleType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < rewardIds.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rewardIds.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < awardItems.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(awardItems.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scheduleType); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * rewardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rewardIds); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityTrekkerVersusScheduleRewardReceiveResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // scheduleType + scheduleType = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // change + input.readMessage(change); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // rewardIds [packed=true] + input.readPackedUInt32(rewardIds, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // awardItems + tag = input.readRepeatedMessage(awardItems, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // rewardIds [packed=false] + tag = input.readRepeatedUInt32(rewardIds, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.scheduleType, scheduleType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.rewardIds, rewardIds); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.awardItems, awardItems); + } + output.endObject(); + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1326499473: { + if (input.isAtField(FieldNames.scheduleType)) { + if (!input.trySkipNullValue()) { + scheduleType = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1128076055: { + if (input.isAtField(FieldNames.rewardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(rewardIds); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1943188605: { + if (input.isAtField(FieldNames.awardItems)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(awardItems); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp clone() { + return new ActivityTrekkerVersusScheduleRewardReceiveResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityTrekkerVersusScheduleRewardReceiveResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusScheduleRewardReceiveResp(), data).checkInitialized(); + } + + public static ActivityTrekkerVersusScheduleRewardReceiveResp parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusScheduleRewardReceiveResp(), input).checkInitialized(); + } + + public static ActivityTrekkerVersusScheduleRewardReceiveResp parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ActivityTrekkerVersusScheduleRewardReceiveResp(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityTrekkerVersusScheduleRewardReceiveResp messages + */ + public static MessageFactory getFactory() { + return ActivityTrekkerVersusScheduleRewardReceiveRespFactory.INSTANCE; + } + + private enum ActivityTrekkerVersusScheduleRewardReceiveRespFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityTrekkerVersusScheduleRewardReceiveResp create() { + return ActivityTrekkerVersusScheduleRewardReceiveResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName scheduleType = FieldName.forField("ScheduleType"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName rewardIds = FieldName.forField("RewardIds"); + + static final FieldName awardItems = FieldName.forField("AwardItems"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java index af706c5..2adb681 100644 --- a/src/generated/main/emu/nebula/proto/Public.java +++ b/src/generated/main/emu/nebula/proto/Public.java @@ -74785,9 +74785,24 @@ public final class Public { private static final long serialVersionUID = 0L; /** - * optional uint32 BuildScore = 3; + * optional int64 IdleTime = 2; */ - private int buildScore; + private long idleTime; + + /** + * optional uint32 Difficult = 1; + */ + private int difficult; + + /** + * optional uint32 SelfHotValue = 4; + */ + private int selfHotValue; + + /** + * optional uint32 RivalHotValue = 5; + */ + private int rivalHotValue; /** * optional bytes NextPackage = 2047; @@ -74795,14 +74810,9 @@ public final class Public { private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated uint32 CharIds = 1; + * repeated .TrekkerVersusShow.IdleValue IdleValues = 3; */ - private final RepeatedInt charIds = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 AffixIds = 2; - */ - private final RepeatedInt affixIds = RepeatedInt.newEmptyInstance(); + private final RepeatedMessage idleValues = RepeatedMessage.newEmptyInstance(IdleValue.getFactory()); private TrekkerVersusShow() { } @@ -74815,39 +74825,150 @@ public final class Public { } /** - * optional uint32 BuildScore = 3; - * @return whether the buildScore field is set + * optional int64 IdleTime = 2; + * @return whether the idleTime field is set */ - public boolean hasBuildScore() { + public boolean hasIdleTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 BuildScore = 3; + * optional int64 IdleTime = 2; * @return this */ - public TrekkerVersusShow clearBuildScore() { + public TrekkerVersusShow clearIdleTime() { bitField0_ &= ~0x00000001; - buildScore = 0; + idleTime = 0L; return this; } /** - * optional uint32 BuildScore = 3; - * @return the buildScore + * optional int64 IdleTime = 2; + * @return the idleTime */ - public int getBuildScore() { - return buildScore; + public long getIdleTime() { + return idleTime; } /** - * optional uint32 BuildScore = 3; - * @param value the buildScore to set + * optional int64 IdleTime = 2; + * @param value the idleTime to set * @return this */ - public TrekkerVersusShow setBuildScore(final int value) { + public TrekkerVersusShow setIdleTime(final long value) { bitField0_ |= 0x00000001; - buildScore = value; + idleTime = value; + return this; + } + + /** + * optional uint32 Difficult = 1; + * @return whether the difficult field is set + */ + public boolean hasDifficult() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Difficult = 1; + * @return this + */ + public TrekkerVersusShow clearDifficult() { + bitField0_ &= ~0x00000002; + difficult = 0; + return this; + } + + /** + * optional uint32 Difficult = 1; + * @return the difficult + */ + public int getDifficult() { + return difficult; + } + + /** + * optional uint32 Difficult = 1; + * @param value the difficult to set + * @return this + */ + public TrekkerVersusShow setDifficult(final int value) { + bitField0_ |= 0x00000002; + difficult = value; + return this; + } + + /** + * optional uint32 SelfHotValue = 4; + * @return whether the selfHotValue field is set + */ + public boolean hasSelfHotValue() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 SelfHotValue = 4; + * @return this + */ + public TrekkerVersusShow clearSelfHotValue() { + bitField0_ &= ~0x00000004; + selfHotValue = 0; + return this; + } + + /** + * optional uint32 SelfHotValue = 4; + * @return the selfHotValue + */ + public int getSelfHotValue() { + return selfHotValue; + } + + /** + * optional uint32 SelfHotValue = 4; + * @param value the selfHotValue to set + * @return this + */ + public TrekkerVersusShow setSelfHotValue(final int value) { + bitField0_ |= 0x00000004; + selfHotValue = value; + return this; + } + + /** + * optional uint32 RivalHotValue = 5; + * @return whether the rivalHotValue field is set + */ + public boolean hasRivalHotValue() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 RivalHotValue = 5; + * @return this + */ + public TrekkerVersusShow clearRivalHotValue() { + bitField0_ &= ~0x00000008; + rivalHotValue = 0; + return this; + } + + /** + * optional uint32 RivalHotValue = 5; + * @return the rivalHotValue + */ + public int getRivalHotValue() { + return rivalHotValue; + } + + /** + * optional uint32 RivalHotValue = 5; + * @param value the rivalHotValue to set + * @return this + */ + public TrekkerVersusShow setRivalHotValue(final int value) { + bitField0_ |= 0x00000008; + rivalHotValue = value; return this; } @@ -74856,7 +74977,7 @@ public final class Public { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -74864,7 +74985,7 @@ public final class Public { * @return this */ public TrekkerVersusShow clearNextPackage() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000010; nextPackage.clear(); return this; } @@ -74893,7 +75014,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; return nextPackage; } @@ -74903,7 +75024,7 @@ public final class Public { * @return this */ public TrekkerVersusShow addNextPackage(final byte value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; nextPackage.add(value); return this; } @@ -74914,7 +75035,7 @@ public final class Public { * @return this */ public TrekkerVersusShow addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; nextPackage.addAll(values); return this; } @@ -74925,45 +75046,45 @@ public final class Public { * @return this */ public TrekkerVersusShow setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; nextPackage.copyFrom(values); return this; } /** - * repeated uint32 CharIds = 1; - * @return whether the charIds field is set + * repeated .TrekkerVersusShow.IdleValue IdleValues = 3; + * @return whether the idleValues field is set */ - public boolean hasCharIds() { - return (bitField0_ & 0x00000004) != 0; + public boolean hasIdleValues() { + return (bitField0_ & 0x00000020) != 0; } /** - * repeated uint32 CharIds = 1; + * repeated .TrekkerVersusShow.IdleValue IdleValues = 3; * @return this */ - public TrekkerVersusShow clearCharIds() { - bitField0_ &= ~0x00000004; - charIds.clear(); + public TrekkerVersusShow clearIdleValues() { + bitField0_ &= ~0x00000020; + idleValues.clear(); return this; } /** - * repeated uint32 CharIds = 1; + * repeated .TrekkerVersusShow.IdleValue IdleValues = 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 #getMutableCharIds()} if you want to modify it. + * Use {@link #getMutableIdleValues()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getCharIds() { - return charIds; + public RepeatedMessage getIdleValues() { + return idleValues; } /** - * repeated uint32 CharIds = 1; + * repeated .TrekkerVersusShow.IdleValue IdleValues = 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 @@ -74971,98 +75092,30 @@ public final class Public { * * @return internal storage object for modifications */ - public RepeatedInt getMutableCharIds() { - bitField0_ |= 0x00000004; - return charIds; + public RepeatedMessage getMutableIdleValues() { + bitField0_ |= 0x00000020; + return idleValues; } /** - * repeated uint32 CharIds = 1; - * @param value the charIds to add + * repeated .TrekkerVersusShow.IdleValue IdleValues = 3; + * @param value the idleValues to add * @return this */ - public TrekkerVersusShow addCharIds(final int value) { - bitField0_ |= 0x00000004; - charIds.add(value); + public TrekkerVersusShow addIdleValues(final IdleValue value) { + bitField0_ |= 0x00000020; + idleValues.add(value); return this; } /** - * repeated uint32 CharIds = 1; - * @param values the charIds to add + * repeated .TrekkerVersusShow.IdleValue IdleValues = 3; + * @param values the idleValues to add * @return this */ - public TrekkerVersusShow addAllCharIds(final int... values) { - bitField0_ |= 0x00000004; - charIds.addAll(values); - return this; - } - - /** - * repeated uint32 AffixIds = 2; - * @return whether the affixIds field is set - */ - public boolean hasAffixIds() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 AffixIds = 2; - * @return this - */ - public TrekkerVersusShow clearAffixIds() { - bitField0_ &= ~0x00000008; - affixIds.clear(); - return this; - } - - /** - * repeated uint32 AffixIds = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAffixIds()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getAffixIds() { - return affixIds; - } - - /** - * repeated uint32 AffixIds = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableAffixIds() { - bitField0_ |= 0x00000008; - return affixIds; - } - - /** - * repeated uint32 AffixIds = 2; - * @param value the affixIds to add - * @return this - */ - public TrekkerVersusShow addAffixIds(final int value) { - bitField0_ |= 0x00000008; - affixIds.add(value); - return this; - } - - /** - * repeated uint32 AffixIds = 2; - * @param values the affixIds to add - * @return this - */ - public TrekkerVersusShow addAllAffixIds(final int... values) { - bitField0_ |= 0x00000008; - affixIds.addAll(values); + public TrekkerVersusShow addAllIdleValues(final IdleValue... values) { + bitField0_ |= 0x00000020; + idleValues.addAll(values); return this; } @@ -75071,10 +75124,12 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildScore = other.buildScore; + idleTime = other.idleTime; + difficult = other.difficult; + selfHotValue = other.selfHotValue; + rivalHotValue = other.rivalHotValue; nextPackage.copyFrom(other.nextPackage); - charIds.copyFrom(other.charIds); - affixIds.copyFrom(other.affixIds); + idleValues.copyFrom(other.idleValues); } return this; } @@ -75085,17 +75140,23 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildScore()) { - setBuildScore(other.buildScore); + if (other.hasIdleTime()) { + setIdleTime(other.idleTime); + } + if (other.hasDifficult()) { + setDifficult(other.difficult); + } + if (other.hasSelfHotValue()) { + setSelfHotValue(other.selfHotValue); + } + if (other.hasRivalHotValue()) { + setRivalHotValue(other.rivalHotValue); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasCharIds()) { - getMutableCharIds().addAll(other.charIds); - } - if (other.hasAffixIds()) { - getMutableAffixIds().addAll(other.affixIds); + if (other.hasIdleValues()) { + getMutableIdleValues().addAll(other.idleValues); } return this; } @@ -75107,10 +75168,12 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildScore = 0; + idleTime = 0L; + difficult = 0; + selfHotValue = 0; + rivalHotValue = 0; nextPackage.clear(); - charIds.clear(); - affixIds.clear(); + idleValues.clear(); return this; } @@ -75122,8 +75185,7 @@ public final class Public { cachedSize = -1; bitField0_ = 0; nextPackage.clear(); - charIds.clear(); - affixIds.clear(); + idleValues.clearQuick(); return this; } @@ -75137,32 +75199,40 @@ public final class Public { } TrekkerVersusShow other = (TrekkerVersusShow) o; return bitField0_ == other.bitField0_ - && (!hasBuildScore() || buildScore == other.buildScore) + && (!hasIdleTime() || idleTime == other.idleTime) + && (!hasDifficult() || difficult == other.difficult) + && (!hasSelfHotValue() || selfHotValue == other.selfHotValue) + && (!hasRivalHotValue() || rivalHotValue == other.rivalHotValue) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasCharIds() || charIds.equals(other.charIds)) - && (!hasAffixIds() || affixIds.equals(other.affixIds)); + && (!hasIdleValues() || idleValues.equals(other.idleValues)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(buildScore); + output.writeRawByte((byte) 16); + output.writeInt64NoTag(idleTime); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(difficult); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(selfHotValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(rivalHotValue); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < charIds.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(charIds.array()[i]); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < affixIds.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(affixIds.array()[i]); + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < idleValues.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(idleValues.get(i)); } } } @@ -75171,16 +75241,22 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buildScore); + size += 1 + ProtoSink.computeInt64SizeNoTag(idleTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeUInt32SizeNoTag(difficult); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * charIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(charIds); + size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHotValue); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * affixIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(affixIds); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rivalHotValue); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * idleValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(idleValues); } return size; } @@ -75192,11 +75268,38 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // buildScore - buildScore = input.readUInt32(); + case 16: { + // idleTime + idleTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // difficult + difficult = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // selfHotValue + selfHotValue = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // rivalHotValue + rivalHotValue = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 16378) { break; } @@ -75204,26 +75307,16 @@ public final class Public { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 10) { + if (tag != 26) { break; } } - case 10: { - // charIds [packed=true] - input.readPackedUInt32(charIds, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // affixIds [packed=true] - input.readPackedUInt32(affixIds, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); + case 26: { + // idleValues + tag = input.readRepeatedMessage(idleValues, tag); + bitField0_ |= 0x00000020; if (tag != 0) { break; } @@ -75238,18 +75331,6 @@ public final class Public { tag = input.readTag(); break; } - case 8: { - // charIds [packed=false] - tag = input.readRepeatedUInt32(charIds, tag); - bitField0_ |= 0x00000004; - break; - } - case 16: { - // affixIds [packed=false] - tag = input.readRepeatedUInt32(affixIds, tag); - bitField0_ |= 0x00000008; - break; - } } } } @@ -75258,16 +75339,22 @@ public final class Public { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buildScore, buildScore); + output.writeInt64(FieldNames.idleTime, idleTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeUInt32(FieldNames.difficult, difficult); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.charIds, charIds); + output.writeUInt32(FieldNames.selfHotValue, selfHotValue); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.affixIds, affixIds); + output.writeUInt32(FieldNames.rivalHotValue, rivalHotValue); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.idleValues, idleValues); } output.endObject(); } @@ -75279,10 +75366,10 @@ public final class Public { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1511471332: { - if (input.isAtField(FieldNames.buildScore)) { + case 120021217: { + if (input.isAtField(FieldNames.idleTime)) { if (!input.trySkipNullValue()) { - buildScore = input.readUInt32(); + idleTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -75290,33 +75377,55 @@ public final class Public { } break; } + case -985057186: { + if (input.isAtField(FieldNames.difficult)) { + if (!input.trySkipNullValue()) { + difficult = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1360474288: { + if (input.isAtField(FieldNames.selfHotValue)) { + if (!input.trySkipNullValue()) { + selfHotValue = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1039538350: { + if (input.isAtField(FieldNames.rivalHotValue)) { + if (!input.trySkipNullValue()) { + rivalHotValue = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); } break; } - case -1891280030: { - if (input.isAtField(FieldNames.charIds)) { + case -573868490: { + if (input.isAtField(FieldNames.idleValues)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(charIds); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 670408424: { - if (input.isAtField(FieldNames.affixIds)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(affixIds); - bitField0_ |= 0x00000008; + input.readRepeatedMessage(idleValues); + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -75363,6 +75472,330 @@ public final class Public { return TrekkerVersusShowFactory.INSTANCE; } + /** + * Protobuf type {@code IdleValue} + */ + public static final class IdleValue extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 TypeId = 1; + */ + private int typeId; + + /** + * optional uint32 Value = 2; + */ + private int value_; + + private IdleValue() { + } + + /** + * @return a new empty instance of {@code IdleValue} + */ + public static IdleValue newInstance() { + return new IdleValue(); + } + + /** + * optional uint32 TypeId = 1; + * @return whether the typeId field is set + */ + public boolean hasTypeId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 TypeId = 1; + * @return this + */ + public IdleValue clearTypeId() { + bitField0_ &= ~0x00000001; + typeId = 0; + return this; + } + + /** + * optional uint32 TypeId = 1; + * @return the typeId + */ + public int getTypeId() { + return typeId; + } + + /** + * optional uint32 TypeId = 1; + * @param value the typeId to set + * @return this + */ + public IdleValue setTypeId(final int value) { + bitField0_ |= 0x00000001; + typeId = value; + return this; + } + + /** + * optional uint32 Value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Value = 2; + * @return this + */ + public IdleValue clearValue() { + bitField0_ &= ~0x00000002; + value_ = 0; + return this; + } + + /** + * optional uint32 Value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 Value = 2; + * @param value the value_ to set + * @return this + */ + public IdleValue setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public IdleValue copyFrom(final IdleValue other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + typeId = other.typeId; + value_ = other.value_; + } + return this; + } + + @Override + public IdleValue mergeFrom(final IdleValue other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTypeId()) { + setTypeId(other.typeId); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public IdleValue clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + typeId = 0; + value_ = 0; + return this; + } + + @Override + public IdleValue clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof IdleValue)) { + return false; + } + IdleValue other = (IdleValue) o; + return bitField0_ == other.bitField0_ + && (!hasTypeId() || typeId == other.typeId) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(typeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(typeId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public IdleValue mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // typeId + typeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.typeId, typeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public IdleValue mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1774936555: { + if (input.isAtField(FieldNames.typeId)) { + if (!input.trySkipNullValue()) { + typeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 82420049: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public IdleValue clone() { + return new IdleValue().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static IdleValue parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new IdleValue(), data).checkInitialized(); + } + + public static IdleValue parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new IdleValue(), input).checkInitialized(); + } + + public static IdleValue parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new IdleValue(), input).checkInitialized(); + } + + /** + * @return factory for creating IdleValue messages + */ + public static MessageFactory getFactory() { + return IdleValueFactory.INSTANCE; + } + + private enum IdleValueFactory implements MessageFactory { + INSTANCE; + + @Override + public IdleValue create() { + return IdleValue.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName typeId = FieldName.forField("TypeId"); + + static final FieldName value_ = FieldName.forField("Value"); + } + } + private enum TrekkerVersusShowFactory implements MessageFactory { INSTANCE; @@ -75376,13 +75809,17 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildScore = FieldName.forField("BuildScore"); + static final FieldName idleTime = FieldName.forField("IdleTime"); + + static final FieldName difficult = FieldName.forField("Difficult"); + + static final FieldName selfHotValue = FieldName.forField("SelfHotValue"); + + static final FieldName rivalHotValue = FieldName.forField("RivalHotValue"); static final FieldName nextPackage = FieldName.forField("NextPackage"); - static final FieldName charIds = FieldName.forField("CharIds"); - - static final FieldName affixIds = FieldName.forField("AffixIds"); + static final FieldName idleValues = FieldName.forField("IdleValues"); } } @@ -75393,12 +75830,27 @@ public final class Public { private static final long serialVersionUID = 0L; /** - * optional uint64 BuildId = 2; + * optional uint64 BuildId = 4; */ private long buildId; /** - * optional .TrekkerVersusShow Show = 1; + * optional uint32 DayNum = 1; + */ + private int dayNum; + + /** + * optional uint32 Level = 2; + */ + private int level; + + /** + * optional uint32 Exp = 3; + */ + private int exp; + + /** + * optional .TrekkerVersusShow Show = 5; */ private final TrekkerVersusShow show = TrekkerVersusShow.newInstance(); @@ -75408,10 +75860,25 @@ public final class Public { private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated .ActivityQuest Quests = 3; + * repeated uint32 HotValueRewardIds = 6; + */ + private final RepeatedInt hotValueRewardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 DuelRewardIds = 7; + */ + private final RepeatedInt duelRewardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ActivityQuest Quests = 8; */ private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory()); + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + */ + private final RepeatedMessage results = RepeatedMessage.newEmptyInstance(HistoryResult.getFactory()); + private ActivityTrekkerVersus() { } @@ -75423,7 +75890,7 @@ public final class Public { } /** - * optional uint64 BuildId = 2; + * optional uint64 BuildId = 4; * @return whether the buildId field is set */ public boolean hasBuildId() { @@ -75431,7 +75898,7 @@ public final class Public { } /** - * optional uint64 BuildId = 2; + * optional uint64 BuildId = 4; * @return this */ public ActivityTrekkerVersus clearBuildId() { @@ -75441,7 +75908,7 @@ public final class Public { } /** - * optional uint64 BuildId = 2; + * optional uint64 BuildId = 4; * @return the buildId */ public long getBuildId() { @@ -75449,7 +75916,7 @@ public final class Public { } /** - * optional uint64 BuildId = 2; + * optional uint64 BuildId = 4; * @param value the buildId to set * @return this */ @@ -75460,25 +75927,136 @@ public final class Public { } /** - * optional .TrekkerVersusShow Show = 1; - * @return whether the show field is set + * optional uint32 DayNum = 1; + * @return whether the dayNum field is set */ - public boolean hasShow() { + public boolean hasDayNum() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .TrekkerVersusShow Show = 1; + * optional uint32 DayNum = 1; + * @return this + */ + public ActivityTrekkerVersus clearDayNum() { + bitField0_ &= ~0x00000002; + dayNum = 0; + return this; + } + + /** + * optional uint32 DayNum = 1; + * @return the dayNum + */ + public int getDayNum() { + return dayNum; + } + + /** + * optional uint32 DayNum = 1; + * @param value the dayNum to set + * @return this + */ + public ActivityTrekkerVersus setDayNum(final int value) { + bitField0_ |= 0x00000002; + dayNum = value; + return this; + } + + /** + * optional uint32 Level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Level = 2; + * @return this + */ + public ActivityTrekkerVersus clearLevel() { + bitField0_ &= ~0x00000004; + level = 0; + return this; + } + + /** + * optional uint32 Level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 2; + * @param value the level to set + * @return this + */ + public ActivityTrekkerVersus setLevel(final int value) { + bitField0_ |= 0x00000004; + level = value; + return this; + } + + /** + * optional uint32 Exp = 3; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Exp = 3; + * @return this + */ + public ActivityTrekkerVersus clearExp() { + bitField0_ &= ~0x00000008; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 3; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 3; + * @param value the exp to set + * @return this + */ + public ActivityTrekkerVersus setExp(final int value) { + bitField0_ |= 0x00000008; + exp = value; + return this; + } + + /** + * optional .TrekkerVersusShow Show = 5; + * @return whether the show field is set + */ + public boolean hasShow() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .TrekkerVersusShow Show = 5; * @return this */ public ActivityTrekkerVersus clearShow() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000010; show.clear(); return this; } /** - * optional .TrekkerVersusShow Show = 1; + * optional .TrekkerVersusShow Show = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -75492,7 +76070,7 @@ public final class Public { } /** - * optional .TrekkerVersusShow Show = 1; + * optional .TrekkerVersusShow Show = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75501,17 +76079,17 @@ public final class Public { * @return internal storage object for modifications */ public TrekkerVersusShow getMutableShow() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; return show; } /** - * optional .TrekkerVersusShow Show = 1; + * optional .TrekkerVersusShow Show = 5; * @param value the show to set * @return this */ public ActivityTrekkerVersus setShow(final TrekkerVersusShow value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; show.copyFrom(value); return this; } @@ -75521,7 +76099,7 @@ public final class Public { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -75529,7 +76107,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000020; nextPackage.clear(); return this; } @@ -75558,7 +76136,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; return nextPackage; } @@ -75568,7 +76146,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; nextPackage.add(value); return this; } @@ -75579,7 +76157,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; nextPackage.addAll(values); return this; } @@ -75590,31 +76168,167 @@ public final class Public { * @return this */ public ActivityTrekkerVersus setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; nextPackage.copyFrom(values); return this; } /** - * repeated .ActivityQuest Quests = 3; - * @return whether the quests field is set + * repeated uint32 HotValueRewardIds = 6; + * @return whether the hotValueRewardIds field is set */ - public boolean hasQuests() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasHotValueRewardIds() { + return (bitField0_ & 0x00000040) != 0; } /** - * repeated .ActivityQuest Quests = 3; + * repeated uint32 HotValueRewardIds = 6; + * @return this + */ + public ActivityTrekkerVersus clearHotValueRewardIds() { + bitField0_ &= ~0x00000040; + hotValueRewardIds.clear(); + return this; + } + + /** + * repeated uint32 HotValueRewardIds = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableHotValueRewardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getHotValueRewardIds() { + return hotValueRewardIds; + } + + /** + * repeated uint32 HotValueRewardIds = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableHotValueRewardIds() { + bitField0_ |= 0x00000040; + return hotValueRewardIds; + } + + /** + * repeated uint32 HotValueRewardIds = 6; + * @param value the hotValueRewardIds to add + * @return this + */ + public ActivityTrekkerVersus addHotValueRewardIds(final int value) { + bitField0_ |= 0x00000040; + hotValueRewardIds.add(value); + return this; + } + + /** + * repeated uint32 HotValueRewardIds = 6; + * @param values the hotValueRewardIds to add + * @return this + */ + public ActivityTrekkerVersus addAllHotValueRewardIds(final int... values) { + bitField0_ |= 0x00000040; + hotValueRewardIds.addAll(values); + return this; + } + + /** + * repeated uint32 DuelRewardIds = 7; + * @return whether the duelRewardIds field is set + */ + public boolean hasDuelRewardIds() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 DuelRewardIds = 7; + * @return this + */ + public ActivityTrekkerVersus clearDuelRewardIds() { + bitField0_ &= ~0x00000080; + duelRewardIds.clear(); + return this; + } + + /** + * repeated uint32 DuelRewardIds = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDuelRewardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDuelRewardIds() { + return duelRewardIds; + } + + /** + * repeated uint32 DuelRewardIds = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableDuelRewardIds() { + bitField0_ |= 0x00000080; + return duelRewardIds; + } + + /** + * repeated uint32 DuelRewardIds = 7; + * @param value the duelRewardIds to add + * @return this + */ + public ActivityTrekkerVersus addDuelRewardIds(final int value) { + bitField0_ |= 0x00000080; + duelRewardIds.add(value); + return this; + } + + /** + * repeated uint32 DuelRewardIds = 7; + * @param values the duelRewardIds to add + * @return this + */ + public ActivityTrekkerVersus addAllDuelRewardIds(final int... values) { + bitField0_ |= 0x00000080; + duelRewardIds.addAll(values); + return this; + } + + /** + * repeated .ActivityQuest Quests = 8; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .ActivityQuest Quests = 8; * @return this */ public ActivityTrekkerVersus clearQuests() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000100; quests.clear(); return this; } /** - * repeated .ActivityQuest Quests = 3; + * repeated .ActivityQuest Quests = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -75628,7 +76342,7 @@ public final class Public { } /** - * repeated .ActivityQuest Quests = 3; + * repeated .ActivityQuest Quests = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75637,41 +76351,115 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableQuests() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; return quests; } /** - * repeated .ActivityQuest Quests = 3; + * repeated .ActivityQuest Quests = 8; * @param value the quests to add * @return this */ public ActivityTrekkerVersus addQuests(final ActivityQuest value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; quests.add(value); return this; } /** - * repeated .ActivityQuest Quests = 3; + * repeated .ActivityQuest Quests = 8; * @param values the quests to add * @return this */ public ActivityTrekkerVersus addAllQuests(final ActivityQuest... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; quests.addAll(values); return this; } + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + * @return whether the results field is set + */ + public boolean hasResults() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + * @return this + */ + public ActivityTrekkerVersus clearResults() { + bitField0_ &= ~0x00000200; + results.clear(); + return this; + } + + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableResults()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getResults() { + return results; + } + + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableResults() { + bitField0_ |= 0x00000200; + return results; + } + + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + * @param value the results to add + * @return this + */ + public ActivityTrekkerVersus addResults(final HistoryResult value) { + bitField0_ |= 0x00000200; + results.add(value); + return this; + } + + /** + * repeated .ActivityTrekkerVersus.HistoryResult Results = 9; + * @param values the results to add + * @return this + */ + public ActivityTrekkerVersus addAllResults(final HistoryResult... values) { + bitField0_ |= 0x00000200; + results.addAll(values); + return this; + } + @Override public ActivityTrekkerVersus copyFrom(final ActivityTrekkerVersus other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; buildId = other.buildId; + dayNum = other.dayNum; + level = other.level; + exp = other.exp; show.copyFrom(other.show); nextPackage.copyFrom(other.nextPackage); + hotValueRewardIds.copyFrom(other.hotValueRewardIds); + duelRewardIds.copyFrom(other.duelRewardIds); quests.copyFrom(other.quests); + results.copyFrom(other.results); } return this; } @@ -75685,15 +76473,33 @@ public final class Public { if (other.hasBuildId()) { setBuildId(other.buildId); } + if (other.hasDayNum()) { + setDayNum(other.dayNum); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } if (other.hasShow()) { getMutableShow().mergeFrom(other.show); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } + if (other.hasHotValueRewardIds()) { + getMutableHotValueRewardIds().addAll(other.hotValueRewardIds); + } + if (other.hasDuelRewardIds()) { + getMutableDuelRewardIds().addAll(other.duelRewardIds); + } if (other.hasQuests()) { getMutableQuests().addAll(other.quests); } + if (other.hasResults()) { + getMutableResults().addAll(other.results); + } return this; } @@ -75705,9 +76511,15 @@ public final class Public { cachedSize = -1; bitField0_ = 0; buildId = 0L; + dayNum = 0; + level = 0; + exp = 0; show.clear(); nextPackage.clear(); + hotValueRewardIds.clear(); + duelRewardIds.clear(); quests.clear(); + results.clear(); return this; } @@ -75720,7 +76532,10 @@ public final class Public { bitField0_ = 0; show.clearQuick(); nextPackage.clear(); + hotValueRewardIds.clear(); + duelRewardIds.clear(); quests.clearQuick(); + results.clearQuick(); return this; } @@ -75735,31 +76550,67 @@ public final class Public { ActivityTrekkerVersus other = (ActivityTrekkerVersus) o; return bitField0_ == other.bitField0_ && (!hasBuildId() || buildId == other.buildId) + && (!hasDayNum() || dayNum == other.dayNum) + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) && (!hasShow() || show.equals(other.show)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasQuests() || quests.equals(other.quests)); + && (!hasHotValueRewardIds() || hotValueRewardIds.equals(other.hotValueRewardIds)) + && (!hasDuelRewardIds() || duelRewardIds.equals(other.duelRewardIds)) + && (!hasQuests() || quests.equals(other.quests)) + && (!hasResults() || results.equals(other.results)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 32); output.writeUInt64NoTag(buildId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(show); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dayNum); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(show); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < hotValueRewardIds.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(hotValueRewardIds.array()[i]); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < duelRewardIds.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(duelRewardIds.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < quests.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 66); output.writeMessageNoTag(quests.get(i)); } } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < results.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(results.get(i)); + } + } } @Override @@ -75769,14 +76620,32 @@ public final class Public { size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(show); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dayNum); } if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(show); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * hotValueRewardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hotValueRewardIds); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * duelRewardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(duelRewardIds); + } + if ((bitField0_ & 0x00000100) != 0) { size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests); } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * results.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(results); + } return size; } @@ -75787,19 +76656,46 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 32: { // buildId buildId = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 8) { break; } } - case 10: { + case 8: { + // dayNum + dayNum = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { // show input.readMessage(show); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 16378) { break; @@ -75808,16 +76704,42 @@ public final class Public { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 26) { + if (tag != 50) { break; } } - case 26: { + case 50: { + // hotValueRewardIds [packed=true] + input.readPackedUInt32(hotValueRewardIds, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // duelRewardIds [packed=true] + input.readPackedUInt32(duelRewardIds, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { // quests tag = input.readRepeatedMessage(quests, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; + if (tag != 74) { + break; + } + } + case 74: { + // results + tag = input.readRepeatedMessage(results, tag); + bitField0_ |= 0x00000200; if (tag != 0) { break; } @@ -75832,6 +76754,18 @@ public final class Public { tag = input.readTag(); break; } + case 48: { + // hotValueRewardIds [packed=false] + tag = input.readRepeatedUInt32(hotValueRewardIds, tag); + bitField0_ |= 0x00000040; + break; + } + case 56: { + // duelRewardIds [packed=false] + tag = input.readRepeatedUInt32(duelRewardIds, tag); + bitField0_ |= 0x00000080; + break; + } } } } @@ -75843,14 +76777,32 @@ public final class Public { output.writeUInt64(FieldNames.buildId, buildId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.show, show); + output.writeUInt32(FieldNames.dayNum, dayNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.show, show); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.hotValueRewardIds, hotValueRewardIds); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.duelRewardIds, duelRewardIds); + } + if ((bitField0_ & 0x00000100) != 0) { output.writeRepeatedMessage(FieldNames.quests, quests); } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.results, results); + } output.endObject(); } @@ -75872,11 +76824,44 @@ public final class Public { } break; } + case 2040047210: { + if (input.isAtField(FieldNames.dayNum)) { + if (!input.trySkipNullValue()) { + dayNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case 2576157: { if (input.isAtField(FieldNames.show)) { if (!input.trySkipNullValue()) { input.readMessage(show); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -75887,7 +76872,29 @@ public final class Public { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -556990427: { + if (input.isAtField(FieldNames.hotValueRewardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(hotValueRewardIds); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1761049297: { + if (input.isAtField(FieldNames.duelRewardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(duelRewardIds); + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -75898,7 +76905,18 @@ public final class Public { if (input.isAtField(FieldNames.quests)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(quests); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1532767274: { + if (input.isAtField(FieldNames.results)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(results); + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -75945,6 +76963,331 @@ public final class Public { return ActivityTrekkerVersusFactory.INSTANCE; } + /** + * Protobuf type {@code HistoryResult} + */ + public static final class HistoryResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 SelfHotValue = 1; + */ + private int selfHotValue; + + /** + * optional uint32 RivalHotValue = 2; + */ + private int rivalHotValue; + + private HistoryResult() { + } + + /** + * @return a new empty instance of {@code HistoryResult} + */ + public static HistoryResult newInstance() { + return new HistoryResult(); + } + + /** + * optional uint32 SelfHotValue = 1; + * @return whether the selfHotValue field is set + */ + public boolean hasSelfHotValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 SelfHotValue = 1; + * @return this + */ + public HistoryResult clearSelfHotValue() { + bitField0_ &= ~0x00000001; + selfHotValue = 0; + return this; + } + + /** + * optional uint32 SelfHotValue = 1; + * @return the selfHotValue + */ + public int getSelfHotValue() { + return selfHotValue; + } + + /** + * optional uint32 SelfHotValue = 1; + * @param value the selfHotValue to set + * @return this + */ + public HistoryResult setSelfHotValue(final int value) { + bitField0_ |= 0x00000001; + selfHotValue = value; + return this; + } + + /** + * optional uint32 RivalHotValue = 2; + * @return whether the rivalHotValue field is set + */ + public boolean hasRivalHotValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 RivalHotValue = 2; + * @return this + */ + public HistoryResult clearRivalHotValue() { + bitField0_ &= ~0x00000002; + rivalHotValue = 0; + return this; + } + + /** + * optional uint32 RivalHotValue = 2; + * @return the rivalHotValue + */ + public int getRivalHotValue() { + return rivalHotValue; + } + + /** + * optional uint32 RivalHotValue = 2; + * @param value the rivalHotValue to set + * @return this + */ + public HistoryResult setRivalHotValue(final int value) { + bitField0_ |= 0x00000002; + rivalHotValue = value; + return this; + } + + @Override + public HistoryResult copyFrom(final HistoryResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + selfHotValue = other.selfHotValue; + rivalHotValue = other.rivalHotValue; + } + return this; + } + + @Override + public HistoryResult mergeFrom(final HistoryResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSelfHotValue()) { + setSelfHotValue(other.selfHotValue); + } + if (other.hasRivalHotValue()) { + setRivalHotValue(other.rivalHotValue); + } + return this; + } + + @Override + public HistoryResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + selfHotValue = 0; + rivalHotValue = 0; + return this; + } + + @Override + public HistoryResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof HistoryResult)) { + return false; + } + HistoryResult other = (HistoryResult) o; + return bitField0_ == other.bitField0_ + && (!hasSelfHotValue() || selfHotValue == other.selfHotValue) + && (!hasRivalHotValue() || rivalHotValue == other.rivalHotValue); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(selfHotValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rivalHotValue); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHotValue); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rivalHotValue); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public HistoryResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // selfHotValue + selfHotValue = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // rivalHotValue + rivalHotValue = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.selfHotValue, selfHotValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rivalHotValue, rivalHotValue); + } + output.endObject(); + } + + @Override + public HistoryResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1360474288: { + if (input.isAtField(FieldNames.selfHotValue)) { + if (!input.trySkipNullValue()) { + selfHotValue = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1039538350: { + if (input.isAtField(FieldNames.rivalHotValue)) { + if (!input.trySkipNullValue()) { + rivalHotValue = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public HistoryResult clone() { + return new HistoryResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HistoryResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HistoryResult(), data).checkInitialized(); + } + + public static HistoryResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HistoryResult(), input).checkInitialized(); + } + + public static HistoryResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HistoryResult(), input).checkInitialized(); + } + + /** + * @return factory for creating HistoryResult messages + */ + public static MessageFactory getFactory() { + return HistoryResultFactory.INSTANCE; + } + + private enum HistoryResultFactory implements MessageFactory { + INSTANCE; + + @Override + public HistoryResult create() { + return HistoryResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName selfHotValue = FieldName.forField("SelfHotValue"); + + static final FieldName rivalHotValue = FieldName.forField("RivalHotValue"); + } + } + private enum ActivityTrekkerVersusFactory implements MessageFactory { INSTANCE; @@ -75960,11 +77303,23 @@ public final class Public { static class FieldNames { static final FieldName buildId = FieldName.forField("BuildId"); + static final FieldName dayNum = FieldName.forField("DayNum"); + + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + static final FieldName show = FieldName.forField("Show"); static final FieldName nextPackage = FieldName.forField("NextPackage"); + static final FieldName hotValueRewardIds = FieldName.forField("HotValueRewardIds"); + + static final FieldName duelRewardIds = FieldName.forField("DuelRewardIds"); + static final FieldName quests = FieldName.forField("Quests"); + + static final FieldName results = FieldName.forField("Results"); } } diff --git a/src/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java index 99a485b..873e7e8 100644 --- a/src/main/java/emu/nebula/GameConstants.java +++ b/src/main/java/emu/nebula/GameConstants.java @@ -6,7 +6,7 @@ import emu.nebula.game.inventory.ItemParam; import emu.nebula.util.WeightedList; public class GameConstants { - public static final String VERSION = "1.7.0"; + public static final String VERSION = "1.8.0"; public static int DATA_VERSION = 0; public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); diff --git a/src/main/java/emu/nebula/game/activity/ActivityModule.java b/src/main/java/emu/nebula/game/activity/ActivityModule.java index d1ee750..b4ec4b3 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityModule.java +++ b/src/main/java/emu/nebula/game/activity/ActivityModule.java @@ -40,9 +40,14 @@ public class ActivityModule extends GameContextModule { //this.activities.add(1010404); // Winter Requiem and the Trigger of Dawn - this.activities.add(1010501); - this.activities.add(1010503); - this.activities.add(1010504); + //this.activities.add(1010501); + //this.activities.add(1010503); + //this.activities.add(1010504); + + // To My Dearest You + this.activities.add(1010601); + this.activities.add(1010603); + this.activities.add(1010604); // ===== Joint Drills (Finale Echoing) ===== this.activities.add(510003); @@ -60,8 +65,8 @@ public class ActivityModule extends GameContextModule { this.activities.add(301011); this.activities.add(301012); - // Trekker versus - this.activities.add(600001); + // Trekker versus (broken) + //this.activities.add(600001); } } diff --git a/src/main/java/emu/nebula/game/activity/type/TrekkerVersusActivity.java b/src/main/java/emu/nebula/game/activity/type/TrekkerVersusActivity.java index a4a6039..9605e66 100644 --- a/src/main/java/emu/nebula/game/activity/type/TrekkerVersusActivity.java +++ b/src/main/java/emu/nebula/game/activity/type/TrekkerVersusActivity.java @@ -81,6 +81,9 @@ public class TrekkerVersusActivity extends GameActivity { public TrekkerVersusShow getShowProto() { var show = TrekkerVersusShow.newInstance(); + // TODO update + + /* if (this.getCharIds() != null) { show.addAllCharIds(this.getCharIds()); show.setBuildScore(this.getBuildScore()); @@ -89,6 +92,7 @@ public class TrekkerVersusActivity extends GameActivity { if (this.getAffixIds() != null) { show.addAllAffixIds(this.getAffixIds()); } + */ return show; } diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java index 356a448..efc46f8 100644 --- a/src/main/java/emu/nebula/net/NetMsgId.java +++ b/src/main/java/emu/nebula/net/NetMsgId.java @@ -711,6 +711,18 @@ public class NetMsgId { public static final int activity_trekker_versus_reward_receive_req = 9131; public static final int activity_trekker_versus_reward_receive_succeed_ack = 9132; public static final int activity_trekker_versus_reward_receive_failed_ack = 9133; + public static final int activity_trekker_versus_idle_refresh_req = 9134; + public static final int activity_trekker_versus_idle_refresh_succeed_ack = 9135; + public static final int activity_trekker_versus_idle_refresh_failed_ack = 9136; + public static final int activity_trekker_versus_idle_reward_receive_req = 9137; + public static final int activity_trekker_versus_idle_reward_receive_succeed_ack = 9138; + public static final int activity_trekker_versus_idle_reward_receive_failed_ack = 9139; + public static final int activity_trekker_versus_rank_boost_req = 9140; + public static final int activity_trekker_versus_rank_boost_succeed_ack = 9141; + public static final int activity_trekker_versus_rank_boost_failed_ack = 9142; + public static final int activity_trekker_versus_schedule_reward_receive_req = 9143; + public static final int activity_trekker_versus_schedule_reward_receive_succeed_ack = 9144; + public static final int activity_trekker_versus_schedule_reward_receive_failed_ack = 9145; public static final int phone_contacts_info_req = 9201; public static final int phone_contacts_info_succeed_ack = 9202; public static final int phone_contacts_info_failed_ack = 9203; diff --git a/src/main/java/emu/nebula/util/Handbook.java b/src/main/java/emu/nebula/util/Handbook.java index b7eda42..8646446 100644 --- a/src/main/java/emu/nebula/util/Handbook.java +++ b/src/main/java/emu/nebula/util/Handbook.java @@ -60,9 +60,11 @@ public class Handbook { var itemLanguageKey = loadLanguageKey(ItemDef.class); for (int id : list) { ItemDef data = GameData.getItemDataTable().get(id); + String name = itemLanguageKey.getOrDefault(data.getTitle(), data.getTitle()); + writer.print(data.getId()); writer.print(" : "); - writer.print(itemLanguageKey.getOrDefault(data.getTitle(), data.getTitle())); + writer.print(name); writer.print(" ["); writer.print(data.getItemType()); @@ -80,7 +82,7 @@ public class Handbook { // Hacky way of checking if a skin is released or not if (data.getItemType() == ItemType.CharacterSkin) { var skinData = GameData.getCharacterSkinDataTable().get(id); - if (skinData != null) { + if (skinData != null && !name.equals("???")) { skinData.setReleased(itemLanguageKey.containsKey(data.getTitle())); } } diff --git a/src/main/resources/versions.json b/src/main/resources/versions.json index d4d5e92..451dc38 100644 --- a/src/main/resources/versions.json +++ b/src/main/resources/versions.json @@ -1,7 +1,7 @@ { - "global": 93, - "kr": 99, - "jp": 96, - "tw": 102, - "cn": 95 + "global": 95, + "kr": 100, + "jp": 97, + "tw": 104, + "cn": 96 } \ No newline at end of file