Update to support game version 1.9.0.*

This commit is contained in:
Melledy
2026-04-15 22:09:36 -07:00
parent dbd9d7693e
commit eef6572073
34 changed files with 11925 additions and 892 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ java {
} }
} }
version = '1.3.0' version = '1.4.0'
var shouldGenerateProto = System.getenv("GENERATE_PROTO") == "true" var shouldGenerateProto = System.getenv("GENERATE_PROTO") == "true"
System.out.println(shouldGenerateProto ? "Generating proto files" : "Skipping proto generation") System.out.println(shouldGenerateProto ? "Generating proto files" : "Skipping proto generation")
@@ -115,6 +115,11 @@ public final class ActivityDetail {
*/ */
private final Public.ActivityThrowGift throwGift = Public.ActivityThrowGift.newInstance(); private final Public.ActivityThrowGift throwGift = Public.ActivityThrowGift.newInstance();
/**
* <code>optional .ActivityGDS GDS = 20;</code>
*/
private final Public.ActivityGDS gDS = Public.ActivityGDS.newInstance();
/** /**
* <code>optional bytes NextPackage = 2047;</code> * <code>optional bytes NextPackage = 2047;</code>
*/ */
@@ -1193,12 +1198,69 @@ public final class ActivityDetail {
return this; return this;
} }
/**
* <code>optional .ActivityGDS GDS = 20;</code>
* @return whether the gDS field is set
*/
public boolean hasGDS() {
return (bitField0_ & 0x00080000) != 0;
}
/**
* <code>optional .ActivityGDS GDS = 20;</code>
* @return this
*/
public ActivityMsg clearGDS() {
bitField0_ &= ~0x00080000;
gDS.clear();
return this;
}
/**
* <code>optional .ActivityGDS GDS = 20;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableGDS()} if you want to modify it.
*
* @return internal storage object for reading
*/
public Public.ActivityGDS getGDS() {
return gDS;
}
/**
* <code>optional .ActivityGDS GDS = 20;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public Public.ActivityGDS getMutableGDS() {
bitField0_ |= 0x00080000;
return gDS;
}
/**
* <code>optional .ActivityGDS GDS = 20;</code>
* @param value the gDS to set
* @return this
*/
public ActivityMsg setGDS(final Public.ActivityGDS value) {
bitField0_ |= 0x00080000;
gDS.copyFrom(value);
return this;
}
/** /**
* <code>optional bytes NextPackage = 2047;</code> * <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set * @return whether the nextPackage field is set
*/ */
public boolean hasNextPackage() { public boolean hasNextPackage() {
return (bitField0_ & 0x00080000) != 0; return (bitField0_ & 0x00100000) != 0;
} }
/** /**
@@ -1206,7 +1268,7 @@ public final class ActivityDetail {
* @return this * @return this
*/ */
public ActivityMsg clearNextPackage() { public ActivityMsg clearNextPackage() {
bitField0_ &= ~0x00080000; bitField0_ &= ~0x00100000;
nextPackage.clear(); nextPackage.clear();
return this; return this;
} }
@@ -1235,7 +1297,7 @@ public final class ActivityDetail {
* @return internal storage object for modifications * @return internal storage object for modifications
*/ */
public RepeatedByte getMutableNextPackage() { public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00080000; bitField0_ |= 0x00100000;
return nextPackage; return nextPackage;
} }
@@ -1245,7 +1307,7 @@ public final class ActivityDetail {
* @return this * @return this
*/ */
public ActivityMsg addNextPackage(final byte value) { public ActivityMsg addNextPackage(final byte value) {
bitField0_ |= 0x00080000; bitField0_ |= 0x00100000;
nextPackage.add(value); nextPackage.add(value);
return this; return this;
} }
@@ -1256,7 +1318,7 @@ public final class ActivityDetail {
* @return this * @return this
*/ */
public ActivityMsg addAllNextPackage(final byte... values) { public ActivityMsg addAllNextPackage(final byte... values) {
bitField0_ |= 0x00080000; bitField0_ |= 0x00100000;
nextPackage.addAll(values); nextPackage.addAll(values);
return this; return this;
} }
@@ -1267,7 +1329,7 @@ public final class ActivityDetail {
* @return this * @return this
*/ */
public ActivityMsg setNextPackage(final byte... values) { public ActivityMsg setNextPackage(final byte... values) {
bitField0_ |= 0x00080000; bitField0_ |= 0x00100000;
nextPackage.copyFrom(values); nextPackage.copyFrom(values);
return this; return this;
} }
@@ -1296,6 +1358,7 @@ public final class ActivityDetail {
milkout.copyFrom(other.milkout); milkout.copyFrom(other.milkout);
penguinCard.copyFrom(other.penguinCard); penguinCard.copyFrom(other.penguinCard);
throwGift.copyFrom(other.throwGift); throwGift.copyFrom(other.throwGift);
gDS.copyFrom(other.gDS);
nextPackage.copyFrom(other.nextPackage); nextPackage.copyFrom(other.nextPackage);
} }
return this; return this;
@@ -1364,6 +1427,9 @@ public final class ActivityDetail {
if (other.hasThrowGift()) { if (other.hasThrowGift()) {
getMutableThrowGift().mergeFrom(other.throwGift); getMutableThrowGift().mergeFrom(other.throwGift);
} }
if (other.hasGDS()) {
getMutableGDS().mergeFrom(other.gDS);
}
if (other.hasNextPackage()) { if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage); getMutableNextPackage().copyFrom(other.nextPackage);
} }
@@ -1396,6 +1462,7 @@ public final class ActivityDetail {
milkout.clear(); milkout.clear();
penguinCard.clear(); penguinCard.clear();
throwGift.clear(); throwGift.clear();
gDS.clear();
nextPackage.clear(); nextPackage.clear();
return this; return this;
} }
@@ -1425,6 +1492,7 @@ public final class ActivityDetail {
milkout.clearQuick(); milkout.clearQuick();
penguinCard.clearQuick(); penguinCard.clearQuick();
throwGift.clearQuick(); throwGift.clearQuick();
gDS.clearQuick();
nextPackage.clear(); nextPackage.clear();
return this; return this;
} }
@@ -1458,6 +1526,7 @@ public final class ActivityDetail {
&& (!hasMilkout() || milkout.equals(other.milkout)) && (!hasMilkout() || milkout.equals(other.milkout))
&& (!hasPenguinCard() || penguinCard.equals(other.penguinCard)) && (!hasPenguinCard() || penguinCard.equals(other.penguinCard))
&& (!hasThrowGift() || throwGift.equals(other.throwGift)) && (!hasThrowGift() || throwGift.equals(other.throwGift))
&& (!hasGDS() || gDS.equals(other.gDS))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage)); && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
} }
@@ -1540,6 +1609,10 @@ public final class ActivityDetail {
output.writeMessageNoTag(throwGift); output.writeMessageNoTag(throwGift);
} }
if ((bitField0_ & 0x00080000) != 0) { if ((bitField0_ & 0x00080000) != 0) {
output.writeRawLittleEndian16((short) 418);
output.writeMessageNoTag(gDS);
}
if ((bitField0_ & 0x00100000) != 0) {
output.writeRawLittleEndian16((short) 32762); output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage); output.writeBytesNoTag(nextPackage);
} }
@@ -1606,6 +1679,9 @@ public final class ActivityDetail {
size += 2 + ProtoSink.computeMessageSizeNoTag(throwGift); size += 2 + ProtoSink.computeMessageSizeNoTag(throwGift);
} }
if ((bitField0_ & 0x00080000) != 0) { if ((bitField0_ & 0x00080000) != 0) {
size += 2 + ProtoSink.computeMessageSizeNoTag(gDS);
}
if ((bitField0_ & 0x00100000) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
} }
return size; return size;
@@ -1785,6 +1861,15 @@ public final class ActivityDetail {
input.readMessage(throwGift); input.readMessage(throwGift);
bitField0_ |= 0x00040000; bitField0_ |= 0x00040000;
tag = input.readTag(); tag = input.readTag();
if (tag != 162) {
break;
}
}
case 162: {
// gDS
input.readMessage(gDS);
bitField0_ |= 0x00080000;
tag = input.readTag();
if (tag != 16378) { if (tag != 16378) {
break; break;
} }
@@ -1792,7 +1877,7 @@ public final class ActivityDetail {
case 16378: { case 16378: {
// nextPackage // nextPackage
input.readBytes(nextPackage); input.readBytes(nextPackage);
bitField0_ |= 0x00080000; bitField0_ |= 0x00100000;
tag = input.readTag(); tag = input.readTag();
if (tag != 0) { if (tag != 0) {
break; break;
@@ -1873,6 +1958,9 @@ public final class ActivityDetail {
output.writeMessage(FieldNames.throwGift, throwGift); output.writeMessage(FieldNames.throwGift, throwGift);
} }
if ((bitField0_ & 0x00080000) != 0) { if ((bitField0_ & 0x00080000) != 0) {
output.writeMessage(FieldNames.gDS, gDS);
}
if ((bitField0_ & 0x00100000) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage); output.writeBytes(FieldNames.nextPackage, nextPackage);
} }
output.endObject(); output.endObject();
@@ -2094,11 +2182,22 @@ public final class ActivityDetail {
} }
break; break;
} }
case 70422: {
if (input.isAtField(FieldNames.gDS)) {
if (!input.trySkipNullValue()) {
input.readMessage(gDS);
bitField0_ |= 0x00080000;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: { case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) { if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
input.readBytes(nextPackage); input.readBytes(nextPackage);
bitField0_ |= 0x00080000; bitField0_ |= 0x00100000;
} }
} else { } else {
input.skipUnknownField(); input.skipUnknownField();
@@ -2195,6 +2294,8 @@ public final class ActivityDetail {
static final FieldName throwGift = FieldName.forField("ThrowGift"); static final FieldName throwGift = FieldName.forField("ThrowGift");
static final FieldName gDS = FieldName.forField("GDS");
static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nextPackage = FieldName.forField("NextPackage");
} }
} }
File diff suppressed because it is too large Load Diff
@@ -505,6 +505,16 @@ public final class ActivityTrekkerVersusRankBoost {
public static final class ActivityTrekkerVersusRankBoostResp extends ProtoMessage<ActivityTrekkerVersusRankBoostResp> implements Cloneable { public static final class ActivityTrekkerVersusRankBoostResp extends ProtoMessage<ActivityTrekkerVersusRankBoostResp> implements Cloneable {
private static final long serialVersionUID = 0L; private static final long serialVersionUID = 0L;
/**
* <code>optional uint64 SelfHotValue = 3;</code>
*/
private long selfHotValue;
/**
* <code>optional uint64 RivalHotValue = 4;</code>
*/
private long rivalHotValue;
/** /**
* <code>optional uint32 Level = 1;</code> * <code>optional uint32 Level = 1;</code>
*/ */
@@ -515,16 +525,6 @@ public final class ActivityTrekkerVersusRankBoost {
*/ */
private int exp; private int exp;
/**
* <code>optional uint32 SelfHotValue = 3;</code>
*/
private int selfHotValue;
/**
* <code>optional uint32 RivalHotValue = 4;</code>
*/
private int rivalHotValue;
/** /**
* <code>optional .ChangeInfo Change = 5;</code> * <code>optional .ChangeInfo Change = 5;</code>
*/ */
@@ -550,12 +550,86 @@ public final class ActivityTrekkerVersusRankBoost {
return new ActivityTrekkerVersusRankBoostResp(); return new ActivityTrekkerVersusRankBoostResp();
} }
/**
* <code>optional uint64 SelfHotValue = 3;</code>
* @return whether the selfHotValue field is set
*/
public boolean hasSelfHotValue() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint64 SelfHotValue = 3;</code>
* @return this
*/
public ActivityTrekkerVersusRankBoostResp clearSelfHotValue() {
bitField0_ &= ~0x00000001;
selfHotValue = 0L;
return this;
}
/**
* <code>optional uint64 SelfHotValue = 3;</code>
* @return the selfHotValue
*/
public long getSelfHotValue() {
return selfHotValue;
}
/**
* <code>optional uint64 SelfHotValue = 3;</code>
* @param value the selfHotValue to set
* @return this
*/
public ActivityTrekkerVersusRankBoostResp setSelfHotValue(final long value) {
bitField0_ |= 0x00000001;
selfHotValue = value;
return this;
}
/**
* <code>optional uint64 RivalHotValue = 4;</code>
* @return whether the rivalHotValue field is set
*/
public boolean hasRivalHotValue() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint64 RivalHotValue = 4;</code>
* @return this
*/
public ActivityTrekkerVersusRankBoostResp clearRivalHotValue() {
bitField0_ &= ~0x00000002;
rivalHotValue = 0L;
return this;
}
/**
* <code>optional uint64 RivalHotValue = 4;</code>
* @return the rivalHotValue
*/
public long getRivalHotValue() {
return rivalHotValue;
}
/**
* <code>optional uint64 RivalHotValue = 4;</code>
* @param value the rivalHotValue to set
* @return this
*/
public ActivityTrekkerVersusRankBoostResp setRivalHotValue(final long value) {
bitField0_ |= 0x00000002;
rivalHotValue = value;
return this;
}
/** /**
* <code>optional uint32 Level = 1;</code> * <code>optional uint32 Level = 1;</code>
* @return whether the level field is set * @return whether the level field is set
*/ */
public boolean hasLevel() { public boolean hasLevel() {
return (bitField0_ & 0x00000001) != 0; return (bitField0_ & 0x00000004) != 0;
} }
/** /**
@@ -563,7 +637,7 @@ public final class ActivityTrekkerVersusRankBoost {
* @return this * @return this
*/ */
public ActivityTrekkerVersusRankBoostResp clearLevel() { public ActivityTrekkerVersusRankBoostResp clearLevel() {
bitField0_ &= ~0x00000001; bitField0_ &= ~0x00000004;
level = 0; level = 0;
return this; return this;
} }
@@ -582,7 +656,7 @@ public final class ActivityTrekkerVersusRankBoost {
* @return this * @return this
*/ */
public ActivityTrekkerVersusRankBoostResp setLevel(final int value) { public ActivityTrekkerVersusRankBoostResp setLevel(final int value) {
bitField0_ |= 0x00000001; bitField0_ |= 0x00000004;
level = value; level = value;
return this; return this;
} }
@@ -592,7 +666,7 @@ public final class ActivityTrekkerVersusRankBoost {
* @return whether the exp field is set * @return whether the exp field is set
*/ */
public boolean hasExp() { public boolean hasExp() {
return (bitField0_ & 0x00000002) != 0; return (bitField0_ & 0x00000008) != 0;
} }
/** /**
@@ -600,7 +674,7 @@ public final class ActivityTrekkerVersusRankBoost {
* @return this * @return this
*/ */
public ActivityTrekkerVersusRankBoostResp clearExp() { public ActivityTrekkerVersusRankBoostResp clearExp() {
bitField0_ &= ~0x00000002; bitField0_ &= ~0x00000008;
exp = 0; exp = 0;
return this; return this;
} }
@@ -619,82 +693,8 @@ public final class ActivityTrekkerVersusRankBoost {
* @return this * @return this
*/ */
public ActivityTrekkerVersusRankBoostResp setExp(final int value) { public ActivityTrekkerVersusRankBoostResp setExp(final int value) {
bitField0_ |= 0x00000002;
exp = value;
return this;
}
/**
* <code>optional uint32 SelfHotValue = 3;</code>
* @return whether the selfHotValue field is set
*/
public boolean hasSelfHotValue() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 SelfHotValue = 3;</code>
* @return this
*/
public ActivityTrekkerVersusRankBoostResp clearSelfHotValue() {
bitField0_ &= ~0x00000004;
selfHotValue = 0;
return this;
}
/**
* <code>optional uint32 SelfHotValue = 3;</code>
* @return the selfHotValue
*/
public int getSelfHotValue() {
return selfHotValue;
}
/**
* <code>optional uint32 SelfHotValue = 3;</code>
* @param value the selfHotValue to set
* @return this
*/
public ActivityTrekkerVersusRankBoostResp setSelfHotValue(final int value) {
bitField0_ |= 0x00000004;
selfHotValue = value;
return this;
}
/**
* <code>optional uint32 RivalHotValue = 4;</code>
* @return whether the rivalHotValue field is set
*/
public boolean hasRivalHotValue() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 RivalHotValue = 4;</code>
* @return this
*/
public ActivityTrekkerVersusRankBoostResp clearRivalHotValue() {
bitField0_ &= ~0x00000008;
rivalHotValue = 0;
return this;
}
/**
* <code>optional uint32 RivalHotValue = 4;</code>
* @return the rivalHotValue
*/
public int getRivalHotValue() {
return rivalHotValue;
}
/**
* <code>optional uint32 RivalHotValue = 4;</code>
* @param value the rivalHotValue to set
* @return this
*/
public ActivityTrekkerVersusRankBoostResp setRivalHotValue(final int value) {
bitField0_ |= 0x00000008; bitField0_ |= 0x00000008;
rivalHotValue = value; exp = value;
return this; return this;
} }
@@ -908,10 +908,10 @@ public final class ActivityTrekkerVersusRankBoost {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
level = other.level;
exp = other.exp;
selfHotValue = other.selfHotValue; selfHotValue = other.selfHotValue;
rivalHotValue = other.rivalHotValue; rivalHotValue = other.rivalHotValue;
level = other.level;
exp = other.exp;
change.copyFrom(other.change); change.copyFrom(other.change);
nextPackage.copyFrom(other.nextPackage); nextPackage.copyFrom(other.nextPackage);
awardItems.copyFrom(other.awardItems); awardItems.copyFrom(other.awardItems);
@@ -926,18 +926,18 @@ public final class ActivityTrekkerVersusRankBoost {
return this; return this;
} }
cachedSize = -1; cachedSize = -1;
if (other.hasLevel()) {
setLevel(other.level);
}
if (other.hasExp()) {
setExp(other.exp);
}
if (other.hasSelfHotValue()) { if (other.hasSelfHotValue()) {
setSelfHotValue(other.selfHotValue); setSelfHotValue(other.selfHotValue);
} }
if (other.hasRivalHotValue()) { if (other.hasRivalHotValue()) {
setRivalHotValue(other.rivalHotValue); setRivalHotValue(other.rivalHotValue);
} }
if (other.hasLevel()) {
setLevel(other.level);
}
if (other.hasExp()) {
setExp(other.exp);
}
if (other.hasChange()) { if (other.hasChange()) {
getMutableChange().mergeFrom(other.change); getMutableChange().mergeFrom(other.change);
} }
@@ -957,10 +957,10 @@ public final class ActivityTrekkerVersusRankBoost {
} }
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
selfHotValue = 0L;
rivalHotValue = 0L;
level = 0; level = 0;
exp = 0; exp = 0;
selfHotValue = 0;
rivalHotValue = 0;
change.clear(); change.clear();
nextPackage.clear(); nextPackage.clear();
awardItems.clear(); awardItems.clear();
@@ -990,10 +990,10 @@ public final class ActivityTrekkerVersusRankBoost {
} }
ActivityTrekkerVersusRankBoostResp other = (ActivityTrekkerVersusRankBoostResp) o; ActivityTrekkerVersusRankBoostResp other = (ActivityTrekkerVersusRankBoostResp) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasLevel() || level == other.level)
&& (!hasExp() || exp == other.exp)
&& (!hasSelfHotValue() || selfHotValue == other.selfHotValue) && (!hasSelfHotValue() || selfHotValue == other.selfHotValue)
&& (!hasRivalHotValue() || rivalHotValue == other.rivalHotValue) && (!hasRivalHotValue() || rivalHotValue == other.rivalHotValue)
&& (!hasLevel() || level == other.level)
&& (!hasExp() || exp == other.exp)
&& (!hasChange() || change.equals(other.change)) && (!hasChange() || change.equals(other.change))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasAwardItems() || awardItems.equals(other.awardItems)); && (!hasAwardItems() || awardItems.equals(other.awardItems));
@@ -1002,21 +1002,21 @@ public final class ActivityTrekkerVersusRankBoost {
@Override @Override
public void writeTo(final ProtoSink output) throws IOException { public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt64NoTag(selfHotValue);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt64NoTag(rivalHotValue);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 8); output.writeRawByte((byte) 8);
output.writeUInt32NoTag(level); output.writeUInt32NoTag(level);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 16); output.writeRawByte((byte) 16);
output.writeUInt32NoTag(exp); output.writeUInt32NoTag(exp);
} }
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(selfHotValue);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(rivalHotValue);
}
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 42); output.writeRawByte((byte) 42);
output.writeMessageNoTag(change); output.writeMessageNoTag(change);
@@ -1037,16 +1037,16 @@ public final class ActivityTrekkerVersusRankBoost {
protected int computeSerializedSize() { protected int computeSerializedSize() {
int size = 0; int size = 0;
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(level); size += 1 + ProtoSink.computeUInt64SizeNoTag(selfHotValue);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); size += 1 + ProtoSink.computeUInt64SizeNoTag(rivalHotValue);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHotValue); size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(rivalHotValue); size += 1 + ProtoSink.computeUInt32SizeNoTag(exp);
} }
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(change); size += 1 + ProtoSink.computeMessageSizeNoTag(change);
@@ -1068,10 +1068,28 @@ public final class ActivityTrekkerVersusRankBoost {
int tag = input.readTag(); int tag = input.readTag();
while (true) { while (true) {
switch (tag) { switch (tag) {
case 24: {
// selfHotValue
selfHotValue = input.readUInt64();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// rivalHotValue
rivalHotValue = input.readUInt64();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 8) {
break;
}
}
case 8: { case 8: {
// level // level
level = input.readUInt32(); level = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000004;
tag = input.readTag(); tag = input.readTag();
if (tag != 16) { if (tag != 16) {
break; break;
@@ -1080,24 +1098,6 @@ public final class ActivityTrekkerVersusRankBoost {
case 16: { case 16: {
// exp // exp
exp = input.readUInt32(); exp = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// selfHotValue
selfHotValue = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// rivalHotValue
rivalHotValue = input.readUInt32();
bitField0_ |= 0x00000008; bitField0_ |= 0x00000008;
tag = input.readTag(); tag = input.readTag();
if (tag != 42) { if (tag != 42) {
@@ -1148,16 +1148,16 @@ public final class ActivityTrekkerVersusRankBoost {
public void writeTo(final JsonSink output) throws IOException { public void writeTo(final JsonSink output) throws IOException {
output.beginObject(); output.beginObject();
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.level, level); output.writeUInt64(FieldNames.selfHotValue, selfHotValue);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.exp, exp); output.writeUInt64(FieldNames.rivalHotValue, rivalHotValue);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.selfHotValue, selfHotValue); output.writeUInt32(FieldNames.level, level);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.rivalHotValue, rivalHotValue); output.writeUInt32(FieldNames.exp, exp);
} }
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
output.writeMessage(FieldNames.change, change); output.writeMessage(FieldNames.change, change);
@@ -1178,11 +1178,33 @@ public final class ActivityTrekkerVersusRankBoost {
} }
while (!input.isAtEnd()) { while (!input.isAtEnd()) {
switch (input.readFieldHash()) { switch (input.readFieldHash()) {
case 1360474288: {
if (input.isAtField(FieldNames.selfHotValue)) {
if (!input.trySkipNullValue()) {
selfHotValue = input.readUInt64();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1039538350: {
if (input.isAtField(FieldNames.rivalHotValue)) {
if (!input.trySkipNullValue()) {
rivalHotValue = input.readUInt64();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 73313124: { case 73313124: {
if (input.isAtField(FieldNames.level)) { if (input.isAtField(FieldNames.level)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
level = input.readUInt32(); level = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000004;
} }
} else { } else {
input.skipUnknownField(); input.skipUnknownField();
@@ -1193,28 +1215,6 @@ public final class ActivityTrekkerVersusRankBoost {
if (input.isAtField(FieldNames.exp)) { if (input.isAtField(FieldNames.exp)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
exp = input.readUInt32(); exp = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 1360474288: {
if (input.isAtField(FieldNames.selfHotValue)) {
if (!input.trySkipNullValue()) {
selfHotValue = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case 1039538350: {
if (input.isAtField(FieldNames.rivalHotValue)) {
if (!input.trySkipNullValue()) {
rivalHotValue = input.readUInt32();
bitField0_ |= 0x00000008; bitField0_ |= 0x00000008;
} }
} else { } else {
@@ -1310,14 +1310,14 @@ public final class ActivityTrekkerVersusRankBoost {
* Contains name constants used for serializing JSON * Contains name constants used for serializing JSON
*/ */
static class FieldNames { static class FieldNames {
static final FieldName level = FieldName.forField("Level");
static final FieldName exp = FieldName.forField("Exp");
static final FieldName selfHotValue = FieldName.forField("SelfHotValue"); static final FieldName selfHotValue = FieldName.forField("SelfHotValue");
static final FieldName rivalHotValue = FieldName.forField("RivalHotValue"); static final FieldName rivalHotValue = FieldName.forField("RivalHotValue");
static final FieldName level = FieldName.forField("Level");
static final FieldName exp = FieldName.forField("Exp");
static final FieldName change = FieldName.forField("Change"); static final FieldName change = FieldName.forField("Change");
static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nextPackage = FieldName.forField("NextPackage");
@@ -0,0 +1,5 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.proto;
public final class CharFavoriteSet {
}
@@ -683,6 +683,11 @@ public final class CharGemRefresh {
*/ */
private final RepeatedInt attributes = RepeatedInt.newEmptyInstance(); private final RepeatedInt attributes = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 OverlockCount = 3;</code>
*/
private final RepeatedInt overlockCount = RepeatedInt.newEmptyInstance();
private CharGemRefreshResp() { private CharGemRefreshResp() {
} }
@@ -897,6 +902,74 @@ public final class CharGemRefresh {
return this; return this;
} }
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @return whether the overlockCount field is set
*/
public boolean hasOverlockCount() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @return this
*/
public CharGemRefreshResp clearOverlockCount() {
bitField0_ &= ~0x00000008;
overlockCount.clear();
return this;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableOverlockCount()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getOverlockCount() {
return overlockCount;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedInt getMutableOverlockCount() {
bitField0_ |= 0x00000008;
return overlockCount;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @param value the overlockCount to add
* @return this
*/
public CharGemRefreshResp addOverlockCount(final int value) {
bitField0_ |= 0x00000008;
overlockCount.add(value);
return this;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @param values the overlockCount to add
* @return this
*/
public CharGemRefreshResp addAllOverlockCount(final int... values) {
bitField0_ |= 0x00000008;
overlockCount.addAll(values);
return this;
}
@Override @Override
public CharGemRefreshResp copyFrom(final CharGemRefreshResp other) { public CharGemRefreshResp copyFrom(final CharGemRefreshResp other) {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
@@ -905,6 +978,7 @@ public final class CharGemRefresh {
changeInfo.copyFrom(other.changeInfo); changeInfo.copyFrom(other.changeInfo);
nextPackage.copyFrom(other.nextPackage); nextPackage.copyFrom(other.nextPackage);
attributes.copyFrom(other.attributes); attributes.copyFrom(other.attributes);
overlockCount.copyFrom(other.overlockCount);
} }
return this; return this;
} }
@@ -924,6 +998,9 @@ public final class CharGemRefresh {
if (other.hasAttributes()) { if (other.hasAttributes()) {
getMutableAttributes().addAll(other.attributes); getMutableAttributes().addAll(other.attributes);
} }
if (other.hasOverlockCount()) {
getMutableOverlockCount().addAll(other.overlockCount);
}
return this; return this;
} }
@@ -937,6 +1014,7 @@ public final class CharGemRefresh {
changeInfo.clear(); changeInfo.clear();
nextPackage.clear(); nextPackage.clear();
attributes.clear(); attributes.clear();
overlockCount.clear();
return this; return this;
} }
@@ -950,6 +1028,7 @@ public final class CharGemRefresh {
changeInfo.clearQuick(); changeInfo.clearQuick();
nextPackage.clear(); nextPackage.clear();
attributes.clear(); attributes.clear();
overlockCount.clear();
return this; return this;
} }
@@ -965,7 +1044,8 @@ public final class CharGemRefresh {
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) && (!hasChangeInfo() || changeInfo.equals(other.changeInfo))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasAttributes() || attributes.equals(other.attributes)); && (!hasAttributes() || attributes.equals(other.attributes))
&& (!hasOverlockCount() || overlockCount.equals(other.overlockCount));
} }
@Override @Override
@@ -984,6 +1064,12 @@ public final class CharGemRefresh {
output.writeUInt32NoTag(attributes.array()[i]); output.writeUInt32NoTag(attributes.array()[i]);
} }
} }
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < overlockCount.length(); i++) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(overlockCount.array()[i]);
}
}
} }
@Override @Override
@@ -998,6 +1084,9 @@ public final class CharGemRefresh {
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += (1 * attributes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(attributes); size += (1 * attributes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(attributes);
} }
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * overlockCount.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(overlockCount);
}
return size; return size;
} }
@@ -1031,6 +1120,15 @@ public final class CharGemRefresh {
input.readPackedUInt32(attributes, tag); input.readPackedUInt32(attributes, tag);
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
tag = input.readTag(); tag = input.readTag();
if (tag != 26) {
break;
}
}
case 26: {
// overlockCount [packed=true]
input.readPackedUInt32(overlockCount, tag);
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 0) { if (tag != 0) {
break; break;
} }
@@ -1051,6 +1149,12 @@ public final class CharGemRefresh {
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
break; break;
} }
case 24: {
// overlockCount [packed=false]
tag = input.readRepeatedUInt32(overlockCount, tag);
bitField0_ |= 0x00000008;
break;
}
} }
} }
} }
@@ -1067,6 +1171,9 @@ public final class CharGemRefresh {
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedUInt32(FieldNames.attributes, attributes); output.writeRepeatedUInt32(FieldNames.attributes, attributes);
} }
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedUInt32(FieldNames.overlockCount, overlockCount);
}
output.endObject(); output.endObject();
} }
@@ -1110,6 +1217,17 @@ public final class CharGemRefresh {
} }
break; break;
} }
case 1950695472: {
if (input.isAtField(FieldNames.overlockCount)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(overlockCount);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: { default: {
input.skipUnknownField(); input.skipUnknownField();
break; break;
@@ -1168,6 +1286,8 @@ public final class CharGemRefresh {
static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName attributes = FieldName.forField("Attributes"); static final FieldName attributes = FieldName.forField("Attributes");
static final FieldName overlockCount = FieldName.forField("OverlockCount");
} }
} }
} }
@@ -0,0 +1,623 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedByte;
public final class CharGemUseOverlock {
/**
* Protobuf type {@code CharGemOverlockReq}
*/
public static final class CharGemOverlockReq extends ProtoMessage<CharGemOverlockReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 CharId = 1;</code>
*/
private int charId;
/**
* <code>optional uint32 SlotId = 2;</code>
*/
private int slotId;
/**
* <code>optional uint32 GemIndex = 3;</code>
*/
private int gemIndex;
/**
* <code>optional uint32 AttrIndex = 4;</code>
*/
private int attrIndex;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
private CharGemOverlockReq() {
}
/**
* @return a new empty instance of {@code CharGemOverlockReq}
*/
public static CharGemOverlockReq newInstance() {
return new CharGemOverlockReq();
}
/**
* <code>optional uint32 CharId = 1;</code>
* @return whether the charId field is set
*/
public boolean hasCharId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 CharId = 1;</code>
* @return this
*/
public CharGemOverlockReq clearCharId() {
bitField0_ &= ~0x00000001;
charId = 0;
return this;
}
/**
* <code>optional uint32 CharId = 1;</code>
* @return the charId
*/
public int getCharId() {
return charId;
}
/**
* <code>optional uint32 CharId = 1;</code>
* @param value the charId to set
* @return this
*/
public CharGemOverlockReq setCharId(final int value) {
bitField0_ |= 0x00000001;
charId = value;
return this;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @return whether the slotId field is set
*/
public boolean hasSlotId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @return this
*/
public CharGemOverlockReq clearSlotId() {
bitField0_ &= ~0x00000002;
slotId = 0;
return this;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @return the slotId
*/
public int getSlotId() {
return slotId;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @param value the slotId to set
* @return this
*/
public CharGemOverlockReq setSlotId(final int value) {
bitField0_ |= 0x00000002;
slotId = value;
return this;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @return whether the gemIndex field is set
*/
public boolean hasGemIndex() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @return this
*/
public CharGemOverlockReq clearGemIndex() {
bitField0_ &= ~0x00000004;
gemIndex = 0;
return this;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @return the gemIndex
*/
public int getGemIndex() {
return gemIndex;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @param value the gemIndex to set
* @return this
*/
public CharGemOverlockReq setGemIndex(final int value) {
bitField0_ |= 0x00000004;
gemIndex = value;
return this;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @return whether the attrIndex field is set
*/
public boolean hasAttrIndex() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @return this
*/
public CharGemOverlockReq clearAttrIndex() {
bitField0_ &= ~0x00000008;
attrIndex = 0;
return this;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @return the attrIndex
*/
public int getAttrIndex() {
return attrIndex;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @param value the attrIndex to set
* @return this
*/
public CharGemOverlockReq setAttrIndex(final int value) {
bitField0_ |= 0x00000008;
attrIndex = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public CharGemOverlockReq clearNextPackage() {
bitField0_ &= ~0x00000010;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000010;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public CharGemOverlockReq addNextPackage(final byte value) {
bitField0_ |= 0x00000010;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public CharGemOverlockReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000010;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public CharGemOverlockReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000010;
nextPackage.copyFrom(values);
return this;
}
@Override
public CharGemOverlockReq copyFrom(final CharGemOverlockReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
charId = other.charId;
slotId = other.slotId;
gemIndex = other.gemIndex;
attrIndex = other.attrIndex;
nextPackage.copyFrom(other.nextPackage);
}
return this;
}
@Override
public CharGemOverlockReq mergeFrom(final CharGemOverlockReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasCharId()) {
setCharId(other.charId);
}
if (other.hasSlotId()) {
setSlotId(other.slotId);
}
if (other.hasGemIndex()) {
setGemIndex(other.gemIndex);
}
if (other.hasAttrIndex()) {
setAttrIndex(other.attrIndex);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
return this;
}
@Override
public CharGemOverlockReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
charId = 0;
slotId = 0;
gemIndex = 0;
attrIndex = 0;
nextPackage.clear();
return this;
}
@Override
public CharGemOverlockReq 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 CharGemOverlockReq)) {
return false;
}
CharGemOverlockReq other = (CharGemOverlockReq) o;
return bitField0_ == other.bitField0_
&& (!hasCharId() || charId == other.charId)
&& (!hasSlotId() || slotId == other.slotId)
&& (!hasGemIndex() || gemIndex == other.gemIndex)
&& (!hasAttrIndex() || attrIndex == other.attrIndex)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(charId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(slotId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(gemIndex);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(attrIndex);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(charId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(slotId);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(gemIndex);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(attrIndex);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public CharGemOverlockReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// charId
charId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16) {
break;
}
}
case 16: {
// slotId
slotId = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// gemIndex
gemIndex = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// attrIndex
attrIndex = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.charId, charId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.slotId, slotId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.gemIndex, gemIndex);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.attrIndex, attrIndex);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
}
@Override
public CharGemOverlockReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 2017200945: {
if (input.isAtField(FieldNames.charId)) {
if (!input.trySkipNullValue()) {
charId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1815586855: {
if (input.isAtField(FieldNames.slotId)) {
if (!input.trySkipNullValue()) {
slotId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 1820411619: {
if (input.isAtField(FieldNames.gemIndex)) {
if (!input.trySkipNullValue()) {
gemIndex = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case 1987841345: {
if (input.isAtField(FieldNames.attrIndex)) {
if (!input.trySkipNullValue()) {
attrIndex = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public CharGemOverlockReq clone() {
return new CharGemOverlockReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static CharGemOverlockReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new CharGemOverlockReq(), data).checkInitialized();
}
public static CharGemOverlockReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new CharGemOverlockReq(), input).checkInitialized();
}
public static CharGemOverlockReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new CharGemOverlockReq(), input).checkInitialized();
}
/**
* @return factory for creating CharGemOverlockReq messages
*/
public static MessageFactory<CharGemOverlockReq> getFactory() {
return CharGemOverlockReqFactory.INSTANCE;
}
private enum CharGemOverlockReqFactory implements MessageFactory<CharGemOverlockReq> {
INSTANCE;
@Override
public CharGemOverlockReq create() {
return CharGemOverlockReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName charId = FieldName.forField("CharId");
static final FieldName slotId = FieldName.forField("SlotId");
static final FieldName gemIndex = FieldName.forField("GemIndex");
static final FieldName attrIndex = FieldName.forField("AttrIndex");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
}
@@ -0,0 +1,623 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedByte;
public final class CharGemUseOverlockRevert {
/**
* Protobuf type {@code CharGemOverlockRevertReq}
*/
public static final class CharGemOverlockRevertReq extends ProtoMessage<CharGemOverlockRevertReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 CharId = 1;</code>
*/
private int charId;
/**
* <code>optional uint32 SlotId = 2;</code>
*/
private int slotId;
/**
* <code>optional uint32 GemIndex = 3;</code>
*/
private int gemIndex;
/**
* <code>optional uint32 AttrIndex = 4;</code>
*/
private int attrIndex;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
private CharGemOverlockRevertReq() {
}
/**
* @return a new empty instance of {@code CharGemOverlockRevertReq}
*/
public static CharGemOverlockRevertReq newInstance() {
return new CharGemOverlockRevertReq();
}
/**
* <code>optional uint32 CharId = 1;</code>
* @return whether the charId field is set
*/
public boolean hasCharId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 CharId = 1;</code>
* @return this
*/
public CharGemOverlockRevertReq clearCharId() {
bitField0_ &= ~0x00000001;
charId = 0;
return this;
}
/**
* <code>optional uint32 CharId = 1;</code>
* @return the charId
*/
public int getCharId() {
return charId;
}
/**
* <code>optional uint32 CharId = 1;</code>
* @param value the charId to set
* @return this
*/
public CharGemOverlockRevertReq setCharId(final int value) {
bitField0_ |= 0x00000001;
charId = value;
return this;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @return whether the slotId field is set
*/
public boolean hasSlotId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @return this
*/
public CharGemOverlockRevertReq clearSlotId() {
bitField0_ &= ~0x00000002;
slotId = 0;
return this;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @return the slotId
*/
public int getSlotId() {
return slotId;
}
/**
* <code>optional uint32 SlotId = 2;</code>
* @param value the slotId to set
* @return this
*/
public CharGemOverlockRevertReq setSlotId(final int value) {
bitField0_ |= 0x00000002;
slotId = value;
return this;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @return whether the gemIndex field is set
*/
public boolean hasGemIndex() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @return this
*/
public CharGemOverlockRevertReq clearGemIndex() {
bitField0_ &= ~0x00000004;
gemIndex = 0;
return this;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @return the gemIndex
*/
public int getGemIndex() {
return gemIndex;
}
/**
* <code>optional uint32 GemIndex = 3;</code>
* @param value the gemIndex to set
* @return this
*/
public CharGemOverlockRevertReq setGemIndex(final int value) {
bitField0_ |= 0x00000004;
gemIndex = value;
return this;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @return whether the attrIndex field is set
*/
public boolean hasAttrIndex() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @return this
*/
public CharGemOverlockRevertReq clearAttrIndex() {
bitField0_ &= ~0x00000008;
attrIndex = 0;
return this;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @return the attrIndex
*/
public int getAttrIndex() {
return attrIndex;
}
/**
* <code>optional uint32 AttrIndex = 4;</code>
* @param value the attrIndex to set
* @return this
*/
public CharGemOverlockRevertReq setAttrIndex(final int value) {
bitField0_ |= 0x00000008;
attrIndex = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public CharGemOverlockRevertReq clearNextPackage() {
bitField0_ &= ~0x00000010;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000010;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public CharGemOverlockRevertReq addNextPackage(final byte value) {
bitField0_ |= 0x00000010;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public CharGemOverlockRevertReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000010;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public CharGemOverlockRevertReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000010;
nextPackage.copyFrom(values);
return this;
}
@Override
public CharGemOverlockRevertReq copyFrom(final CharGemOverlockRevertReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
charId = other.charId;
slotId = other.slotId;
gemIndex = other.gemIndex;
attrIndex = other.attrIndex;
nextPackage.copyFrom(other.nextPackage);
}
return this;
}
@Override
public CharGemOverlockRevertReq mergeFrom(final CharGemOverlockRevertReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasCharId()) {
setCharId(other.charId);
}
if (other.hasSlotId()) {
setSlotId(other.slotId);
}
if (other.hasGemIndex()) {
setGemIndex(other.gemIndex);
}
if (other.hasAttrIndex()) {
setAttrIndex(other.attrIndex);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
return this;
}
@Override
public CharGemOverlockRevertReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
charId = 0;
slotId = 0;
gemIndex = 0;
attrIndex = 0;
nextPackage.clear();
return this;
}
@Override
public CharGemOverlockRevertReq 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 CharGemOverlockRevertReq)) {
return false;
}
CharGemOverlockRevertReq other = (CharGemOverlockRevertReq) o;
return bitField0_ == other.bitField0_
&& (!hasCharId() || charId == other.charId)
&& (!hasSlotId() || slotId == other.slotId)
&& (!hasGemIndex() || gemIndex == other.gemIndex)
&& (!hasAttrIndex() || attrIndex == other.attrIndex)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(charId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(slotId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(gemIndex);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(attrIndex);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(charId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(slotId);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(gemIndex);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(attrIndex);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public CharGemOverlockRevertReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// charId
charId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16) {
break;
}
}
case 16: {
// slotId
slotId = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// gemIndex
gemIndex = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// attrIndex
attrIndex = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.charId, charId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.slotId, slotId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.gemIndex, gemIndex);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.attrIndex, attrIndex);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
}
@Override
public CharGemOverlockRevertReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 2017200945: {
if (input.isAtField(FieldNames.charId)) {
if (!input.trySkipNullValue()) {
charId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1815586855: {
if (input.isAtField(FieldNames.slotId)) {
if (!input.trySkipNullValue()) {
slotId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 1820411619: {
if (input.isAtField(FieldNames.gemIndex)) {
if (!input.trySkipNullValue()) {
gemIndex = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case 1987841345: {
if (input.isAtField(FieldNames.attrIndex)) {
if (!input.trySkipNullValue()) {
attrIndex = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public CharGemOverlockRevertReq clone() {
return new CharGemOverlockRevertReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static CharGemOverlockRevertReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new CharGemOverlockRevertReq(), data).checkInitialized();
}
public static CharGemOverlockRevertReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new CharGemOverlockRevertReq(), input).checkInitialized();
}
public static CharGemOverlockRevertReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new CharGemOverlockRevertReq(), input).checkInitialized();
}
/**
* @return factory for creating CharGemOverlockRevertReq messages
*/
public static MessageFactory<CharGemOverlockRevertReq> getFactory() {
return CharGemOverlockRevertReqFactory.INSTANCE;
}
private enum CharGemOverlockRevertReqFactory implements MessageFactory<CharGemOverlockRevertReq> {
INSTANCE;
@Override
public CharGemOverlockRevertReq create() {
return CharGemOverlockRevertReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName charId = FieldName.forField("CharId");
static final FieldName slotId = FieldName.forField("SlotId");
static final FieldName gemIndex = FieldName.forField("GemIndex");
static final FieldName attrIndex = FieldName.forField("AttrIndex");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
}
File diff suppressed because it is too large Load Diff
@@ -258,6 +258,11 @@ public final class PlayerData {
*/ */
private final RepeatedMessage<AssistInfo> assists = RepeatedMessage.newEmptyInstance(AssistInfo.getFactory()); private final RepeatedMessage<AssistInfo> assists = RepeatedMessage.newEmptyInstance(AssistInfo.getFactory());
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
*/
private final RepeatedMessage<Public.ActivityHonor> activityHonors = RepeatedMessage.newEmptyInstance(Public.ActivityHonor.getFactory());
/** /**
* <code>repeated .HonorInfo Honors = 124;</code> * <code>repeated .HonorInfo Honors = 124;</code>
*/ */
@@ -3029,12 +3034,80 @@ public final class PlayerData {
return this; return this;
} }
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
* @return whether the activityHonors field is set
*/
public boolean hasActivityHonors() {
return (bitField1_ & 0x00008000) != 0;
}
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
* @return this
*/
public PlayerInfo clearActivityHonors() {
bitField1_ &= ~0x00008000;
activityHonors.clear();
return this;
}
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableActivityHonors()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<Public.ActivityHonor> getActivityHonors() {
return activityHonors;
}
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<Public.ActivityHonor> getMutableActivityHonors() {
bitField1_ |= 0x00008000;
return activityHonors;
}
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
* @param value the activityHonors to add
* @return this
*/
public PlayerInfo addActivityHonors(final Public.ActivityHonor value) {
bitField1_ |= 0x00008000;
activityHonors.add(value);
return this;
}
/**
* <code>repeated .ActivityHonor ActivityHonors = 41;</code>
* @param values the activityHonors to add
* @return this
*/
public PlayerInfo addAllActivityHonors(final Public.ActivityHonor... values) {
bitField1_ |= 0x00008000;
activityHonors.addAll(values);
return this;
}
/** /**
* <code>repeated .HonorInfo Honors = 124;</code> * <code>repeated .HonorInfo Honors = 124;</code>
* @return whether the honors field is set * @return whether the honors field is set
*/ */
public boolean hasHonors() { public boolean hasHonors() {
return (bitField1_ & 0x00008000) != 0; return (bitField1_ & 0x00010000) != 0;
} }
/** /**
@@ -3042,7 +3115,7 @@ public final class PlayerData {
* @return this * @return this
*/ */
public PlayerInfo clearHonors() { public PlayerInfo clearHonors() {
bitField1_ &= ~0x00008000; bitField1_ &= ~0x00010000;
honors.clear(); honors.clear();
return this; return this;
} }
@@ -3071,7 +3144,7 @@ public final class PlayerData {
* @return internal storage object for modifications * @return internal storage object for modifications
*/ */
public RepeatedMessage<Public.HonorInfo> getMutableHonors() { public RepeatedMessage<Public.HonorInfo> getMutableHonors() {
bitField1_ |= 0x00008000; bitField1_ |= 0x00010000;
return honors; return honors;
} }
@@ -3081,7 +3154,7 @@ public final class PlayerData {
* @return this * @return this
*/ */
public PlayerInfo addHonors(final Public.HonorInfo value) { public PlayerInfo addHonors(final Public.HonorInfo value) {
bitField1_ |= 0x00008000; bitField1_ |= 0x00010000;
honors.add(value); honors.add(value);
return this; return this;
} }
@@ -3092,7 +3165,7 @@ public final class PlayerData {
* @return this * @return this
*/ */
public PlayerInfo addAllHonors(final Public.HonorInfo... values) { public PlayerInfo addAllHonors(final Public.HonorInfo... values) {
bitField1_ |= 0x00008000; bitField1_ |= 0x00010000;
honors.addAll(values); honors.addAll(values);
return this; return this;
} }
@@ -3152,6 +3225,7 @@ public final class PlayerData {
charGemInstances.copyFrom(other.charGemInstances); charGemInstances.copyFrom(other.charGemInstances);
tutorialLevels.copyFrom(other.tutorialLevels); tutorialLevels.copyFrom(other.tutorialLevels);
assists.copyFrom(other.assists); assists.copyFrom(other.assists);
activityHonors.copyFrom(other.activityHonors);
honors.copyFrom(other.honors); honors.copyFrom(other.honors);
} }
return this; return this;
@@ -3304,6 +3378,9 @@ public final class PlayerData {
if (other.hasAssists()) { if (other.hasAssists()) {
getMutableAssists().addAll(other.assists); getMutableAssists().addAll(other.assists);
} }
if (other.hasActivityHonors()) {
getMutableActivityHonors().addAll(other.activityHonors);
}
if (other.hasHonors()) { if (other.hasHonors()) {
getMutableHonors().addAll(other.honors); getMutableHonors().addAll(other.honors);
} }
@@ -3365,6 +3442,7 @@ public final class PlayerData {
charGemInstances.clear(); charGemInstances.clear();
tutorialLevels.clear(); tutorialLevels.clear();
assists.clear(); assists.clear();
activityHonors.clear();
honors.clear(); honors.clear();
return this; return this;
} }
@@ -3413,6 +3491,7 @@ public final class PlayerData {
charGemInstances.clearQuick(); charGemInstances.clearQuick();
tutorialLevels.clearQuick(); tutorialLevels.clearQuick();
assists.clearQuick(); assists.clearQuick();
activityHonors.clearQuick();
honors.clearQuick(); honors.clearQuick();
return this; return this;
} }
@@ -3475,6 +3554,7 @@ public final class PlayerData {
&& (!hasCharGemInstances() || charGemInstances.equals(other.charGemInstances)) && (!hasCharGemInstances() || charGemInstances.equals(other.charGemInstances))
&& (!hasTutorialLevels() || tutorialLevels.equals(other.tutorialLevels)) && (!hasTutorialLevels() || tutorialLevels.equals(other.tutorialLevels))
&& (!hasAssists() || assists.equals(other.assists)) && (!hasAssists() || assists.equals(other.assists))
&& (!hasActivityHonors() || activityHonors.equals(other.activityHonors))
&& (!hasHonors() || honors.equals(other.honors)); && (!hasHonors() || honors.equals(other.honors));
} }
@@ -3715,6 +3795,12 @@ public final class PlayerData {
} }
} }
if ((bitField1_ & 0x00008000) != 0) { if ((bitField1_ & 0x00008000) != 0) {
for (int i = 0; i < activityHonors.length(); i++) {
output.writeRawLittleEndian16((short) 714);
output.writeMessageNoTag(activityHonors.get(i));
}
}
if ((bitField1_ & 0x00010000) != 0) {
for (int i = 0; i < honors.length(); i++) { for (int i = 0; i < honors.length(); i++) {
output.writeRawLittleEndian16((short) 2018); output.writeRawLittleEndian16((short) 2018);
output.writeMessageNoTag(honors.get(i)); output.writeMessageNoTag(honors.get(i));
@@ -3867,6 +3953,9 @@ public final class PlayerData {
size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists);
} }
if ((bitField1_ & 0x00008000) != 0) { if ((bitField1_ & 0x00008000) != 0) {
size += (2 * activityHonors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityHonors);
}
if ((bitField1_ & 0x00010000) != 0) {
size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors);
} }
return size; return size;
@@ -4281,6 +4370,14 @@ public final class PlayerData {
// assists // assists
tag = input.readRepeatedMessage(assists, tag); tag = input.readRepeatedMessage(assists, tag);
bitField1_ |= 0x00004000; bitField1_ |= 0x00004000;
if (tag != 330) {
break;
}
}
case 330: {
// activityHonors
tag = input.readRepeatedMessage(activityHonors, tag);
bitField1_ |= 0x00008000;
if (tag != 994) { if (tag != 994) {
break; break;
} }
@@ -4288,7 +4385,7 @@ public final class PlayerData {
case 994: { case 994: {
// honors // honors
tag = input.readRepeatedMessage(honors, tag); tag = input.readRepeatedMessage(honors, tag);
bitField1_ |= 0x00008000; bitField1_ |= 0x00010000;
if (tag != 0) { if (tag != 0) {
break; break;
} }
@@ -4488,6 +4585,9 @@ public final class PlayerData {
output.writeRepeatedMessage(FieldNames.assists, assists); output.writeRepeatedMessage(FieldNames.assists, assists);
} }
if ((bitField1_ & 0x00008000) != 0) { if ((bitField1_ & 0x00008000) != 0) {
output.writeRepeatedMessage(FieldNames.activityHonors, activityHonors);
}
if ((bitField1_ & 0x00010000) != 0) {
output.writeRepeatedMessage(FieldNames.honors, honors); output.writeRepeatedMessage(FieldNames.honors, honors);
} }
output.endObject(); output.endObject();
@@ -5017,11 +5117,22 @@ public final class PlayerData {
} }
break; break;
} }
case 574276952: {
if (input.isAtField(FieldNames.activityHonors)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(activityHonors);
bitField1_ |= 0x00008000;
}
} else {
input.skipUnknownField();
}
break;
}
case -2127770263: { case -2127770263: {
if (input.isAtField(FieldNames.honors)) { if (input.isAtField(FieldNames.honors)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
input.readRepeatedMessage(honors); input.readRepeatedMessage(honors);
bitField1_ |= 0x00008000; bitField1_ |= 0x00010000;
} }
} else { } else {
input.skipUnknownField(); input.skipUnknownField();
@@ -5174,6 +5285,8 @@ public final class PlayerData {
static final FieldName assists = FieldName.forField("Assists"); static final FieldName assists = FieldName.forField("Assists");
static final FieldName activityHonors = FieldName.forField("ActivityHonors");
static final FieldName honors = FieldName.forField("Honors"); static final FieldName honors = FieldName.forField("Honors");
} }
} }
@@ -0,0 +1,426 @@
// 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;
public final class PotentialPreselectionDelete {
/**
* Protobuf type {@code PotentialPreselectionDeleteReq}
*/
public static final class PotentialPreselectionDeleteReq extends ProtoMessage<PotentialPreselectionDeleteReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated uint64 Ids = 1;</code>
*/
private final RepeatedLong ids = RepeatedLong.newEmptyInstance();
private PotentialPreselectionDeleteReq() {
}
/**
* @return a new empty instance of {@code PotentialPreselectionDeleteReq}
*/
public static PotentialPreselectionDeleteReq newInstance() {
return new PotentialPreselectionDeleteReq();
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselectionDeleteReq clearNextPackage() {
bitField0_ &= ~0x00000001;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000001;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselectionDeleteReq addNextPackage(final byte value) {
bitField0_ |= 0x00000001;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselectionDeleteReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselectionDeleteReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated uint64 Ids = 1;</code>
* @return whether the ids field is set
*/
public boolean hasIds() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated uint64 Ids = 1;</code>
* @return this
*/
public PotentialPreselectionDeleteReq clearIds() {
bitField0_ &= ~0x00000002;
ids.clear();
return this;
}
/**
* <code>repeated uint64 Ids = 1;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableIds()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedLong getIds() {
return ids;
}
/**
* <code>repeated uint64 Ids = 1;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedLong getMutableIds() {
bitField0_ |= 0x00000002;
return ids;
}
/**
* <code>repeated uint64 Ids = 1;</code>
* @param value the ids to add
* @return this
*/
public PotentialPreselectionDeleteReq addIds(final long value) {
bitField0_ |= 0x00000002;
ids.add(value);
return this;
}
/**
* <code>repeated uint64 Ids = 1;</code>
* @param values the ids to add
* @return this
*/
public PotentialPreselectionDeleteReq addAllIds(final long... values) {
bitField0_ |= 0x00000002;
ids.addAll(values);
return this;
}
@Override
public PotentialPreselectionDeleteReq copyFrom(final PotentialPreselectionDeleteReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
nextPackage.copyFrom(other.nextPackage);
ids.copyFrom(other.ids);
}
return this;
}
@Override
public PotentialPreselectionDeleteReq mergeFrom(final PotentialPreselectionDeleteReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasIds()) {
getMutableIds().addAll(other.ids);
}
return this;
}
@Override
public PotentialPreselectionDeleteReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
ids.clear();
return this;
}
@Override
public PotentialPreselectionDeleteReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
ids.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselectionDeleteReq)) {
return false;
}
PotentialPreselectionDeleteReq other = (PotentialPreselectionDeleteReq) o;
return bitField0_ == other.bitField0_
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasIds() || ids.equals(other.ids));
}
@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 < ids.length(); i++) {
output.writeRawByte((byte) 8);
output.writeUInt64NoTag(ids.array()[i]);
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(ids);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselectionDeleteReq 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: {
// ids [packed=true]
input.readPackedUInt64(ids, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
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.readRepeatedUInt64(ids, tag);
bitField0_ |= 0x00000002;
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.writeRepeatedUInt64(FieldNames.ids, ids);
}
output.endObject();
}
@Override
public PotentialPreselectionDeleteReq 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 73368: {
if (input.isAtField(FieldNames.ids)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt64(ids);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselectionDeleteReq clone() {
return new PotentialPreselectionDeleteReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselectionDeleteReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselectionDeleteReq(), data).checkInitialized();
}
public static PotentialPreselectionDeleteReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionDeleteReq(), input).checkInitialized();
}
public static PotentialPreselectionDeleteReq parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionDeleteReq(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselectionDeleteReq messages
*/
public static MessageFactory<PotentialPreselectionDeleteReq> getFactory() {
return PotentialPreselectionDeleteReqFactory.INSTANCE;
}
private enum PotentialPreselectionDeleteReqFactory implements MessageFactory<PotentialPreselectionDeleteReq> {
INSTANCE;
@Override
public PotentialPreselectionDeleteReq create() {
return PotentialPreselectionDeleteReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName ids = FieldName.forField("Ids");
}
}
}
@@ -0,0 +1,611 @@
// 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;
import us.hebi.quickbuf.Utf8String;
public final class PotentialPreselectionImport {
/**
* Protobuf type {@code PotentialPreselectionImportReq}
*/
public static final class PotentialPreselectionImportReq extends ProtoMessage<PotentialPreselectionImportReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional bool Preference = 2;</code>
*/
private boolean preference;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>optional string Name = 1;</code>
*/
private final Utf8String name = Utf8String.newEmptyInstance();
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
*/
private final RepeatedMessage<PublicStarTower.StarTowerBookCharPotential> charPotentials = RepeatedMessage.newEmptyInstance(PublicStarTower.StarTowerBookCharPotential.getFactory());
private PotentialPreselectionImportReq() {
}
/**
* @return a new empty instance of {@code PotentialPreselectionImportReq}
*/
public static PotentialPreselectionImportReq newInstance() {
return new PotentialPreselectionImportReq();
}
/**
* <code>optional bool Preference = 2;</code>
* @return whether the preference field is set
*/
public boolean hasPreference() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional bool Preference = 2;</code>
* @return this
*/
public PotentialPreselectionImportReq clearPreference() {
bitField0_ &= ~0x00000001;
preference = false;
return this;
}
/**
* <code>optional bool Preference = 2;</code>
* @return the preference
*/
public boolean getPreference() {
return preference;
}
/**
* <code>optional bool Preference = 2;</code>
* @param value the preference to set
* @return this
*/
public PotentialPreselectionImportReq setPreference(final boolean value) {
bitField0_ |= 0x00000001;
preference = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselectionImportReq clearNextPackage() {
bitField0_ &= ~0x00000002;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000002;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselectionImportReq addNextPackage(final byte value) {
bitField0_ |= 0x00000002;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselectionImportReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselectionImportReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>optional string Name = 1;</code>
* @return whether the name field is set
*/
public boolean hasName() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional string Name = 1;</code>
* @return this
*/
public PotentialPreselectionImportReq clearName() {
bitField0_ &= ~0x00000004;
name.clear();
return this;
}
/**
* <code>optional string Name = 1;</code>
* @return the name
*/
public String getName() {
return name.getString();
}
/**
* <code>optional string Name = 1;</code>
* @return internal {@code Utf8String} representation of name for reading
*/
public Utf8String getNameBytes() {
return this.name;
}
/**
* <code>optional string Name = 1;</code>
* @return internal {@code Utf8String} representation of name for modifications
*/
public Utf8String getMutableNameBytes() {
bitField0_ |= 0x00000004;
return this.name;
}
/**
* <code>optional string Name = 1;</code>
* @param value the name to set
* @return this
*/
public PotentialPreselectionImportReq setName(final CharSequence value) {
bitField0_ |= 0x00000004;
name.copyFrom(value);
return this;
}
/**
* <code>optional string Name = 1;</code>
* @param value the name to set
* @return this
*/
public PotentialPreselectionImportReq setName(final Utf8String value) {
bitField0_ |= 0x00000004;
name.copyFrom(value);
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
* @return whether the charPotentials field is set
*/
public boolean hasCharPotentials() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
* @return this
*/
public PotentialPreselectionImportReq clearCharPotentials() {
bitField0_ &= ~0x00000008;
charPotentials.clear();
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableCharPotentials()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<PublicStarTower.StarTowerBookCharPotential> getCharPotentials() {
return charPotentials;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<PublicStarTower.StarTowerBookCharPotential> getMutableCharPotentials() {
bitField0_ |= 0x00000008;
return charPotentials;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
* @param value the charPotentials to add
* @return this
*/
public PotentialPreselectionImportReq addCharPotentials(
final PublicStarTower.StarTowerBookCharPotential value) {
bitField0_ |= 0x00000008;
charPotentials.add(value);
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 3;</code>
* @param values the charPotentials to add
* @return this
*/
public PotentialPreselectionImportReq addAllCharPotentials(
final PublicStarTower.StarTowerBookCharPotential... values) {
bitField0_ |= 0x00000008;
charPotentials.addAll(values);
return this;
}
@Override
public PotentialPreselectionImportReq copyFrom(final PotentialPreselectionImportReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
preference = other.preference;
nextPackage.copyFrom(other.nextPackage);
name.copyFrom(other.name);
charPotentials.copyFrom(other.charPotentials);
}
return this;
}
@Override
public PotentialPreselectionImportReq mergeFrom(final PotentialPreselectionImportReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasPreference()) {
setPreference(other.preference);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasName()) {
getMutableNameBytes().copyFrom(other.name);
}
if (other.hasCharPotentials()) {
getMutableCharPotentials().addAll(other.charPotentials);
}
return this;
}
@Override
public PotentialPreselectionImportReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
preference = false;
nextPackage.clear();
name.clear();
charPotentials.clear();
return this;
}
@Override
public PotentialPreselectionImportReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
name.clear();
charPotentials.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselectionImportReq)) {
return false;
}
PotentialPreselectionImportReq other = (PotentialPreselectionImportReq) o;
return bitField0_ == other.bitField0_
&& (!hasPreference() || preference == other.preference)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasName() || name.equals(other.name))
&& (!hasCharPotentials() || charPotentials.equals(other.charPotentials));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 16);
output.writeBoolNoTag(preference);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 10);
output.writeStringNoTag(name);
}
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < charPotentials.length(); i++) {
output.writeRawByte((byte) 26);
output.writeMessageNoTag(charPotentials.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(name);
}
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * charPotentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charPotentials);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselectionImportReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 16: {
// preference
preference = input.readBool();
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: {
// name
input.readString(name);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 26) {
break;
}
}
case 26: {
// charPotentials
tag = input.readRepeatedMessage(charPotentials, 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.writeBool(FieldNames.preference, preference);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeString(FieldNames.name, name);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedMessage(FieldNames.charPotentials, charPotentials);
}
output.endObject();
}
@Override
public PotentialPreselectionImportReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 533633275: {
if (input.isAtField(FieldNames.preference)) {
if (!input.trySkipNullValue()) {
preference = input.readBool();
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 2420395: {
if (input.isAtField(FieldNames.name)) {
if (!input.trySkipNullValue()) {
input.readString(name);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -1909208021: {
if (input.isAtField(FieldNames.charPotentials)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(charPotentials);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselectionImportReq clone() {
return new PotentialPreselectionImportReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselectionImportReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselectionImportReq(), data).checkInitialized();
}
public static PotentialPreselectionImportReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionImportReq(), input).checkInitialized();
}
public static PotentialPreselectionImportReq parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionImportReq(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselectionImportReq messages
*/
public static MessageFactory<PotentialPreselectionImportReq> getFactory() {
return PotentialPreselectionImportReqFactory.INSTANCE;
}
private enum PotentialPreselectionImportReqFactory implements MessageFactory<PotentialPreselectionImportReq> {
INSTANCE;
@Override
public PotentialPreselectionImportReq create() {
return PotentialPreselectionImportReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName preference = FieldName.forField("Preference");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName name = FieldName.forField("Name");
static final FieldName charPotentials = FieldName.forField("CharPotentials");
}
}
}
@@ -0,0 +1,418 @@
// 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 PotentialPreselectionListOuterClass {
/**
* Protobuf type {@code PotentialPreselectionList}
*/
public static final class PotentialPreselectionList extends ProtoMessage<PotentialPreselectionList> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated .PotentialPreselection List = 1;</code>
*/
private final RepeatedMessage<PublicStarTower.PotentialPreselection> list = RepeatedMessage.newEmptyInstance(PublicStarTower.PotentialPreselection.getFactory());
private PotentialPreselectionList() {
}
/**
* @return a new empty instance of {@code PotentialPreselectionList}
*/
public static PotentialPreselectionList newInstance() {
return new PotentialPreselectionList();
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselectionList clearNextPackage() {
bitField0_ &= ~0x00000001;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000001;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselectionList addNextPackage(final byte value) {
bitField0_ |= 0x00000001;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselectionList addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselectionList setNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated .PotentialPreselection List = 1;</code>
* @return whether the list field is set
*/
public boolean hasList() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated .PotentialPreselection List = 1;</code>
* @return this
*/
public PotentialPreselectionList clearList() {
bitField0_ &= ~0x00000002;
list.clear();
return this;
}
/**
* <code>repeated .PotentialPreselection List = 1;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableList()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<PublicStarTower.PotentialPreselection> getList() {
return list;
}
/**
* <code>repeated .PotentialPreselection List = 1;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<PublicStarTower.PotentialPreselection> getMutableList() {
bitField0_ |= 0x00000002;
return list;
}
/**
* <code>repeated .PotentialPreselection List = 1;</code>
* @param value the list to add
* @return this
*/
public PotentialPreselectionList addList(final PublicStarTower.PotentialPreselection value) {
bitField0_ |= 0x00000002;
list.add(value);
return this;
}
/**
* <code>repeated .PotentialPreselection List = 1;</code>
* @param values the list to add
* @return this
*/
public PotentialPreselectionList addAllList(
final PublicStarTower.PotentialPreselection... values) {
bitField0_ |= 0x00000002;
list.addAll(values);
return this;
}
@Override
public PotentialPreselectionList copyFrom(final PotentialPreselectionList other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
nextPackage.copyFrom(other.nextPackage);
list.copyFrom(other.list);
}
return this;
}
@Override
public PotentialPreselectionList mergeFrom(final PotentialPreselectionList other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasList()) {
getMutableList().addAll(other.list);
}
return this;
}
@Override
public PotentialPreselectionList clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
list.clear();
return this;
}
@Override
public PotentialPreselectionList clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
list.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselectionList)) {
return false;
}
PotentialPreselectionList other = (PotentialPreselectionList) o;
return bitField0_ == other.bitField0_
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasList() || list.equals(other.list));
}
@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 < list.length(); i++) {
output.writeRawByte((byte) 10);
output.writeMessageNoTag(list.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * list.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(list);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselectionList 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: {
// list
tag = input.readRepeatedMessage(list, 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.list, list);
}
output.endObject();
}
@Override
public PotentialPreselectionList 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 2368702: {
if (input.isAtField(FieldNames.list)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(list);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselectionList clone() {
return new PotentialPreselectionList().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselectionList parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselectionList(), data).checkInitialized();
}
public static PotentialPreselectionList parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionList(), input).checkInitialized();
}
public static PotentialPreselectionList parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionList(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselectionList messages
*/
public static MessageFactory<PotentialPreselectionList> getFactory() {
return PotentialPreselectionListFactory.INSTANCE;
}
private enum PotentialPreselectionListFactory implements MessageFactory<PotentialPreselectionList> {
INSTANCE;
@Override
public PotentialPreselectionList create() {
return PotentialPreselectionList.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName list = FieldName.forField("List");
}
}
}
@@ -0,0 +1,495 @@
// 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.Utf8String;
public final class PotentialPreselectionNameSet {
/**
* Protobuf type {@code PotentialPreselectionNameSetReq}
*/
public static final class PotentialPreselectionNameSetReq extends ProtoMessage<PotentialPreselectionNameSetReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint64 Id = 1;</code>
*/
private long id;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>optional string Name = 2;</code>
*/
private final Utf8String name = Utf8String.newEmptyInstance();
private PotentialPreselectionNameSetReq() {
}
/**
* @return a new empty instance of {@code PotentialPreselectionNameSetReq}
*/
public static PotentialPreselectionNameSetReq newInstance() {
return new PotentialPreselectionNameSetReq();
}
/**
* <code>optional uint64 Id = 1;</code>
* @return whether the id field is set
*/
public boolean hasId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint64 Id = 1;</code>
* @return this
*/
public PotentialPreselectionNameSetReq clearId() {
bitField0_ &= ~0x00000001;
id = 0L;
return this;
}
/**
* <code>optional uint64 Id = 1;</code>
* @return the id
*/
public long getId() {
return id;
}
/**
* <code>optional uint64 Id = 1;</code>
* @param value the id to set
* @return this
*/
public PotentialPreselectionNameSetReq setId(final long value) {
bitField0_ |= 0x00000001;
id = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselectionNameSetReq clearNextPackage() {
bitField0_ &= ~0x00000002;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000002;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselectionNameSetReq addNextPackage(final byte value) {
bitField0_ |= 0x00000002;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselectionNameSetReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselectionNameSetReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>optional string Name = 2;</code>
* @return whether the name field is set
*/
public boolean hasName() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional string Name = 2;</code>
* @return this
*/
public PotentialPreselectionNameSetReq clearName() {
bitField0_ &= ~0x00000004;
name.clear();
return this;
}
/**
* <code>optional string Name = 2;</code>
* @return the name
*/
public String getName() {
return name.getString();
}
/**
* <code>optional string Name = 2;</code>
* @return internal {@code Utf8String} representation of name for reading
*/
public Utf8String getNameBytes() {
return this.name;
}
/**
* <code>optional string Name = 2;</code>
* @return internal {@code Utf8String} representation of name for modifications
*/
public Utf8String getMutableNameBytes() {
bitField0_ |= 0x00000004;
return this.name;
}
/**
* <code>optional string Name = 2;</code>
* @param value the name to set
* @return this
*/
public PotentialPreselectionNameSetReq setName(final CharSequence value) {
bitField0_ |= 0x00000004;
name.copyFrom(value);
return this;
}
/**
* <code>optional string Name = 2;</code>
* @param value the name to set
* @return this
*/
public PotentialPreselectionNameSetReq setName(final Utf8String value) {
bitField0_ |= 0x00000004;
name.copyFrom(value);
return this;
}
@Override
public PotentialPreselectionNameSetReq copyFrom(final PotentialPreselectionNameSetReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
id = other.id;
nextPackage.copyFrom(other.nextPackage);
name.copyFrom(other.name);
}
return this;
}
@Override
public PotentialPreselectionNameSetReq mergeFrom(final PotentialPreselectionNameSetReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasId()) {
setId(other.id);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasName()) {
getMutableNameBytes().copyFrom(other.name);
}
return this;
}
@Override
public PotentialPreselectionNameSetReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
id = 0L;
nextPackage.clear();
name.clear();
return this;
}
@Override
public PotentialPreselectionNameSetReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
name.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselectionNameSetReq)) {
return false;
}
PotentialPreselectionNameSetReq other = (PotentialPreselectionNameSetReq) o;
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasName() || name.equals(other.name));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt64NoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 18);
output.writeStringNoTag(name);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(name);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselectionNameSetReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// id
id = input.readUInt64();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 18) {
break;
}
}
case 18: {
// name
input.readString(name);
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.writeUInt64(FieldNames.id, id);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeString(FieldNames.name, name);
}
output.endObject();
}
@Override
public PotentialPreselectionNameSetReq 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.readUInt64();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 2420395: {
if (input.isAtField(FieldNames.name)) {
if (!input.trySkipNullValue()) {
input.readString(name);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselectionNameSetReq clone() {
return new PotentialPreselectionNameSetReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselectionNameSetReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselectionNameSetReq(), data).checkInitialized();
}
public static PotentialPreselectionNameSetReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionNameSetReq(), input).checkInitialized();
}
public static PotentialPreselectionNameSetReq parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionNameSetReq(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselectionNameSetReq messages
*/
public static MessageFactory<PotentialPreselectionNameSetReq> getFactory() {
return PotentialPreselectionNameSetReqFactory.INSTANCE;
}
private enum PotentialPreselectionNameSetReqFactory implements MessageFactory<PotentialPreselectionNameSetReq> {
INSTANCE;
@Override
public PotentialPreselectionNameSetReq create() {
return PotentialPreselectionNameSetReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName id = FieldName.forField("Id");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName name = FieldName.forField("Name");
}
}
}
@@ -0,0 +1,550 @@
// 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;
public final class PotentialPreselectionPreferenceSet {
/**
* Protobuf type {@code PotentialPreselectionPreferenceSetReq}
*/
public static final class PotentialPreselectionPreferenceSetReq extends ProtoMessage<PotentialPreselectionPreferenceSetReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated uint64 CheckInIds = 1;</code>
*/
private final RepeatedLong checkInIds = RepeatedLong.newEmptyInstance();
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
*/
private final RepeatedLong checkOutIds = RepeatedLong.newEmptyInstance();
private PotentialPreselectionPreferenceSetReq() {
}
/**
* @return a new empty instance of {@code PotentialPreselectionPreferenceSetReq}
*/
public static PotentialPreselectionPreferenceSetReq newInstance() {
return new PotentialPreselectionPreferenceSetReq();
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselectionPreferenceSetReq clearNextPackage() {
bitField0_ &= ~0x00000001;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000001;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselectionPreferenceSetReq addNextPackage(final byte value) {
bitField0_ |= 0x00000001;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselectionPreferenceSetReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselectionPreferenceSetReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated uint64 CheckInIds = 1;</code>
* @return whether the checkInIds field is set
*/
public boolean hasCheckInIds() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated uint64 CheckInIds = 1;</code>
* @return this
*/
public PotentialPreselectionPreferenceSetReq clearCheckInIds() {
bitField0_ &= ~0x00000002;
checkInIds.clear();
return this;
}
/**
* <code>repeated uint64 CheckInIds = 1;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableCheckInIds()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedLong getCheckInIds() {
return checkInIds;
}
/**
* <code>repeated uint64 CheckInIds = 1;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedLong getMutableCheckInIds() {
bitField0_ |= 0x00000002;
return checkInIds;
}
/**
* <code>repeated uint64 CheckInIds = 1;</code>
* @param value the checkInIds to add
* @return this
*/
public PotentialPreselectionPreferenceSetReq addCheckInIds(final long value) {
bitField0_ |= 0x00000002;
checkInIds.add(value);
return this;
}
/**
* <code>repeated uint64 CheckInIds = 1;</code>
* @param values the checkInIds to add
* @return this
*/
public PotentialPreselectionPreferenceSetReq addAllCheckInIds(final long... values) {
bitField0_ |= 0x00000002;
checkInIds.addAll(values);
return this;
}
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
* @return whether the checkOutIds field is set
*/
public boolean hasCheckOutIds() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
* @return this
*/
public PotentialPreselectionPreferenceSetReq clearCheckOutIds() {
bitField0_ &= ~0x00000004;
checkOutIds.clear();
return this;
}
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableCheckOutIds()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedLong getCheckOutIds() {
return checkOutIds;
}
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedLong getMutableCheckOutIds() {
bitField0_ |= 0x00000004;
return checkOutIds;
}
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
* @param value the checkOutIds to add
* @return this
*/
public PotentialPreselectionPreferenceSetReq addCheckOutIds(final long value) {
bitField0_ |= 0x00000004;
checkOutIds.add(value);
return this;
}
/**
* <code>repeated uint64 CheckOutIds = 2;</code>
* @param values the checkOutIds to add
* @return this
*/
public PotentialPreselectionPreferenceSetReq addAllCheckOutIds(final long... values) {
bitField0_ |= 0x00000004;
checkOutIds.addAll(values);
return this;
}
@Override
public PotentialPreselectionPreferenceSetReq copyFrom(
final PotentialPreselectionPreferenceSetReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
nextPackage.copyFrom(other.nextPackage);
checkInIds.copyFrom(other.checkInIds);
checkOutIds.copyFrom(other.checkOutIds);
}
return this;
}
@Override
public PotentialPreselectionPreferenceSetReq mergeFrom(
final PotentialPreselectionPreferenceSetReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasCheckInIds()) {
getMutableCheckInIds().addAll(other.checkInIds);
}
if (other.hasCheckOutIds()) {
getMutableCheckOutIds().addAll(other.checkOutIds);
}
return this;
}
@Override
public PotentialPreselectionPreferenceSetReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
checkInIds.clear();
checkOutIds.clear();
return this;
}
@Override
public PotentialPreselectionPreferenceSetReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
checkInIds.clear();
checkOutIds.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselectionPreferenceSetReq)) {
return false;
}
PotentialPreselectionPreferenceSetReq other = (PotentialPreselectionPreferenceSetReq) o;
return bitField0_ == other.bitField0_
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasCheckInIds() || checkInIds.equals(other.checkInIds))
&& (!hasCheckOutIds() || checkOutIds.equals(other.checkOutIds));
}
@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 < checkInIds.length(); i++) {
output.writeRawByte((byte) 8);
output.writeUInt64NoTag(checkInIds.array()[i]);
}
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < checkOutIds.length(); i++) {
output.writeRawByte((byte) 16);
output.writeUInt64NoTag(checkOutIds.array()[i]);
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * checkInIds.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(checkInIds);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * checkOutIds.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(checkOutIds);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselectionPreferenceSetReq 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: {
// checkInIds [packed=true]
input.readPackedUInt64(checkInIds, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 18) {
break;
}
}
case 18: {
// checkOutIds [packed=true]
input.readPackedUInt64(checkOutIds, tag);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 8: {
// checkInIds [packed=false]
tag = input.readRepeatedUInt64(checkInIds, tag);
bitField0_ |= 0x00000002;
break;
}
case 16: {
// checkOutIds [packed=false]
tag = input.readRepeatedUInt64(checkOutIds, tag);
bitField0_ |= 0x00000004;
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.writeRepeatedUInt64(FieldNames.checkInIds, checkInIds);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedUInt64(FieldNames.checkOutIds, checkOutIds);
}
output.endObject();
}
@Override
public PotentialPreselectionPreferenceSetReq 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 1454616395: {
if (input.isAtField(FieldNames.checkInIds)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt64(checkInIds);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1972037742: {
if (input.isAtField(FieldNames.checkOutIds)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt64(checkOutIds);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselectionPreferenceSetReq clone() {
return new PotentialPreselectionPreferenceSetReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselectionPreferenceSetReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselectionPreferenceSetReq(), data).checkInitialized();
}
public static PotentialPreselectionPreferenceSetReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionPreferenceSetReq(), input).checkInitialized();
}
public static PotentialPreselectionPreferenceSetReq parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionPreferenceSetReq(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselectionPreferenceSetReq messages
*/
public static MessageFactory<PotentialPreselectionPreferenceSetReq> getFactory() {
return PotentialPreselectionPreferenceSetReqFactory.INSTANCE;
}
private enum PotentialPreselectionPreferenceSetReqFactory implements MessageFactory<PotentialPreselectionPreferenceSetReq> {
INSTANCE;
@Override
public PotentialPreselectionPreferenceSetReq create() {
return PotentialPreselectionPreferenceSetReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName checkInIds = FieldName.forField("CheckInIds");
static final FieldName checkOutIds = FieldName.forField("CheckOutIds");
}
}
}
@@ -0,0 +1,501 @@
// 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 PotentialPreselectionUpdate {
/**
* Protobuf type {@code PotentialPreselectionUpdateReq}
*/
public static final class PotentialPreselectionUpdateReq extends ProtoMessage<PotentialPreselectionUpdateReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint64 Id = 1;</code>
*/
private long id;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
*/
private final RepeatedMessage<PublicStarTower.StarTowerBookCharPotential> charPotentials = RepeatedMessage.newEmptyInstance(PublicStarTower.StarTowerBookCharPotential.getFactory());
private PotentialPreselectionUpdateReq() {
}
/**
* @return a new empty instance of {@code PotentialPreselectionUpdateReq}
*/
public static PotentialPreselectionUpdateReq newInstance() {
return new PotentialPreselectionUpdateReq();
}
/**
* <code>optional uint64 Id = 1;</code>
* @return whether the id field is set
*/
public boolean hasId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint64 Id = 1;</code>
* @return this
*/
public PotentialPreselectionUpdateReq clearId() {
bitField0_ &= ~0x00000001;
id = 0L;
return this;
}
/**
* <code>optional uint64 Id = 1;</code>
* @return the id
*/
public long getId() {
return id;
}
/**
* <code>optional uint64 Id = 1;</code>
* @param value the id to set
* @return this
*/
public PotentialPreselectionUpdateReq setId(final long value) {
bitField0_ |= 0x00000001;
id = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselectionUpdateReq clearNextPackage() {
bitField0_ &= ~0x00000002;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000002;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselectionUpdateReq addNextPackage(final byte value) {
bitField0_ |= 0x00000002;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselectionUpdateReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselectionUpdateReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
* @return whether the charPotentials field is set
*/
public boolean hasCharPotentials() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
* @return this
*/
public PotentialPreselectionUpdateReq clearCharPotentials() {
bitField0_ &= ~0x00000004;
charPotentials.clear();
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableCharPotentials()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<PublicStarTower.StarTowerBookCharPotential> getCharPotentials() {
return charPotentials;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<PublicStarTower.StarTowerBookCharPotential> getMutableCharPotentials() {
bitField0_ |= 0x00000004;
return charPotentials;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
* @param value the charPotentials to add
* @return this
*/
public PotentialPreselectionUpdateReq addCharPotentials(
final PublicStarTower.StarTowerBookCharPotential value) {
bitField0_ |= 0x00000004;
charPotentials.add(value);
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 2;</code>
* @param values the charPotentials to add
* @return this
*/
public PotentialPreselectionUpdateReq addAllCharPotentials(
final PublicStarTower.StarTowerBookCharPotential... values) {
bitField0_ |= 0x00000004;
charPotentials.addAll(values);
return this;
}
@Override
public PotentialPreselectionUpdateReq copyFrom(final PotentialPreselectionUpdateReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
id = other.id;
nextPackage.copyFrom(other.nextPackage);
charPotentials.copyFrom(other.charPotentials);
}
return this;
}
@Override
public PotentialPreselectionUpdateReq mergeFrom(final PotentialPreselectionUpdateReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasId()) {
setId(other.id);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasCharPotentials()) {
getMutableCharPotentials().addAll(other.charPotentials);
}
return this;
}
@Override
public PotentialPreselectionUpdateReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
id = 0L;
nextPackage.clear();
charPotentials.clear();
return this;
}
@Override
public PotentialPreselectionUpdateReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
charPotentials.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselectionUpdateReq)) {
return false;
}
PotentialPreselectionUpdateReq other = (PotentialPreselectionUpdateReq) o;
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasCharPotentials() || charPotentials.equals(other.charPotentials));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt64NoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < charPotentials.length(); i++) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(charPotentials.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * charPotentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charPotentials);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselectionUpdateReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// id
id = input.readUInt64();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 18) {
break;
}
}
case 18: {
// charPotentials
tag = input.readRepeatedMessage(charPotentials, 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.writeUInt64(FieldNames.id, id);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedMessage(FieldNames.charPotentials, charPotentials);
}
output.endObject();
}
@Override
public PotentialPreselectionUpdateReq 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.readUInt64();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1909208021: {
if (input.isAtField(FieldNames.charPotentials)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(charPotentials);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselectionUpdateReq clone() {
return new PotentialPreselectionUpdateReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselectionUpdateReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselectionUpdateReq(), data).checkInitialized();
}
public static PotentialPreselectionUpdateReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionUpdateReq(), input).checkInitialized();
}
public static PotentialPreselectionUpdateReq parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new PotentialPreselectionUpdateReq(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselectionUpdateReq messages
*/
public static MessageFactory<PotentialPreselectionUpdateReq> getFactory() {
return PotentialPreselectionUpdateReqFactory.INSTANCE;
}
private enum PotentialPreselectionUpdateReqFactory implements MessageFactory<PotentialPreselectionUpdateReq> {
INSTANCE;
@Override
public PotentialPreselectionUpdateReq create() {
return PotentialPreselectionUpdateReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName id = FieldName.forField("Id");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName charPotentials = FieldName.forField("CharPotentials");
}
}
}
File diff suppressed because it is too large Load Diff
@@ -3980,6 +3980,11 @@ public final class PublicStarTower {
*/ */
private final RepeatedInt attributes = RepeatedInt.newEmptyInstance(); private final RepeatedInt attributes = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 OverlockCount = 3;</code>
*/
private final RepeatedInt overlockCount = RepeatedInt.newEmptyInstance();
private StarTowerCharGem() { private StarTowerCharGem() {
} }
@@ -4174,6 +4179,74 @@ public final class PublicStarTower {
return this; return this;
} }
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @return whether the overlockCount field is set
*/
public boolean hasOverlockCount() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @return this
*/
public StarTowerCharGem clearOverlockCount() {
bitField0_ &= ~0x00000008;
overlockCount.clear();
return this;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableOverlockCount()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getOverlockCount() {
return overlockCount;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedInt getMutableOverlockCount() {
bitField0_ |= 0x00000008;
return overlockCount;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @param value the overlockCount to add
* @return this
*/
public StarTowerCharGem addOverlockCount(final int value) {
bitField0_ |= 0x00000008;
overlockCount.add(value);
return this;
}
/**
* <code>repeated uint32 OverlockCount = 3;</code>
* @param values the overlockCount to add
* @return this
*/
public StarTowerCharGem addAllOverlockCount(final int... values) {
bitField0_ |= 0x00000008;
overlockCount.addAll(values);
return this;
}
@Override @Override
public StarTowerCharGem copyFrom(final StarTowerCharGem other) { public StarTowerCharGem copyFrom(final StarTowerCharGem other) {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
@@ -4182,6 +4255,7 @@ public final class PublicStarTower {
slotId = other.slotId; slotId = other.slotId;
nextPackage.copyFrom(other.nextPackage); nextPackage.copyFrom(other.nextPackage);
attributes.copyFrom(other.attributes); attributes.copyFrom(other.attributes);
overlockCount.copyFrom(other.overlockCount);
} }
return this; return this;
} }
@@ -4201,6 +4275,9 @@ public final class PublicStarTower {
if (other.hasAttributes()) { if (other.hasAttributes()) {
getMutableAttributes().addAll(other.attributes); getMutableAttributes().addAll(other.attributes);
} }
if (other.hasOverlockCount()) {
getMutableOverlockCount().addAll(other.overlockCount);
}
return this; return this;
} }
@@ -4214,6 +4291,7 @@ public final class PublicStarTower {
slotId = 0; slotId = 0;
nextPackage.clear(); nextPackage.clear();
attributes.clear(); attributes.clear();
overlockCount.clear();
return this; return this;
} }
@@ -4226,6 +4304,7 @@ public final class PublicStarTower {
bitField0_ = 0; bitField0_ = 0;
nextPackage.clear(); nextPackage.clear();
attributes.clear(); attributes.clear();
overlockCount.clear();
return this; return this;
} }
@@ -4241,7 +4320,8 @@ public final class PublicStarTower {
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasSlotId() || slotId == other.slotId) && (!hasSlotId() || slotId == other.slotId)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasAttributes() || attributes.equals(other.attributes)); && (!hasAttributes() || attributes.equals(other.attributes))
&& (!hasOverlockCount() || overlockCount.equals(other.overlockCount));
} }
@Override @Override
@@ -4260,6 +4340,12 @@ public final class PublicStarTower {
output.writeUInt32NoTag(attributes.array()[i]); output.writeUInt32NoTag(attributes.array()[i]);
} }
} }
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < overlockCount.length(); i++) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(overlockCount.array()[i]);
}
}
} }
@Override @Override
@@ -4274,6 +4360,9 @@ public final class PublicStarTower {
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += (1 * attributes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(attributes); size += (1 * attributes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(attributes);
} }
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * overlockCount.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(overlockCount);
}
return size; return size;
} }
@@ -4307,6 +4396,15 @@ public final class PublicStarTower {
input.readPackedUInt32(attributes, tag); input.readPackedUInt32(attributes, tag);
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
tag = input.readTag(); tag = input.readTag();
if (tag != 26) {
break;
}
}
case 26: {
// overlockCount [packed=true]
input.readPackedUInt32(overlockCount, tag);
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 0) { if (tag != 0) {
break; break;
} }
@@ -4327,6 +4425,12 @@ public final class PublicStarTower {
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
break; break;
} }
case 24: {
// overlockCount [packed=false]
tag = input.readRepeatedUInt32(overlockCount, tag);
bitField0_ |= 0x00000008;
break;
}
} }
} }
} }
@@ -4343,6 +4447,9 @@ public final class PublicStarTower {
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedUInt32(FieldNames.attributes, attributes); output.writeRepeatedUInt32(FieldNames.attributes, attributes);
} }
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedUInt32(FieldNames.overlockCount, overlockCount);
}
output.endObject(); output.endObject();
} }
@@ -4386,6 +4493,17 @@ public final class PublicStarTower {
} }
break; break;
} }
case 1950695472: {
if (input.isAtField(FieldNames.overlockCount)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(overlockCount);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: { default: {
input.skipUnknownField(); input.skipUnknownField();
break; break;
@@ -4444,6 +4562,8 @@ public final class PublicStarTower {
static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName attributes = FieldName.forField("Attributes"); static final FieldName attributes = FieldName.forField("Attributes");
static final FieldName overlockCount = FieldName.forField("OverlockCount");
} }
} }
@@ -34132,4 +34252,754 @@ public final class PublicStarTower {
static final FieldName items = FieldName.forField("Items"); static final FieldName items = FieldName.forField("Items");
} }
} }
/**
* Protobuf type {@code PotentialPreselection}
*/
public static final class PotentialPreselection extends ProtoMessage<PotentialPreselection> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint64 Id = 1;</code>
*/
private long id;
/**
* <code>optional uint64 Timestamp = 5;</code>
*/
private long timestamp;
/**
* <code>optional bool Preference = 3;</code>
*/
private boolean preference;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>optional string Name = 2;</code>
*/
private final Utf8String name = Utf8String.newEmptyInstance();
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
*/
private final RepeatedMessage<StarTowerBookCharPotential> charPotentials = RepeatedMessage.newEmptyInstance(StarTowerBookCharPotential.getFactory());
private PotentialPreselection() {
}
/**
* @return a new empty instance of {@code PotentialPreselection}
*/
public static PotentialPreselection newInstance() {
return new PotentialPreselection();
}
/**
* <code>optional uint64 Id = 1;</code>
* @return whether the id field is set
*/
public boolean hasId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint64 Id = 1;</code>
* @return this
*/
public PotentialPreselection clearId() {
bitField0_ &= ~0x00000001;
id = 0L;
return this;
}
/**
* <code>optional uint64 Id = 1;</code>
* @return the id
*/
public long getId() {
return id;
}
/**
* <code>optional uint64 Id = 1;</code>
* @param value the id to set
* @return this
*/
public PotentialPreselection setId(final long value) {
bitField0_ |= 0x00000001;
id = value;
return this;
}
/**
* <code>optional uint64 Timestamp = 5;</code>
* @return whether the timestamp field is set
*/
public boolean hasTimestamp() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint64 Timestamp = 5;</code>
* @return this
*/
public PotentialPreselection clearTimestamp() {
bitField0_ &= ~0x00000002;
timestamp = 0L;
return this;
}
/**
* <code>optional uint64 Timestamp = 5;</code>
* @return the timestamp
*/
public long getTimestamp() {
return timestamp;
}
/**
* <code>optional uint64 Timestamp = 5;</code>
* @param value the timestamp to set
* @return this
*/
public PotentialPreselection setTimestamp(final long value) {
bitField0_ |= 0x00000002;
timestamp = value;
return this;
}
/**
* <code>optional bool Preference = 3;</code>
* @return whether the preference field is set
*/
public boolean hasPreference() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional bool Preference = 3;</code>
* @return this
*/
public PotentialPreselection clearPreference() {
bitField0_ &= ~0x00000004;
preference = false;
return this;
}
/**
* <code>optional bool Preference = 3;</code>
* @return the preference
*/
public boolean getPreference() {
return preference;
}
/**
* <code>optional bool Preference = 3;</code>
* @param value the preference to set
* @return this
*/
public PotentialPreselection setPreference(final boolean value) {
bitField0_ |= 0x00000004;
preference = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public PotentialPreselection clearNextPackage() {
bitField0_ &= ~0x00000008;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000008;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public PotentialPreselection addNextPackage(final byte value) {
bitField0_ |= 0x00000008;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public PotentialPreselection addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000008;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public PotentialPreselection setNextPackage(final byte... values) {
bitField0_ |= 0x00000008;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>optional string Name = 2;</code>
* @return whether the name field is set
*/
public boolean hasName() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional string Name = 2;</code>
* @return this
*/
public PotentialPreselection clearName() {
bitField0_ &= ~0x00000010;
name.clear();
return this;
}
/**
* <code>optional string Name = 2;</code>
* @return the name
*/
public String getName() {
return name.getString();
}
/**
* <code>optional string Name = 2;</code>
* @return internal {@code Utf8String} representation of name for reading
*/
public Utf8String getNameBytes() {
return this.name;
}
/**
* <code>optional string Name = 2;</code>
* @return internal {@code Utf8String} representation of name for modifications
*/
public Utf8String getMutableNameBytes() {
bitField0_ |= 0x00000010;
return this.name;
}
/**
* <code>optional string Name = 2;</code>
* @param value the name to set
* @return this
*/
public PotentialPreselection setName(final CharSequence value) {
bitField0_ |= 0x00000010;
name.copyFrom(value);
return this;
}
/**
* <code>optional string Name = 2;</code>
* @param value the name to set
* @return this
*/
public PotentialPreselection setName(final Utf8String value) {
bitField0_ |= 0x00000010;
name.copyFrom(value);
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
* @return whether the charPotentials field is set
*/
public boolean hasCharPotentials() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
* @return this
*/
public PotentialPreselection clearCharPotentials() {
bitField0_ &= ~0x00000020;
charPotentials.clear();
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableCharPotentials()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<StarTowerBookCharPotential> getCharPotentials() {
return charPotentials;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<StarTowerBookCharPotential> getMutableCharPotentials() {
bitField0_ |= 0x00000020;
return charPotentials;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
* @param value the charPotentials to add
* @return this
*/
public PotentialPreselection addCharPotentials(final StarTowerBookCharPotential value) {
bitField0_ |= 0x00000020;
charPotentials.add(value);
return this;
}
/**
* <code>repeated .StarTowerBookCharPotential CharPotentials = 4;</code>
* @param values the charPotentials to add
* @return this
*/
public PotentialPreselection addAllCharPotentials(final StarTowerBookCharPotential... values) {
bitField0_ |= 0x00000020;
charPotentials.addAll(values);
return this;
}
@Override
public PotentialPreselection copyFrom(final PotentialPreselection other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
id = other.id;
timestamp = other.timestamp;
preference = other.preference;
nextPackage.copyFrom(other.nextPackage);
name.copyFrom(other.name);
charPotentials.copyFrom(other.charPotentials);
}
return this;
}
@Override
public PotentialPreselection mergeFrom(final PotentialPreselection other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasId()) {
setId(other.id);
}
if (other.hasTimestamp()) {
setTimestamp(other.timestamp);
}
if (other.hasPreference()) {
setPreference(other.preference);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasName()) {
getMutableNameBytes().copyFrom(other.name);
}
if (other.hasCharPotentials()) {
getMutableCharPotentials().addAll(other.charPotentials);
}
return this;
}
@Override
public PotentialPreselection clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
id = 0L;
timestamp = 0L;
preference = false;
nextPackage.clear();
name.clear();
charPotentials.clear();
return this;
}
@Override
public PotentialPreselection clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
name.clear();
charPotentials.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PotentialPreselection)) {
return false;
}
PotentialPreselection other = (PotentialPreselection) o;
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasTimestamp() || timestamp == other.timestamp)
&& (!hasPreference() || preference == other.preference)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasName() || name.equals(other.name))
&& (!hasCharPotentials() || charPotentials.equals(other.charPotentials));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt64NoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt64NoTag(timestamp);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeBoolNoTag(preference);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 18);
output.writeStringNoTag(name);
}
if ((bitField0_ & 0x00000020) != 0) {
for (int i = 0; i < charPotentials.length(); i++) {
output.writeRawByte((byte) 34);
output.writeMessageNoTag(charPotentials.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(timestamp);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(name);
}
if ((bitField0_ & 0x00000020) != 0) {
size += (1 * charPotentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charPotentials);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PotentialPreselection mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// id
id = input.readUInt64();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 40) {
break;
}
}
case 40: {
// timestamp
timestamp = input.readUInt64();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// preference
preference = input.readBool();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 18) {
break;
}
}
case 18: {
// name
input.readString(name);
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 34) {
break;
}
}
case 34: {
// charPotentials
tag = input.readRepeatedMessage(charPotentials, 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.writeUInt64(FieldNames.id, id);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt64(FieldNames.timestamp, timestamp);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBool(FieldNames.preference, preference);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeString(FieldNames.name, name);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRepeatedMessage(FieldNames.charPotentials, charPotentials);
}
output.endObject();
}
@Override
public PotentialPreselection 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.readUInt64();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 2059094262: {
if (input.isAtField(FieldNames.timestamp)) {
if (!input.trySkipNullValue()) {
timestamp = input.readUInt64();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 533633275: {
if (input.isAtField(FieldNames.preference)) {
if (!input.trySkipNullValue()) {
preference = input.readBool();
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 2420395: {
if (input.isAtField(FieldNames.name)) {
if (!input.trySkipNullValue()) {
input.readString(name);
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case -1909208021: {
if (input.isAtField(FieldNames.charPotentials)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(charPotentials);
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PotentialPreselection clone() {
return new PotentialPreselection().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PotentialPreselection parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PotentialPreselection(), data).checkInitialized();
}
public static PotentialPreselection parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new PotentialPreselection(), input).checkInitialized();
}
public static PotentialPreselection parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new PotentialPreselection(), input).checkInitialized();
}
/**
* @return factory for creating PotentialPreselection messages
*/
public static MessageFactory<PotentialPreselection> getFactory() {
return PotentialPreselectionFactory.INSTANCE;
}
private enum PotentialPreselectionFactory implements MessageFactory<PotentialPreselection> {
INSTANCE;
@Override
public PotentialPreselection create() {
return PotentialPreselection.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName id = FieldName.forField("Id");
static final FieldName timestamp = FieldName.forField("Timestamp");
static final FieldName preference = FieldName.forField("Preference");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName name = FieldName.forField("Name");
static final FieldName charPotentials = FieldName.forField("CharPotentials");
}
}
} }
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap;
import emu.nebula.util.WeightedList; import emu.nebula.util.WeightedList;
public class GameConstants { public class GameConstants {
public static final String VERSION = "1.8.0"; public static final String VERSION = "1.9.0";
public static int DATA_VERSION = 0; public static int DATA_VERSION = 0;
public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
@@ -58,6 +58,10 @@ public class HonorDef extends BaseDef {
// Group // Group
this.valid = true; this.valid = true;
} }
case 4 -> {
// Levels
this.valid = true;
}
default -> { default -> {
// Unknown honor type // Unknown honor type
Nebula.getLogger().warn("Honor " + this.getId() + " has an unknown type (" + this.getType() + ")"); Nebula.getLogger().warn("Honor " + this.getId() + " has an unknown type (" + this.getType() + ")");
@@ -65,9 +65,6 @@ public enum AchievementCondition {
SkinAcquire (61), SkinAcquire (61),
StageClearSpecificStars (62), StageClearSpecificStars (62),
StoryClear (63), StoryClear (63),
TravelerDuelChallengeSpecificBoosLevelWithDifficultyAndTotal (64),
TravelerDuelChallengeClearSpecificBossLevelAndAffix (67),
TravelerDuelClearSpecificBossTotal (69),
WorldClassSpecific (71), WorldClassSpecific (71),
RegionBossClearSpecificTypeWithTotal (72), RegionBossClearSpecificTypeWithTotal (72),
CharactersWithSpecificDatingCount (73), CharactersWithSpecificDatingCount (73),
@@ -45,28 +45,34 @@ public class ActivityModule extends GameContextModule {
//this.activities.add(1010504); //this.activities.add(1010504);
// To My Dearest You // To My Dearest You
this.activities.add(1010601); //this.activities.add(1010601);
this.activities.add(1010603); //this.activities.add(1010603);
this.activities.add(1010604); //this.activities.add(1010604);
// Solitary Waltz in Night's Embrace
this.activities.add(2010201);
this.activities.add(2010203);
this.activities.add(2010204);
// ===== Joint Drills (Finale Echoing) ===== // ===== Joint Drills (Finale Echoing) =====
this.activities.add(510003); //this.activities.add(510003); // Causes soft lock in event screen
// ===== Etc Events ===== // ===== Etc Events =====
// Trial activities // Trial activities
this.activities.add(700111); this.activities.add(700117);
this.activities.add(700112); this.activities.add(700118);
// Tower defense activity // Tower defense activity
this.activities.add(102002); this.activities.add(102002); // Broken
// Christmas 2025 login events // Login events
this.activities.add(301011); //this.activities.add(301011); // Christmas 2025
this.activities.add(301012); //this.activities.add(301012); // Christmas 2025
this.activities.add(301031); // Stellar Prelude
// Fatebound Stellar Deck // Fatebound Stellar Deck
this.activities.add(800001); //this.activities.add(800001); // Causes soft lock in event screen
// Trekker versus (broken) // Trekker versus (broken)
//this.activities.add(600001); //this.activities.add(600001);
@@ -24,7 +24,8 @@ public enum ActivityType {
TrekkerVersus (16), TrekkerVersus (16),
Story (17), Story (17),
PenguinCard (18), PenguinCard (18),
ThrowGift (19); ThrowGift (19),
GoldenSpy (20);
@Getter @Getter
private final int value; private final int value;
@@ -64,7 +64,9 @@ public class CharacterGem {
var proto = CharGem.newInstance() var proto = CharGem.newInstance()
.setLock(this.isLocked()) .setLock(this.isLocked())
.addAllAttributes(this.getAttributes()) .addAllAttributes(this.getAttributes())
.addAllAlterAttributes(this.getAlterAttributes()); .addAllAlterAttributes(this.getAlterAttributes())
.addAllOverlockCount(new int[this.getAttributes().length])
.addAllAlterOverlockCount(new int[this.getAlterAttributes().length]);
return proto; return proto;
} }
@@ -59,6 +59,7 @@ public class GameCharacter implements GameDatabaseObject {
private int advance; private int advance;
private int level; private int level;
private int exp; private int exp;
private boolean favorite;
private int affinityLevel; private int affinityLevel;
private int affinityExp; private int affinityExp;
private int skin; private int skin;
@@ -137,6 +138,10 @@ public class GameCharacter implements GameDatabaseObject {
this.advance = advance; this.advance = advance;
} }
public void setFavorite(boolean b) {
this.favorite = b;
}
public void setAffinityLevel(int level) { public void setAffinityLevel(int level) {
this.affinityLevel = Math.max(level, 0); this.affinityLevel = Math.max(level, 0);
this.affinityExp = 0; this.affinityExp = 0;
@@ -821,6 +826,7 @@ public class GameCharacter implements GameDatabaseObject {
.setLevel(this.getLevel()) .setLevel(this.getLevel())
.setSkin(this.getSkin()) .setSkin(this.getSkin())
.setAdvance(this.getAdvance()) .setAdvance(this.getAdvance())
.setIsFavorite(this.isFavorite())
.setAffinityLevel(this.getAffinityLevel()) .setAffinityLevel(this.getAffinityLevel())
.setAffinityExp(this.getAffinityExp()) .setAffinityExp(this.getAffinityExp())
.setTalentNodes(this.getTalents().toByteArray()) .setTalentNodes(this.getTalents().toByteArray())
@@ -15,6 +15,7 @@ public enum ItemSubType {
TalentStrengthen (9), TalentStrengthen (9),
DiscStrengthen (12), DiscStrengthen (12),
DiscPromote (13), DiscPromote (13),
LevelHonor (15),
TreasureBox (17), TreasureBox (17),
GearTreasureBox (18), GearTreasureBox (18),
SubNoteSkill (19), SubNoteSkill (19),
@@ -17,7 +17,8 @@ public enum ItemType {
MonthlyCard (11), MonthlyCard (11),
Title (12), Title (12),
Honor (13), Honor (13),
HeadItem (14); HeadItem (14),
LevelHonor (15);
@Getter @Getter
private final int value; private final int value;
@@ -995,8 +995,6 @@ public class Player implements GameDatabaseObject {
state.getMutableMallPackage(); state.getMutableMallPackage();
state.getMutableTravelerDuelQuest() state.getMutableTravelerDuelQuest()
.setType(QuestType.TravelerDuel); .setType(QuestType.TravelerDuel);
state.getMutableTravelerDuelChallengeQuest()
.setType(QuestType.TravelerDuelChallenge);
state.getMutableStarTower(); state.getMutableStarTower();
state.getMutableStarTowerBook(); state.getMutableStarTowerBook();
state.getMutableScoreBoss(); state.getMutableScoreBoss();
@@ -49,9 +49,10 @@ public enum QuestCondition {
SkillsWithSpecificQuantityAndLevel (60), SkillsWithSpecificQuantityAndLevel (60),
StageClearSpecificStars (62), StageClearSpecificStars (62),
StoryClear (63), StoryClear (63),
TravelerDuelChallengeSpecificBoosLevelWithDifficultyAndTotal (64), TrekkerVersusClearCount (64),
TravelerDuelChallengeClearSpecificBossLevelAndAffix (67), TrekkerVersusClearWithSpecificAffix (65),
TravelerDuelClearSpecificBossTotal (69), TrekkerVersusClearWithSpecificDifficultyAndTotal (66),
TrekkerVersusFansWithSpecificLevel (67),
WorldClassSpecific (71), WorldClassSpecific (71),
RegionBossClearSpecificTypeWithTotal (72), RegionBossClearSpecificTypeWithTotal (72),
CharactersWithSpecificDatingCount (73), CharactersWithSpecificDatingCount (73),
@@ -3,6 +3,7 @@ package emu.nebula.net;
public class NetMsgId { public class NetMsgId {
public static final int none = 0; public static final int none = 0;
public static final int clear_all_activity_golden_spy_levels_notify = -10051;
public static final int clear_all_activity_breakout_levels_notify = -10050; public static final int clear_all_activity_breakout_levels_notify = -10050;
public static final int clear_story_set_notify = -10049; public static final int clear_story_set_notify = -10049;
public static final int unlock_activity_story_notify = -10048; public static final int unlock_activity_story_notify = -10048;
@@ -188,6 +189,9 @@ public class NetMsgId {
public static final int milkout_settle_req = 1401; public static final int milkout_settle_req = 1401;
public static final int milkout_settle_succeed_ack = 1402; public static final int milkout_settle_succeed_ack = 1402;
public static final int milkout_settle_failed_ack = 1403; public static final int milkout_settle_failed_ack = 1403;
public static final int activity_gds_settle_req = 1501;
public static final int activity_gds_settle_succeed_ack = 1502;
public static final int activity_gds_settle_failed_ack = 1503;
public static final int player_formation_req = 2001; public static final int player_formation_req = 2001;
public static final int player_formation_succeed_ack = 2002; public static final int player_formation_succeed_ack = 2002;
public static final int player_formation_failed_ack = 2003; public static final int player_formation_failed_ack = 2003;
@@ -254,6 +258,15 @@ public class NetMsgId {
public static final int char_gem_equip_gem_req = 2519; public static final int char_gem_equip_gem_req = 2519;
public static final int char_gem_equip_gem_succeed_ack = 2520; public static final int char_gem_equip_gem_succeed_ack = 2520;
public static final int char_gem_equip_gem_failed_ack = 2521; public static final int char_gem_equip_gem_failed_ack = 2521;
public static final int char_gem_overlock_revert_req = 2522;
public static final int char_gem_overlock_revert_succeed_ack = 2523;
public static final int char_gem_overlock_revert_failed_ack = 2524;
public static final int char_gem_overlock_req = 2525;
public static final int char_gem_overlock_succeed_ack = 2526;
public static final int char_gem_overlock_failed_ack = 2527;
public static final int char_favorite_set_req = 2601;
public static final int char_favorite_set_succeed_ack = 2602;
public static final int char_favorite_set_failed_ack = 2603;
public static final int disc_strengthen_req = 3119; public static final int disc_strengthen_req = 3119;
public static final int disc_strengthen_succeed_ack = 3120; public static final int disc_strengthen_succeed_ack = 3120;
public static final int disc_strengthen_failed_ack = 3121; public static final int disc_strengthen_failed_ack = 3121;
@@ -368,6 +381,24 @@ public class NetMsgId {
public static final int star_tower_build_preference_set_req = 4719; 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_succeed_ack = 4720;
public static final int star_tower_build_preference_set_failed_ack = 4721; public static final int star_tower_build_preference_set_failed_ack = 4721;
public static final int potential_preselection_list_req = 4722;
public static final int potential_preselection_list_succeed_ack = 4723;
public static final int potential_preselection_list_failed_ack = 4724;
public static final int potential_preselection_import_req = 4725;
public static final int potential_preselection_import_succeed_ack = 4726;
public static final int potential_preselection_import_failed_ack = 4727;
public static final int potential_preselection_name_set_req = 4728;
public static final int potential_preselection_name_set_succeed_ack = 4729;
public static final int potential_preselection_name_set_failed_ack = 4730;
public static final int potential_preselection_preference_set_req = 4731;
public static final int potential_preselection_preference_set_succeed_ack = 4732;
public static final int potential_preselection_preference_set_failed_ack = 4733;
public static final int potential_preselection_update_req = 4734;
public static final int potential_preselection_update_succeed_ack = 4735;
public static final int potential_preselection_update_failed_ack = 4736;
public static final int potential_preselection_delete_req = 4737;
public static final int potential_preselection_delete_succeed_ack = 4738;
public static final int potential_preselection_delete_failed_ack = 4739;
public static final int build_convert_detail_list_get_req = 4801; 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_succeed_ack = 4802;
public static final int build_convert_detail_list_get_failed_ack = 4803; public static final int build_convert_detail_list_get_failed_ack = 4803;
@@ -0,0 +1,32 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.proto.Public.UI32;
import emu.nebula.net.HandlerId;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.char_favorite_set_req)
public class HandlerCharFavoriteSetReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
// Parse request
var req = UI32.parseFrom(message);
// Get character
var character = session.getPlayer().getCharacters().getCharacterById(req.getValue());
if (character == null) {
return session.encodeMsg(NetMsgId.char_favorite_set_failed_ack);
}
// Toggle favorite status
character.setFavorite(!character.isFavorite());
character.save();
// Encode and send
return session.encodeMsg(NetMsgId.char_favorite_set_succeed_ack);
}
}
@@ -0,0 +1,21 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.proto.PotentialPreselectionListOuterClass.PotentialPreselectionList;
import emu.nebula.net.HandlerId;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.potential_preselection_list_req)
public class HandlerPotentialPreselectionListReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
// Create base response
var rsp = PotentialPreselectionList.newInstance();
// Encode and send
return session.encodeMsg(NetMsgId.potential_preselection_list_succeed_ack, rsp);
}
}
+5 -5
View File
@@ -1,7 +1,7 @@
{ {
"global": 98, "global": 99,
"kr": 103, "kr": 104,
"jp": 101, "jp": 102,
"tw": 108, "tw": 109,
"cn": 99 "cn": 100
} }