fix fields

This commit is contained in:
Hiro
2023-11-30 11:01:05 +02:00
parent ba432b4661
commit 9a01e0de44
3 changed files with 209 additions and 209 deletions

View File

@@ -20,17 +20,17 @@ public final class GetQuestDataScRspOuterClass {
private static final long serialVersionUID = 0L; private static final long serialVersionUID = 0L;
/** /**
* <code>optional uint32 total_achievement_exp = 1;</code> * <code>optional uint32 retcode = 7;</code>
*/
private int totalAchievementExp;
/**
* <code>optional uint32 retcode = 8;</code>
*/ */
private int retcode; private int retcode;
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>optional uint32 total_achievement_exp = 11;</code>
*/
private int totalAchievementExp;
/**
* <code>repeated .Quest quest_list = 9;</code>
*/ */
private final RepeatedMessage<QuestOuterClass.Quest> questList = RepeatedMessage.newEmptyInstance(QuestOuterClass.Quest.getFactory()); private final RepeatedMessage<QuestOuterClass.Quest> questList = RepeatedMessage.newEmptyInstance(QuestOuterClass.Quest.getFactory());
@@ -45,62 +45,25 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>optional uint32 total_achievement_exp = 1;</code> * <code>optional uint32 retcode = 7;</code>
* @return whether the totalAchievementExp field is set * @return whether the retcode field is set
*/ */
public boolean hasTotalAchievementExp() { public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0; return (bitField0_ & 0x00000001) != 0;
} }
/** /**
* <code>optional uint32 total_achievement_exp = 1;</code> * <code>optional uint32 retcode = 7;</code>
* @return this
*/
public GetQuestDataScRsp clearTotalAchievementExp() {
bitField0_ &= ~0x00000001;
totalAchievementExp = 0;
return this;
}
/**
* <code>optional uint32 total_achievement_exp = 1;</code>
* @return the totalAchievementExp
*/
public int getTotalAchievementExp() {
return totalAchievementExp;
}
/**
* <code>optional uint32 total_achievement_exp = 1;</code>
* @param value the totalAchievementExp to set
* @return this
*/
public GetQuestDataScRsp setTotalAchievementExp(final int value) {
bitField0_ |= 0x00000001;
totalAchievementExp = value;
return this;
}
/**
* <code>optional uint32 retcode = 8;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 retcode = 8;</code>
* @return this * @return this
*/ */
public GetQuestDataScRsp clearRetcode() { public GetQuestDataScRsp clearRetcode() {
bitField0_ &= ~0x00000002; bitField0_ &= ~0x00000001;
retcode = 0; retcode = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 retcode = 8;</code> * <code>optional uint32 retcode = 7;</code>
* @return the retcode * @return the retcode
*/ */
public int getRetcode() { public int getRetcode() {
@@ -108,18 +71,55 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>optional uint32 retcode = 8;</code> * <code>optional uint32 retcode = 7;</code>
* @param value the retcode to set * @param value the retcode to set
* @return this * @return this
*/ */
public GetQuestDataScRsp setRetcode(final int value) { public GetQuestDataScRsp setRetcode(final int value) {
bitField0_ |= 0x00000002; bitField0_ |= 0x00000001;
retcode = value; retcode = value;
return this; return this;
} }
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>optional uint32 total_achievement_exp = 11;</code>
* @return whether the totalAchievementExp field is set
*/
public boolean hasTotalAchievementExp() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 total_achievement_exp = 11;</code>
* @return this
*/
public GetQuestDataScRsp clearTotalAchievementExp() {
bitField0_ &= ~0x00000002;
totalAchievementExp = 0;
return this;
}
/**
* <code>optional uint32 total_achievement_exp = 11;</code>
* @return the totalAchievementExp
*/
public int getTotalAchievementExp() {
return totalAchievementExp;
}
/**
* <code>optional uint32 total_achievement_exp = 11;</code>
* @param value the totalAchievementExp to set
* @return this
*/
public GetQuestDataScRsp setTotalAchievementExp(final int value) {
bitField0_ |= 0x00000002;
totalAchievementExp = value;
return this;
}
/**
* <code>repeated .Quest quest_list = 9;</code>
* @return whether the questList field is set * @return whether the questList field is set
*/ */
public boolean hasQuestList() { public boolean hasQuestList() {
@@ -127,7 +127,7 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>repeated .Quest quest_list = 9;</code>
* @return this * @return this
*/ */
public GetQuestDataScRsp clearQuestList() { public GetQuestDataScRsp clearQuestList() {
@@ -137,7 +137,7 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>repeated .Quest quest_list = 9;</code>
* *
* This method returns the internal storage object without modifying any has state. * 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. * The returned object should not be modified and be treated as read-only.
@@ -151,7 +151,7 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>repeated .Quest quest_list = 9;</code>
* *
* This method returns the internal storage object and sets the corresponding * This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its * has state. The returned object will become part of this message and its
@@ -165,7 +165,7 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>repeated .Quest quest_list = 9;</code>
* @param value the questList to add * @param value the questList to add
* @return this * @return this
*/ */
@@ -176,7 +176,7 @@ public final class GetQuestDataScRspOuterClass {
} }
/** /**
* <code>repeated .Quest quest_list = 10;</code> * <code>repeated .Quest quest_list = 9;</code>
* @param values the questList to add * @param values the questList to add
* @return this * @return this
*/ */
@@ -191,8 +191,8 @@ public final class GetQuestDataScRspOuterClass {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
totalAchievementExp = other.totalAchievementExp;
retcode = other.retcode; retcode = other.retcode;
totalAchievementExp = other.totalAchievementExp;
questList.copyFrom(other.questList); questList.copyFrom(other.questList);
} }
return this; return this;
@@ -204,12 +204,12 @@ public final class GetQuestDataScRspOuterClass {
return this; return this;
} }
cachedSize = -1; cachedSize = -1;
if (other.hasTotalAchievementExp()) {
setTotalAchievementExp(other.totalAchievementExp);
}
if (other.hasRetcode()) { if (other.hasRetcode()) {
setRetcode(other.retcode); setRetcode(other.retcode);
} }
if (other.hasTotalAchievementExp()) {
setTotalAchievementExp(other.totalAchievementExp);
}
if (other.hasQuestList()) { if (other.hasQuestList()) {
getMutableQuestList().addAll(other.questList); getMutableQuestList().addAll(other.questList);
} }
@@ -223,8 +223,8 @@ public final class GetQuestDataScRspOuterClass {
} }
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
totalAchievementExp = 0;
retcode = 0; retcode = 0;
totalAchievementExp = 0;
questList.clear(); questList.clear();
return this; return this;
} }
@@ -250,24 +250,24 @@ public final class GetQuestDataScRspOuterClass {
} }
GetQuestDataScRsp other = (GetQuestDataScRsp) o; GetQuestDataScRsp other = (GetQuestDataScRsp) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasTotalAchievementExp() || totalAchievementExp == other.totalAchievementExp)
&& (!hasRetcode() || retcode == other.retcode) && (!hasRetcode() || retcode == other.retcode)
&& (!hasTotalAchievementExp() || totalAchievementExp == other.totalAchievementExp)
&& (!hasQuestList() || questList.equals(other.questList)); && (!hasQuestList() || questList.equals(other.questList));
} }
@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) 8); output.writeRawByte((byte) 56);
output.writeUInt32NoTag(totalAchievementExp); output.writeUInt32NoTag(retcode);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 64); output.writeRawByte((byte) 88);
output.writeUInt32NoTag(retcode); output.writeUInt32NoTag(totalAchievementExp);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < questList.length(); i++) { for (int i = 0; i < questList.length(); i++) {
output.writeRawByte((byte) 82); output.writeRawByte((byte) 74);
output.writeMessageNoTag(questList.get(i)); output.writeMessageNoTag(questList.get(i));
} }
} }
@@ -277,10 +277,10 @@ public final class GetQuestDataScRspOuterClass {
protected int computeSerializedSize() { protected int computeSerializedSize() {
int size = 0; int size = 0;
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(totalAchievementExp); size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); size += 1 + ProtoSink.computeUInt32SizeNoTag(totalAchievementExp);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += (1 * questList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(questList); size += (1 * questList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(questList);
@@ -295,25 +295,25 @@ public final class GetQuestDataScRspOuterClass {
int tag = input.readTag(); int tag = input.readTag();
while (true) { while (true) {
switch (tag) { switch (tag) {
case 8: { case 56: {
// totalAchievementExp
totalAchievementExp = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 64) {
break;
}
}
case 64: {
// retcode // retcode
retcode = input.readUInt32(); retcode = input.readUInt32();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000001;
tag = input.readTag(); tag = input.readTag();
if (tag != 82) { if (tag != 88) {
break; break;
} }
} }
case 82: { case 88: {
// totalAchievementExp
totalAchievementExp = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 74) {
break;
}
}
case 74: {
// questList // questList
tag = input.readRepeatedMessage(questList, tag); tag = input.readRepeatedMessage(questList, tag);
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
@@ -339,10 +339,10 @@ public final class GetQuestDataScRspOuterClass {
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.totalAchievementExp, totalAchievementExp); output.writeUInt32(FieldNames.retcode, retcode);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.retcode, retcode); output.writeUInt32(FieldNames.totalAchievementExp, totalAchievementExp);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedMessage(FieldNames.questList, questList); output.writeRepeatedMessage(FieldNames.questList, questList);
@@ -357,11 +357,10 @@ public final class GetQuestDataScRspOuterClass {
} }
while (!input.isAtEnd()) { while (!input.isAtEnd()) {
switch (input.readFieldHash()) { switch (input.readFieldHash()) {
case 255336658: case 1097936398: {
case -1295039982: { if (input.isAtField(FieldNames.retcode)) {
if (input.isAtField(FieldNames.totalAchievementExp)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
totalAchievementExp = input.readUInt32(); retcode = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
} }
} else { } else {
@@ -369,10 +368,11 @@ public final class GetQuestDataScRspOuterClass {
} }
break; break;
} }
case 1097936398: { case 255336658:
if (input.isAtField(FieldNames.retcode)) { case -1295039982: {
if (input.isAtField(FieldNames.totalAchievementExp)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
retcode = input.readUInt32(); totalAchievementExp = input.readUInt32();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
} }
} else { } else {
@@ -445,10 +445,10 @@ public final class GetQuestDataScRspOuterClass {
* Contains name constants used for serializing JSON * Contains name constants used for serializing JSON
*/ */
static class FieldNames { static class FieldNames {
static final FieldName totalAchievementExp = FieldName.forField("totalAchievementExp", "total_achievement_exp");
static final FieldName retcode = FieldName.forField("retcode"); static final FieldName retcode = FieldName.forField("retcode");
static final FieldName totalAchievementExp = FieldName.forField("totalAchievementExp", "total_achievement_exp");
static final FieldName questList = FieldName.forField("questList", "quest_list"); static final FieldName questList = FieldName.forField("questList", "quest_list");
} }
} }

View File

@@ -22,27 +22,27 @@ public final class QuestOuterClass {
private static final long serialVersionUID = 0L; private static final long serialVersionUID = 0L;
/** /**
* <code>optional int64 finish_time = 12;</code> * <code>optional int64 finish_time = 13;</code>
*/ */
private long finishTime; private long finishTime;
/** /**
* <code>optional uint32 progress = 8;</code> * <code>optional uint32 id = 3;</code>
*/
private int progress;
/**
* <code>optional uint32 id = 11;</code>
*/ */
private int id; private int id;
/** /**
* <code>optional .Quest.QuestStatus status = 13;</code> * <code>optional uint32 progress = 9;</code>
*/
private int progress;
/**
* <code>optional .Quest.QuestStatus status = 5;</code>
*/ */
private int status; private int status;
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
*/ */
private final RepeatedInt takenAchievementLevelList = RepeatedInt.newEmptyInstance(); private final RepeatedInt takenAchievementLevelList = RepeatedInt.newEmptyInstance();
@@ -57,7 +57,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional int64 finish_time = 12;</code> * <code>optional int64 finish_time = 13;</code>
* @return whether the finishTime field is set * @return whether the finishTime field is set
*/ */
public boolean hasFinishTime() { public boolean hasFinishTime() {
@@ -65,7 +65,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional int64 finish_time = 12;</code> * <code>optional int64 finish_time = 13;</code>
* @return this * @return this
*/ */
public Quest clearFinishTime() { public Quest clearFinishTime() {
@@ -75,7 +75,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional int64 finish_time = 12;</code> * <code>optional int64 finish_time = 13;</code>
* @return the finishTime * @return the finishTime
*/ */
public long getFinishTime() { public long getFinishTime() {
@@ -83,7 +83,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional int64 finish_time = 12;</code> * <code>optional int64 finish_time = 13;</code>
* @param value the finishTime to set * @param value the finishTime to set
* @return this * @return this
*/ */
@@ -94,62 +94,25 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional uint32 progress = 8;</code> * <code>optional uint32 id = 3;</code>
* @return whether the progress field is set * @return whether the id field is set
*/ */
public boolean hasProgress() { public boolean hasId() {
return (bitField0_ & 0x00000002) != 0; return (bitField0_ & 0x00000002) != 0;
} }
/** /**
* <code>optional uint32 progress = 8;</code> * <code>optional uint32 id = 3;</code>
* @return this
*/
public Quest clearProgress() {
bitField0_ &= ~0x00000002;
progress = 0;
return this;
}
/**
* <code>optional uint32 progress = 8;</code>
* @return the progress
*/
public int getProgress() {
return progress;
}
/**
* <code>optional uint32 progress = 8;</code>
* @param value the progress to set
* @return this
*/
public Quest setProgress(final int value) {
bitField0_ |= 0x00000002;
progress = value;
return this;
}
/**
* <code>optional uint32 id = 11;</code>
* @return whether the id field is set
*/
public boolean hasId() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 id = 11;</code>
* @return this * @return this
*/ */
public Quest clearId() { public Quest clearId() {
bitField0_ &= ~0x00000004; bitField0_ &= ~0x00000002;
id = 0; id = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 id = 11;</code> * <code>optional uint32 id = 3;</code>
* @return the id * @return the id
*/ */
public int getId() { public int getId() {
@@ -157,18 +120,55 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional uint32 id = 11;</code> * <code>optional uint32 id = 3;</code>
* @param value the id to set * @param value the id to set
* @return this * @return this
*/ */
public Quest setId(final int value) { public Quest setId(final int value) {
bitField0_ |= 0x00000004; bitField0_ |= 0x00000002;
id = value; id = value;
return this; return this;
} }
/** /**
* <code>optional .Quest.QuestStatus status = 13;</code> * <code>optional uint32 progress = 9;</code>
* @return whether the progress field is set
*/
public boolean hasProgress() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 progress = 9;</code>
* @return this
*/
public Quest clearProgress() {
bitField0_ &= ~0x00000004;
progress = 0;
return this;
}
/**
* <code>optional uint32 progress = 9;</code>
* @return the progress
*/
public int getProgress() {
return progress;
}
/**
* <code>optional uint32 progress = 9;</code>
* @param value the progress to set
* @return this
*/
public Quest setProgress(final int value) {
bitField0_ |= 0x00000004;
progress = value;
return this;
}
/**
* <code>optional .Quest.QuestStatus status = 5;</code>
* @return whether the status field is set * @return whether the status field is set
*/ */
public boolean hasStatus() { public boolean hasStatus() {
@@ -176,7 +176,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional .Quest.QuestStatus status = 13;</code> * <code>optional .Quest.QuestStatus status = 5;</code>
* @return this * @return this
*/ */
public Quest clearStatus() { public Quest clearStatus() {
@@ -186,7 +186,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional .Quest.QuestStatus status = 13;</code> * <code>optional .Quest.QuestStatus status = 5;</code>
* @return the status * @return the status
*/ */
public QuestStatus getStatus() { public QuestStatus getStatus() {
@@ -219,7 +219,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>optional .Quest.QuestStatus status = 13;</code> * <code>optional .Quest.QuestStatus status = 5;</code>
* @param value the status to set * @param value the status to set
* @return this * @return this
*/ */
@@ -230,7 +230,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
* @return whether the takenAchievementLevelList field is set * @return whether the takenAchievementLevelList field is set
*/ */
public boolean hasTakenAchievementLevelList() { public boolean hasTakenAchievementLevelList() {
@@ -238,7 +238,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
* @return this * @return this
*/ */
public Quest clearTakenAchievementLevelList() { public Quest clearTakenAchievementLevelList() {
@@ -248,7 +248,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
* *
* This method returns the internal storage object without modifying any has state. * 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. * The returned object should not be modified and be treated as read-only.
@@ -262,7 +262,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
* *
* This method returns the internal storage object and sets the corresponding * This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its * has state. The returned object will become part of this message and its
@@ -276,7 +276,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
* @param value the takenAchievementLevelList to add * @param value the takenAchievementLevelList to add
* @return this * @return this
*/ */
@@ -287,7 +287,7 @@ public final class QuestOuterClass {
} }
/** /**
* <code>repeated uint32 taken_achievement_level_list = 3;</code> * <code>repeated uint32 taken_achievement_level_list = 7;</code>
* @param values the takenAchievementLevelList to add * @param values the takenAchievementLevelList to add
* @return this * @return this
*/ */
@@ -303,8 +303,8 @@ public final class QuestOuterClass {
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
finishTime = other.finishTime; finishTime = other.finishTime;
progress = other.progress;
id = other.id; id = other.id;
progress = other.progress;
status = other.status; status = other.status;
takenAchievementLevelList.copyFrom(other.takenAchievementLevelList); takenAchievementLevelList.copyFrom(other.takenAchievementLevelList);
} }
@@ -320,12 +320,12 @@ public final class QuestOuterClass {
if (other.hasFinishTime()) { if (other.hasFinishTime()) {
setFinishTime(other.finishTime); setFinishTime(other.finishTime);
} }
if (other.hasProgress()) {
setProgress(other.progress);
}
if (other.hasId()) { if (other.hasId()) {
setId(other.id); setId(other.id);
} }
if (other.hasProgress()) {
setProgress(other.progress);
}
if (other.hasStatus()) { if (other.hasStatus()) {
setStatusValue(other.status); setStatusValue(other.status);
} }
@@ -343,8 +343,8 @@ public final class QuestOuterClass {
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
finishTime = 0L; finishTime = 0L;
progress = 0;
id = 0; id = 0;
progress = 0;
status = 0; status = 0;
takenAchievementLevelList.clear(); takenAchievementLevelList.clear();
return this; return this;
@@ -372,8 +372,8 @@ public final class QuestOuterClass {
Quest other = (Quest) o; Quest other = (Quest) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasFinishTime() || finishTime == other.finishTime) && (!hasFinishTime() || finishTime == other.finishTime)
&& (!hasProgress() || progress == other.progress)
&& (!hasId() || id == other.id) && (!hasId() || id == other.id)
&& (!hasProgress() || progress == other.progress)
&& (!hasStatus() || status == other.status) && (!hasStatus() || status == other.status)
&& (!hasTakenAchievementLevelList() || takenAchievementLevelList.equals(other.takenAchievementLevelList)); && (!hasTakenAchievementLevelList() || takenAchievementLevelList.equals(other.takenAchievementLevelList));
} }
@@ -381,24 +381,24 @@ public final class QuestOuterClass {
@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) 96); output.writeRawByte((byte) 104);
output.writeInt64NoTag(finishTime); output.writeInt64NoTag(finishTime);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 64); output.writeRawByte((byte) 24);
output.writeUInt32NoTag(progress);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(id); output.writeUInt32NoTag(id);
} }
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(progress);
}
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 104); output.writeRawByte((byte) 40);
output.writeEnumNoTag(status); output.writeEnumNoTag(status);
} }
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
for (int i = 0; i < takenAchievementLevelList.length(); i++) { for (int i = 0; i < takenAchievementLevelList.length(); i++) {
output.writeRawByte((byte) 24); output.writeRawByte((byte) 56);
output.writeUInt32NoTag(takenAchievementLevelList.array()[i]); output.writeUInt32NoTag(takenAchievementLevelList.array()[i]);
} }
} }
@@ -411,10 +411,10 @@ public final class QuestOuterClass {
size += 1 + ProtoSink.computeInt64SizeNoTag(finishTime); size += 1 + ProtoSink.computeInt64SizeNoTag(finishTime);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(id); size += 1 + ProtoSink.computeUInt32SizeNoTag(progress);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(status); size += 1 + ProtoSink.computeEnumSizeNoTag(status);
@@ -432,34 +432,34 @@ public final class QuestOuterClass {
int tag = input.readTag(); int tag = input.readTag();
while (true) { while (true) {
switch (tag) { switch (tag) {
case 96: { case 104: {
// finishTime // finishTime
finishTime = input.readInt64(); finishTime = input.readInt64();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
tag = input.readTag(); tag = input.readTag();
if (tag != 64) { if (tag != 24) {
break; break;
} }
} }
case 64: { case 24: {
// progress
progress = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 88) {
break;
}
}
case 88: {
// id // id
id = input.readUInt32(); id = input.readUInt32();
bitField0_ |= 0x00000004; bitField0_ |= 0x00000002;
tag = input.readTag(); tag = input.readTag();
if (tag != 104) { if (tag != 72) {
break; break;
} }
} }
case 104: { case 72: {
// progress
progress = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 40) {
break;
}
}
case 40: {
// status // status
final int value = input.readInt32(); final int value = input.readInt32();
if (QuestStatus.forNumber(value) != null) { if (QuestStatus.forNumber(value) != null) {
@@ -467,11 +467,11 @@ public final class QuestOuterClass {
bitField0_ |= 0x00000008; bitField0_ |= 0x00000008;
} }
tag = input.readTag(); tag = input.readTag();
if (tag != 26) { if (tag != 58) {
break; break;
} }
} }
case 26: { case 58: {
// takenAchievementLevelList [packed=true] // takenAchievementLevelList [packed=true]
input.readPackedUInt32(takenAchievementLevelList, tag); input.readPackedUInt32(takenAchievementLevelList, tag);
bitField0_ |= 0x00000010; bitField0_ |= 0x00000010;
@@ -490,7 +490,7 @@ public final class QuestOuterClass {
tag = input.readTag(); tag = input.readTag();
break; break;
} }
case 24: { case 56: {
// takenAchievementLevelList [packed=false] // takenAchievementLevelList [packed=false]
tag = input.readRepeatedUInt32(takenAchievementLevelList, tag); tag = input.readRepeatedUInt32(takenAchievementLevelList, tag);
bitField0_ |= 0x00000010; bitField0_ |= 0x00000010;
@@ -507,10 +507,10 @@ public final class QuestOuterClass {
output.writeInt64(FieldNames.finishTime, finishTime); output.writeInt64(FieldNames.finishTime, finishTime);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.progress, progress); output.writeUInt32(FieldNames.id, id);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.id, id); output.writeUInt32(FieldNames.progress, progress);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeEnum(FieldNames.status, status, QuestStatus.converter()); output.writeEnum(FieldNames.status, status, QuestStatus.converter());
@@ -540,10 +540,10 @@ public final class QuestOuterClass {
} }
break; break;
} }
case -1001078227: { case 3355: {
if (input.isAtField(FieldNames.progress)) { if (input.isAtField(FieldNames.id)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
progress = input.readUInt32(); id = input.readUInt32();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
} }
} else { } else {
@@ -551,10 +551,10 @@ public final class QuestOuterClass {
} }
break; break;
} }
case 3355: { case -1001078227: {
if (input.isAtField(FieldNames.id)) { if (input.isAtField(FieldNames.progress)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
id = input.readUInt32(); progress = input.readUInt32();
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
} }
} else { } else {
@@ -797,10 +797,10 @@ public final class QuestOuterClass {
static class FieldNames { static class FieldNames {
static final FieldName finishTime = FieldName.forField("finishTime", "finish_time"); static final FieldName finishTime = FieldName.forField("finishTime", "finish_time");
static final FieldName progress = FieldName.forField("progress");
static final FieldName id = FieldName.forField("id"); static final FieldName id = FieldName.forField("id");
static final FieldName progress = FieldName.forField("progress");
static final FieldName status = FieldName.forField("status"); static final FieldName status = FieldName.forField("status");
static final FieldName takenAchievementLevelList = FieldName.forField("takenAchievementLevelList", "taken_achievement_level_list"); static final FieldName takenAchievementLevelList = FieldName.forField("takenAchievementLevelList", "taken_achievement_level_list");

View File

@@ -15,8 +15,8 @@ public class PacketGetQuestDataScRsp extends BasePacket {
var allIds = GameData.getAllQuestIds(); var allIds = GameData.getAllQuestIds();
var data = GetQuestDataScRsp.newInstance() var data = GetQuestDataScRsp.newInstance();
.setTotalAchievementExp(69); //.setTotalAchievementExp(69);
for (int questId : allIds) { for (int questId : allIds) {
var questItem = Quest.newInstance() var questItem = Quest.newInstance()