diff --git a/src/generated/main/emu/nebula/proto/ActivityCookieSettle.java b/src/generated/main/emu/nebula/proto/ActivityCookieSettle.java index 5a93fb2..26ccfc5 100644 --- a/src/generated/main/emu/nebula/proto/ActivityCookieSettle.java +++ b/src/generated/main/emu/nebula/proto/ActivityCookieSettle.java @@ -54,6 +54,16 @@ public final class ActivityCookieSettle { */ private int excellentNum; + /** + * optional uint32 MissNum = 8; + */ + private int missNum; + + /** + * optional uint32 Good = 9; + */ + private int good; + /** * optional bytes NextPackage = 2047; */ @@ -328,12 +338,86 @@ public final class ActivityCookieSettle { return this; } + /** + * optional uint32 MissNum = 8; + * @return whether the missNum field is set + */ + public boolean hasMissNum() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 MissNum = 8; + * @return this + */ + public ActivityCookieSettleReq clearMissNum() { + bitField0_ &= ~0x00000080; + missNum = 0; + return this; + } + + /** + * optional uint32 MissNum = 8; + * @return the missNum + */ + public int getMissNum() { + return missNum; + } + + /** + * optional uint32 MissNum = 8; + * @param value the missNum to set + * @return this + */ + public ActivityCookieSettleReq setMissNum(final int value) { + bitField0_ |= 0x00000080; + missNum = value; + return this; + } + + /** + * optional uint32 Good = 9; + * @return whether the good field is set + */ + public boolean hasGood() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 Good = 9; + * @return this + */ + public ActivityCookieSettleReq clearGood() { + bitField0_ &= ~0x00000100; + good = 0; + return this; + } + + /** + * optional uint32 Good = 9; + * @return the good + */ + public int getGood() { + return good; + } + + /** + * optional uint32 Good = 9; + * @param value the good to set + * @return this + */ + public ActivityCookieSettleReq setGood(final int value) { + bitField0_ |= 0x00000100; + good = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -341,7 +425,7 @@ public final class ActivityCookieSettle { * @return this */ public ActivityCookieSettleReq clearNextPackage() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000200; nextPackage.clear(); return this; } @@ -370,7 +454,7 @@ public final class ActivityCookieSettle { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; return nextPackage; } @@ -380,7 +464,7 @@ public final class ActivityCookieSettle { * @return this */ public ActivityCookieSettleReq addNextPackage(final byte value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; nextPackage.add(value); return this; } @@ -391,7 +475,7 @@ public final class ActivityCookieSettle { * @return this */ public ActivityCookieSettleReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; nextPackage.addAll(values); return this; } @@ -402,7 +486,7 @@ public final class ActivityCookieSettle { * @return this */ public ActivityCookieSettleReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; nextPackage.copyFrom(values); return this; } @@ -419,6 +503,8 @@ public final class ActivityCookieSettle { packageNum = other.packageNum; perfectNum = other.perfectNum; excellentNum = other.excellentNum; + missNum = other.missNum; + good = other.good; nextPackage.copyFrom(other.nextPackage); } return this; @@ -451,6 +537,12 @@ public final class ActivityCookieSettle { if (other.hasExcellentNum()) { setExcellentNum(other.excellentNum); } + if (other.hasMissNum()) { + setMissNum(other.missNum); + } + if (other.hasGood()) { + setGood(other.good); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -471,6 +563,8 @@ public final class ActivityCookieSettle { packageNum = 0; perfectNum = 0; excellentNum = 0; + missNum = 0; + good = 0; nextPackage.clear(); return this; } @@ -503,6 +597,8 @@ public final class ActivityCookieSettle { && (!hasPackageNum() || packageNum == other.packageNum) && (!hasPerfectNum() || perfectNum == other.perfectNum) && (!hasExcellentNum() || excellentNum == other.excellentNum) + && (!hasMissNum() || missNum == other.missNum) + && (!hasGood() || good == other.good) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -537,6 +633,14 @@ public final class ActivityCookieSettle { output.writeUInt32NoTag(excellentNum); } if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(missNum); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(good); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -567,6 +671,12 @@ public final class ActivityCookieSettle { size += 1 + ProtoSink.computeUInt32SizeNoTag(excellentNum); } if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(missNum); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(good); + } + if ((bitField0_ & 0x00000200) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -638,6 +748,24 @@ public final class ActivityCookieSettle { excellentNum = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // missNum + missNum = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // good + good = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); if (tag != 16378) { break; } @@ -645,7 +773,7 @@ public final class ActivityCookieSettle { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 0) { break; @@ -690,6 +818,12 @@ public final class ActivityCookieSettle { output.writeUInt32(FieldNames.excellentNum, excellentNum); } if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.missNum, missNum); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.good, good); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -779,11 +913,33 @@ public final class ActivityCookieSettle { } break; } + case -1560890166: { + if (input.isAtField(FieldNames.missNum)) { + if (!input.trySkipNullValue()) { + missNum = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2225373: { + if (input.isAtField(FieldNames.good)) { + if (!input.trySkipNullValue()) { + good = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -857,6 +1013,10 @@ public final class ActivityCookieSettle { static final FieldName excellentNum = FieldName.forField("ExcellentNum"); + static final FieldName missNum = FieldName.forField("MissNum"); + + static final FieldName good = FieldName.forField("Good"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityDetail.java b/src/generated/main/emu/nebula/proto/ActivityDetail.java index e727393..44f683e 100644 --- a/src/generated/main/emu/nebula/proto/ActivityDetail.java +++ b/src/generated/main/emu/nebula/proto/ActivityDetail.java @@ -85,6 +85,11 @@ public final class ActivityDetail { */ private final Public.ActivityShop shop = Public.ActivityShop.newInstance(); + /** + * optional .ActivityBuildConvert BdConvert = 14; + */ + private final Public.ActivityBuildConvert bdConvert = Public.ActivityBuildConvert.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -821,12 +826,69 @@ public final class ActivityDetail { return this; } + /** + * optional .ActivityBuildConvert BdConvert = 14; + * @return whether the bdConvert field is set + */ + public boolean hasBdConvert() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional .ActivityBuildConvert BdConvert = 14; + * @return this + */ + public ActivityMsg clearBdConvert() { + bitField0_ &= ~0x00002000; + bdConvert.clear(); + return this; + } + + /** + * optional .ActivityBuildConvert BdConvert = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBdConvert()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityBuildConvert getBdConvert() { + return bdConvert; + } + + /** + * optional .ActivityBuildConvert BdConvert = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ActivityBuildConvert getMutableBdConvert() { + bitField0_ |= 0x00002000; + return bdConvert; + } + + /** + * optional .ActivityBuildConvert BdConvert = 14; + * @param value the bdConvert to set + * @return this + */ + public ActivityMsg setBdConvert(final Public.ActivityBuildConvert value) { + bitField0_ |= 0x00002000; + bdConvert.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -834,7 +896,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg clearNextPackage() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00004000; nextPackage.clear(); return this; } @@ -863,7 +925,7 @@ public final class ActivityDetail { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return nextPackage; } @@ -873,7 +935,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addNextPackage(final byte value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; nextPackage.add(value); return this; } @@ -884,7 +946,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addAllNextPackage(final byte... values) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; nextPackage.addAll(values); return this; } @@ -895,7 +957,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg setNextPackage(final byte... values) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; nextPackage.copyFrom(values); return this; } @@ -918,6 +980,7 @@ public final class ActivityDetail { avg.copyFrom(other.avg); task.copyFrom(other.task); shop.copyFrom(other.shop); + bdConvert.copyFrom(other.bdConvert); nextPackage.copyFrom(other.nextPackage); } return this; @@ -968,6 +1031,9 @@ public final class ActivityDetail { if (other.hasShop()) { getMutableShop().mergeFrom(other.shop); } + if (other.hasBdConvert()) { + getMutableBdConvert().mergeFrom(other.bdConvert); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -994,6 +1060,7 @@ public final class ActivityDetail { avg.clear(); task.clear(); shop.clear(); + bdConvert.clear(); nextPackage.clear(); return this; } @@ -1017,6 +1084,7 @@ public final class ActivityDetail { avg.clearQuick(); task.clearQuick(); shop.clearQuick(); + bdConvert.clearQuick(); nextPackage.clear(); return this; } @@ -1044,6 +1112,7 @@ public final class ActivityDetail { && (!hasAvg() || avg.equals(other.avg)) && (!hasTask() || task.equals(other.task)) && (!hasShop() || shop.equals(other.shop)) + && (!hasBdConvert() || bdConvert.equals(other.bdConvert)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -1102,6 +1171,10 @@ public final class ActivityDetail { output.writeMessageNoTag(shop); } if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(bdConvert); + } + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -1150,6 +1223,9 @@ public final class ActivityDetail { size += 1 + ProtoSink.computeMessageSizeNoTag(shop); } if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(bdConvert); + } + if ((bitField0_ & 0x00004000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -1275,6 +1351,15 @@ public final class ActivityDetail { input.readMessage(shop); bitField0_ |= 0x00001000; tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // bdConvert + input.readMessage(bdConvert); + bitField0_ |= 0x00002000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -1282,7 +1367,7 @@ public final class ActivityDetail { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 0) { break; @@ -1345,6 +1430,9 @@ public final class ActivityDetail { output.writeMessage(FieldNames.shop, shop); } if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.bdConvert, bdConvert); + } + if ((bitField0_ & 0x00004000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -1500,11 +1588,22 @@ public final class ActivityDetail { } break; } + case 1770707697: { + if (input.isAtField(FieldNames.bdConvert)) { + if (!input.trySkipNullValue()) { + input.readMessage(bdConvert); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -1589,6 +1688,8 @@ public final class ActivityDetail { static final FieldName shop = FieldName.forField("Shop"); + static final FieldName bdConvert = FieldName.forField("BdConvert"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/BuildConvertDetailListGet.java b/src/generated/main/emu/nebula/proto/BuildConvertDetailListGet.java new file mode 100644 index 0000000..bdffbb2 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/BuildConvertDetailListGet.java @@ -0,0 +1,421 @@ +// 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 BuildConvertDetailListGet { + /** + * Protobuf type {@code BuildConvertDetailListGetResp} + */ + public static final class BuildConvertDetailListGetResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .StarTowerBuildInfo Details = 1; + */ + private final RepeatedMessage details = RepeatedMessage.newEmptyInstance(PublicStarTower.StarTowerBuildInfo.getFactory()); + + private BuildConvertDetailListGetResp() { + } + + /** + * @return a new empty instance of {@code BuildConvertDetailListGetResp} + */ + public static BuildConvertDetailListGetResp newInstance() { + return new BuildConvertDetailListGetResp(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public BuildConvertDetailListGetResp clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000001; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public BuildConvertDetailListGetResp addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public BuildConvertDetailListGetResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public BuildConvertDetailListGetResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .StarTowerBuildInfo Details = 1; + * @return whether the details field is set + */ + public boolean hasDetails() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .StarTowerBuildInfo Details = 1; + * @return this + */ + public BuildConvertDetailListGetResp clearDetails() { + bitField0_ &= ~0x00000002; + details.clear(); + return this; + } + + /** + * repeated .StarTowerBuildInfo Details = 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 #getMutableDetails()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDetails() { + return details; + } + + /** + * repeated .StarTowerBuildInfo Details = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableDetails() { + bitField0_ |= 0x00000002; + return details; + } + + /** + * repeated .StarTowerBuildInfo Details = 1; + * @param value the details to add + * @return this + */ + public BuildConvertDetailListGetResp addDetails( + final PublicStarTower.StarTowerBuildInfo value) { + bitField0_ |= 0x00000002; + details.add(value); + return this; + } + + /** + * repeated .StarTowerBuildInfo Details = 1; + * @param values the details to add + * @return this + */ + public BuildConvertDetailListGetResp addAllDetails( + final PublicStarTower.StarTowerBuildInfo... values) { + bitField0_ |= 0x00000002; + details.addAll(values); + return this; + } + + @Override + public BuildConvertDetailListGetResp copyFrom(final BuildConvertDetailListGetResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + details.copyFrom(other.details); + } + return this; + } + + @Override + public BuildConvertDetailListGetResp mergeFrom(final BuildConvertDetailListGetResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDetails()) { + getMutableDetails().addAll(other.details); + } + return this; + } + + @Override + public BuildConvertDetailListGetResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + details.clear(); + return this; + } + + @Override + public BuildConvertDetailListGetResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + details.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BuildConvertDetailListGetResp)) { + return false; + } + BuildConvertDetailListGetResp other = (BuildConvertDetailListGetResp) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDetails() || details.equals(other.details)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < details.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(details.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * details.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(details); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BuildConvertDetailListGetResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // details + tag = input.readRepeatedMessage(details, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.details, details); + } + output.endObject(); + } + + @Override + public BuildConvertDetailListGetResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1072592350: { + if (input.isAtField(FieldNames.details)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(details); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BuildConvertDetailListGetResp clone() { + return new BuildConvertDetailListGetResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BuildConvertDetailListGetResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BuildConvertDetailListGetResp(), data).checkInitialized(); + } + + public static BuildConvertDetailListGetResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new BuildConvertDetailListGetResp(), input).checkInitialized(); + } + + public static BuildConvertDetailListGetResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new BuildConvertDetailListGetResp(), input).checkInitialized(); + } + + /** + * @return factory for creating BuildConvertDetailListGetResp messages + */ + public static MessageFactory getFactory() { + return BuildConvertDetailListGetRespFactory.INSTANCE; + } + + private enum BuildConvertDetailListGetRespFactory implements MessageFactory { + INSTANCE; + + @Override + public BuildConvertDetailListGetResp create() { + return BuildConvertDetailListGetResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName details = FieldName.forField("Details"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/BuildConvertGroupRewardReceive.java b/src/generated/main/emu/nebula/proto/BuildConvertGroupRewardReceive.java new file mode 100644 index 0000000..17586e9 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/BuildConvertGroupRewardReceive.java @@ -0,0 +1,644 @@ +// 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 BuildConvertGroupRewardReceive { + /** + * Protobuf type {@code BuildConvertGroupRewardReceiveResp} + */ + public static final class BuildConvertGroupRewardReceiveResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo Change = 2; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Ids = 1; + */ + private final RepeatedInt ids = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ItemTpl AwardItems = 3; + */ + private final RepeatedMessage awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory()); + + private BuildConvertGroupRewardReceiveResp() { + } + + /** + * @return a new empty instance of {@code BuildConvertGroupRewardReceiveResp} + */ + public static BuildConvertGroupRewardReceiveResp newInstance() { + return new BuildConvertGroupRewardReceiveResp(); + } + + /** + * optional .ChangeInfo Change = 2; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo Change = 2; + * @return this + */ + public BuildConvertGroupRewardReceiveResp clearChange() { + bitField0_ &= ~0x00000001; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000001; + return change; + } + + /** + * optional .ChangeInfo Change = 2; + * @param value the change to set + * @return this + */ + public BuildConvertGroupRewardReceiveResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public BuildConvertGroupRewardReceiveResp 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 BuildConvertGroupRewardReceiveResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public BuildConvertGroupRewardReceiveResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public BuildConvertGroupRewardReceiveResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Ids = 1; + * @return whether the ids field is set + */ + public boolean hasIds() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 Ids = 1; + * @return this + */ + public BuildConvertGroupRewardReceiveResp clearIds() { + bitField0_ &= ~0x00000004; + ids.clear(); + return this; + } + + /** + * repeated uint32 Ids = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getIds() { + return ids; + } + + /** + * repeated uint32 Ids = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableIds() { + bitField0_ |= 0x00000004; + return ids; + } + + /** + * repeated uint32 Ids = 1; + * @param value the ids to add + * @return this + */ + public BuildConvertGroupRewardReceiveResp addIds(final int value) { + bitField0_ |= 0x00000004; + ids.add(value); + return this; + } + + /** + * repeated uint32 Ids = 1; + * @param values the ids to add + * @return this + */ + public BuildConvertGroupRewardReceiveResp addAllIds(final int... values) { + bitField0_ |= 0x00000004; + ids.addAll(values); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 3; + * @return whether the awardItems field is set + */ + public boolean hasAwardItems() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ItemTpl AwardItems = 3; + * @return this + */ + public BuildConvertGroupRewardReceiveResp clearAwardItems() { + bitField0_ &= ~0x00000008; + awardItems.clear(); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 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 #getMutableAwardItems()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAwardItems() { + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAwardItems() { + bitField0_ |= 0x00000008; + return awardItems; + } + + /** + * repeated .ItemTpl AwardItems = 3; + * @param value the awardItems to add + * @return this + */ + public BuildConvertGroupRewardReceiveResp addAwardItems(final Public.ItemTpl value) { + bitField0_ |= 0x00000008; + awardItems.add(value); + return this; + } + + /** + * repeated .ItemTpl AwardItems = 3; + * @param values the awardItems to add + * @return this + */ + public BuildConvertGroupRewardReceiveResp addAllAwardItems(final Public.ItemTpl... values) { + bitField0_ |= 0x00000008; + awardItems.addAll(values); + return this; + } + + @Override + public BuildConvertGroupRewardReceiveResp copyFrom( + final BuildConvertGroupRewardReceiveResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + ids.copyFrom(other.ids); + awardItems.copyFrom(other.awardItems); + } + return this; + } + + @Override + public BuildConvertGroupRewardReceiveResp mergeFrom( + final BuildConvertGroupRewardReceiveResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasIds()) { + getMutableIds().addAll(other.ids); + } + if (other.hasAwardItems()) { + getMutableAwardItems().addAll(other.awardItems); + } + return this; + } + + @Override + public BuildConvertGroupRewardReceiveResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clear(); + nextPackage.clear(); + ids.clear(); + awardItems.clear(); + return this; + } + + @Override + public BuildConvertGroupRewardReceiveResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + ids.clear(); + awardItems.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BuildConvertGroupRewardReceiveResp)) { + return false; + } + BuildConvertGroupRewardReceiveResp other = (BuildConvertGroupRewardReceiveResp) o; + return bitField0_ == other.bitField0_ + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasIds() || ids.equals(other.ids)) + && (!hasAwardItems() || awardItems.equals(other.awardItems)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < ids.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(ids.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < awardItems.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(awardItems.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ids); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BuildConvertGroupRewardReceiveResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // change + input.readMessage(change); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // ids [packed=true] + input.readPackedUInt32(ids, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // 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; + } + case 8: { + // ids [packed=false] + tag = input.readRepeatedUInt32(ids, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.ids, ids); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.awardItems, awardItems); + } + output.endObject(); + } + + @Override + public BuildConvertGroupRewardReceiveResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73368: { + if (input.isAtField(FieldNames.ids)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ids); + 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 BuildConvertGroupRewardReceiveResp clone() { + return new BuildConvertGroupRewardReceiveResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BuildConvertGroupRewardReceiveResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BuildConvertGroupRewardReceiveResp(), data).checkInitialized(); + } + + public static BuildConvertGroupRewardReceiveResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new BuildConvertGroupRewardReceiveResp(), input).checkInitialized(); + } + + public static BuildConvertGroupRewardReceiveResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new BuildConvertGroupRewardReceiveResp(), input).checkInitialized(); + } + + /** + * @return factory for creating BuildConvertGroupRewardReceiveResp messages + */ + public static MessageFactory getFactory() { + return BuildConvertGroupRewardReceiveRespFactory.INSTANCE; + } + + private enum BuildConvertGroupRewardReceiveRespFactory implements MessageFactory { + INSTANCE; + + @Override + public BuildConvertGroupRewardReceiveResp create() { + return BuildConvertGroupRewardReceiveResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName ids = FieldName.forField("Ids"); + + static final FieldName awardItems = FieldName.forField("AwardItems"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/BuildConvertSubmit.java b/src/generated/main/emu/nebula/proto/BuildConvertSubmit.java new file mode 100644 index 0000000..1cc3392 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/BuildConvertSubmit.java @@ -0,0 +1,1167 @@ +// 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.RepeatedLong; +import us.hebi.quickbuf.RepeatedMessage; + +public final class BuildConvertSubmit { + /** + * Protobuf type {@code BuildConvertSubmitReq} + */ + public static final class BuildConvertSubmitReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 ContentId = 2; + */ + private int contentId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint64 BuildIds = 3; + */ + private final RepeatedLong buildIds = RepeatedLong.newEmptyInstance(); + + private BuildConvertSubmitReq() { + } + + /** + * @return a new empty instance of {@code BuildConvertSubmitReq} + */ + public static BuildConvertSubmitReq newInstance() { + return new BuildConvertSubmitReq(); + } + + /** + * 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 BuildConvertSubmitReq 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 BuildConvertSubmitReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 ContentId = 2; + * @return whether the contentId field is set + */ + public boolean hasContentId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ContentId = 2; + * @return this + */ + public BuildConvertSubmitReq clearContentId() { + bitField0_ &= ~0x00000002; + contentId = 0; + return this; + } + + /** + * optional uint32 ContentId = 2; + * @return the contentId + */ + public int getContentId() { + return contentId; + } + + /** + * optional uint32 ContentId = 2; + * @param value the contentId to set + * @return this + */ + public BuildConvertSubmitReq setContentId(final int value) { + bitField0_ |= 0x00000002; + contentId = 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 BuildConvertSubmitReq 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 BuildConvertSubmitReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public BuildConvertSubmitReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public BuildConvertSubmitReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint64 BuildIds = 3; + * @return whether the buildIds field is set + */ + public boolean hasBuildIds() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint64 BuildIds = 3; + * @return this + */ + public BuildConvertSubmitReq clearBuildIds() { + bitField0_ &= ~0x00000008; + buildIds.clear(); + return this; + } + + /** + * repeated uint64 BuildIds = 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 #getMutableBuildIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedLong getBuildIds() { + return buildIds; + } + + /** + * repeated uint64 BuildIds = 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 RepeatedLong getMutableBuildIds() { + bitField0_ |= 0x00000008; + return buildIds; + } + + /** + * repeated uint64 BuildIds = 3; + * @param value the buildIds to add + * @return this + */ + public BuildConvertSubmitReq addBuildIds(final long value) { + bitField0_ |= 0x00000008; + buildIds.add(value); + return this; + } + + /** + * repeated uint64 BuildIds = 3; + * @param values the buildIds to add + * @return this + */ + public BuildConvertSubmitReq addAllBuildIds(final long... values) { + bitField0_ |= 0x00000008; + buildIds.addAll(values); + return this; + } + + @Override + public BuildConvertSubmitReq copyFrom(final BuildConvertSubmitReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + contentId = other.contentId; + nextPackage.copyFrom(other.nextPackage); + buildIds.copyFrom(other.buildIds); + } + return this; + } + + @Override + public BuildConvertSubmitReq mergeFrom(final BuildConvertSubmitReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasContentId()) { + setContentId(other.contentId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBuildIds()) { + getMutableBuildIds().addAll(other.buildIds); + } + return this; + } + + @Override + public BuildConvertSubmitReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + contentId = 0; + nextPackage.clear(); + buildIds.clear(); + return this; + } + + @Override + public BuildConvertSubmitReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + buildIds.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BuildConvertSubmitReq)) { + return false; + } + BuildConvertSubmitReq other = (BuildConvertSubmitReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasContentId() || contentId == other.contentId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBuildIds() || buildIds.equals(other.buildIds)); + } + + @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(contentId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < buildIds.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt64NoTag(buildIds.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(contentId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * buildIds.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(buildIds); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BuildConvertSubmitReq 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: { + // contentId + contentId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // buildIds [packed=true] + input.readPackedUInt64(buildIds, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // buildIds [packed=false] + tag = input.readRepeatedUInt64(buildIds, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.contentId, contentId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt64(FieldNames.buildIds, buildIds); + } + output.endObject(); + } + + @Override + public BuildConvertSubmitReq 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 1596859220: { + if (input.isAtField(FieldNames.contentId)) { + if (!input.trySkipNullValue()) { + contentId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1366033014: { + if (input.isAtField(FieldNames.buildIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt64(buildIds); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BuildConvertSubmitReq clone() { + return new BuildConvertSubmitReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BuildConvertSubmitReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BuildConvertSubmitReq(), data).checkInitialized(); + } + + public static BuildConvertSubmitReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuildConvertSubmitReq(), input).checkInitialized(); + } + + public static BuildConvertSubmitReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuildConvertSubmitReq(), input).checkInitialized(); + } + + /** + * @return factory for creating BuildConvertSubmitReq messages + */ + public static MessageFactory getFactory() { + return BuildConvertSubmitReqFactory.INSTANCE; + } + + private enum BuildConvertSubmitReqFactory implements MessageFactory { + INSTANCE; + + @Override + public BuildConvertSubmitReq create() { + return BuildConvertSubmitReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName contentId = FieldName.forField("ContentId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName buildIds = FieldName.forField("BuildIds"); + } + } + + /** + * Protobuf type {@code BuildConvertSubmitResp} + */ + public static final class BuildConvertSubmitResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Number = 3; + */ + private int number; + + /** + * 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 BuildConvertSubmitResp() { + } + + /** + * @return a new empty instance of {@code BuildConvertSubmitResp} + */ + public static BuildConvertSubmitResp newInstance() { + return new BuildConvertSubmitResp(); + } + + /** + * optional uint32 Number = 3; + * @return whether the number field is set + */ + public boolean hasNumber() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Number = 3; + * @return this + */ + public BuildConvertSubmitResp clearNumber() { + bitField0_ &= ~0x00000001; + number = 0; + return this; + } + + /** + * optional uint32 Number = 3; + * @return the number + */ + public int getNumber() { + return number; + } + + /** + * optional uint32 Number = 3; + * @param value the number to set + * @return this + */ + public BuildConvertSubmitResp setNumber(final int value) { + bitField0_ |= 0x00000001; + number = 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 BuildConvertSubmitResp 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 BuildConvertSubmitResp 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 BuildConvertSubmitResp 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 BuildConvertSubmitResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public BuildConvertSubmitResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public BuildConvertSubmitResp 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 BuildConvertSubmitResp 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 BuildConvertSubmitResp 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 BuildConvertSubmitResp addAllAwardItems(final Public.ItemTpl... values) { + bitField0_ |= 0x00000008; + awardItems.addAll(values); + return this; + } + + @Override + public BuildConvertSubmitResp copyFrom(final BuildConvertSubmitResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + number = other.number; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + awardItems.copyFrom(other.awardItems); + } + return this; + } + + @Override + public BuildConvertSubmitResp mergeFrom(final BuildConvertSubmitResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNumber()) { + setNumber(other.number); + } + 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 BuildConvertSubmitResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + number = 0; + change.clear(); + nextPackage.clear(); + awardItems.clear(); + return this; + } + + @Override + public BuildConvertSubmitResp 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 BuildConvertSubmitResp)) { + return false; + } + BuildConvertSubmitResp other = (BuildConvertSubmitResp) o; + return bitField0_ == other.bitField0_ + && (!hasNumber() || number == other.number) + && (!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.writeUInt32NoTag(number); + } + 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.computeUInt32SizeNoTag(number); + } + 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 BuildConvertSubmitResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // number + number = input.readUInt32(); + 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.writeUInt32(FieldNames.number, number); + } + 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 BuildConvertSubmitResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1950496919: { + if (input.isAtField(FieldNames.number)) { + if (!input.trySkipNullValue()) { + number = 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 -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 BuildConvertSubmitResp clone() { + return new BuildConvertSubmitResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BuildConvertSubmitResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BuildConvertSubmitResp(), data).checkInitialized(); + } + + public static BuildConvertSubmitResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuildConvertSubmitResp(), input).checkInitialized(); + } + + public static BuildConvertSubmitResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuildConvertSubmitResp(), input).checkInitialized(); + } + + /** + * @return factory for creating BuildConvertSubmitResp messages + */ + public static MessageFactory getFactory() { + return BuildConvertSubmitRespFactory.INSTANCE; + } + + private enum BuildConvertSubmitRespFactory implements MessageFactory { + INSTANCE; + + @Override + public BuildConvertSubmitResp create() { + return BuildConvertSubmitResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName number = FieldName.forField("Number"); + + 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/DiscAllLimitBreak.java b/src/generated/main/emu/nebula/proto/DiscAllLimitBreak.java new file mode 100644 index 0000000..b68a0af --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DiscAllLimitBreak.java @@ -0,0 +1,966 @@ +// 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 DiscAllLimitBreak { + /** + * Protobuf type {@code DiscAllLimitBreakResp} + */ + public static final class DiscAllLimitBreakResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo Change = 2; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 1; + */ + private final RepeatedMessage limitBreaks = RepeatedMessage.newEmptyInstance(DiscLimitBreakChange.getFactory()); + + private DiscAllLimitBreakResp() { + } + + /** + * @return a new empty instance of {@code DiscAllLimitBreakResp} + */ + public static DiscAllLimitBreakResp newInstance() { + return new DiscAllLimitBreakResp(); + } + + /** + * optional .ChangeInfo Change = 2; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo Change = 2; + * @return this + */ + public DiscAllLimitBreakResp clearChange() { + bitField0_ &= ~0x00000001; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChange() { + bitField0_ |= 0x00000001; + return change; + } + + /** + * optional .ChangeInfo Change = 2; + * @param value the change to set + * @return this + */ + public DiscAllLimitBreakResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DiscAllLimitBreakResp 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 DiscAllLimitBreakResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DiscAllLimitBreakResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DiscAllLimitBreakResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 1; + * @return whether the limitBreaks field is set + */ + public boolean hasLimitBreaks() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 1; + * @return this + */ + public DiscAllLimitBreakResp clearLimitBreaks() { + bitField0_ &= ~0x00000004; + limitBreaks.clear(); + return this; + } + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 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 #getMutableLimitBreaks()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLimitBreaks() { + return limitBreaks; + } + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableLimitBreaks() { + bitField0_ |= 0x00000004; + return limitBreaks; + } + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 1; + * @param value the limitBreaks to add + * @return this + */ + public DiscAllLimitBreakResp addLimitBreaks(final DiscLimitBreakChange value) { + bitField0_ |= 0x00000004; + limitBreaks.add(value); + return this; + } + + /** + * repeated .DiscLimitBreakChange LimitBreaks = 1; + * @param values the limitBreaks to add + * @return this + */ + public DiscAllLimitBreakResp addAllLimitBreaks(final DiscLimitBreakChange... values) { + bitField0_ |= 0x00000004; + limitBreaks.addAll(values); + return this; + } + + @Override + public DiscAllLimitBreakResp copyFrom(final DiscAllLimitBreakResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + limitBreaks.copyFrom(other.limitBreaks); + } + return this; + } + + @Override + public DiscAllLimitBreakResp mergeFrom(final DiscAllLimitBreakResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLimitBreaks()) { + getMutableLimitBreaks().addAll(other.limitBreaks); + } + return this; + } + + @Override + public DiscAllLimitBreakResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clear(); + nextPackage.clear(); + limitBreaks.clear(); + return this; + } + + @Override + public DiscAllLimitBreakResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + limitBreaks.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DiscAllLimitBreakResp)) { + return false; + } + DiscAllLimitBreakResp other = (DiscAllLimitBreakResp) o; + return bitField0_ == other.bitField0_ + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLimitBreaks() || limitBreaks.equals(other.limitBreaks)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < limitBreaks.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(limitBreaks.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * limitBreaks.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(limitBreaks); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DiscAllLimitBreakResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // change + input.readMessage(change); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // limitBreaks + tag = input.readRepeatedMessage(limitBreaks, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.limitBreaks, limitBreaks); + } + output.endObject(); + } + + @Override + public DiscAllLimitBreakResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1846825265: { + if (input.isAtField(FieldNames.limitBreaks)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(limitBreaks); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DiscAllLimitBreakResp clone() { + return new DiscAllLimitBreakResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DiscAllLimitBreakResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DiscAllLimitBreakResp(), data).checkInitialized(); + } + + public static DiscAllLimitBreakResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DiscAllLimitBreakResp(), input).checkInitialized(); + } + + public static DiscAllLimitBreakResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DiscAllLimitBreakResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DiscAllLimitBreakResp messages + */ + public static MessageFactory getFactory() { + return DiscAllLimitBreakRespFactory.INSTANCE; + } + + private enum DiscAllLimitBreakRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DiscAllLimitBreakResp create() { + return DiscAllLimitBreakResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName limitBreaks = FieldName.forField("LimitBreaks"); + } + } + + /** + * Protobuf type {@code DiscLimitBreakChange} + */ + public static final class DiscLimitBreakChange extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Star = 2; + */ + private int star; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DiscLimitBreakChange() { + } + + /** + * @return a new empty instance of {@code DiscLimitBreakChange} + */ + public static DiscLimitBreakChange newInstance() { + return new DiscLimitBreakChange(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public DiscLimitBreakChange clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public DiscLimitBreakChange setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Star = 2; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Star = 2; + * @return this + */ + public DiscLimitBreakChange clearStar() { + bitField0_ &= ~0x00000002; + star = 0; + return this; + } + + /** + * optional uint32 Star = 2; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 2; + * @param value the star to set + * @return this + */ + public DiscLimitBreakChange setStar(final int value) { + bitField0_ |= 0x00000002; + star = 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 DiscLimitBreakChange 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 DiscLimitBreakChange addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DiscLimitBreakChange addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DiscLimitBreakChange setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DiscLimitBreakChange copyFrom(final DiscLimitBreakChange other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + star = other.star; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DiscLimitBreakChange mergeFrom(final DiscLimitBreakChange other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DiscLimitBreakChange clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + star = 0; + nextPackage.clear(); + return this; + } + + @Override + public DiscLimitBreakChange 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 DiscLimitBreakChange)) { + return false; + } + DiscLimitBreakChange other = (DiscLimitBreakChange) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasStar() || star == other.star) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(star); + } + 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(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DiscLimitBreakChange mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // star + star = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DiscLimitBreakChange mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -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 DiscLimitBreakChange clone() { + return new DiscLimitBreakChange().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DiscLimitBreakChange parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DiscLimitBreakChange(), data).checkInitialized(); + } + + public static DiscLimitBreakChange parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DiscLimitBreakChange(), input).checkInitialized(); + } + + public static DiscLimitBreakChange parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DiscLimitBreakChange(), input).checkInitialized(); + } + + /** + * @return factory for creating DiscLimitBreakChange messages + */ + public static MessageFactory getFactory() { + return DiscLimitBreakChangeFactory.INSTANCE; + } + + private enum DiscLimitBreakChangeFactory implements MessageFactory { + INSTANCE; + + @Override + public DiscLimitBreakChange create() { + return DiscLimitBreakChange.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/PlayerData.java b/src/generated/main/emu/nebula/proto/PlayerData.java index 1f80554..3463aed 100644 --- a/src/generated/main/emu/nebula/proto/PlayerData.java +++ b/src/generated/main/emu/nebula/proto/PlayerData.java @@ -28,6 +28,11 @@ public final class PlayerData { */ private long talentResetTime; + /** + * optional int64 NicknameResetTime = 121; + */ + private long nicknameResetTime; + /** * optional int64 MusicInfo = 122; */ @@ -285,12 +290,49 @@ public final class PlayerData { return this; } + /** + * optional int64 NicknameResetTime = 121; + * @return whether the nicknameResetTime field is set + */ + public boolean hasNicknameResetTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 NicknameResetTime = 121; + * @return this + */ + public PlayerInfo clearNicknameResetTime() { + bitField0_ &= ~0x00000002; + nicknameResetTime = 0L; + return this; + } + + /** + * optional int64 NicknameResetTime = 121; + * @return the nicknameResetTime + */ + public long getNicknameResetTime() { + return nicknameResetTime; + } + + /** + * optional int64 NicknameResetTime = 121; + * @param value the nicknameResetTime to set + * @return this + */ + public PlayerInfo setNicknameResetTime(final long value) { + bitField0_ |= 0x00000002; + nicknameResetTime = value; + return this; + } + /** * optional int64 MusicInfo = 122; * @return whether the musicInfo field is set */ public boolean hasMusicInfo() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -298,7 +340,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearMusicInfo() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; musicInfo = 0L; return this; } @@ -317,7 +359,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setMusicInfo(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; musicInfo = value; return this; } @@ -327,7 +369,7 @@ public final class PlayerData { * @return whether the serverTs field is set */ public boolean hasServerTs() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -335,7 +377,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearServerTs() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; serverTs = 0L; return this; } @@ -354,7 +396,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setServerTs(final long value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; serverTs = value; return this; } @@ -364,7 +406,7 @@ public final class PlayerData { * @return whether the sendGiftCnt field is set */ public boolean hasSendGiftCnt() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -372,7 +414,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearSendGiftCnt() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; sendGiftCnt = 0; return this; } @@ -391,7 +433,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setSendGiftCnt(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; sendGiftCnt = value; return this; } @@ -401,7 +443,7 @@ public final class PlayerData { * @return whether the signinIndex field is set */ public boolean hasSigninIndex() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -409,7 +451,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearSigninIndex() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; signinIndex = 0; return this; } @@ -428,7 +470,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setSigninIndex(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; signinIndex = value; return this; } @@ -438,7 +480,7 @@ public final class PlayerData { * @return whether the equipmentDoubleCount field is set */ public boolean hasEquipmentDoubleCount() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -446,7 +488,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipmentDoubleCount() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; equipmentDoubleCount = 0; return this; } @@ -465,7 +507,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setEquipmentDoubleCount(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; equipmentDoubleCount = value; return this; } @@ -475,7 +517,7 @@ public final class PlayerData { * @return whether the tourGuideQuestGroup field is set */ public boolean hasTourGuideQuestGroup() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -483,7 +525,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTourGuideQuestGroup() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; tourGuideQuestGroup = 0; return this; } @@ -502,7 +544,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setTourGuideQuestGroup(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tourGuideQuestGroup = value; return this; } @@ -512,7 +554,7 @@ public final class PlayerData { * @return whether the towerTicket field is set */ public boolean hasTowerTicket() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -520,7 +562,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTowerTicket() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; towerTicket = 0; return this; } @@ -539,7 +581,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setTowerTicket(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; towerTicket = value; return this; } @@ -549,7 +591,7 @@ public final class PlayerData { * @return whether the dailyShopRewardStatus field is set */ public boolean hasDailyShopRewardStatus() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -557,7 +599,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyShopRewardStatus() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; dailyShopRewardStatus = false; return this; } @@ -576,7 +618,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setDailyShopRewardStatus(final boolean value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; dailyShopRewardStatus = value; return this; } @@ -586,7 +628,7 @@ public final class PlayerData { * @return whether the acc field is set */ public boolean hasAcc() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -594,7 +636,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAcc() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; acc.clear(); return this; } @@ -623,7 +665,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.AccInfo getMutableAcc() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return acc; } @@ -633,7 +675,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAcc(final Public.AccInfo value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; acc.copyFrom(value); return this; } @@ -643,7 +685,7 @@ public final class PlayerData { * @return whether the formation field is set */ public boolean hasFormation() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -651,7 +693,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearFormation() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; formation.clear(); return this; } @@ -680,7 +722,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.TowerFormation getMutableFormation() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return formation; } @@ -690,7 +732,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setFormation(final Public.TowerFormation value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; formation.copyFrom(value); return this; } @@ -700,7 +742,7 @@ public final class PlayerData { * @return whether the energy field is set */ public boolean hasEnergy() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -708,7 +750,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEnergy() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00001000; energy.clear(); return this; } @@ -737,7 +779,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public EnergyInfo getMutableEnergy() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return energy; } @@ -747,7 +789,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setEnergy(final EnergyInfo value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; energy.copyFrom(value); return this; } @@ -757,7 +799,7 @@ public final class PlayerData { * @return whether the worldClass field is set */ public boolean hasWorldClass() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -765,7 +807,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWorldClass() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; worldClass.clear(); return this; } @@ -794,7 +836,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public WorldClassInfo getMutableWorldClass() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return worldClass; } @@ -804,7 +846,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setWorldClass(final WorldClassInfo value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; worldClass.copyFrom(value); return this; } @@ -814,7 +856,7 @@ public final class PlayerData { * @return whether the agent field is set */ public boolean hasAgent() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -822,7 +864,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAgent() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00004000; agent.clear(); return this; } @@ -851,7 +893,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.AgentData getMutableAgent() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return agent; } @@ -861,7 +903,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAgent(final Public.AgentData value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; agent.copyFrom(value); return this; } @@ -871,7 +913,7 @@ public final class PlayerData { * @return whether the quests field is set */ public boolean hasQuests() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** @@ -879,7 +921,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearQuests() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00008000; quests.clear(); return this; } @@ -908,7 +950,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.Quests getMutableQuests() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return quests; } @@ -918,7 +960,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setQuests(final Public.Quests value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; quests.copyFrom(value); return this; } @@ -928,7 +970,7 @@ public final class PlayerData { * @return whether the state field is set */ public boolean hasState() { - return (bitField0_ & 0x00008000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** @@ -936,7 +978,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearState() { - bitField0_ &= ~0x00008000; + bitField0_ &= ~0x00010000; state.clear(); return this; } @@ -965,7 +1007,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.StateInfo getMutableState() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return state; } @@ -975,7 +1017,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setState(final Public.StateInfo value) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; state.copyFrom(value); return this; } @@ -985,7 +1027,7 @@ public final class PlayerData { * @return whether the phone field is set */ public boolean hasPhone() { - return (bitField0_ & 0x00010000) != 0; + return (bitField0_ & 0x00020000) != 0; } /** @@ -993,7 +1035,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearPhone() { - bitField0_ &= ~0x00010000; + bitField0_ &= ~0x00020000; phone.clear(); return this; } @@ -1022,7 +1064,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public PhoneInfo getMutablePhone() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return phone; } @@ -1032,7 +1074,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setPhone(final PhoneInfo value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; phone.copyFrom(value); return this; } @@ -1042,7 +1084,7 @@ public final class PlayerData { * @return whether the story field is set */ public boolean hasStory() { - return (bitField0_ & 0x00020000) != 0; + return (bitField0_ & 0x00040000) != 0; } /** @@ -1050,7 +1092,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearStory() { - bitField0_ &= ~0x00020000; + bitField0_ &= ~0x00040000; story.clear(); return this; } @@ -1079,7 +1121,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.StoryInfo getMutableStory() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return story; } @@ -1089,7 +1131,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setStory(final Public.StoryInfo value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; story.copyFrom(value); return this; } @@ -1099,7 +1141,7 @@ public final class PlayerData { * @return whether the vampireSurvivorRecord field is set */ public boolean hasVampireSurvivorRecord() { - return (bitField0_ & 0x00040000) != 0; + return (bitField0_ & 0x00080000) != 0; } /** @@ -1107,7 +1149,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearVampireSurvivorRecord() { - bitField0_ &= ~0x00040000; + bitField0_ &= ~0x00080000; vampireSurvivorRecord.clear(); return this; } @@ -1136,7 +1178,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.VampireSurvivorRecordInfo getMutableVampireSurvivorRecord() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return vampireSurvivorRecord; } @@ -1146,7 +1188,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setVampireSurvivorRecord(final Public.VampireSurvivorRecordInfo value) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; vampireSurvivorRecord.copyFrom(value); return this; } @@ -1156,7 +1198,7 @@ public final class PlayerData { * @return whether the achievements field is set */ public boolean hasAchievements() { - return (bitField0_ & 0x00080000) != 0; + return (bitField0_ & 0x00100000) != 0; } /** @@ -1164,7 +1206,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAchievements() { - bitField0_ &= ~0x00080000; + bitField0_ &= ~0x00100000; achievements.clear(); return this; } @@ -1193,7 +1235,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableAchievements() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; return achievements; } @@ -1203,7 +1245,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAchievements(final byte value) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; achievements.add(value); return this; } @@ -1214,7 +1256,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAchievements(final byte... values) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; achievements.addAll(values); return this; } @@ -1225,7 +1267,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAchievements(final byte... values) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; achievements.copyFrom(values); return this; } @@ -1235,7 +1277,7 @@ public final class PlayerData { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00100000) != 0; + return (bitField0_ & 0x00200000) != 0; } /** @@ -1243,7 +1285,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearNextPackage() { - bitField0_ &= ~0x00100000; + bitField0_ &= ~0x00200000; nextPackage.clear(); return this; } @@ -1272,7 +1314,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return nextPackage; } @@ -1282,7 +1324,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addNextPackage(final byte value) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; nextPackage.add(value); return this; } @@ -1293,7 +1335,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; nextPackage.addAll(values); return this; } @@ -1304,7 +1346,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; nextPackage.copyFrom(values); return this; } @@ -1314,7 +1356,7 @@ public final class PlayerData { * @return whether the rglPassedIds field is set */ public boolean hasRglPassedIds() { - return (bitField0_ & 0x00200000) != 0; + return (bitField0_ & 0x00400000) != 0; } /** @@ -1322,7 +1364,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRglPassedIds() { - bitField0_ &= ~0x00200000; + bitField0_ &= ~0x00400000; rglPassedIds.clear(); return this; } @@ -1351,7 +1393,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableRglPassedIds() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return rglPassedIds; } @@ -1361,7 +1403,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRglPassedIds(final int value) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; rglPassedIds.add(value); return this; } @@ -1372,7 +1414,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRglPassedIds(final int... values) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; rglPassedIds.addAll(values); return this; } @@ -1382,7 +1424,7 @@ public final class PlayerData { * @return whether the board field is set */ public boolean hasBoard() { - return (bitField0_ & 0x00400000) != 0; + return (bitField0_ & 0x00800000) != 0; } /** @@ -1390,7 +1432,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearBoard() { - bitField0_ &= ~0x00400000; + bitField0_ &= ~0x00800000; board.clear(); return this; } @@ -1419,7 +1461,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableBoard() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; return board; } @@ -1429,7 +1471,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addBoard(final int value) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; board.add(value); return this; } @@ -1440,7 +1482,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllBoard(final int... values) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; board.addAll(values); return this; } @@ -1450,7 +1492,7 @@ public final class PlayerData { * @return whether the datingCharIds field is set */ public boolean hasDatingCharIds() { - return (bitField0_ & 0x00800000) != 0; + return (bitField0_ & 0x01000000) != 0; } /** @@ -1458,7 +1500,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDatingCharIds() { - bitField0_ &= ~0x00800000; + bitField0_ &= ~0x01000000; datingCharIds.clear(); return this; } @@ -1487,7 +1529,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDatingCharIds() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return datingCharIds; } @@ -1497,7 +1539,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDatingCharIds(final int value) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; datingCharIds.add(value); return this; } @@ -1508,7 +1550,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDatingCharIds(final int... values) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; datingCharIds.addAll(values); return this; } @@ -1518,7 +1560,7 @@ public final class PlayerData { * @return whether the dailyActiveIds field is set */ public boolean hasDailyActiveIds() { - return (bitField0_ & 0x01000000) != 0; + return (bitField0_ & 0x02000000) != 0; } /** @@ -1526,7 +1568,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyActiveIds() { - bitField0_ &= ~0x01000000; + bitField0_ &= ~0x02000000; dailyActiveIds.clear(); return this; } @@ -1555,7 +1597,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDailyActiveIds() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; return dailyActiveIds; } @@ -1565,7 +1607,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyActiveIds(final int value) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; dailyActiveIds.add(value); return this; } @@ -1576,7 +1618,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyActiveIds(final int... values) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; dailyActiveIds.addAll(values); return this; } @@ -1586,7 +1628,7 @@ public final class PlayerData { * @return whether the honorList field is set */ public boolean hasHonorList() { - return (bitField0_ & 0x02000000) != 0; + return (bitField0_ & 0x04000000) != 0; } /** @@ -1594,7 +1636,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonorList() { - bitField0_ &= ~0x02000000; + bitField0_ &= ~0x04000000; honorList.clear(); return this; } @@ -1623,7 +1665,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableHonorList() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; return honorList; } @@ -1633,7 +1675,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonorList(final int value) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; honorList.add(value); return this; } @@ -1644,7 +1686,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonorList(final int... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; honorList.addAll(values); return this; } @@ -1654,7 +1696,7 @@ public final class PlayerData { * @return whether the res field is set */ public boolean hasRes() { - return (bitField0_ & 0x04000000) != 0; + return (bitField0_ & 0x08000000) != 0; } /** @@ -1662,7 +1704,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRes() { - bitField0_ &= ~0x04000000; + bitField0_ &= ~0x08000000; res.clear(); return this; } @@ -1691,7 +1733,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRes() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; return res; } @@ -1701,7 +1743,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRes(final Public.Res value) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; res.add(value); return this; } @@ -1712,7 +1754,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRes(final Public.Res... values) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; res.addAll(values); return this; } @@ -1722,7 +1764,7 @@ public final class PlayerData { * @return whether the items field is set */ public boolean hasItems() { - return (bitField0_ & 0x08000000) != 0; + return (bitField0_ & 0x10000000) != 0; } /** @@ -1730,7 +1772,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearItems() { - bitField0_ &= ~0x08000000; + bitField0_ &= ~0x10000000; items.clear(); return this; } @@ -1759,7 +1801,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableItems() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; return items; } @@ -1769,7 +1811,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addItems(final Public.Item value) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; items.add(value); return this; } @@ -1780,7 +1822,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllItems(final Public.Item... values) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; items.addAll(values); return this; } @@ -1790,7 +1832,7 @@ public final class PlayerData { * @return whether the chars field is set */ public boolean hasChars() { - return (bitField0_ & 0x10000000) != 0; + return (bitField0_ & 0x20000000) != 0; } /** @@ -1798,7 +1840,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearChars() { - bitField0_ &= ~0x10000000; + bitField0_ &= ~0x20000000; chars.clear(); return this; } @@ -1827,7 +1869,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableChars() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; return chars; } @@ -1837,7 +1879,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addChars(final Public.Char value) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; chars.add(value); return this; } @@ -1848,7 +1890,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllChars(final Public.Char... values) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; chars.addAll(values); return this; } @@ -1858,7 +1900,7 @@ public final class PlayerData { * @return whether the equipments field is set */ public boolean hasEquipments() { - return (bitField0_ & 0x20000000) != 0; + return (bitField0_ & 0x40000000) != 0; } /** @@ -1866,7 +1908,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipments() { - bitField0_ &= ~0x20000000; + bitField0_ &= ~0x40000000; equipments.clear(); return this; } @@ -1895,7 +1937,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipments() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; return equipments; } @@ -1905,7 +1947,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipments(final Public.EquipmentInfo value) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; equipments.add(value); return this; } @@ -1916,7 +1958,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipments(final Public.EquipmentInfo... values) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; equipments.addAll(values); return this; } @@ -1926,7 +1968,7 @@ public final class PlayerData { * @return whether the regionBossLevels field is set */ public boolean hasRegionBossLevels() { - return (bitField0_ & 0x40000000) != 0; + return (bitField0_ & 0x80000000) != 0; } /** @@ -1934,7 +1976,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRegionBossLevels() { - bitField0_ &= ~0x40000000; + bitField0_ &= ~0x80000000; regionBossLevels.clear(); return this; } @@ -1963,7 +2005,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRegionBossLevels() { - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; return regionBossLevels; } @@ -1973,7 +2015,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRegionBossLevels(final Public.RegionBossLevel value) { - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; regionBossLevels.add(value); return this; } @@ -1984,7 +2026,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRegionBossLevels(final Public.RegionBossLevel... values) { - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; regionBossLevels.addAll(values); return this; } @@ -1994,7 +2036,7 @@ public final class PlayerData { * @return whether the handbook field is set */ public boolean hasHandbook() { - return (bitField0_ & 0x80000000) != 0; + return (bitField1_ & 0x00000001) != 0; } /** @@ -2002,7 +2044,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHandbook() { - bitField0_ &= ~0x80000000; + bitField1_ &= ~0x00000001; handbook.clear(); return this; } @@ -2031,7 +2073,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHandbook() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; return handbook; } @@ -2041,7 +2083,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHandbook(final Public.HandbookInfo value) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; handbook.add(value); return this; } @@ -2052,7 +2094,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHandbook(final Public.HandbookInfo... values) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; handbook.addAll(values); return this; } @@ -2062,7 +2104,7 @@ public final class PlayerData { * @return whether the titles field is set */ public boolean hasTitles() { - return (bitField1_ & 0x00000001) != 0; + return (bitField1_ & 0x00000002) != 0; } /** @@ -2070,7 +2112,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTitles() { - bitField1_ &= ~0x00000001; + bitField1_ &= ~0x00000002; titles.clear(); return this; } @@ -2099,7 +2141,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTitles() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; return titles; } @@ -2109,7 +2151,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTitles(final Public.Title value) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; titles.add(value); return this; } @@ -2120,7 +2162,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTitles(final Public.Title... values) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; titles.addAll(values); return this; } @@ -2130,7 +2172,7 @@ public final class PlayerData { * @return whether the dailyInstances field is set */ public boolean hasDailyInstances() { - return (bitField1_ & 0x00000002) != 0; + return (bitField1_ & 0x00000004) != 0; } /** @@ -2138,7 +2180,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyInstances() { - bitField1_ &= ~0x00000002; + bitField1_ &= ~0x00000004; dailyInstances.clear(); return this; } @@ -2167,7 +2209,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDailyInstances() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; return dailyInstances; } @@ -2177,7 +2219,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyInstances(final Public.DailyInstance value) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; dailyInstances.add(value); return this; } @@ -2188,7 +2230,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyInstances(final Public.DailyInstance... values) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; dailyInstances.addAll(values); return this; } @@ -2198,7 +2240,7 @@ public final class PlayerData { * @return whether the dictionaries field is set */ public boolean hasDictionaries() { - return (bitField1_ & 0x00000004) != 0; + return (bitField1_ & 0x00000008) != 0; } /** @@ -2206,7 +2248,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDictionaries() { - bitField1_ &= ~0x00000004; + bitField1_ &= ~0x00000008; dictionaries.clear(); return this; } @@ -2235,7 +2277,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDictionaries() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; return dictionaries; } @@ -2245,7 +2287,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDictionaries(final DictionaryTab value) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; dictionaries.add(value); return this; } @@ -2256,7 +2298,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDictionaries(final DictionaryTab... values) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; dictionaries.addAll(values); return this; } @@ -2266,7 +2308,7 @@ public final class PlayerData { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField1_ & 0x00000008) != 0; + return (bitField1_ & 0x00000010) != 0; } /** @@ -2274,7 +2316,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearActivities() { - bitField1_ &= ~0x00000008; + bitField1_ &= ~0x00000010; activities.clear(); return this; } @@ -2303,7 +2345,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; return activities; } @@ -2313,7 +2355,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addActivities(final Public.Activity value) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; activities.add(value); return this; } @@ -2324,7 +2366,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllActivities(final Public.Activity... values) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; activities.addAll(values); return this; } @@ -2334,7 +2376,7 @@ public final class PlayerData { * @return whether the discs field is set */ public boolean hasDiscs() { - return (bitField1_ & 0x00000010) != 0; + return (bitField1_ & 0x00000020) != 0; } /** @@ -2342,7 +2384,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDiscs() { - bitField1_ &= ~0x00000010; + bitField1_ &= ~0x00000020; discs.clear(); return this; } @@ -2371,7 +2413,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDiscs() { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; return discs; } @@ -2381,7 +2423,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDiscs(final Public.Disc value) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; discs.add(value); return this; } @@ -2392,7 +2434,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDiscs(final Public.Disc... values) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; discs.addAll(values); return this; } @@ -2402,7 +2444,7 @@ public final class PlayerData { * @return whether the equipmentInstances field is set */ public boolean hasEquipmentInstances() { - return (bitField1_ & 0x00000020) != 0; + return (bitField1_ & 0x00000040) != 0; } /** @@ -2410,7 +2452,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipmentInstances() { - bitField1_ &= ~0x00000020; + bitField1_ &= ~0x00000040; equipmentInstances.clear(); return this; } @@ -2439,7 +2481,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipmentInstances() { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; return equipmentInstances; } @@ -2449,7 +2491,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipmentInstances(final Public.EquipmentInstance value) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; equipmentInstances.add(value); return this; } @@ -2460,7 +2502,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipmentInstances(final Public.EquipmentInstance... values) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; equipmentInstances.addAll(values); return this; } @@ -2470,7 +2512,7 @@ public final class PlayerData { * @return whether the skillInstances field is set */ public boolean hasSkillInstances() { - return (bitField1_ & 0x00000040) != 0; + return (bitField1_ & 0x00000080) != 0; } /** @@ -2478,7 +2520,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearSkillInstances() { - bitField1_ &= ~0x00000040; + bitField1_ &= ~0x00000080; skillInstances.clear(); return this; } @@ -2507,7 +2549,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableSkillInstances() { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; return skillInstances; } @@ -2517,7 +2559,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addSkillInstances(final Public.SkillInstance value) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; skillInstances.add(value); return this; } @@ -2528,7 +2570,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllSkillInstances(final Public.SkillInstance... values) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; skillInstances.addAll(values); return this; } @@ -2538,7 +2580,7 @@ public final class PlayerData { * @return whether the weekBossLevels field is set */ public boolean hasWeekBossLevels() { - return (bitField1_ & 0x00000080) != 0; + return (bitField1_ & 0x00000100) != 0; } /** @@ -2546,7 +2588,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeekBossLevels() { - bitField1_ &= ~0x00000080; + bitField1_ &= ~0x00000100; weekBossLevels.clear(); return this; } @@ -2575,7 +2617,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableWeekBossLevels() { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; return weekBossLevels; } @@ -2585,7 +2627,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeekBossLevels(final Public.WeekBossLevel value) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; weekBossLevels.add(value); return this; } @@ -2596,7 +2638,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeekBossLevels(final Public.WeekBossLevel... values) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; weekBossLevels.addAll(values); return this; } @@ -2606,7 +2648,7 @@ public final class PlayerData { * @return whether the charGemInstances field is set */ public boolean hasCharGemInstances() { - return (bitField1_ & 0x00000100) != 0; + return (bitField1_ & 0x00000200) != 0; } /** @@ -2614,7 +2656,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearCharGemInstances() { - bitField1_ &= ~0x00000100; + bitField1_ &= ~0x00000200; charGemInstances.clear(); return this; } @@ -2643,7 +2685,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharGemInstances() { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; return charGemInstances; } @@ -2653,7 +2695,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addCharGemInstances(final Public.CharGemInstance value) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; charGemInstances.add(value); return this; } @@ -2664,7 +2706,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllCharGemInstances(final Public.CharGemInstance... values) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; charGemInstances.addAll(values); return this; } @@ -2674,7 +2716,7 @@ public final class PlayerData { * @return whether the tutorialLevels field is set */ public boolean hasTutorialLevels() { - return (bitField1_ & 0x00000200) != 0; + return (bitField1_ & 0x00000400) != 0; } /** @@ -2682,7 +2724,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTutorialLevels() { - bitField1_ &= ~0x00000200; + bitField1_ &= ~0x00000400; tutorialLevels.clear(); return this; } @@ -2711,7 +2753,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTutorialLevels() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; return tutorialLevels; } @@ -2721,7 +2763,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTutorialLevels(final Public.TutorialLevel value) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; tutorialLevels.add(value); return this; } @@ -2732,7 +2774,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTutorialLevels(final Public.TutorialLevel... values) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; tutorialLevels.addAll(values); return this; } @@ -2742,7 +2784,7 @@ public final class PlayerData { * @return whether the honors field is set */ public boolean hasHonors() { - return (bitField1_ & 0x00000400) != 0; + return (bitField1_ & 0x00000800) != 0; } /** @@ -2750,7 +2792,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonors() { - bitField1_ &= ~0x00000400; + bitField1_ &= ~0x00000800; honors.clear(); return this; } @@ -2779,7 +2821,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; return honors; } @@ -2789,7 +2831,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonors(final Public.HonorInfo value) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; honors.add(value); return this; } @@ -2800,7 +2842,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonors(final Public.HonorInfo... values) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; honors.addAll(values); return this; } @@ -2811,6 +2853,7 @@ public final class PlayerData { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; talentResetTime = other.talentResetTime; + nicknameResetTime = other.nicknameResetTime; musicInfo = other.musicInfo; serverTs = other.serverTs; sendGiftCnt = other.sendGiftCnt; @@ -2841,10 +2884,10 @@ public final class PlayerData { chars.copyFrom(other.chars); equipments.copyFrom(other.equipments); regionBossLevels.copyFrom(other.regionBossLevels); - handbook.copyFrom(other.handbook); } if ((bitField1_ | other.bitField1_) != 0) { bitField1_ = other.bitField1_; + handbook.copyFrom(other.handbook); titles.copyFrom(other.titles); dailyInstances.copyFrom(other.dailyInstances); dictionaries.copyFrom(other.dictionaries); @@ -2869,6 +2912,9 @@ public final class PlayerData { if (other.hasTalentResetTime()) { setTalentResetTime(other.talentResetTime); } + if (other.hasNicknameResetTime()) { + setNicknameResetTime(other.nicknameResetTime); + } if (other.hasMusicInfo()) { setMusicInfo(other.musicInfo); } @@ -3007,6 +3053,7 @@ public final class PlayerData { bitField0_ = 0; bitField1_ = 0; talentResetTime = 0L; + nicknameResetTime = 0L; musicInfo = 0L; serverTs = 0L; sendGiftCnt = 0; @@ -3109,6 +3156,7 @@ public final class PlayerData { return bitField0_ == other.bitField0_ && bitField1_ == other.bitField1_ && (!hasTalentResetTime() || talentResetTime == other.talentResetTime) + && (!hasNicknameResetTime() || nicknameResetTime == other.nicknameResetTime) && (!hasMusicInfo() || musicInfo == other.musicInfo) && (!hasServerTs() || serverTs == other.serverTs) && (!hasSendGiftCnt() || sendGiftCnt == other.sendGiftCnt) @@ -3160,212 +3208,216 @@ public final class PlayerData { output.writeInt64NoTag(talentResetTime); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 1992); + output.writeInt64NoTag(nicknameResetTime); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 2000); output.writeInt64NoTag(musicInfo); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 2040); output.writeInt64NoTag(serverTs); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 120); output.writeUInt32NoTag(sendGiftCnt); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 416); output.writeUInt32NoTag(signinIndex); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawLittleEndian16((short) 472); output.writeUInt32NoTag(equipmentDoubleCount); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawLittleEndian16((short) 648); output.writeUInt32NoTag(tourGuideQuestGroup); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRawLittleEndian16((short) 2032); output.writeUInt32NoTag(towerTicket); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRawLittleEndian16((short) 2024); output.writeBoolNoTag(dailyShopRewardStatus); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 10); output.writeMessageNoTag(acc); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(formation); } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00001000) != 0) { output.writeRawByte((byte) 58); output.writeMessageNoTag(energy); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeRawByte((byte) 66); output.writeMessageNoTag(worldClass); } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00004000) != 0) { output.writeRawByte((byte) 74); output.writeMessageNoTag(agent); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { output.writeRawByte((byte) 106); output.writeMessageNoTag(quests); } - if ((bitField0_ & 0x00008000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { output.writeRawByte((byte) 114); output.writeMessageNoTag(state); } - if ((bitField0_ & 0x00010000) != 0) { + if ((bitField0_ & 0x00020000) != 0) { output.writeRawLittleEndian16((short) 458); output.writeMessageNoTag(phone); } - if ((bitField0_ & 0x00020000) != 0) { + if ((bitField0_ & 0x00040000) != 0) { output.writeRawLittleEndian16((short) 498); output.writeMessageNoTag(story); } - if ((bitField0_ & 0x00040000) != 0) { + if ((bitField0_ & 0x00080000) != 0) { output.writeRawLittleEndian16((short) 506); output.writeMessageNoTag(vampireSurvivorRecord); } - if ((bitField0_ & 0x00080000) != 0) { + if ((bitField0_ & 0x00100000) != 0) { output.writeRawLittleEndian16((short) 402); output.writeBytesNoTag(achievements); } - if ((bitField0_ & 0x00100000) != 0) { + if ((bitField0_ & 0x00200000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00200000) != 0) { + if ((bitField0_ & 0x00400000) != 0) { for (int i = 0; i < rglPassedIds.length(); i++) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(rglPassedIds.array()[i]); } } - if ((bitField0_ & 0x00400000) != 0) { + if ((bitField0_ & 0x00800000) != 0) { for (int i = 0; i < board.length(); i++) { output.writeRawLittleEndian16((short) 384); output.writeUInt32NoTag(board.array()[i]); } } - if ((bitField0_ & 0x00800000) != 0) { + if ((bitField0_ & 0x01000000) != 0) { for (int i = 0; i < datingCharIds.length(); i++) { output.writeRawLittleEndian16((short) 392); output.writeUInt32NoTag(datingCharIds.array()[i]); } } - if ((bitField0_ & 0x01000000) != 0) { + if ((bitField0_ & 0x02000000) != 0) { for (int i = 0; i < dailyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 640); output.writeUInt32NoTag(dailyActiveIds.array()[i]); } } - if ((bitField0_ & 0x02000000) != 0) { + if ((bitField0_ & 0x04000000) != 0) { for (int i = 0; i < honorList.length(); i++) { output.writeRawLittleEndian16((short) 2008); output.writeUInt32NoTag(honorList.array()[i]); } } - if ((bitField0_ & 0x04000000) != 0) { + if ((bitField0_ & 0x08000000) != 0) { for (int i = 0; i < res.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(res.get(i)); } } - if ((bitField0_ & 0x08000000) != 0) { + if ((bitField0_ & 0x10000000) != 0) { for (int i = 0; i < items.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(items.get(i)); } } - if ((bitField0_ & 0x10000000) != 0) { + if ((bitField0_ & 0x20000000) != 0) { for (int i = 0; i < chars.length(); i++) { output.writeRawByte((byte) 34); output.writeMessageNoTag(chars.get(i)); } } - if ((bitField0_ & 0x20000000) != 0) { + if ((bitField0_ & 0x40000000) != 0) { for (int i = 0; i < equipments.length(); i++) { output.writeRawByte((byte) 90); output.writeMessageNoTag(equipments.get(i)); } } - if ((bitField0_ & 0x40000000) != 0) { + if ((bitField0_ & 0x80000000) != 0) { for (int i = 0; i < regionBossLevels.length(); i++) { output.writeRawByte((byte) 98); output.writeMessageNoTag(regionBossLevels.get(i)); } } - if ((bitField0_ & 0x80000000) != 0) { + if ((bitField1_ & 0x00000001) != 0) { for (int i = 0; i < handbook.length(); i++) { output.writeRawLittleEndian16((short) 410); output.writeMessageNoTag(handbook.get(i)); } } - if ((bitField1_ & 0x00000001) != 0) { + if ((bitField1_ & 0x00000002) != 0) { for (int i = 0; i < titles.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(titles.get(i)); } } - if ((bitField1_ & 0x00000002) != 0) { + if ((bitField1_ & 0x00000004) != 0) { for (int i = 0; i < dailyInstances.length(); i++) { output.writeRawLittleEndian16((short) 434); output.writeMessageNoTag(dailyInstances.get(i)); } } - if ((bitField1_ & 0x00000004) != 0) { + if ((bitField1_ & 0x00000008) != 0) { for (int i = 0; i < dictionaries.length(); i++) { output.writeRawLittleEndian16((short) 442); output.writeMessageNoTag(dictionaries.get(i)); } } - if ((bitField1_ & 0x00000008) != 0) { + if ((bitField1_ & 0x00000010) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 450); output.writeMessageNoTag(activities.get(i)); } } - if ((bitField1_ & 0x00000010) != 0) { + if ((bitField1_ & 0x00000020) != 0) { for (int i = 0; i < discs.length(); i++) { output.writeRawLittleEndian16((short) 482); output.writeMessageNoTag(discs.get(i)); } } - if ((bitField1_ & 0x00000020) != 0) { + if ((bitField1_ & 0x00000040) != 0) { for (int i = 0; i < equipmentInstances.length(); i++) { output.writeRawLittleEndian16((short) 490); output.writeMessageNoTag(equipmentInstances.get(i)); } } - if ((bitField1_ & 0x00000040) != 0) { + if ((bitField1_ & 0x00000080) != 0) { for (int i = 0; i < skillInstances.length(); i++) { output.writeRawLittleEndian16((short) 658); output.writeMessageNoTag(skillInstances.get(i)); } } - if ((bitField1_ & 0x00000080) != 0) { + if ((bitField1_ & 0x00000100) != 0) { for (int i = 0; i < weekBossLevels.length(); i++) { output.writeRawLittleEndian16((short) 666); output.writeMessageNoTag(weekBossLevels.get(i)); } } - if ((bitField1_ & 0x00000100) != 0) { + if ((bitField1_ & 0x00000200) != 0) { for (int i = 0; i < charGemInstances.length(); i++) { output.writeRawLittleEndian16((short) 674); output.writeMessageNoTag(charGemInstances.get(i)); } } - if ((bitField1_ & 0x00000200) != 0) { + if ((bitField1_ & 0x00000400) != 0) { for (int i = 0; i < tutorialLevels.length(); i++) { output.writeRawLittleEndian16((short) 682); output.writeMessageNoTag(tutorialLevels.get(i)); } } - if ((bitField1_ & 0x00000400) != 0) { + if ((bitField1_ & 0x00000800) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawLittleEndian16((short) 2018); output.writeMessageNoTag(honors.get(i)); @@ -3380,129 +3432,132 @@ public final class PlayerData { size += 2 + ProtoSink.computeInt64SizeNoTag(talentResetTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeInt64SizeNoTag(musicInfo); + size += 2 + ProtoSink.computeInt64SizeNoTag(nicknameResetTime); } if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeInt64SizeNoTag(serverTs); + size += 2 + ProtoSink.computeInt64SizeNoTag(musicInfo); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(sendGiftCnt); + size += 2 + ProtoSink.computeInt64SizeNoTag(serverTs); } if ((bitField0_ & 0x00000010) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(signinIndex); + size += 1 + ProtoSink.computeUInt32SizeNoTag(sendGiftCnt); } if ((bitField0_ & 0x00000020) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(equipmentDoubleCount); + size += 2 + ProtoSink.computeUInt32SizeNoTag(signinIndex); } if ((bitField0_ & 0x00000040) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(tourGuideQuestGroup); + size += 2 + ProtoSink.computeUInt32SizeNoTag(equipmentDoubleCount); } if ((bitField0_ & 0x00000080) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(towerTicket); + size += 2 + ProtoSink.computeUInt32SizeNoTag(tourGuideQuestGroup); } if ((bitField0_ & 0x00000100) != 0) { - size += 3; + size += 2 + ProtoSink.computeUInt32SizeNoTag(towerTicket); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(acc); + size += 3; } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(formation); + size += 1 + ProtoSink.computeMessageSizeNoTag(acc); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(energy); + size += 1 + ProtoSink.computeMessageSizeNoTag(formation); } if ((bitField0_ & 0x00001000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(worldClass); + size += 1 + ProtoSink.computeMessageSizeNoTag(energy); } if ((bitField0_ & 0x00002000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(agent); + size += 1 + ProtoSink.computeMessageSizeNoTag(worldClass); } if ((bitField0_ & 0x00004000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(quests); + size += 1 + ProtoSink.computeMessageSizeNoTag(agent); } if ((bitField0_ & 0x00008000) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(state); + size += 1 + ProtoSink.computeMessageSizeNoTag(quests); } if ((bitField0_ & 0x00010000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(phone); + size += 1 + ProtoSink.computeMessageSizeNoTag(state); } if ((bitField0_ & 0x00020000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(story); + size += 2 + ProtoSink.computeMessageSizeNoTag(phone); } if ((bitField0_ & 0x00040000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(vampireSurvivorRecord); + size += 2 + ProtoSink.computeMessageSizeNoTag(story); } if ((bitField0_ & 0x00080000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); + size += 2 + ProtoSink.computeMessageSizeNoTag(vampireSurvivorRecord); } if ((bitField0_ & 0x00100000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); } if ((bitField0_ & 0x00200000) != 0) { - size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00400000) != 0) { - size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); + size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); } if ((bitField0_ & 0x00800000) != 0) { - size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); + size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); } if ((bitField0_ & 0x01000000) != 0) { - size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); + size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); } if ((bitField0_ & 0x02000000) != 0) { - size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); + size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); } if ((bitField0_ & 0x04000000) != 0) { - size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); + size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); } if ((bitField0_ & 0x08000000) != 0) { - size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); } if ((bitField0_ & 0x10000000) != 0) { - size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); } if ((bitField0_ & 0x20000000) != 0) { - size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); + size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); } if ((bitField0_ & 0x40000000) != 0) { - size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); + size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); } if ((bitField0_ & 0x80000000) != 0) { - size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); + size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); } if ((bitField1_ & 0x00000001) != 0) { - size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); + size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); } if ((bitField1_ & 0x00000002) != 0) { - size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); + size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); } if ((bitField1_ & 0x00000004) != 0) { - size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); + size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); } if ((bitField1_ & 0x00000008) != 0) { - size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); + size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); } if ((bitField1_ & 0x00000010) != 0) { - size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); + size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } if ((bitField1_ & 0x00000020) != 0) { - size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); + size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); } if ((bitField1_ & 0x00000040) != 0) { - size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); + size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); } if ((bitField1_ & 0x00000080) != 0) { - size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); + size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); } if ((bitField1_ & 0x00000100) != 0) { - size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); + size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); } if ((bitField1_ & 0x00000200) != 0) { - size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); + size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); } if ((bitField1_ & 0x00000400) != 0) { + size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); + } + if ((bitField1_ & 0x00000800) != 0) { size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } return size; @@ -3520,6 +3575,15 @@ public final class PlayerData { talentResetTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 968) { + break; + } + } + case 968: { + // nicknameResetTime + nicknameResetTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 976) { break; } @@ -3527,7 +3591,7 @@ public final class PlayerData { case 976: { // musicInfo musicInfo = input.readInt64(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 1016) { break; @@ -3536,7 +3600,7 @@ public final class PlayerData { case 1016: { // serverTs serverTs = input.readInt64(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 120) { break; @@ -3545,7 +3609,7 @@ public final class PlayerData { case 120: { // sendGiftCnt sendGiftCnt = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 160) { break; @@ -3554,7 +3618,7 @@ public final class PlayerData { case 160: { // signinIndex signinIndex = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 216) { break; @@ -3563,7 +3627,7 @@ public final class PlayerData { case 216: { // equipmentDoubleCount equipmentDoubleCount = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 264) { break; @@ -3572,7 +3636,7 @@ public final class PlayerData { case 264: { // tourGuideQuestGroup tourGuideQuestGroup = input.readUInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 1008) { break; @@ -3581,7 +3645,7 @@ public final class PlayerData { case 1008: { // towerTicket towerTicket = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 1000) { break; @@ -3590,7 +3654,7 @@ public final class PlayerData { case 1000: { // dailyShopRewardStatus dailyShopRewardStatus = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 10) { break; @@ -3599,7 +3663,7 @@ public final class PlayerData { case 10: { // acc input.readMessage(acc); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 42) { break; @@ -3608,7 +3672,7 @@ public final class PlayerData { case 42: { // formation input.readMessage(formation); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 58) { break; @@ -3617,7 +3681,7 @@ public final class PlayerData { case 58: { // energy input.readMessage(energy); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 66) { break; @@ -3626,7 +3690,7 @@ public final class PlayerData { case 66: { // worldClass input.readMessage(worldClass); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 74) { break; @@ -3635,7 +3699,7 @@ public final class PlayerData { case 74: { // agent input.readMessage(agent); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 106) { break; @@ -3644,7 +3708,7 @@ public final class PlayerData { case 106: { // quests input.readMessage(quests); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; tag = input.readTag(); if (tag != 114) { break; @@ -3653,7 +3717,7 @@ public final class PlayerData { case 114: { // state input.readMessage(state); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; tag = input.readTag(); if (tag != 202) { break; @@ -3662,7 +3726,7 @@ public final class PlayerData { case 202: { // phone input.readMessage(phone); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; tag = input.readTag(); if (tag != 242) { break; @@ -3671,7 +3735,7 @@ public final class PlayerData { case 242: { // story input.readMessage(story); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; tag = input.readTag(); if (tag != 250) { break; @@ -3680,7 +3744,7 @@ public final class PlayerData { case 250: { // vampireSurvivorRecord input.readMessage(vampireSurvivorRecord); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; tag = input.readTag(); if (tag != 146) { break; @@ -3689,7 +3753,7 @@ public final class PlayerData { case 146: { // achievements input.readBytes(achievements); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; tag = input.readTag(); if (tag != 16378) { break; @@ -3698,7 +3762,7 @@ public final class PlayerData { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; tag = input.readTag(); if (tag != 82) { break; @@ -3707,7 +3771,7 @@ public final class PlayerData { case 82: { // rglPassedIds [packed=true] input.readPackedUInt32(rglPassedIds, tag); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; tag = input.readTag(); if (tag != 130) { break; @@ -3716,7 +3780,7 @@ public final class PlayerData { case 130: { // board [packed=true] input.readPackedUInt32(board, tag); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; tag = input.readTag(); if (tag != 138) { break; @@ -3725,7 +3789,7 @@ public final class PlayerData { case 138: { // datingCharIds [packed=true] input.readPackedUInt32(datingCharIds, tag); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; tag = input.readTag(); if (tag != 258) { break; @@ -3734,7 +3798,7 @@ public final class PlayerData { case 258: { // dailyActiveIds [packed=true] input.readPackedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; tag = input.readTag(); if (tag != 986) { break; @@ -3743,7 +3807,7 @@ public final class PlayerData { case 986: { // honorList [packed=true] input.readPackedUInt32(honorList, tag); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; tag = input.readTag(); if (tag != 18) { break; @@ -3752,7 +3816,7 @@ public final class PlayerData { case 18: { // res tag = input.readRepeatedMessage(res, tag); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; if (tag != 26) { break; } @@ -3760,7 +3824,7 @@ public final class PlayerData { case 26: { // items tag = input.readRepeatedMessage(items, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; if (tag != 34) { break; } @@ -3768,7 +3832,7 @@ public final class PlayerData { case 34: { // chars tag = input.readRepeatedMessage(chars, tag); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; if (tag != 90) { break; } @@ -3776,7 +3840,7 @@ public final class PlayerData { case 90: { // equipments tag = input.readRepeatedMessage(equipments, tag); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; if (tag != 98) { break; } @@ -3784,7 +3848,7 @@ public final class PlayerData { case 98: { // regionBossLevels tag = input.readRepeatedMessage(regionBossLevels, tag); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; if (tag != 154) { break; } @@ -3792,7 +3856,7 @@ public final class PlayerData { case 154: { // handbook tag = input.readRepeatedMessage(handbook, tag); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; if (tag != 170) { break; } @@ -3800,7 +3864,7 @@ public final class PlayerData { case 170: { // titles tag = input.readRepeatedMessage(titles, tag); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; if (tag != 178) { break; } @@ -3808,7 +3872,7 @@ public final class PlayerData { case 178: { // dailyInstances tag = input.readRepeatedMessage(dailyInstances, tag); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; if (tag != 186) { break; } @@ -3816,7 +3880,7 @@ public final class PlayerData { case 186: { // dictionaries tag = input.readRepeatedMessage(dictionaries, tag); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; if (tag != 194) { break; } @@ -3824,7 +3888,7 @@ public final class PlayerData { case 194: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; if (tag != 226) { break; } @@ -3832,7 +3896,7 @@ public final class PlayerData { case 226: { // discs tag = input.readRepeatedMessage(discs, tag); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; if (tag != 234) { break; } @@ -3840,7 +3904,7 @@ public final class PlayerData { case 234: { // equipmentInstances tag = input.readRepeatedMessage(equipmentInstances, tag); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; if (tag != 274) { break; } @@ -3848,7 +3912,7 @@ public final class PlayerData { case 274: { // skillInstances tag = input.readRepeatedMessage(skillInstances, tag); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; if (tag != 282) { break; } @@ -3856,7 +3920,7 @@ public final class PlayerData { case 282: { // weekBossLevels tag = input.readRepeatedMessage(weekBossLevels, tag); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; if (tag != 290) { break; } @@ -3864,7 +3928,7 @@ public final class PlayerData { case 290: { // charGemInstances tag = input.readRepeatedMessage(charGemInstances, tag); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; if (tag != 298) { break; } @@ -3872,7 +3936,7 @@ public final class PlayerData { case 298: { // tutorialLevels tag = input.readRepeatedMessage(tutorialLevels, tag); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; if (tag != 994) { break; } @@ -3880,7 +3944,7 @@ public final class PlayerData { case 994: { // honors tag = input.readRepeatedMessage(honors, tag); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; if (tag != 0) { break; } @@ -3898,31 +3962,31 @@ public final class PlayerData { case 80: { // rglPassedIds [packed=false] tag = input.readRepeatedUInt32(rglPassedIds, tag); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } case 128: { // board [packed=false] tag = input.readRepeatedUInt32(board, tag); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } case 136: { // datingCharIds [packed=false] tag = input.readRepeatedUInt32(datingCharIds, tag); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } case 256: { // dailyActiveIds [packed=false] tag = input.readRepeatedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } case 984: { // honorList [packed=false] tag = input.readRepeatedUInt32(honorList, tag); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } } @@ -3936,129 +4000,132 @@ public final class PlayerData { output.writeInt64(FieldNames.talentResetTime, talentResetTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.musicInfo, musicInfo); + output.writeInt64(FieldNames.nicknameResetTime, nicknameResetTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeInt64(FieldNames.serverTs, serverTs); + output.writeInt64(FieldNames.musicInfo, musicInfo); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.sendGiftCnt, sendGiftCnt); + output.writeInt64(FieldNames.serverTs, serverTs); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.signinIndex, signinIndex); + output.writeUInt32(FieldNames.sendGiftCnt, sendGiftCnt); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.equipmentDoubleCount, equipmentDoubleCount); + output.writeUInt32(FieldNames.signinIndex, signinIndex); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.tourGuideQuestGroup, tourGuideQuestGroup); + output.writeUInt32(FieldNames.equipmentDoubleCount, equipmentDoubleCount); } if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.towerTicket, towerTicket); + output.writeUInt32(FieldNames.tourGuideQuestGroup, tourGuideQuestGroup); } if ((bitField0_ & 0x00000100) != 0) { - output.writeBool(FieldNames.dailyShopRewardStatus, dailyShopRewardStatus); + output.writeUInt32(FieldNames.towerTicket, towerTicket); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.acc, acc); + output.writeBool(FieldNames.dailyShopRewardStatus, dailyShopRewardStatus); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.formation, formation); + output.writeMessage(FieldNames.acc, acc); } if ((bitField0_ & 0x00000800) != 0) { - output.writeMessage(FieldNames.energy, energy); + output.writeMessage(FieldNames.formation, formation); } if ((bitField0_ & 0x00001000) != 0) { - output.writeMessage(FieldNames.worldClass, worldClass); + output.writeMessage(FieldNames.energy, energy); } if ((bitField0_ & 0x00002000) != 0) { - output.writeMessage(FieldNames.agent, agent); + output.writeMessage(FieldNames.worldClass, worldClass); } if ((bitField0_ & 0x00004000) != 0) { - output.writeMessage(FieldNames.quests, quests); + output.writeMessage(FieldNames.agent, agent); } if ((bitField0_ & 0x00008000) != 0) { - output.writeMessage(FieldNames.state, state); + output.writeMessage(FieldNames.quests, quests); } if ((bitField0_ & 0x00010000) != 0) { - output.writeMessage(FieldNames.phone, phone); + output.writeMessage(FieldNames.state, state); } if ((bitField0_ & 0x00020000) != 0) { - output.writeMessage(FieldNames.story, story); + output.writeMessage(FieldNames.phone, phone); } if ((bitField0_ & 0x00040000) != 0) { - output.writeMessage(FieldNames.vampireSurvivorRecord, vampireSurvivorRecord); + output.writeMessage(FieldNames.story, story); } if ((bitField0_ & 0x00080000) != 0) { - output.writeBytes(FieldNames.achievements, achievements); + output.writeMessage(FieldNames.vampireSurvivorRecord, vampireSurvivorRecord); } if ((bitField0_ & 0x00100000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeBytes(FieldNames.achievements, achievements); } if ((bitField0_ & 0x00200000) != 0) { - output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00400000) != 0) { - output.writeRepeatedUInt32(FieldNames.board, board); + output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); } if ((bitField0_ & 0x00800000) != 0) { - output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); + output.writeRepeatedUInt32(FieldNames.board, board); } if ((bitField0_ & 0x01000000) != 0) { - output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); + output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); } if ((bitField0_ & 0x02000000) != 0) { - output.writeRepeatedUInt32(FieldNames.honorList, honorList); + output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); } if ((bitField0_ & 0x04000000) != 0) { - output.writeRepeatedMessage(FieldNames.res, res); + output.writeRepeatedUInt32(FieldNames.honorList, honorList); } if ((bitField0_ & 0x08000000) != 0) { - output.writeRepeatedMessage(FieldNames.items, items); + output.writeRepeatedMessage(FieldNames.res, res); } if ((bitField0_ & 0x10000000) != 0) { - output.writeRepeatedMessage(FieldNames.chars, chars); + output.writeRepeatedMessage(FieldNames.items, items); } if ((bitField0_ & 0x20000000) != 0) { - output.writeRepeatedMessage(FieldNames.equipments, equipments); + output.writeRepeatedMessage(FieldNames.chars, chars); } if ((bitField0_ & 0x40000000) != 0) { - output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); + output.writeRepeatedMessage(FieldNames.equipments, equipments); } if ((bitField0_ & 0x80000000) != 0) { - output.writeRepeatedMessage(FieldNames.handbook, handbook); + output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); } if ((bitField1_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.titles, titles); + output.writeRepeatedMessage(FieldNames.handbook, handbook); } if ((bitField1_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); + output.writeRepeatedMessage(FieldNames.titles, titles); } if ((bitField1_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); + output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); } if ((bitField1_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.activities, activities); + output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); } if ((bitField1_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.discs, discs); + output.writeRepeatedMessage(FieldNames.activities, activities); } if ((bitField1_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); + output.writeRepeatedMessage(FieldNames.discs, discs); } if ((bitField1_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); + output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); } if ((bitField1_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); + output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); } if ((bitField1_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); + output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); } if ((bitField1_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); + output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); } if ((bitField1_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); + } + if ((bitField1_ & 0x00000800) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } output.endObject(); @@ -4082,11 +4149,22 @@ public final class PlayerData { } break; } + case 1563162574: { + if (input.isAtField(FieldNames.nicknameResetTime)) { + if (!input.trySkipNullValue()) { + nicknameResetTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -1901179821: { if (input.isAtField(FieldNames.musicInfo)) { if (!input.trySkipNullValue()) { musicInfo = input.readInt64(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -4097,7 +4175,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.serverTs)) { if (!input.trySkipNullValue()) { serverTs = input.readInt64(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -4108,7 +4186,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.sendGiftCnt)) { if (!input.trySkipNullValue()) { sendGiftCnt = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -4119,7 +4197,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.signinIndex)) { if (!input.trySkipNullValue()) { signinIndex = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -4130,7 +4208,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipmentDoubleCount)) { if (!input.trySkipNullValue()) { equipmentDoubleCount = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -4141,7 +4219,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.tourGuideQuestGroup)) { if (!input.trySkipNullValue()) { tourGuideQuestGroup = input.readUInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -4152,7 +4230,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.towerTicket)) { if (!input.trySkipNullValue()) { towerTicket = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -4163,7 +4241,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyShopRewardStatus)) { if (!input.trySkipNullValue()) { dailyShopRewardStatus = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -4174,7 +4252,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.acc)) { if (!input.trySkipNullValue()) { input.readMessage(acc); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -4185,7 +4263,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.formation)) { if (!input.trySkipNullValue()) { input.readMessage(formation); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -4196,7 +4274,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.energy)) { if (!input.trySkipNullValue()) { input.readMessage(energy); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -4207,7 +4285,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.worldClass)) { if (!input.trySkipNullValue()) { input.readMessage(worldClass); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -4218,7 +4296,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.agent)) { if (!input.trySkipNullValue()) { input.readMessage(agent); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -4229,7 +4307,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.quests)) { if (!input.trySkipNullValue()) { input.readMessage(quests); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -4240,7 +4318,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { input.readMessage(state); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -4251,7 +4329,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.phone)) { if (!input.trySkipNullValue()) { input.readMessage(phone); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -4262,7 +4340,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.story)) { if (!input.trySkipNullValue()) { input.readMessage(story); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } else { input.skipUnknownField(); @@ -4273,7 +4351,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.vampireSurvivorRecord)) { if (!input.trySkipNullValue()) { input.readMessage(vampireSurvivorRecord); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -4284,7 +4362,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.achievements)) { if (!input.trySkipNullValue()) { input.readBytes(achievements); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } else { input.skipUnknownField(); @@ -4295,7 +4373,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; } } else { input.skipUnknownField(); @@ -4306,7 +4384,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.rglPassedIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(rglPassedIds); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; } } else { input.skipUnknownField(); @@ -4317,7 +4395,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.board)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(board); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; } } else { input.skipUnknownField(); @@ -4328,7 +4406,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.datingCharIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(datingCharIds); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; } } else { input.skipUnknownField(); @@ -4339,7 +4417,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(dailyActiveIds); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; } } else { input.skipUnknownField(); @@ -4350,7 +4428,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honorList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(honorList); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; } } else { input.skipUnknownField(); @@ -4361,7 +4439,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.res)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(res); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; } } else { input.skipUnknownField(); @@ -4372,7 +4450,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.items)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(items); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; } } else { input.skipUnknownField(); @@ -4383,7 +4461,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.chars)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chars); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; } } else { input.skipUnknownField(); @@ -4394,7 +4472,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipments)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipments); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; } } else { input.skipUnknownField(); @@ -4405,7 +4483,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.regionBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(regionBossLevels); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; } } else { input.skipUnknownField(); @@ -4416,7 +4494,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.handbook)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(handbook); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -4427,7 +4505,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.titles)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(titles); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -4438,7 +4516,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dailyInstances); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -4449,7 +4527,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dictionaries)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dictionaries); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -4460,7 +4538,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -4471,7 +4549,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.discs)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(discs); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -4482,7 +4560,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipmentInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentInstances); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -4493,7 +4571,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.skillInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(skillInstances); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -4504,7 +4582,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weekBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(weekBossLevels); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -4515,7 +4593,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.charGemInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charGemInstances); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -4526,7 +4604,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.tutorialLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(tutorialLevels); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -4537,7 +4615,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -4598,6 +4676,8 @@ public final class PlayerData { static class FieldNames { static final FieldName talentResetTime = FieldName.forField("TalentResetTime"); + static final FieldName nicknameResetTime = FieldName.forField("NicknameResetTime"); + static final FieldName musicInfo = FieldName.forField("MusicInfo"); static final FieldName serverTs = FieldName.forField("ServerTs"); diff --git a/src/generated/main/emu/nebula/proto/PlayerNameEdit.java b/src/generated/main/emu/nebula/proto/PlayerNameEdit.java index 6d0d131..d696a37 100644 --- a/src/generated/main/emu/nebula/proto/PlayerNameEdit.java +++ b/src/generated/main/emu/nebula/proto/PlayerNameEdit.java @@ -417,6 +417,11 @@ public final class PlayerNameEdit { public static final class PlayerNameEditResp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional int64 ResetTime = 15; + */ + private long resetTime; + /** * optional uint32 Hashtag = 1; */ @@ -437,12 +442,49 @@ public final class PlayerNameEdit { return new PlayerNameEditResp(); } + /** + * optional int64 ResetTime = 15; + * @return whether the resetTime field is set + */ + public boolean hasResetTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 ResetTime = 15; + * @return this + */ + public PlayerNameEditResp clearResetTime() { + bitField0_ &= ~0x00000001; + resetTime = 0L; + return this; + } + + /** + * optional int64 ResetTime = 15; + * @return the resetTime + */ + public long getResetTime() { + return resetTime; + } + + /** + * optional int64 ResetTime = 15; + * @param value the resetTime to set + * @return this + */ + public PlayerNameEditResp setResetTime(final long value) { + bitField0_ |= 0x00000001; + resetTime = value; + return this; + } + /** * optional uint32 Hashtag = 1; * @return whether the hashtag field is set */ public boolean hasHashtag() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -450,7 +492,7 @@ public final class PlayerNameEdit { * @return this */ public PlayerNameEditResp clearHashtag() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; hashtag = 0; return this; } @@ -469,7 +511,7 @@ public final class PlayerNameEdit { * @return this */ public PlayerNameEditResp setHashtag(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; hashtag = value; return this; } @@ -479,7 +521,7 @@ public final class PlayerNameEdit { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -487,7 +529,7 @@ public final class PlayerNameEdit { * @return this */ public PlayerNameEditResp clearNextPackage() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; nextPackage.clear(); return this; } @@ -516,7 +558,7 @@ public final class PlayerNameEdit { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; return nextPackage; } @@ -526,7 +568,7 @@ public final class PlayerNameEdit { * @return this */ public PlayerNameEditResp addNextPackage(final byte value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; nextPackage.add(value); return this; } @@ -537,7 +579,7 @@ public final class PlayerNameEdit { * @return this */ public PlayerNameEditResp addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; nextPackage.addAll(values); return this; } @@ -548,7 +590,7 @@ public final class PlayerNameEdit { * @return this */ public PlayerNameEditResp setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; nextPackage.copyFrom(values); return this; } @@ -558,6 +600,7 @@ public final class PlayerNameEdit { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + resetTime = other.resetTime; hashtag = other.hashtag; nextPackage.copyFrom(other.nextPackage); } @@ -570,6 +613,9 @@ public final class PlayerNameEdit { return this; } cachedSize = -1; + if (other.hasResetTime()) { + setResetTime(other.resetTime); + } if (other.hasHashtag()) { setHashtag(other.hashtag); } @@ -586,6 +632,7 @@ public final class PlayerNameEdit { } cachedSize = -1; bitField0_ = 0; + resetTime = 0L; hashtag = 0; nextPackage.clear(); return this; @@ -612,6 +659,7 @@ public final class PlayerNameEdit { } PlayerNameEditResp other = (PlayerNameEditResp) o; return bitField0_ == other.bitField0_ + && (!hasResetTime() || resetTime == other.resetTime) && (!hasHashtag() || hashtag == other.hashtag) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -619,10 +667,14 @@ public final class PlayerNameEdit { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeInt64NoTag(resetTime); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(hashtag); } - if ((bitField0_ & 0x00000002) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -632,9 +684,12 @@ public final class PlayerNameEdit { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(hashtag); + size += 1 + ProtoSink.computeInt64SizeNoTag(resetTime); } if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hashtag); + } + if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -647,10 +702,19 @@ public final class PlayerNameEdit { int tag = input.readTag(); while (true) { switch (tag) { + case 120: { + // resetTime + resetTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } case 8: { // hashtag hashtag = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { break; @@ -659,7 +723,7 @@ public final class PlayerNameEdit { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -683,9 +747,12 @@ public final class PlayerNameEdit { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.hashtag, hashtag); + output.writeInt64(FieldNames.resetTime, resetTime); } if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.hashtag, hashtag); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -698,11 +765,22 @@ public final class PlayerNameEdit { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -267205476: { + if (input.isAtField(FieldNames.resetTime)) { + if (!input.trySkipNullValue()) { + resetTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -1932766292: { if (input.isAtField(FieldNames.hashtag)) { if (!input.trySkipNullValue()) { hashtag = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -713,7 +791,7 @@ public final class PlayerNameEdit { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -773,6 +851,8 @@ public final class PlayerNameEdit { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName resetTime = FieldName.forField("ResetTime"); + static final FieldName hashtag = FieldName.forField("Hashtag"); static final FieldName nextPackage = FieldName.forField("NextPackage"); diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java index a322e77..cecffce 100644 --- a/src/generated/main/emu/nebula/proto/Public.java +++ b/src/generated/main/emu/nebula/proto/Public.java @@ -19827,6 +19827,11 @@ public final class Public { */ private int infinityTower; + /** + * optional uint32 VampireSurvivorId = 11; + */ + private int vampireSurvivorId; + /** * optional bool Friend = 3; */ @@ -19964,12 +19969,49 @@ public final class Public { return this; } + /** + * optional uint32 VampireSurvivorId = 11; + * @return whether the vampireSurvivorId field is set + */ + public boolean hasVampireSurvivorId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 VampireSurvivorId = 11; + * @return this + */ + public StateInfo clearVampireSurvivorId() { + bitField0_ &= ~0x00000002; + vampireSurvivorId = 0; + return this; + } + + /** + * optional uint32 VampireSurvivorId = 11; + * @return the vampireSurvivorId + */ + public int getVampireSurvivorId() { + return vampireSurvivorId; + } + + /** + * optional uint32 VampireSurvivorId = 11; + * @param value the vampireSurvivorId to set + * @return this + */ + public StateInfo setVampireSurvivorId(final int value) { + bitField0_ |= 0x00000002; + vampireSurvivorId = value; + return this; + } + /** * optional bool Friend = 3; * @return whether the friend field is set */ public boolean hasFriend() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -19977,7 +20019,7 @@ public final class Public { * @return this */ public StateInfo clearFriend() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; friend = false; return this; } @@ -19996,7 +20038,7 @@ public final class Public { * @return this */ public StateInfo setFriend(final boolean value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; friend = value; return this; } @@ -20006,7 +20048,7 @@ public final class Public { * @return whether the npcAffinityReward field is set */ public boolean hasNpcAffinityReward() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -20014,7 +20056,7 @@ public final class Public { * @return this */ public StateInfo clearNpcAffinityReward() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; npcAffinityReward = false; return this; } @@ -20033,7 +20075,7 @@ public final class Public { * @return this */ public StateInfo setNpcAffinityReward(final boolean value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; npcAffinityReward = value; return this; } @@ -20043,7 +20085,7 @@ public final class Public { * @return whether the storySet field is set */ public boolean hasStorySet() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -20051,7 +20093,7 @@ public final class Public { * @return this */ public StateInfo clearStorySet() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; storySet = false; return this; } @@ -20070,7 +20112,7 @@ public final class Public { * @return this */ public StateInfo setStorySet(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; storySet = value; return this; } @@ -20080,7 +20122,7 @@ public final class Public { * @return whether the mail field is set */ public boolean hasMail() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -20088,7 +20130,7 @@ public final class Public { * @return this */ public StateInfo clearMail() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; mail.clear(); return this; } @@ -20117,7 +20159,7 @@ public final class Public { * @return internal storage object for modifications */ public MailState getMutableMail() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return mail; } @@ -20127,7 +20169,7 @@ public final class Public { * @return this */ public StateInfo setMail(final MailState value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; mail.copyFrom(value); return this; } @@ -20137,7 +20179,7 @@ public final class Public { * @return whether the battlePass field is set */ public boolean hasBattlePass() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -20145,7 +20187,7 @@ public final class Public { * @return this */ public StateInfo clearBattlePass() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; battlePass.clear(); return this; } @@ -20174,7 +20216,7 @@ public final class Public { * @return internal storage object for modifications */ public BattlePassState getMutableBattlePass() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return battlePass; } @@ -20184,7 +20226,7 @@ public final class Public { * @return this */ public StateInfo setBattlePass(final BattlePassState value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; battlePass.copyFrom(value); return this; } @@ -20194,7 +20236,7 @@ public final class Public { * @return whether the worldClassReward field is set */ public boolean hasWorldClassReward() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -20202,7 +20244,7 @@ public final class Public { * @return this */ public StateInfo clearWorldClassReward() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; worldClassReward.clear(); return this; } @@ -20231,7 +20273,7 @@ public final class Public { * @return internal storage object for modifications */ public WorldClassRewardState getMutableWorldClassReward() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return worldClassReward; } @@ -20241,7 +20283,7 @@ public final class Public { * @return this */ public StateInfo setWorldClassReward(final WorldClassRewardState value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; worldClassReward.copyFrom(value); return this; } @@ -20251,7 +20293,7 @@ public final class Public { * @return whether the friendEnergy field is set */ public boolean hasFriendEnergy() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -20259,7 +20301,7 @@ public final class Public { * @return this */ public StateInfo clearFriendEnergy() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; friendEnergy.clear(); return this; } @@ -20288,7 +20330,7 @@ public final class Public { * @return internal storage object for modifications */ public FriendEnergyState getMutableFriendEnergy() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return friendEnergy; } @@ -20298,7 +20340,7 @@ public final class Public { * @return this */ public StateInfo setFriendEnergy(final FriendEnergyState value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; friendEnergy.copyFrom(value); return this; } @@ -20308,7 +20350,7 @@ public final class Public { * @return whether the mallPackage field is set */ public boolean hasMallPackage() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -20316,7 +20358,7 @@ public final class Public { * @return this */ public StateInfo clearMallPackage() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; mallPackage.clear(); return this; } @@ -20345,7 +20387,7 @@ public final class Public { * @return internal storage object for modifications */ public MallPackageState getMutableMallPackage() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return mallPackage; } @@ -20355,7 +20397,7 @@ public final class Public { * @return this */ public StateInfo setMallPackage(final MallPackageState value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; mallPackage.copyFrom(value); return this; } @@ -20365,7 +20407,7 @@ public final class Public { * @return whether the achievement field is set */ public boolean hasAchievement() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -20373,7 +20415,7 @@ public final class Public { * @return this */ public StateInfo clearAchievement() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; achievement.clear(); return this; } @@ -20402,7 +20444,7 @@ public final class Public { * @return internal storage object for modifications */ public AchievementState getMutableAchievement() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return achievement; } @@ -20412,7 +20454,7 @@ public final class Public { * @return this */ public StateInfo setAchievement(final AchievementState value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; achievement.copyFrom(value); return this; } @@ -20422,7 +20464,7 @@ public final class Public { * @return whether the travelerDuelQuest field is set */ public boolean hasTravelerDuelQuest() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -20430,7 +20472,7 @@ public final class Public { * @return this */ public StateInfo clearTravelerDuelQuest() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; travelerDuelQuest.clear(); return this; } @@ -20459,7 +20501,7 @@ public final class Public { * @return internal storage object for modifications */ public QuestState getMutableTravelerDuelQuest() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return travelerDuelQuest; } @@ -20469,7 +20511,7 @@ public final class Public { * @return this */ public StateInfo setTravelerDuelQuest(final QuestState value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; travelerDuelQuest.copyFrom(value); return this; } @@ -20479,7 +20521,7 @@ public final class Public { * @return whether the travelerDuelChallengeQuest field is set */ public boolean hasTravelerDuelChallengeQuest() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -20487,7 +20529,7 @@ public final class Public { * @return this */ public StateInfo clearTravelerDuelChallengeQuest() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00001000; travelerDuelChallengeQuest.clear(); return this; } @@ -20516,7 +20558,7 @@ public final class Public { * @return internal storage object for modifications */ public QuestState getMutableTravelerDuelChallengeQuest() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return travelerDuelChallengeQuest; } @@ -20526,7 +20568,7 @@ public final class Public { * @return this */ public StateInfo setTravelerDuelChallengeQuest(final QuestState value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; travelerDuelChallengeQuest.copyFrom(value); return this; } @@ -20536,7 +20578,7 @@ public final class Public { * @return whether the starTower field is set */ public boolean hasStarTower() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -20544,7 +20586,7 @@ public final class Public { * @return this */ public StateInfo clearStarTower() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; starTower.clear(); return this; } @@ -20573,7 +20615,7 @@ public final class Public { * @return internal storage object for modifications */ public StarTowerState getMutableStarTower() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return starTower; } @@ -20583,7 +20625,7 @@ public final class Public { * @return this */ public StateInfo setStarTower(final StarTowerState value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; starTower.copyFrom(value); return this; } @@ -20593,7 +20635,7 @@ public final class Public { * @return whether the starTowerBook field is set */ public boolean hasStarTowerBook() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -20601,7 +20643,7 @@ public final class Public { * @return this */ public StateInfo clearStarTowerBook() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00004000; starTowerBook.clear(); return this; } @@ -20630,7 +20672,7 @@ public final class Public { * @return internal storage object for modifications */ public StarTowerBookState getMutableStarTowerBook() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return starTowerBook; } @@ -20640,7 +20682,7 @@ public final class Public { * @return this */ public StateInfo setStarTowerBook(final StarTowerBookState value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; starTowerBook.copyFrom(value); return this; } @@ -20650,7 +20692,7 @@ public final class Public { * @return whether the scoreBoss field is set */ public boolean hasScoreBoss() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** @@ -20658,7 +20700,7 @@ public final class Public { * @return this */ public StateInfo clearScoreBoss() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00008000; scoreBoss.clear(); return this; } @@ -20687,7 +20729,7 @@ public final class Public { * @return internal storage object for modifications */ public ScoreBossState getMutableScoreBoss() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return scoreBoss; } @@ -20697,7 +20739,7 @@ public final class Public { * @return this */ public StateInfo setScoreBoss(final ScoreBossState value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; scoreBoss.copyFrom(value); return this; } @@ -20707,7 +20749,7 @@ public final class Public { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00008000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** @@ -20715,7 +20757,7 @@ public final class Public { * @return this */ public StateInfo clearNextPackage() { - bitField0_ &= ~0x00008000; + bitField0_ &= ~0x00010000; nextPackage.clear(); return this; } @@ -20744,7 +20786,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return nextPackage; } @@ -20754,7 +20796,7 @@ public final class Public { * @return this */ public StateInfo addNextPackage(final byte value) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; nextPackage.add(value); return this; } @@ -20765,7 +20807,7 @@ public final class Public { * @return this */ public StateInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; nextPackage.addAll(values); return this; } @@ -20776,7 +20818,7 @@ public final class Public { * @return this */ public StateInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; nextPackage.copyFrom(values); return this; } @@ -20786,7 +20828,7 @@ public final class Public { * @return whether the charAdvanceRewards field is set */ public boolean hasCharAdvanceRewards() { - return (bitField0_ & 0x00010000) != 0; + return (bitField0_ & 0x00020000) != 0; } /** @@ -20794,7 +20836,7 @@ public final class Public { * @return this */ public StateInfo clearCharAdvanceRewards() { - bitField0_ &= ~0x00010000; + bitField0_ &= ~0x00020000; charAdvanceRewards.clear(); return this; } @@ -20823,7 +20865,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharAdvanceRewards() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return charAdvanceRewards; } @@ -20833,7 +20875,7 @@ public final class Public { * @return this */ public StateInfo addCharAdvanceRewards(final CharAdvanceRewardState value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; charAdvanceRewards.add(value); return this; } @@ -20844,7 +20886,7 @@ public final class Public { * @return this */ public StateInfo addAllCharAdvanceRewards(final CharAdvanceRewardState... values) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; charAdvanceRewards.addAll(values); return this; } @@ -20854,7 +20896,7 @@ public final class Public { * @return whether the charAffinityRewards field is set */ public boolean hasCharAffinityRewards() { - return (bitField0_ & 0x00020000) != 0; + return (bitField0_ & 0x00040000) != 0; } /** @@ -20862,7 +20904,7 @@ public final class Public { * @return this */ public StateInfo clearCharAffinityRewards() { - bitField0_ &= ~0x00020000; + bitField0_ &= ~0x00040000; charAffinityRewards.clear(); return this; } @@ -20891,7 +20933,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharAffinityRewards() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return charAffinityRewards; } @@ -20901,7 +20943,7 @@ public final class Public { * @return this */ public StateInfo addCharAffinityRewards(final CharAffinityRewardState value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; charAffinityRewards.add(value); return this; } @@ -20912,7 +20954,7 @@ public final class Public { * @return this */ public StateInfo addAllCharAffinityRewards(final CharAffinityRewardState... values) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; charAffinityRewards.addAll(values); return this; } @@ -20922,7 +20964,7 @@ public final class Public { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField0_ & 0x00040000) != 0; + return (bitField0_ & 0x00080000) != 0; } /** @@ -20930,7 +20972,7 @@ public final class Public { * @return this */ public StateInfo clearActivities() { - bitField0_ &= ~0x00040000; + bitField0_ &= ~0x00080000; activities.clear(); return this; } @@ -20959,7 +21001,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return activities; } @@ -20969,7 +21011,7 @@ public final class Public { * @return this */ public StateInfo addActivities(final ActivityState value) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; activities.add(value); return this; } @@ -20980,7 +21022,7 @@ public final class Public { * @return this */ public StateInfo addAllActivities(final ActivityState... values) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; activities.addAll(values); return this; } @@ -20991,6 +21033,7 @@ public final class Public { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; infinityTower = other.infinityTower; + vampireSurvivorId = other.vampireSurvivorId; friend = other.friend; npcAffinityReward = other.npcAffinityReward; storySet = other.storySet; @@ -21022,6 +21065,9 @@ public final class Public { if (other.hasInfinityTower()) { setInfinityTower(other.infinityTower); } + if (other.hasVampireSurvivorId()) { + setVampireSurvivorId(other.vampireSurvivorId); + } if (other.hasFriend()) { setFriend(other.friend); } @@ -21087,6 +21133,7 @@ public final class Public { cachedSize = -1; bitField0_ = 0; infinityTower = 0; + vampireSurvivorId = 0; friend = false; npcAffinityReward = false; storySet = false; @@ -21144,6 +21191,7 @@ public final class Public { StateInfo other = (StateInfo) o; return bitField0_ == other.bitField0_ && (!hasInfinityTower() || infinityTower == other.infinityTower) + && (!hasVampireSurvivorId() || vampireSurvivorId == other.vampireSurvivorId) && (!hasFriend() || friend == other.friend) && (!hasNpcAffinityReward() || npcAffinityReward == other.npcAffinityReward) && (!hasStorySet() || storySet == other.storySet) @@ -21171,78 +21219,82 @@ public final class Public { output.writeUInt32NoTag(infinityTower); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(vampireSurvivorId); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); output.writeBoolNoTag(friend); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 72); output.writeBoolNoTag(npcAffinityReward); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 432); output.writeBoolNoTag(storySet); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 10); output.writeMessageNoTag(mail); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 34); output.writeMessageNoTag(battlePass); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(worldClassReward); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 58); output.writeMessageNoTag(friendEnergy); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRawByte((byte) 82); output.writeMessageNoTag(mallPackage); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 122); output.writeMessageNoTag(achievement); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawLittleEndian16((short) 386); output.writeMessageNoTag(travelerDuelQuest); } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00001000) != 0) { output.writeRawLittleEndian16((short) 394); output.writeMessageNoTag(travelerDuelChallengeQuest); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeRawLittleEndian16((short) 402); output.writeMessageNoTag(starTower); } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 410); output.writeMessageNoTag(starTowerBook); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { output.writeRawLittleEndian16((short) 418); output.writeMessageNoTag(scoreBoss); } - if ((bitField0_ & 0x00008000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00010000) != 0) { + if ((bitField0_ & 0x00020000) != 0) { for (int i = 0; i < charAdvanceRewards.length(); i++) { output.writeRawByte((byte) 50); output.writeMessageNoTag(charAdvanceRewards.get(i)); } } - if ((bitField0_ & 0x00020000) != 0) { + if ((bitField0_ & 0x00040000) != 0) { for (int i = 0; i < charAffinityRewards.length(); i++) { output.writeRawByte((byte) 66); output.writeMessageNoTag(charAffinityRewards.get(i)); } } - if ((bitField0_ & 0x00040000) != 0) { + if ((bitField0_ & 0x00080000) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(activities.get(i)); @@ -21257,57 +21309,60 @@ public final class Public { size += 1 + ProtoSink.computeUInt32SizeNoTag(infinityTower); } if ((bitField0_ & 0x00000002) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(vampireSurvivorId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; } if ((bitField0_ & 0x00000008) != 0) { - size += 3; + size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(mail); + size += 3; } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(battlePass); + size += 1 + ProtoSink.computeMessageSizeNoTag(mail); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(worldClassReward); + size += 1 + ProtoSink.computeMessageSizeNoTag(battlePass); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(friendEnergy); + size += 1 + ProtoSink.computeMessageSizeNoTag(worldClassReward); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(mallPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(friendEnergy); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(achievement); + size += 1 + ProtoSink.computeMessageSizeNoTag(mallPackage); } if ((bitField0_ & 0x00000400) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(travelerDuelQuest); + size += 1 + ProtoSink.computeMessageSizeNoTag(achievement); } if ((bitField0_ & 0x00000800) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(travelerDuelChallengeQuest); + size += 2 + ProtoSink.computeMessageSizeNoTag(travelerDuelQuest); } if ((bitField0_ & 0x00001000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(starTower); + size += 2 + ProtoSink.computeMessageSizeNoTag(travelerDuelChallengeQuest); } if ((bitField0_ & 0x00002000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(starTowerBook); + size += 2 + ProtoSink.computeMessageSizeNoTag(starTower); } if ((bitField0_ & 0x00004000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(scoreBoss); + size += 2 + ProtoSink.computeMessageSizeNoTag(starTowerBook); } if ((bitField0_ & 0x00008000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeMessageSizeNoTag(scoreBoss); } if ((bitField0_ & 0x00010000) != 0) { - size += (1 * charAdvanceRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAdvanceRewards); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00020000) != 0) { - size += (1 * charAffinityRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAffinityRewards); + size += (1 * charAdvanceRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAdvanceRewards); } if ((bitField0_ & 0x00040000) != 0) { + size += (1 * charAffinityRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAffinityRewards); + } + if ((bitField0_ & 0x00080000) != 0) { size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } return size; @@ -21325,6 +21380,15 @@ public final class Public { infinityTower = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // vampireSurvivorId + vampireSurvivorId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 24) { break; } @@ -21332,7 +21396,7 @@ public final class Public { case 24: { // friend friend = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 72) { break; @@ -21341,7 +21405,7 @@ public final class Public { case 72: { // npcAffinityReward npcAffinityReward = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 176) { break; @@ -21350,7 +21414,7 @@ public final class Public { case 176: { // storySet storySet = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 10) { break; @@ -21359,7 +21423,7 @@ public final class Public { case 10: { // mail input.readMessage(mail); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 34) { break; @@ -21368,7 +21432,7 @@ public final class Public { case 34: { // battlePass input.readMessage(battlePass); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 42) { break; @@ -21377,7 +21441,7 @@ public final class Public { case 42: { // worldClassReward input.readMessage(worldClassReward); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 58) { break; @@ -21386,7 +21450,7 @@ public final class Public { case 58: { // friendEnergy input.readMessage(friendEnergy); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 82) { break; @@ -21395,7 +21459,7 @@ public final class Public { case 82: { // mallPackage input.readMessage(mallPackage); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 122) { break; @@ -21404,7 +21468,7 @@ public final class Public { case 122: { // achievement input.readMessage(achievement); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 130) { break; @@ -21413,7 +21477,7 @@ public final class Public { case 130: { // travelerDuelQuest input.readMessage(travelerDuelQuest); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 138) { break; @@ -21422,7 +21486,7 @@ public final class Public { case 138: { // travelerDuelChallengeQuest input.readMessage(travelerDuelChallengeQuest); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 146) { break; @@ -21431,7 +21495,7 @@ public final class Public { case 146: { // starTower input.readMessage(starTower); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 154) { break; @@ -21440,7 +21504,7 @@ public final class Public { case 154: { // starTowerBook input.readMessage(starTowerBook); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 162) { break; @@ -21449,7 +21513,7 @@ public final class Public { case 162: { // scoreBoss input.readMessage(scoreBoss); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; tag = input.readTag(); if (tag != 16378) { break; @@ -21458,7 +21522,7 @@ public final class Public { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; tag = input.readTag(); if (tag != 50) { break; @@ -21467,7 +21531,7 @@ public final class Public { case 50: { // charAdvanceRewards tag = input.readRepeatedMessage(charAdvanceRewards, tag); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; if (tag != 66) { break; } @@ -21475,7 +21539,7 @@ public final class Public { case 66: { // charAffinityRewards tag = input.readRepeatedMessage(charAffinityRewards, tag); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; if (tag != 170) { break; } @@ -21483,7 +21547,7 @@ public final class Public { case 170: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; if (tag != 0) { break; } @@ -21509,57 +21573,60 @@ public final class Public { output.writeUInt32(FieldNames.infinityTower, infinityTower); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.friend, friend); + output.writeUInt32(FieldNames.vampireSurvivorId, vampireSurvivorId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.npcAffinityReward, npcAffinityReward); + output.writeBool(FieldNames.friend, friend); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.storySet, storySet); + output.writeBool(FieldNames.npcAffinityReward, npcAffinityReward); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.mail, mail); + output.writeBool(FieldNames.storySet, storySet); } if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.battlePass, battlePass); + output.writeMessage(FieldNames.mail, mail); } if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.worldClassReward, worldClassReward); + output.writeMessage(FieldNames.battlePass, battlePass); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.friendEnergy, friendEnergy); + output.writeMessage(FieldNames.worldClassReward, worldClassReward); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.mallPackage, mallPackage); + output.writeMessage(FieldNames.friendEnergy, friendEnergy); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.achievement, achievement); + output.writeMessage(FieldNames.mallPackage, mallPackage); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.travelerDuelQuest, travelerDuelQuest); + output.writeMessage(FieldNames.achievement, achievement); } if ((bitField0_ & 0x00000800) != 0) { - output.writeMessage(FieldNames.travelerDuelChallengeQuest, travelerDuelChallengeQuest); + output.writeMessage(FieldNames.travelerDuelQuest, travelerDuelQuest); } if ((bitField0_ & 0x00001000) != 0) { - output.writeMessage(FieldNames.starTower, starTower); + output.writeMessage(FieldNames.travelerDuelChallengeQuest, travelerDuelChallengeQuest); } if ((bitField0_ & 0x00002000) != 0) { - output.writeMessage(FieldNames.starTowerBook, starTowerBook); + output.writeMessage(FieldNames.starTower, starTower); } if ((bitField0_ & 0x00004000) != 0) { - output.writeMessage(FieldNames.scoreBoss, scoreBoss); + output.writeMessage(FieldNames.starTowerBook, starTowerBook); } if ((bitField0_ & 0x00008000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.scoreBoss, scoreBoss); } if ((bitField0_ & 0x00010000) != 0) { - output.writeRepeatedMessage(FieldNames.charAdvanceRewards, charAdvanceRewards); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00020000) != 0) { - output.writeRepeatedMessage(FieldNames.charAffinityRewards, charAffinityRewards); + output.writeRepeatedMessage(FieldNames.charAdvanceRewards, charAdvanceRewards); } if ((bitField0_ & 0x00040000) != 0) { + output.writeRepeatedMessage(FieldNames.charAffinityRewards, charAffinityRewards); + } + if ((bitField0_ & 0x00080000) != 0) { output.writeRepeatedMessage(FieldNames.activities, activities); } output.endObject(); @@ -21583,11 +21650,22 @@ public final class Public { } break; } + case -113673409: { + if (input.isAtField(FieldNames.vampireSurvivorId)) { + if (!input.trySkipNullValue()) { + vampireSurvivorId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 2112550590: { if (input.isAtField(FieldNames.friend)) { if (!input.trySkipNullValue()) { friend = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -21598,7 +21676,7 @@ public final class Public { if (input.isAtField(FieldNames.npcAffinityReward)) { if (!input.trySkipNullValue()) { npcAffinityReward = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -21609,7 +21687,7 @@ public final class Public { if (input.isAtField(FieldNames.storySet)) { if (!input.trySkipNullValue()) { storySet = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -21620,7 +21698,7 @@ public final class Public { if (input.isAtField(FieldNames.mail)) { if (!input.trySkipNullValue()) { input.readMessage(mail); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -21631,7 +21709,7 @@ public final class Public { if (input.isAtField(FieldNames.battlePass)) { if (!input.trySkipNullValue()) { input.readMessage(battlePass); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -21642,7 +21720,7 @@ public final class Public { if (input.isAtField(FieldNames.worldClassReward)) { if (!input.trySkipNullValue()) { input.readMessage(worldClassReward); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -21653,7 +21731,7 @@ public final class Public { if (input.isAtField(FieldNames.friendEnergy)) { if (!input.trySkipNullValue()) { input.readMessage(friendEnergy); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -21664,7 +21742,7 @@ public final class Public { if (input.isAtField(FieldNames.mallPackage)) { if (!input.trySkipNullValue()) { input.readMessage(mallPackage); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -21675,7 +21753,7 @@ public final class Public { if (input.isAtField(FieldNames.achievement)) { if (!input.trySkipNullValue()) { input.readMessage(achievement); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -21686,7 +21764,7 @@ public final class Public { if (input.isAtField(FieldNames.travelerDuelQuest)) { if (!input.trySkipNullValue()) { input.readMessage(travelerDuelQuest); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -21697,7 +21775,7 @@ public final class Public { if (input.isAtField(FieldNames.travelerDuelChallengeQuest)) { if (!input.trySkipNullValue()) { input.readMessage(travelerDuelChallengeQuest); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -21708,7 +21786,7 @@ public final class Public { if (input.isAtField(FieldNames.starTower)) { if (!input.trySkipNullValue()) { input.readMessage(starTower); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -21719,7 +21797,7 @@ public final class Public { if (input.isAtField(FieldNames.starTowerBook)) { if (!input.trySkipNullValue()) { input.readMessage(starTowerBook); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -21730,7 +21808,7 @@ public final class Public { if (input.isAtField(FieldNames.scoreBoss)) { if (!input.trySkipNullValue()) { input.readMessage(scoreBoss); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -21741,7 +21819,7 @@ public final class Public { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -21752,7 +21830,7 @@ public final class Public { if (input.isAtField(FieldNames.charAdvanceRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charAdvanceRewards); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -21763,7 +21841,7 @@ public final class Public { if (input.isAtField(FieldNames.charAffinityRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charAffinityRewards); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } else { input.skipUnknownField(); @@ -21774,7 +21852,7 @@ public final class Public { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -21835,6 +21913,8 @@ public final class Public { static class FieldNames { static final FieldName infinityTower = FieldName.forField("InfinityTower"); + static final FieldName vampireSurvivorId = FieldName.forField("VampireSurvivorId"); + static final FieldName friend = FieldName.forField("Friend"); static final FieldName npcAffinityReward = FieldName.forField("NpcAffinityReward"); @@ -61007,6 +61087,11 @@ public final class Public { */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + /** + * repeated uint32 CharIds = 6; + */ + private final RepeatedInt charIds = RepeatedInt.newEmptyInstance(); + private ScoreBossLevel() { } @@ -61281,6 +61366,74 @@ public final class Public { return this; } + /** + * repeated uint32 CharIds = 6; + * @return whether the charIds field is set + */ + public boolean hasCharIds() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 CharIds = 6; + * @return this + */ + public ScoreBossLevel clearCharIds() { + bitField0_ &= ~0x00000040; + charIds.clear(); + return this; + } + + /** + * repeated uint32 CharIds = 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 #getMutableCharIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getCharIds() { + return charIds; + } + + /** + * repeated uint32 CharIds = 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 getMutableCharIds() { + bitField0_ |= 0x00000040; + return charIds; + } + + /** + * repeated uint32 CharIds = 6; + * @param value the charIds to add + * @return this + */ + public ScoreBossLevel addCharIds(final int value) { + bitField0_ |= 0x00000040; + charIds.add(value); + return this; + } + + /** + * repeated uint32 CharIds = 6; + * @param values the charIds to add + * @return this + */ + public ScoreBossLevel addAllCharIds(final int... values) { + bitField0_ |= 0x00000040; + charIds.addAll(values); + return this; + } + @Override public ScoreBossLevel copyFrom(final ScoreBossLevel other) { cachedSize = other.cachedSize; @@ -61292,6 +61445,7 @@ public final class Public { star = other.star; skillScore = other.skillScore; nextPackage.copyFrom(other.nextPackage); + charIds.copyFrom(other.charIds); } return this; } @@ -61320,6 +61474,9 @@ public final class Public { if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } + if (other.hasCharIds()) { + getMutableCharIds().addAll(other.charIds); + } return this; } @@ -61336,6 +61493,7 @@ public final class Public { star = 0; skillScore = 0; nextPackage.clear(); + charIds.clear(); return this; } @@ -61347,6 +61505,7 @@ public final class Public { cachedSize = -1; bitField0_ = 0; nextPackage.clear(); + charIds.clear(); return this; } @@ -61365,7 +61524,8 @@ public final class Public { && (!hasScore() || score == other.score) && (!hasStar() || star == other.star) && (!hasSkillScore() || skillScore == other.skillScore) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasCharIds() || charIds.equals(other.charIds)); } @Override @@ -61394,6 +61554,12 @@ public final class Public { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < charIds.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(charIds.array()[i]); + } + } } @Override @@ -61417,6 +61583,9 @@ public final class Public { if ((bitField0_ & 0x00000020) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * charIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(charIds); + } return size; } @@ -61477,6 +61646,15 @@ public final class Public { input.readBytes(nextPackage); bitField0_ |= 0x00000020; tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // charIds [packed=true] + input.readPackedUInt32(charIds, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); if (tag != 0) { break; } @@ -61491,6 +61669,12 @@ public final class Public { tag = input.readTag(); break; } + case 48: { + // charIds [packed=false] + tag = input.readRepeatedUInt32(charIds, tag); + bitField0_ |= 0x00000040; + break; + } } } } @@ -61516,6 +61700,9 @@ public final class Public { if ((bitField0_ & 0x00000020) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.charIds, charIds); + } output.endObject(); } @@ -61592,6 +61779,17 @@ public final class Public { } break; } + case -1891280030: { + if (input.isAtField(FieldNames.charIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(charIds); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -61656,6 +61854,8 @@ public final class Public { static final FieldName skillScore = FieldName.forField("SkillScore"); static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName charIds = FieldName.forField("CharIds"); } } @@ -69324,4 +69524,2696 @@ public final class Public { static final FieldName nextPackage = FieldName.forField("NextPackage"); } } + + /** + * Protobuf type {@code BuildConvertContent} + */ + public static final class BuildConvertContent extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Num = 2; + */ + private int num; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private BuildConvertContent() { + } + + /** + * @return a new empty instance of {@code BuildConvertContent} + */ + public static BuildConvertContent newInstance() { + return new BuildConvertContent(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public BuildConvertContent clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public BuildConvertContent setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Num = 2; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Num = 2; + * @return this + */ + public BuildConvertContent clearNum() { + bitField0_ &= ~0x00000002; + num = 0; + return this; + } + + /** + * optional uint32 Num = 2; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 Num = 2; + * @param value the num to set + * @return this + */ + public BuildConvertContent setNum(final int value) { + bitField0_ |= 0x00000002; + num = 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 BuildConvertContent 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 BuildConvertContent addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public BuildConvertContent addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public BuildConvertContent setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public BuildConvertContent copyFrom(final BuildConvertContent other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + num = other.num; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public BuildConvertContent mergeFrom(final BuildConvertContent other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasNum()) { + setNum(other.num); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public BuildConvertContent clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + num = 0; + nextPackage.clear(); + return this; + } + + @Override + public BuildConvertContent 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 BuildConvertContent)) { + return false; + } + BuildConvertContent other = (BuildConvertContent) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasNum() || num == other.num) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(num); + } + 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(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BuildConvertContent mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // num + num = 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.num, num); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public BuildConvertContent mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 78694: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = 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 BuildConvertContent clone() { + return new BuildConvertContent().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BuildConvertContent parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BuildConvertContent(), data).checkInitialized(); + } + + public static BuildConvertContent parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuildConvertContent(), input).checkInitialized(); + } + + public static BuildConvertContent parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuildConvertContent(), input).checkInitialized(); + } + + /** + * @return factory for creating BuildConvertContent messages + */ + public static MessageFactory getFactory() { + return BuildConvertContentFactory.INSTANCE; + } + + private enum BuildConvertContentFactory implements MessageFactory { + INSTANCE; + + @Override + public BuildConvertContent create() { + return BuildConvertContent.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName num = FieldName.forField("Num"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityBuildConvert} + */ + public static final class ActivityBuildConvert extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .BuildConvertContent Contents = 1; + */ + private final RepeatedMessage contents = RepeatedMessage.newEmptyInstance(BuildConvertContent.getFactory()); + + /** + * repeated .ActivityQuest Quests = 2; + */ + private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory()); + + private ActivityBuildConvert() { + } + + /** + * @return a new empty instance of {@code ActivityBuildConvert} + */ + public static ActivityBuildConvert newInstance() { + return new ActivityBuildConvert(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityBuildConvert clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000001; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityBuildConvert addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityBuildConvert addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityBuildConvert setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .BuildConvertContent Contents = 1; + * @return whether the contents field is set + */ + public boolean hasContents() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .BuildConvertContent Contents = 1; + * @return this + */ + public ActivityBuildConvert clearContents() { + bitField0_ &= ~0x00000002; + contents.clear(); + return this; + } + + /** + * repeated .BuildConvertContent Contents = 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 #getMutableContents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getContents() { + return contents; + } + + /** + * repeated .BuildConvertContent Contents = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableContents() { + bitField0_ |= 0x00000002; + return contents; + } + + /** + * repeated .BuildConvertContent Contents = 1; + * @param value the contents to add + * @return this + */ + public ActivityBuildConvert addContents(final BuildConvertContent value) { + bitField0_ |= 0x00000002; + contents.add(value); + return this; + } + + /** + * repeated .BuildConvertContent Contents = 1; + * @param values the contents to add + * @return this + */ + public ActivityBuildConvert addAllContents(final BuildConvertContent... values) { + bitField0_ |= 0x00000002; + contents.addAll(values); + return this; + } + + /** + * repeated .ActivityQuest Quests = 2; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ActivityQuest Quests = 2; + * @return this + */ + public ActivityBuildConvert clearQuests() { + bitField0_ &= ~0x00000004; + quests.clear(); + return this; + } + + /** + * repeated .ActivityQuest Quests = 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 #getMutableQuests()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getQuests() { + return quests; + } + + /** + * repeated .ActivityQuest Quests = 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 getMutableQuests() { + bitField0_ |= 0x00000004; + return quests; + } + + /** + * repeated .ActivityQuest Quests = 2; + * @param value the quests to add + * @return this + */ + public ActivityBuildConvert addQuests(final ActivityQuest value) { + bitField0_ |= 0x00000004; + quests.add(value); + return this; + } + + /** + * repeated .ActivityQuest Quests = 2; + * @param values the quests to add + * @return this + */ + public ActivityBuildConvert addAllQuests(final ActivityQuest... values) { + bitField0_ |= 0x00000004; + quests.addAll(values); + return this; + } + + @Override + public ActivityBuildConvert copyFrom(final ActivityBuildConvert other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + contents.copyFrom(other.contents); + quests.copyFrom(other.quests); + } + return this; + } + + @Override + public ActivityBuildConvert mergeFrom(final ActivityBuildConvert other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasContents()) { + getMutableContents().addAll(other.contents); + } + if (other.hasQuests()) { + getMutableQuests().addAll(other.quests); + } + return this; + } + + @Override + public ActivityBuildConvert clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + contents.clear(); + quests.clear(); + return this; + } + + @Override + public ActivityBuildConvert clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + contents.clearQuick(); + quests.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityBuildConvert)) { + return false; + } + ActivityBuildConvert other = (ActivityBuildConvert) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasContents() || contents.equals(other.contents)) + && (!hasQuests() || quests.equals(other.quests)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < contents.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(contents.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < quests.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(quests.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * contents.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(contents); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityBuildConvert mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // contents + tag = input.readRepeatedMessage(contents, tag); + bitField0_ |= 0x00000002; + if (tag != 18) { + break; + } + } + case 18: { + // quests + tag = input.readRepeatedMessage(quests, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.contents, contents); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.quests, quests); + } + output.endObject(); + } + + @Override + public ActivityBuildConvert mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -502677702: { + if (input.isAtField(FieldNames.contents)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(contents); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1864830991: { + if (input.isAtField(FieldNames.quests)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(quests); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityBuildConvert clone() { + return new ActivityBuildConvert().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityBuildConvert parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityBuildConvert(), data).checkInitialized(); + } + + public static ActivityBuildConvert parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityBuildConvert(), input).checkInitialized(); + } + + public static ActivityBuildConvert parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityBuildConvert(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityBuildConvert messages + */ + public static MessageFactory getFactory() { + return ActivityBuildConvertFactory.INSTANCE; + } + + private enum ActivityBuildConvertFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityBuildConvert create() { + return ActivityBuildConvert.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName contents = FieldName.forField("Contents"); + + static final FieldName quests = FieldName.forField("Quests"); + } + } + + /** + * Protobuf type {@code VampireClientData} + */ + public static final class VampireClientData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FateCardTimer = 3; + */ + private int fateCardTimer; + + /** + * optional uint32 Level = 4; + */ + private int level; + + /** + * optional uint32 Exp = 5; + */ + private int exp; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .FateCardEftCnt Efts = 1; + */ + private final RepeatedMessage efts = RepeatedMessage.newEmptyInstance(FateCardEftCnt.getFactory()); + + /** + * repeated .FateCardTimeLimit Limits = 2; + */ + private final RepeatedMessage limits = RepeatedMessage.newEmptyInstance(FateCardTimeLimit.getFactory()); + + private VampireClientData() { + } + + /** + * @return a new empty instance of {@code VampireClientData} + */ + public static VampireClientData newInstance() { + return new VampireClientData(); + } + + /** + * optional uint32 FateCardTimer = 3; + * @return whether the fateCardTimer field is set + */ + public boolean hasFateCardTimer() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FateCardTimer = 3; + * @return this + */ + public VampireClientData clearFateCardTimer() { + bitField0_ &= ~0x00000001; + fateCardTimer = 0; + return this; + } + + /** + * optional uint32 FateCardTimer = 3; + * @return the fateCardTimer + */ + public int getFateCardTimer() { + return fateCardTimer; + } + + /** + * optional uint32 FateCardTimer = 3; + * @param value the fateCardTimer to set + * @return this + */ + public VampireClientData setFateCardTimer(final int value) { + bitField0_ |= 0x00000001; + fateCardTimer = value; + return this; + } + + /** + * optional uint32 Level = 4; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Level = 4; + * @return this + */ + public VampireClientData clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 Level = 4; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 Level = 4; + * @param value the level to set + * @return this + */ + public VampireClientData setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 Exp = 5; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Exp = 5; + * @return this + */ + public VampireClientData clearExp() { + bitField0_ &= ~0x00000004; + exp = 0; + return this; + } + + /** + * optional uint32 Exp = 5; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 Exp = 5; + * @param value the exp to set + * @return this + */ + public VampireClientData setExp(final int value) { + bitField0_ |= 0x00000004; + exp = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public VampireClientData clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public VampireClientData addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public VampireClientData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public VampireClientData setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .FateCardEftCnt Efts = 1; + * @return whether the efts field is set + */ + public boolean hasEfts() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .FateCardEftCnt Efts = 1; + * @return this + */ + public VampireClientData clearEfts() { + bitField0_ &= ~0x00000010; + efts.clear(); + return this; + } + + /** + * repeated .FateCardEftCnt Efts = 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 #getMutableEfts()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEfts() { + return efts; + } + + /** + * repeated .FateCardEftCnt Efts = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableEfts() { + bitField0_ |= 0x00000010; + return efts; + } + + /** + * repeated .FateCardEftCnt Efts = 1; + * @param value the efts to add + * @return this + */ + public VampireClientData addEfts(final FateCardEftCnt value) { + bitField0_ |= 0x00000010; + efts.add(value); + return this; + } + + /** + * repeated .FateCardEftCnt Efts = 1; + * @param values the efts to add + * @return this + */ + public VampireClientData addAllEfts(final FateCardEftCnt... values) { + bitField0_ |= 0x00000010; + efts.addAll(values); + return this; + } + + /** + * repeated .FateCardTimeLimit Limits = 2; + * @return whether the limits field is set + */ + public boolean hasLimits() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .FateCardTimeLimit Limits = 2; + * @return this + */ + public VampireClientData clearLimits() { + bitField0_ &= ~0x00000020; + limits.clear(); + return this; + } + + /** + * repeated .FateCardTimeLimit Limits = 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 #getMutableLimits()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLimits() { + return limits; + } + + /** + * repeated .FateCardTimeLimit Limits = 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 getMutableLimits() { + bitField0_ |= 0x00000020; + return limits; + } + + /** + * repeated .FateCardTimeLimit Limits = 2; + * @param value the limits to add + * @return this + */ + public VampireClientData addLimits(final FateCardTimeLimit value) { + bitField0_ |= 0x00000020; + limits.add(value); + return this; + } + + /** + * repeated .FateCardTimeLimit Limits = 2; + * @param values the limits to add + * @return this + */ + public VampireClientData addAllLimits(final FateCardTimeLimit... values) { + bitField0_ |= 0x00000020; + limits.addAll(values); + return this; + } + + @Override + public VampireClientData copyFrom(final VampireClientData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fateCardTimer = other.fateCardTimer; + level = other.level; + exp = other.exp; + nextPackage.copyFrom(other.nextPackage); + efts.copyFrom(other.efts); + limits.copyFrom(other.limits); + } + return this; + } + + @Override + public VampireClientData mergeFrom(final VampireClientData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFateCardTimer()) { + setFateCardTimer(other.fateCardTimer); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasEfts()) { + getMutableEfts().addAll(other.efts); + } + if (other.hasLimits()) { + getMutableLimits().addAll(other.limits); + } + return this; + } + + @Override + public VampireClientData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fateCardTimer = 0; + level = 0; + exp = 0; + nextPackage.clear(); + efts.clear(); + limits.clear(); + return this; + } + + @Override + public VampireClientData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + efts.clearQuick(); + limits.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof VampireClientData)) { + return false; + } + VampireClientData other = (VampireClientData) o; + return bitField0_ == other.bitField0_ + && (!hasFateCardTimer() || fateCardTimer == other.fateCardTimer) + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasEfts() || efts.equals(other.efts)) + && (!hasLimits() || limits.equals(other.limits)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(fateCardTimer); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < efts.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(efts.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < limits.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(limits.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fateCardTimer); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * efts.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(efts); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * limits.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(limits); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public VampireClientData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // fateCardTimer + fateCardTimer = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // efts + tag = input.readRepeatedMessage(efts, tag); + bitField0_ |= 0x00000010; + if (tag != 18) { + break; + } + } + case 18: { + // limits + tag = input.readRepeatedMessage(limits, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.fateCardTimer, fateCardTimer); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.efts, efts); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.limits, limits); + } + output.endObject(); + } + + @Override + public VampireClientData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1660237545: { + if (input.isAtField(FieldNames.fateCardTimer)) { + if (!input.trySkipNullValue()) { + fateCardTimer = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73313124: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70141: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2157312: { + if (input.isAtField(FieldNames.efts)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(efts); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2018830280: { + if (input.isAtField(FieldNames.limits)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(limits); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public VampireClientData clone() { + return new VampireClientData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static VampireClientData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new VampireClientData(), data).checkInitialized(); + } + + public static VampireClientData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new VampireClientData(), input).checkInitialized(); + } + + public static VampireClientData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new VampireClientData(), input).checkInitialized(); + } + + /** + * @return factory for creating VampireClientData messages + */ + public static MessageFactory getFactory() { + return VampireClientDataFactory.INSTANCE; + } + + private enum VampireClientDataFactory implements MessageFactory { + INSTANCE; + + @Override + public VampireClientData create() { + return VampireClientData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fateCardTimer = FieldName.forField("FateCardTimer"); + + static final FieldName level = FieldName.forField("Level"); + + static final FieldName exp = FieldName.forField("Exp"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName efts = FieldName.forField("Efts"); + + static final FieldName limits = FieldName.forField("Limits"); + } + } + + /** + * Protobuf type {@code FateCardEftCnt} + */ + public static final class FateCardEftCnt extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 EftId = 2; + */ + private int eftId; + + /** + * optional uint32 Count = 3; + */ + private int count; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private FateCardEftCnt() { + } + + /** + * @return a new empty instance of {@code FateCardEftCnt} + */ + public static FateCardEftCnt newInstance() { + return new FateCardEftCnt(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public FateCardEftCnt clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public FateCardEftCnt setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 EftId = 2; + * @return whether the eftId field is set + */ + public boolean hasEftId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 EftId = 2; + * @return this + */ + public FateCardEftCnt clearEftId() { + bitField0_ &= ~0x00000002; + eftId = 0; + return this; + } + + /** + * optional uint32 EftId = 2; + * @return the eftId + */ + public int getEftId() { + return eftId; + } + + /** + * optional uint32 EftId = 2; + * @param value the eftId to set + * @return this + */ + public FateCardEftCnt setEftId(final int value) { + bitField0_ |= 0x00000002; + eftId = value; + return this; + } + + /** + * optional uint32 Count = 3; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Count = 3; + * @return this + */ + public FateCardEftCnt clearCount() { + bitField0_ &= ~0x00000004; + count = 0; + return this; + } + + /** + * optional uint32 Count = 3; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 Count = 3; + * @param value the count to set + * @return this + */ + public FateCardEftCnt setCount(final int value) { + bitField0_ |= 0x00000004; + count = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public FateCardEftCnt clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public FateCardEftCnt addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public FateCardEftCnt addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public FateCardEftCnt setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public FateCardEftCnt copyFrom(final FateCardEftCnt other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + eftId = other.eftId; + count = other.count; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FateCardEftCnt mergeFrom(final FateCardEftCnt other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasEftId()) { + setEftId(other.eftId); + } + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FateCardEftCnt clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + eftId = 0; + count = 0; + nextPackage.clear(); + return this; + } + + @Override + public FateCardEftCnt 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 FateCardEftCnt)) { + return false; + } + FateCardEftCnt other = (FateCardEftCnt) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasEftId() || eftId == other.eftId) + && (!hasCount() || count == other.count) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(eftId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eftId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FateCardEftCnt mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // eftId + eftId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eftId, eftId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.count, count); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public FateCardEftCnt mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 66875470: { + if (input.isAtField(FieldNames.eftId)) { + if (!input.trySkipNullValue()) { + eftId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FateCardEftCnt clone() { + return new FateCardEftCnt().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FateCardEftCnt parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FateCardEftCnt(), data).checkInitialized(); + } + + public static FateCardEftCnt parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FateCardEftCnt(), input).checkInitialized(); + } + + public static FateCardEftCnt parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FateCardEftCnt(), input).checkInitialized(); + } + + /** + * @return factory for creating FateCardEftCnt messages + */ + public static MessageFactory getFactory() { + return FateCardEftCntFactory.INSTANCE; + } + + private enum FateCardEftCntFactory implements MessageFactory { + INSTANCE; + + @Override + public FateCardEftCnt create() { + return FateCardEftCnt.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName eftId = FieldName.forField("EftId"); + + static final FieldName count = FieldName.forField("Count"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code FateCardTimeLimit} + */ + public static final class FateCardTimeLimit extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 TimeLimit = 2; + */ + private int timeLimit; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private FateCardTimeLimit() { + } + + /** + * @return a new empty instance of {@code FateCardTimeLimit} + */ + public static FateCardTimeLimit newInstance() { + return new FateCardTimeLimit(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public FateCardTimeLimit clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public FateCardTimeLimit setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 TimeLimit = 2; + * @return whether the timeLimit field is set + */ + public boolean hasTimeLimit() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 TimeLimit = 2; + * @return this + */ + public FateCardTimeLimit clearTimeLimit() { + bitField0_ &= ~0x00000002; + timeLimit = 0; + return this; + } + + /** + * optional uint32 TimeLimit = 2; + * @return the timeLimit + */ + public int getTimeLimit() { + return timeLimit; + } + + /** + * optional uint32 TimeLimit = 2; + * @param value the timeLimit to set + * @return this + */ + public FateCardTimeLimit setTimeLimit(final int value) { + bitField0_ |= 0x00000002; + timeLimit = 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 FateCardTimeLimit 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 FateCardTimeLimit addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public FateCardTimeLimit addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public FateCardTimeLimit setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public FateCardTimeLimit copyFrom(final FateCardTimeLimit other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + timeLimit = other.timeLimit; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FateCardTimeLimit mergeFrom(final FateCardTimeLimit other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasTimeLimit()) { + setTimeLimit(other.timeLimit); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FateCardTimeLimit clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + timeLimit = 0; + nextPackage.clear(); + return this; + } + + @Override + public FateCardTimeLimit 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 FateCardTimeLimit)) { + return false; + } + FateCardTimeLimit other = (FateCardTimeLimit) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasTimeLimit() || timeLimit == other.timeLimit) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(timeLimit); + } + 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(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(timeLimit); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FateCardTimeLimit mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // timeLimit + timeLimit = 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.timeLimit, timeLimit); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public FateCardTimeLimit mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2022760654: { + if (input.isAtField(FieldNames.timeLimit)) { + if (!input.trySkipNullValue()) { + timeLimit = 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 FateCardTimeLimit clone() { + return new FateCardTimeLimit().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FateCardTimeLimit parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FateCardTimeLimit(), data).checkInitialized(); + } + + public static FateCardTimeLimit parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FateCardTimeLimit(), input).checkInitialized(); + } + + public static FateCardTimeLimit parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FateCardTimeLimit(), input).checkInitialized(); + } + + /** + * @return factory for creating FateCardTimeLimit messages + */ + public static MessageFactory getFactory() { + return FateCardTimeLimitFactory.INSTANCE; + } + + private enum FateCardTimeLimitFactory implements MessageFactory { + INSTANCE; + + @Override + public FateCardTimeLimit create() { + return FateCardTimeLimit.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName timeLimit = FieldName.forField("TimeLimit"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/VampireSurvivorAreaChange.java b/src/generated/main/emu/nebula/proto/VampireSurvivorAreaChange.java index d7b6bfe..f545880 100644 --- a/src/generated/main/emu/nebula/proto/VampireSurvivorAreaChange.java +++ b/src/generated/main/emu/nebula/proto/VampireSurvivorAreaChange.java @@ -25,6 +25,11 @@ public final class VampireSurvivorAreaChange { */ private int time; + /** + * optional .VampireClientData ClientData = 6; + */ + private final Public.VampireClientData clientData = Public.VampireClientData.newInstance(); + /** * optional .Events Events = 7; */ @@ -87,12 +92,69 @@ public final class VampireSurvivorAreaChange { return this; } + /** + * optional .VampireClientData ClientData = 6; + * @return whether the clientData field is set + */ + public boolean hasClientData() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .VampireClientData ClientData = 6; + * @return this + */ + public VampireSurvivorAreaChangeReq clearClientData() { + bitField0_ &= ~0x00000002; + clientData.clear(); + return this; + } + + /** + * optional .VampireClientData ClientData = 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 #getMutableClientData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.VampireClientData getClientData() { + return clientData; + } + + /** + * optional .VampireClientData ClientData = 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 Public.VampireClientData getMutableClientData() { + bitField0_ |= 0x00000002; + return clientData; + } + + /** + * optional .VampireClientData ClientData = 6; + * @param value the clientData to set + * @return this + */ + public VampireSurvivorAreaChangeReq setClientData(final Public.VampireClientData value) { + bitField0_ |= 0x00000002; + clientData.copyFrom(value); + return this; + } + /** * optional .Events Events = 7; * @return whether the events field is set */ public boolean hasEvents() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -100,7 +162,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq clearEvents() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; events.clear(); return this; } @@ -129,7 +191,7 @@ public final class VampireSurvivorAreaChange { * @return internal storage object for modifications */ public Public.Events getMutableEvents() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; return events; } @@ -139,7 +201,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq setEvents(final Public.Events value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; events.copyFrom(value); return this; } @@ -149,7 +211,7 @@ public final class VampireSurvivorAreaChange { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -157,7 +219,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -186,7 +248,7 @@ public final class VampireSurvivorAreaChange { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -196,7 +258,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -207,7 +269,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -218,7 +280,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -228,7 +290,7 @@ public final class VampireSurvivorAreaChange { * @return whether the killCount field is set */ public boolean hasKillCount() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -236,7 +298,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq clearKillCount() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; killCount.clear(); return this; } @@ -265,7 +327,7 @@ public final class VampireSurvivorAreaChange { * @return internal storage object for modifications */ public RepeatedInt getMutableKillCount() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return killCount; } @@ -275,7 +337,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq addKillCount(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; killCount.add(value); return this; } @@ -286,7 +348,7 @@ public final class VampireSurvivorAreaChange { * @return this */ public VampireSurvivorAreaChangeReq addAllKillCount(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; killCount.addAll(values); return this; } @@ -297,6 +359,7 @@ public final class VampireSurvivorAreaChange { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; time = other.time; + clientData.copyFrom(other.clientData); events.copyFrom(other.events); nextPackage.copyFrom(other.nextPackage); killCount.copyFrom(other.killCount); @@ -313,6 +376,9 @@ public final class VampireSurvivorAreaChange { if (other.hasTime()) { setTime(other.time); } + if (other.hasClientData()) { + getMutableClientData().mergeFrom(other.clientData); + } if (other.hasEvents()) { getMutableEvents().mergeFrom(other.events); } @@ -333,6 +399,7 @@ public final class VampireSurvivorAreaChange { cachedSize = -1; bitField0_ = 0; time = 0; + clientData.clear(); events.clear(); nextPackage.clear(); killCount.clear(); @@ -346,6 +413,7 @@ public final class VampireSurvivorAreaChange { } cachedSize = -1; bitField0_ = 0; + clientData.clearQuick(); events.clearQuick(); nextPackage.clear(); killCount.clear(); @@ -363,6 +431,7 @@ public final class VampireSurvivorAreaChange { VampireSurvivorAreaChangeReq other = (VampireSurvivorAreaChangeReq) o; return bitField0_ == other.bitField0_ && (!hasTime() || time == other.time) + && (!hasClientData() || clientData.equals(other.clientData)) && (!hasEvents() || events.equals(other.events)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasKillCount() || killCount.equals(other.killCount)); @@ -375,14 +444,18 @@ public final class VampireSurvivorAreaChange { output.writeUInt32NoTag(time); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(clientData); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 58); output.writeMessageNoTag(events); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < killCount.length(); i++) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(killCount.array()[i]); @@ -397,12 +470,15 @@ public final class VampireSurvivorAreaChange { size += 1 + ProtoSink.computeUInt32SizeNoTag(time); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(events); + size += 1 + ProtoSink.computeMessageSizeNoTag(clientData); } if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(events); } if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { size += (1 * killCount.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(killCount); } return size; @@ -420,6 +496,15 @@ public final class VampireSurvivorAreaChange { time = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // clientData + input.readMessage(clientData); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 58) { break; } @@ -427,7 +512,7 @@ public final class VampireSurvivorAreaChange { case 58: { // events input.readMessage(events); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { break; @@ -436,7 +521,7 @@ public final class VampireSurvivorAreaChange { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 10) { break; @@ -445,7 +530,7 @@ public final class VampireSurvivorAreaChange { case 10: { // killCount [packed=true] input.readPackedUInt32(killCount, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { break; @@ -464,7 +549,7 @@ public final class VampireSurvivorAreaChange { case 8: { // killCount [packed=false] tag = input.readRepeatedUInt32(killCount, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } } @@ -478,12 +563,15 @@ public final class VampireSurvivorAreaChange { output.writeUInt32(FieldNames.time, time); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.events, events); + output.writeMessage(FieldNames.clientData, clientData); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.events, events); } if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedUInt32(FieldNames.killCount, killCount); } output.endObject(); @@ -507,11 +595,22 @@ public final class VampireSurvivorAreaChange { } break; } + case -1199548875: { + if (input.isAtField(FieldNames.clientData)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientData); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 2087505209: { if (input.isAtField(FieldNames.events)) { if (!input.trySkipNullValue()) { input.readMessage(events); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -522,7 +621,7 @@ public final class VampireSurvivorAreaChange { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -533,7 +632,7 @@ public final class VampireSurvivorAreaChange { if (input.isAtField(FieldNames.killCount)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(killCount); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -597,6 +696,8 @@ public final class VampireSurvivorAreaChange { static class FieldNames { static final FieldName time = FieldName.forField("Time"); + static final FieldName clientData = FieldName.forField("ClientData"); + static final FieldName events = FieldName.forField("Events"); static final FieldName nextPackage = FieldName.forField("NextPackage"); diff --git a/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java b/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java new file mode 100644 index 0000000..e57a481 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java @@ -0,0 +1,1581 @@ +// 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 VampireSurvivorInfo { + /** + * Protobuf type {@code VampireSurvivorInfoResp} + */ + public static final class VampireSurvivorInfoResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional .VampireSurvivorLevelReward Reward = 3; + */ + private final Public.VampireSurvivorLevelReward reward = Public.VampireSurvivorLevelReward.newInstance(); + + /** + * optional .VampireClientData ClientData = 6; + */ + private final Public.VampireClientData clientData = Public.VampireClientData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 FateCardIds = 5; + */ + private final RepeatedInt fateCardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated .VampireSurvivorEvent Events = 2; + */ + private final RepeatedMessage events = RepeatedMessage.newEmptyInstance(Public.VampireSurvivorEvent.getFactory()); + + /** + * repeated .VampireSceneInfo Scenes = 4; + */ + private final RepeatedMessage scenes = RepeatedMessage.newEmptyInstance(VampireSceneInfo.getFactory()); + + private VampireSurvivorInfoResp() { + } + + /** + * @return a new empty instance of {@code VampireSurvivorInfoResp} + */ + public static VampireSurvivorInfoResp newInstance() { + return new VampireSurvivorInfoResp(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public VampireSurvivorInfoResp clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public VampireSurvivorInfoResp setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .VampireSurvivorLevelReward Reward = 3; + * @return whether the reward field is set + */ + public boolean hasReward() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .VampireSurvivorLevelReward Reward = 3; + * @return this + */ + public VampireSurvivorInfoResp clearReward() { + bitField0_ &= ~0x00000002; + reward.clear(); + return this; + } + + /** + * optional .VampireSurvivorLevelReward Reward = 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 #getMutableReward()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.VampireSurvivorLevelReward getReward() { + return reward; + } + + /** + * optional .VampireSurvivorLevelReward Reward = 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.VampireSurvivorLevelReward getMutableReward() { + bitField0_ |= 0x00000002; + return reward; + } + + /** + * optional .VampireSurvivorLevelReward Reward = 3; + * @param value the reward to set + * @return this + */ + public VampireSurvivorInfoResp setReward(final Public.VampireSurvivorLevelReward value) { + bitField0_ |= 0x00000002; + reward.copyFrom(value); + return this; + } + + /** + * optional .VampireClientData ClientData = 6; + * @return whether the clientData field is set + */ + public boolean hasClientData() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .VampireClientData ClientData = 6; + * @return this + */ + public VampireSurvivorInfoResp clearClientData() { + bitField0_ &= ~0x00000004; + clientData.clear(); + return this; + } + + /** + * optional .VampireClientData ClientData = 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 #getMutableClientData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.VampireClientData getClientData() { + return clientData; + } + + /** + * optional .VampireClientData ClientData = 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 Public.VampireClientData getMutableClientData() { + bitField0_ |= 0x00000004; + return clientData; + } + + /** + * optional .VampireClientData ClientData = 6; + * @param value the clientData to set + * @return this + */ + public VampireSurvivorInfoResp setClientData(final Public.VampireClientData value) { + bitField0_ |= 0x00000004; + clientData.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public VampireSurvivorInfoResp clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public VampireSurvivorInfoResp addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public VampireSurvivorInfoResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public VampireSurvivorInfoResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 FateCardIds = 5; + * @return whether the fateCardIds field is set + */ + public boolean hasFateCardIds() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 FateCardIds = 5; + * @return this + */ + public VampireSurvivorInfoResp clearFateCardIds() { + bitField0_ &= ~0x00000010; + fateCardIds.clear(); + return this; + } + + /** + * repeated uint32 FateCardIds = 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 #getMutableFateCardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFateCardIds() { + return fateCardIds; + } + + /** + * repeated uint32 FateCardIds = 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 RepeatedInt getMutableFateCardIds() { + bitField0_ |= 0x00000010; + return fateCardIds; + } + + /** + * repeated uint32 FateCardIds = 5; + * @param value the fateCardIds to add + * @return this + */ + public VampireSurvivorInfoResp addFateCardIds(final int value) { + bitField0_ |= 0x00000010; + fateCardIds.add(value); + return this; + } + + /** + * repeated uint32 FateCardIds = 5; + * @param values the fateCardIds to add + * @return this + */ + public VampireSurvivorInfoResp addAllFateCardIds(final int... values) { + bitField0_ |= 0x00000010; + fateCardIds.addAll(values); + return this; + } + + /** + * repeated .VampireSurvivorEvent Events = 2; + * @return whether the events field is set + */ + public boolean hasEvents() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .VampireSurvivorEvent Events = 2; + * @return this + */ + public VampireSurvivorInfoResp clearEvents() { + bitField0_ &= ~0x00000020; + events.clear(); + return this; + } + + /** + * repeated .VampireSurvivorEvent Events = 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 #getMutableEvents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEvents() { + return events; + } + + /** + * repeated .VampireSurvivorEvent Events = 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 getMutableEvents() { + bitField0_ |= 0x00000020; + return events; + } + + /** + * repeated .VampireSurvivorEvent Events = 2; + * @param value the events to add + * @return this + */ + public VampireSurvivorInfoResp addEvents(final Public.VampireSurvivorEvent value) { + bitField0_ |= 0x00000020; + events.add(value); + return this; + } + + /** + * repeated .VampireSurvivorEvent Events = 2; + * @param values the events to add + * @return this + */ + public VampireSurvivorInfoResp addAllEvents(final Public.VampireSurvivorEvent... values) { + bitField0_ |= 0x00000020; + events.addAll(values); + return this; + } + + /** + * repeated .VampireSceneInfo Scenes = 4; + * @return whether the scenes field is set + */ + public boolean hasScenes() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .VampireSceneInfo Scenes = 4; + * @return this + */ + public VampireSurvivorInfoResp clearScenes() { + bitField0_ &= ~0x00000040; + scenes.clear(); + return this; + } + + /** + * repeated .VampireSceneInfo Scenes = 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 #getMutableScenes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getScenes() { + return scenes; + } + + /** + * repeated .VampireSceneInfo Scenes = 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 getMutableScenes() { + bitField0_ |= 0x00000040; + return scenes; + } + + /** + * repeated .VampireSceneInfo Scenes = 4; + * @param value the scenes to add + * @return this + */ + public VampireSurvivorInfoResp addScenes(final VampireSceneInfo value) { + bitField0_ |= 0x00000040; + scenes.add(value); + return this; + } + + /** + * repeated .VampireSceneInfo Scenes = 4; + * @param values the scenes to add + * @return this + */ + public VampireSurvivorInfoResp addAllScenes(final VampireSceneInfo... values) { + bitField0_ |= 0x00000040; + scenes.addAll(values); + return this; + } + + @Override + public VampireSurvivorInfoResp copyFrom(final VampireSurvivorInfoResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + reward.copyFrom(other.reward); + clientData.copyFrom(other.clientData); + nextPackage.copyFrom(other.nextPackage); + fateCardIds.copyFrom(other.fateCardIds); + events.copyFrom(other.events); + scenes.copyFrom(other.scenes); + } + return this; + } + + @Override + public VampireSurvivorInfoResp mergeFrom(final VampireSurvivorInfoResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasReward()) { + getMutableReward().mergeFrom(other.reward); + } + if (other.hasClientData()) { + getMutableClientData().mergeFrom(other.clientData); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasFateCardIds()) { + getMutableFateCardIds().addAll(other.fateCardIds); + } + if (other.hasEvents()) { + getMutableEvents().addAll(other.events); + } + if (other.hasScenes()) { + getMutableScenes().addAll(other.scenes); + } + return this; + } + + @Override + public VampireSurvivorInfoResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + reward.clear(); + clientData.clear(); + nextPackage.clear(); + fateCardIds.clear(); + events.clear(); + scenes.clear(); + return this; + } + + @Override + public VampireSurvivorInfoResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reward.clearQuick(); + clientData.clearQuick(); + nextPackage.clear(); + fateCardIds.clear(); + events.clearQuick(); + scenes.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof VampireSurvivorInfoResp)) { + return false; + } + VampireSurvivorInfoResp other = (VampireSurvivorInfoResp) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasReward() || reward.equals(other.reward)) + && (!hasClientData() || clientData.equals(other.clientData)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasFateCardIds() || fateCardIds.equals(other.fateCardIds)) + && (!hasEvents() || events.equals(other.events)) + && (!hasScenes() || scenes.equals(other.scenes)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(reward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(clientData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < fateCardIds.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(fateCardIds.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < events.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(events.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < scenes.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(scenes.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientData); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * fateCardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(fateCardIds); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * events.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(events); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * scenes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(scenes); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public VampireSurvivorInfoResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // reward + input.readMessage(reward); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // clientData + input.readMessage(clientData); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // fateCardIds [packed=true] + input.readPackedUInt32(fateCardIds, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // events + tag = input.readRepeatedMessage(events, tag); + bitField0_ |= 0x00000020; + if (tag != 34) { + break; + } + } + case 34: { + // scenes + tag = input.readRepeatedMessage(scenes, tag); + bitField0_ |= 0x00000040; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // fateCardIds [packed=false] + tag = input.readRepeatedUInt32(fateCardIds, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.reward, reward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.clientData, clientData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.fateCardIds, fateCardIds); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.events, events); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.scenes, scenes); + } + output.endObject(); + } + + @Override + public VampireSurvivorInfoResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1850459313: { + if (input.isAtField(FieldNames.reward)) { + if (!input.trySkipNullValue()) { + input.readMessage(reward); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1199548875: { + if (input.isAtField(FieldNames.clientData)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -177053860: { + if (input.isAtField(FieldNames.fateCardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(fateCardIds); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2087505209: { + if (input.isAtField(FieldNames.events)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(events); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1824201337: { + if (input.isAtField(FieldNames.scenes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(scenes); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public VampireSurvivorInfoResp clone() { + return new VampireSurvivorInfoResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static VampireSurvivorInfoResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new VampireSurvivorInfoResp(), data).checkInitialized(); + } + + public static VampireSurvivorInfoResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new VampireSurvivorInfoResp(), input).checkInitialized(); + } + + public static VampireSurvivorInfoResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new VampireSurvivorInfoResp(), input).checkInitialized(); + } + + /** + * @return factory for creating VampireSurvivorInfoResp messages + */ + public static MessageFactory getFactory() { + return VampireSurvivorInfoRespFactory.INSTANCE; + } + + private enum VampireSurvivorInfoRespFactory implements MessageFactory { + INSTANCE; + + @Override + public VampireSurvivorInfoResp create() { + return VampireSurvivorInfoResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName reward = FieldName.forField("Reward"); + + static final FieldName clientData = FieldName.forField("ClientData"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName fateCardIds = FieldName.forField("FateCardIds"); + + static final FieldName events = FieldName.forField("Events"); + + static final FieldName scenes = FieldName.forField("Scenes"); + } + } + + /** + * Protobuf type {@code VampireSceneInfo} + */ + public static final class VampireSceneInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 2; + */ + private long buildId; + + /** + * optional uint32 SceneType = 1; + */ + private int sceneType; + + /** + * optional uint32 Time = 4; + */ + private int time; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 KillCount = 3; + */ + private final RepeatedInt killCount = RepeatedInt.newEmptyInstance(); + + private VampireSceneInfo() { + } + + /** + * @return a new empty instance of {@code VampireSceneInfo} + */ + public static VampireSceneInfo newInstance() { + return new VampireSceneInfo(); + } + + /** + * optional uint64 BuildId = 2; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 BuildId = 2; + * @return this + */ + public VampireSceneInfo clearBuildId() { + bitField0_ &= ~0x00000001; + buildId = 0L; + return this; + } + + /** + * optional uint64 BuildId = 2; + * @return the buildId + */ + public long getBuildId() { + return buildId; + } + + /** + * optional uint64 BuildId = 2; + * @param value the buildId to set + * @return this + */ + public VampireSceneInfo setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional uint32 SceneType = 1; + * @return whether the sceneType field is set + */ + public boolean hasSceneType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 SceneType = 1; + * @return this + */ + public VampireSceneInfo clearSceneType() { + bitField0_ &= ~0x00000002; + sceneType = 0; + return this; + } + + /** + * optional uint32 SceneType = 1; + * @return the sceneType + */ + public int getSceneType() { + return sceneType; + } + + /** + * optional uint32 SceneType = 1; + * @param value the sceneType to set + * @return this + */ + public VampireSceneInfo setSceneType(final int value) { + bitField0_ |= 0x00000002; + sceneType = value; + return this; + } + + /** + * optional uint32 Time = 4; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Time = 4; + * @return this + */ + public VampireSceneInfo clearTime() { + bitField0_ &= ~0x00000004; + time = 0; + return this; + } + + /** + * optional uint32 Time = 4; + * @return the time + */ + public int getTime() { + return time; + } + + /** + * optional uint32 Time = 4; + * @param value the time to set + * @return this + */ + public VampireSceneInfo setTime(final int value) { + bitField0_ |= 0x00000004; + time = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public VampireSceneInfo clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNextPackage()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getNextPackage() { + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000008; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public VampireSceneInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public VampireSceneInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public VampireSceneInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 KillCount = 3; + * @return whether the killCount field is set + */ + public boolean hasKillCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 KillCount = 3; + * @return this + */ + public VampireSceneInfo clearKillCount() { + bitField0_ &= ~0x00000010; + killCount.clear(); + return this; + } + + /** + * repeated uint32 KillCount = 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 #getMutableKillCount()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getKillCount() { + return killCount; + } + + /** + * repeated uint32 KillCount = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableKillCount() { + bitField0_ |= 0x00000010; + return killCount; + } + + /** + * repeated uint32 KillCount = 3; + * @param value the killCount to add + * @return this + */ + public VampireSceneInfo addKillCount(final int value) { + bitField0_ |= 0x00000010; + killCount.add(value); + return this; + } + + /** + * repeated uint32 KillCount = 3; + * @param values the killCount to add + * @return this + */ + public VampireSceneInfo addAllKillCount(final int... values) { + bitField0_ |= 0x00000010; + killCount.addAll(values); + return this; + } + + @Override + public VampireSceneInfo copyFrom(final VampireSceneInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + sceneType = other.sceneType; + time = other.time; + nextPackage.copyFrom(other.nextPackage); + killCount.copyFrom(other.killCount); + } + return this; + } + + @Override + public VampireSceneInfo mergeFrom(final VampireSceneInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasSceneType()) { + setSceneType(other.sceneType); + } + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasKillCount()) { + getMutableKillCount().addAll(other.killCount); + } + return this; + } + + @Override + public VampireSceneInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + sceneType = 0; + time = 0; + nextPackage.clear(); + killCount.clear(); + return this; + } + + @Override + public VampireSceneInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + killCount.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof VampireSceneInfo)) { + return false; + } + VampireSceneInfo other = (VampireSceneInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasSceneType() || sceneType == other.sceneType) + && (!hasTime() || time == other.time) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasKillCount() || killCount.equals(other.killCount)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt64NoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(sceneType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(time); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < killCount.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(killCount.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sceneType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * killCount.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(killCount); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public VampireSceneInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // sceneType + sceneType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // killCount [packed=true] + input.readPackedUInt32(killCount, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // killCount [packed=false] + tag = input.readRepeatedUInt32(killCount, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.sceneType, sceneType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.time, time); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.killCount, killCount); + } + output.endObject(); + } + + @Override + public VampireSceneInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1895597065: { + if (input.isAtField(FieldNames.buildId)) { + if (!input.trySkipNullValue()) { + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -561637946: { + if (input.isAtField(FieldNames.sceneType)) { + if (!input.trySkipNullValue()) { + sceneType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 414756913: { + if (input.isAtField(FieldNames.killCount)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(killCount); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public VampireSceneInfo clone() { + return new VampireSceneInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static VampireSceneInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new VampireSceneInfo(), data).checkInitialized(); + } + + public static VampireSceneInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new VampireSceneInfo(), input).checkInitialized(); + } + + public static VampireSceneInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new VampireSceneInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating VampireSceneInfo messages + */ + public static MessageFactory getFactory() { + return VampireSceneInfoFactory.INSTANCE; + } + + private enum VampireSceneInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public VampireSceneInfo create() { + return VampireSceneInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName sceneType = FieldName.forField("SceneType"); + + static final FieldName time = FieldName.forField("Time"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName killCount = FieldName.forField("KillCount"); + } + } +} diff --git a/src/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java index 119c565..2953767 100644 --- a/src/main/java/emu/nebula/GameConstants.java +++ b/src/main/java/emu/nebula/GameConstants.java @@ -4,7 +4,7 @@ import java.time.ZoneId; public class GameConstants { private static final int DATA_VERSION = 48; - private static final String VERSION = "1.0.0"; + private static final String VERSION = "1.2.0"; public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java index 8b2738a..1323cde 100644 --- a/src/main/java/emu/nebula/net/NetMsgId.java +++ b/src/main/java/emu/nebula/net/NetMsgId.java @@ -256,6 +256,9 @@ public class NetMsgId { public static final int disc_read_reward_receive_req = 3128; public static final int disc_read_reward_receive_succeed_ack = 3129; public static final int disc_read_reward_receive_failed_ack = 3130; + public static final int disc_all_limit_break_req = 3131; + public static final int disc_all_limit_break_succeed_ack = 3132; + public static final int disc_all_limit_break_failed_ack = 3133; public static final int agent_apply_req = 3301; public static final int agent_apply_succeed_ack = 3302; public static final int agent_apply_failed_ack = 3303; @@ -343,6 +346,15 @@ public class NetMsgId { public static final int star_tower_build_preference_set_req = 4719; public static final int star_tower_build_preference_set_succeed_ack = 4720; public static final int star_tower_build_preference_set_failed_ack = 4721; + public static final int build_convert_detail_list_get_req = 4801; + public static final int build_convert_detail_list_get_succeed_ack = 4802; + public static final int build_convert_detail_list_get_failed_ack = 4803; + public static final int build_convert_submit_req = 4804; + public static final int build_convert_submit_succeed_ack = 4805; + public static final int build_convert_submit_failed_ack = 4806; + public static final int build_convert_group_reward_receive_req = 4807; + public static final int build_convert_group_reward_receive_succeed_ack = 4808; + public static final int build_convert_group_reward_receive_failed_ack = 4809; public static final int star_tower_book_potential_brief_list_get_req = 4901; public static final int star_tower_book_potential_brief_list_get_succeed_ack = 4902; public static final int star_tower_book_potential_brief_list_get_failed_ack = 4903; @@ -583,6 +595,9 @@ public class NetMsgId { public static final int vampire_talent_show_req = 8310; public static final int vampire_talent_show_succeed_ack = 8311; public static final int vampire_talent_show_failed_ack = 8312; + public static final int vampire_survivor_info_req = 8313; + public static final int vampire_survivor_info_succeed_ack = 8314; + public static final int vampire_survivor_info_failed_ack = 8315; public static final int mail_list_req = 9001; public static final int mail_list_succeed_ack = 9002; public static final int mail_list_failed_ack = 9003; @@ -741,6 +756,9 @@ public class NetMsgId { public static final int story_set_state_notify = 10050; public static final int vampire_survivor_new_season_notify = 10051; public static final int order_collected_notify = 10052; + public static final int activity_end_item_change_notify = 10053; + public static final int item_expired_change_notify = 10054; + public static final int activity_mining_grids_error_notify = 10055; public static final int activity_mining_apply_req = 11001; public static final int activity_mining_apply_succeed_ack = 11002; public static final int activity_mining_apply_failed_ack = 11003;