mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Update to support game version 1.13.0.*
This commit is contained in:
@@ -30,6 +30,11 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
*/
|
||||
private int questId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 3;</code>
|
||||
*/
|
||||
private int groupId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
@@ -119,12 +124,49 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 3;</code>
|
||||
* @return whether the groupId field is set
|
||||
*/
|
||||
public boolean hasGroupId() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMiningQuestRewardReceiveReq clearGroupId() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
groupId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 3;</code>
|
||||
* @return the groupId
|
||||
*/
|
||||
public int getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 3;</code>
|
||||
* @param value the groupId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMiningQuestRewardReceiveReq setGroupId(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
groupId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -132,7 +174,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMiningQuestRewardReceiveReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
bitField0_ &= ~0x00000008;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -161,7 +203,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedByte getMutableNextPackage() {
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
@@ -171,7 +213,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMiningQuestRewardReceiveReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -182,7 +224,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMiningQuestRewardReceiveReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -193,7 +235,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMiningQuestRewardReceiveReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
@@ -206,6 +248,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
bitField0_ = other.bitField0_;
|
||||
activityId = other.activityId;
|
||||
questId = other.questId;
|
||||
groupId = other.groupId;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
@@ -224,6 +267,9 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
if (other.hasQuestId()) {
|
||||
setQuestId(other.questId);
|
||||
}
|
||||
if (other.hasGroupId()) {
|
||||
setGroupId(other.groupId);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
@@ -239,6 +285,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
bitField0_ = 0;
|
||||
activityId = 0;
|
||||
questId = 0;
|
||||
groupId = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -266,6 +313,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasActivityId() || activityId == other.activityId)
|
||||
&& (!hasQuestId() || questId == other.questId)
|
||||
&& (!hasGroupId() || groupId == other.groupId)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@@ -280,6 +328,10 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
output.writeUInt32NoTag(questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
@@ -295,6 +347,9 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
@@ -322,6 +377,15 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
questId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// groupId
|
||||
groupId = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
@@ -329,7 +393,7 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
@@ -359,6 +423,9 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
output.writeUInt32(FieldNames.questId, questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.groupId, groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
@@ -394,11 +461,22 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1958081498: {
|
||||
if (input.isAtField(FieldNames.groupId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
groupId = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -464,6 +542,8 @@ public final class ActivityMiningQuestRewardReceive {
|
||||
|
||||
static final FieldName questId = FieldName.forField("QuestId");
|
||||
|
||||
static final FieldName groupId = FieldName.forField("GroupId");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user