mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 09:09:54 +02:00
Update to support game version 1.13.0.*
This commit is contained in:
@@ -130,6 +130,21 @@ public final class ActivityDetail {
|
||||
*/
|
||||
private final Public.ActivityHistoryStoryChapter historyStoryChapter = Public.ActivityHistoryStoryChapter.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityShare Share = 23;</code>
|
||||
*/
|
||||
private final Public.ActivityShare share = Public.ActivityShare.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityIceCream IceCream = 24;</code>
|
||||
*/
|
||||
private final Public.ActivityIceCream iceCream = Public.ActivityIceCream.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .ActivitySoldier Soldier = 25;</code>
|
||||
*/
|
||||
private final Public.ActivitySoldier soldier = Public.ActivitySoldier.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
@@ -1379,12 +1394,183 @@ public final class ActivityDetail {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityShare Share = 23;</code>
|
||||
* @return whether the share field is set
|
||||
*/
|
||||
public boolean hasShare() {
|
||||
return (bitField0_ & 0x00400000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityShare Share = 23;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearShare() {
|
||||
bitField0_ &= ~0x00400000;
|
||||
share.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityShare Share = 23;</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 #getMutableShare()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ActivityShare getShare() {
|
||||
return share;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityShare Share = 23;</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.ActivityShare getMutableShare() {
|
||||
bitField0_ |= 0x00400000;
|
||||
return share;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityShare Share = 23;</code>
|
||||
* @param value the share to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setShare(final Public.ActivityShare value) {
|
||||
bitField0_ |= 0x00400000;
|
||||
share.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityIceCream IceCream = 24;</code>
|
||||
* @return whether the iceCream field is set
|
||||
*/
|
||||
public boolean hasIceCream() {
|
||||
return (bitField0_ & 0x00800000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityIceCream IceCream = 24;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearIceCream() {
|
||||
bitField0_ &= ~0x00800000;
|
||||
iceCream.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityIceCream IceCream = 24;</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 #getMutableIceCream()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ActivityIceCream getIceCream() {
|
||||
return iceCream;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityIceCream IceCream = 24;</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.ActivityIceCream getMutableIceCream() {
|
||||
bitField0_ |= 0x00800000;
|
||||
return iceCream;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityIceCream IceCream = 24;</code>
|
||||
* @param value the iceCream to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setIceCream(final Public.ActivityIceCream value) {
|
||||
bitField0_ |= 0x00800000;
|
||||
iceCream.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivitySoldier Soldier = 25;</code>
|
||||
* @return whether the soldier field is set
|
||||
*/
|
||||
public boolean hasSoldier() {
|
||||
return (bitField0_ & 0x01000000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivitySoldier Soldier = 25;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearSoldier() {
|
||||
bitField0_ &= ~0x01000000;
|
||||
soldier.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivitySoldier Soldier = 25;</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 #getMutableSoldier()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ActivitySoldier getSoldier() {
|
||||
return soldier;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivitySoldier Soldier = 25;</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.ActivitySoldier getMutableSoldier() {
|
||||
bitField0_ |= 0x01000000;
|
||||
return soldier;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivitySoldier Soldier = 25;</code>
|
||||
* @param value the soldier to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setSoldier(final Public.ActivitySoldier value) {
|
||||
bitField0_ |= 0x01000000;
|
||||
soldier.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00400000) != 0;
|
||||
return (bitField0_ & 0x02000000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1392,7 +1578,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearNextPackage() {
|
||||
bitField0_ &= ~0x00400000;
|
||||
bitField0_ &= ~0x02000000;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1421,7 +1607,7 @@ public final class ActivityDetail {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedByte getMutableNextPackage() {
|
||||
bitField0_ |= 0x00400000;
|
||||
bitField0_ |= 0x02000000;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
@@ -1431,7 +1617,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00400000;
|
||||
bitField0_ |= 0x02000000;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1442,7 +1628,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00400000;
|
||||
bitField0_ |= 0x02000000;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1453,7 +1639,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00400000;
|
||||
bitField0_ |= 0x02000000;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1485,6 +1671,9 @@ public final class ActivityDetail {
|
||||
gDS.copyFrom(other.gDS);
|
||||
double_.copyFrom(other.double_);
|
||||
historyStoryChapter.copyFrom(other.historyStoryChapter);
|
||||
share.copyFrom(other.share);
|
||||
iceCream.copyFrom(other.iceCream);
|
||||
soldier.copyFrom(other.soldier);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
@@ -1562,6 +1751,15 @@ public final class ActivityDetail {
|
||||
if (other.hasHistoryStoryChapter()) {
|
||||
getMutableHistoryStoryChapter().mergeFrom(other.historyStoryChapter);
|
||||
}
|
||||
if (other.hasShare()) {
|
||||
getMutableShare().mergeFrom(other.share);
|
||||
}
|
||||
if (other.hasIceCream()) {
|
||||
getMutableIceCream().mergeFrom(other.iceCream);
|
||||
}
|
||||
if (other.hasSoldier()) {
|
||||
getMutableSoldier().mergeFrom(other.soldier);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
@@ -1597,6 +1795,9 @@ public final class ActivityDetail {
|
||||
gDS.clear();
|
||||
double_.clear();
|
||||
historyStoryChapter.clear();
|
||||
share.clear();
|
||||
iceCream.clear();
|
||||
soldier.clear();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1629,6 +1830,9 @@ public final class ActivityDetail {
|
||||
gDS.clearQuick();
|
||||
double_.clearQuick();
|
||||
historyStoryChapter.clearQuick();
|
||||
share.clearQuick();
|
||||
iceCream.clearQuick();
|
||||
soldier.clearQuick();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1665,6 +1869,9 @@ public final class ActivityDetail {
|
||||
&& (!hasGDS() || gDS.equals(other.gDS))
|
||||
&& (!hasDouble() || double_.equals(other.double_))
|
||||
&& (!hasHistoryStoryChapter() || historyStoryChapter.equals(other.historyStoryChapter))
|
||||
&& (!hasShare() || share.equals(other.share))
|
||||
&& (!hasIceCream() || iceCream.equals(other.iceCream))
|
||||
&& (!hasSoldier() || soldier.equals(other.soldier))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@@ -1759,6 +1966,18 @@ public final class ActivityDetail {
|
||||
output.writeMessageNoTag(historyStoryChapter);
|
||||
}
|
||||
if ((bitField0_ & 0x00400000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 442);
|
||||
output.writeMessageNoTag(share);
|
||||
}
|
||||
if ((bitField0_ & 0x00800000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 450);
|
||||
output.writeMessageNoTag(iceCream);
|
||||
}
|
||||
if ((bitField0_ & 0x01000000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 458);
|
||||
output.writeMessageNoTag(soldier);
|
||||
}
|
||||
if ((bitField0_ & 0x02000000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
@@ -1834,6 +2053,15 @@ public final class ActivityDetail {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(historyStoryChapter);
|
||||
}
|
||||
if ((bitField0_ & 0x00400000) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(share);
|
||||
}
|
||||
if ((bitField0_ & 0x00800000) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(iceCream);
|
||||
}
|
||||
if ((bitField0_ & 0x01000000) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(soldier);
|
||||
}
|
||||
if ((bitField0_ & 0x02000000) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
@@ -2040,6 +2268,33 @@ public final class ActivityDetail {
|
||||
input.readMessage(historyStoryChapter);
|
||||
bitField0_ |= 0x00200000;
|
||||
tag = input.readTag();
|
||||
if (tag != 186) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 186: {
|
||||
// share
|
||||
input.readMessage(share);
|
||||
bitField0_ |= 0x00400000;
|
||||
tag = input.readTag();
|
||||
if (tag != 194) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 194: {
|
||||
// iceCream
|
||||
input.readMessage(iceCream);
|
||||
bitField0_ |= 0x00800000;
|
||||
tag = input.readTag();
|
||||
if (tag != 202) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 202: {
|
||||
// soldier
|
||||
input.readMessage(soldier);
|
||||
bitField0_ |= 0x01000000;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
@@ -2047,7 +2302,7 @@ public final class ActivityDetail {
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00400000;
|
||||
bitField0_ |= 0x02000000;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
@@ -2137,6 +2392,15 @@ public final class ActivityDetail {
|
||||
output.writeMessage(FieldNames.historyStoryChapter, historyStoryChapter);
|
||||
}
|
||||
if ((bitField0_ & 0x00400000) != 0) {
|
||||
output.writeMessage(FieldNames.share, share);
|
||||
}
|
||||
if ((bitField0_ & 0x00800000) != 0) {
|
||||
output.writeMessage(FieldNames.iceCream, iceCream);
|
||||
}
|
||||
if ((bitField0_ & 0x01000000) != 0) {
|
||||
output.writeMessage(FieldNames.soldier, soldier);
|
||||
}
|
||||
if ((bitField0_ & 0x02000000) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
@@ -2391,11 +2655,44 @@ public final class ActivityDetail {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 79847359: {
|
||||
if (input.isAtField(FieldNames.share)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(share);
|
||||
bitField0_ |= 0x00400000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -998396713: {
|
||||
if (input.isAtField(FieldNames.iceCream)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(iceCream);
|
||||
bitField0_ |= 0x00800000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -365946526: {
|
||||
if (input.isAtField(FieldNames.soldier)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(soldier);
|
||||
bitField0_ |= 0x01000000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00400000;
|
||||
bitField0_ |= 0x02000000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2498,6 +2795,12 @@ public final class ActivityDetail {
|
||||
|
||||
static final FieldName historyStoryChapter = FieldName.forField("HistoryStoryChapter");
|
||||
|
||||
static final FieldName share = FieldName.forField("Share");
|
||||
|
||||
static final FieldName iceCream = FieldName.forField("IceCream");
|
||||
|
||||
static final FieldName soldier = FieldName.forField("Soldier");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,865 @@
|
||||
// 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 ActivityIceCreamLevelSettle {
|
||||
/**
|
||||
* Protobuf type {@code ActivityIceCreamLevelSettleReq}
|
||||
*/
|
||||
public static final class ActivityIceCreamLevelSettleReq extends ProtoMessage<ActivityIceCreamLevelSettleReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 2;</code>
|
||||
*/
|
||||
private int levelId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelType = 3;</code>
|
||||
*/
|
||||
private int levelType;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 OrderCount = 4;</code>
|
||||
*/
|
||||
private int orderCount;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 5;</code>
|
||||
*/
|
||||
private int totalScore;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StreakCount = 6;</code>
|
||||
*/
|
||||
private int streakCount;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PropCount = 7;</code>
|
||||
*/
|
||||
private int propCount;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private ActivityIceCreamLevelSettleReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivityIceCreamLevelSettleReq}
|
||||
*/
|
||||
public static ActivityIceCreamLevelSettleReq newInstance() {
|
||||
return new ActivityIceCreamLevelSettleReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return whether the activityId field is set
|
||||
*/
|
||||
public boolean hasActivityId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearActivityId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
activityId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return the activityId
|
||||
*/
|
||||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @param value the activityId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 2;</code>
|
||||
* @return whether the levelId field is set
|
||||
*/
|
||||
public boolean hasLevelId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearLevelId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
levelId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 2;</code>
|
||||
* @return the levelId
|
||||
*/
|
||||
public int getLevelId() {
|
||||
return levelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 2;</code>
|
||||
* @param value the levelId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setLevelId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
levelId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelType = 3;</code>
|
||||
* @return whether the levelType field is set
|
||||
*/
|
||||
public boolean hasLevelType() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelType = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearLevelType() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
levelType = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelType = 3;</code>
|
||||
* @return the levelType
|
||||
*/
|
||||
public int getLevelType() {
|
||||
return levelType;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelType = 3;</code>
|
||||
* @param value the levelType to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setLevelType(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
levelType = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 OrderCount = 4;</code>
|
||||
* @return whether the orderCount field is set
|
||||
*/
|
||||
public boolean hasOrderCount() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 OrderCount = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearOrderCount() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
orderCount = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 OrderCount = 4;</code>
|
||||
* @return the orderCount
|
||||
*/
|
||||
public int getOrderCount() {
|
||||
return orderCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 OrderCount = 4;</code>
|
||||
* @param value the orderCount to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setOrderCount(final int value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
orderCount = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 5;</code>
|
||||
* @return whether the totalScore field is set
|
||||
*/
|
||||
public boolean hasTotalScore() {
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearTotalScore() {
|
||||
bitField0_ &= ~0x00000010;
|
||||
totalScore = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 5;</code>
|
||||
* @return the totalScore
|
||||
*/
|
||||
public int getTotalScore() {
|
||||
return totalScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 5;</code>
|
||||
* @param value the totalScore to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setTotalScore(final int value) {
|
||||
bitField0_ |= 0x00000010;
|
||||
totalScore = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StreakCount = 6;</code>
|
||||
* @return whether the streakCount field is set
|
||||
*/
|
||||
public boolean hasStreakCount() {
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StreakCount = 6;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearStreakCount() {
|
||||
bitField0_ &= ~0x00000020;
|
||||
streakCount = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StreakCount = 6;</code>
|
||||
* @return the streakCount
|
||||
*/
|
||||
public int getStreakCount() {
|
||||
return streakCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 StreakCount = 6;</code>
|
||||
* @param value the streakCount to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setStreakCount(final int value) {
|
||||
bitField0_ |= 0x00000020;
|
||||
streakCount = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PropCount = 7;</code>
|
||||
* @return whether the propCount field is set
|
||||
*/
|
||||
public boolean hasPropCount() {
|
||||
return (bitField0_ & 0x00000040) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PropCount = 7;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearPropCount() {
|
||||
bitField0_ &= ~0x00000040;
|
||||
propCount = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PropCount = 7;</code>
|
||||
* @return the propCount
|
||||
*/
|
||||
public int getPropCount() {
|
||||
return propCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PropCount = 7;</code>
|
||||
* @param value the propCount to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setPropCount(final int value) {
|
||||
bitField0_ |= 0x00000040;
|
||||
propCount = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000080) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000080;
|
||||
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_ |= 0x00000080;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000080;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000080;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityIceCreamLevelSettleReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000080;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq copyFrom(final ActivityIceCreamLevelSettleReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
activityId = other.activityId;
|
||||
levelId = other.levelId;
|
||||
levelType = other.levelType;
|
||||
orderCount = other.orderCount;
|
||||
totalScore = other.totalScore;
|
||||
streakCount = other.streakCount;
|
||||
propCount = other.propCount;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq mergeFrom(final ActivityIceCreamLevelSettleReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasActivityId()) {
|
||||
setActivityId(other.activityId);
|
||||
}
|
||||
if (other.hasLevelId()) {
|
||||
setLevelId(other.levelId);
|
||||
}
|
||||
if (other.hasLevelType()) {
|
||||
setLevelType(other.levelType);
|
||||
}
|
||||
if (other.hasOrderCount()) {
|
||||
setOrderCount(other.orderCount);
|
||||
}
|
||||
if (other.hasTotalScore()) {
|
||||
setTotalScore(other.totalScore);
|
||||
}
|
||||
if (other.hasStreakCount()) {
|
||||
setStreakCount(other.streakCount);
|
||||
}
|
||||
if (other.hasPropCount()) {
|
||||
setPropCount(other.propCount);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
activityId = 0;
|
||||
levelId = 0;
|
||||
levelType = 0;
|
||||
orderCount = 0;
|
||||
totalScore = 0;
|
||||
streakCount = 0;
|
||||
propCount = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq 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 ActivityIceCreamLevelSettleReq)) {
|
||||
return false;
|
||||
}
|
||||
ActivityIceCreamLevelSettleReq other = (ActivityIceCreamLevelSettleReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasActivityId() || activityId == other.activityId)
|
||||
&& (!hasLevelId() || levelId == other.levelId)
|
||||
&& (!hasLevelType() || levelType == other.levelType)
|
||||
&& (!hasOrderCount() || orderCount == other.orderCount)
|
||||
&& (!hasTotalScore() || totalScore == other.totalScore)
|
||||
&& (!hasStreakCount() || streakCount == other.streakCount)
|
||||
&& (!hasPropCount() || propCount == other.propCount)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(levelType);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 32);
|
||||
output.writeUInt32NoTag(orderCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRawByte((byte) 40);
|
||||
output.writeUInt32NoTag(totalScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeRawByte((byte) 48);
|
||||
output.writeUInt32NoTag(streakCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
output.writeRawByte((byte) 56);
|
||||
output.writeUInt32NoTag(propCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelType);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(orderCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(streakCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(propCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public ActivityIceCreamLevelSettleReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// activityId
|
||||
activityId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// levelId
|
||||
levelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// levelType
|
||||
levelType = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 32) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 32: {
|
||||
// orderCount
|
||||
orderCount = input.readUInt32();
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 40) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 40: {
|
||||
// totalScore
|
||||
totalScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000010;
|
||||
tag = input.readTag();
|
||||
if (tag != 48) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 48: {
|
||||
// streakCount
|
||||
streakCount = input.readUInt32();
|
||||
bitField0_ |= 0x00000020;
|
||||
tag = input.readTag();
|
||||
if (tag != 56) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 56: {
|
||||
// propCount
|
||||
propCount = input.readUInt32();
|
||||
bitField0_ |= 0x00000040;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000080;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.activityId, activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.levelId, levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.levelType, levelType);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeUInt32(FieldNames.orderCount, orderCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeUInt32(FieldNames.totalScore, totalScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeUInt32(FieldNames.streakCount, streakCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
output.writeUInt32(FieldNames.propCount, propCount);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -252882774: {
|
||||
if (input.isAtField(FieldNames.activityId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
activityId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1734437791: {
|
||||
if (input.isAtField(FieldNames.levelId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
levelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 347757758: {
|
||||
if (input.isAtField(FieldNames.levelType)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
levelType = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1571088767: {
|
||||
if (input.isAtField(FieldNames.orderCount)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
orderCount = input.readUInt32();
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1276492238: {
|
||||
if (input.isAtField(FieldNames.totalScore)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
totalScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000010;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1082869743: {
|
||||
if (input.isAtField(FieldNames.streakCount)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
streakCount = input.readUInt32();
|
||||
bitField0_ |= 0x00000020;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1249870668: {
|
||||
if (input.isAtField(FieldNames.propCount)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
propCount = input.readUInt32();
|
||||
bitField0_ |= 0x00000040;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000080;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq clone() {
|
||||
return new ActivityIceCreamLevelSettleReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static ActivityIceCreamLevelSettleReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityIceCreamLevelSettleReq parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityIceCreamLevelSettleReq parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityIceCreamLevelSettleReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating ActivityIceCreamLevelSettleReq messages
|
||||
*/
|
||||
public static MessageFactory<ActivityIceCreamLevelSettleReq> getFactory() {
|
||||
return ActivityIceCreamLevelSettleReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivityIceCreamLevelSettleReqFactory implements MessageFactory<ActivityIceCreamLevelSettleReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public ActivityIceCreamLevelSettleReq create() {
|
||||
return ActivityIceCreamLevelSettleReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||
|
||||
static final FieldName levelId = FieldName.forField("LevelId");
|
||||
|
||||
static final FieldName levelType = FieldName.forField("LevelType");
|
||||
|
||||
static final FieldName orderCount = FieldName.forField("OrderCount");
|
||||
|
||||
static final FieldName totalScore = FieldName.forField("TotalScore");
|
||||
|
||||
static final FieldName streakCount = FieldName.forField("StreakCount");
|
||||
|
||||
static final FieldName propCount = FieldName.forField("PropCount");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,463 @@
|
||||
// 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 ActivityShareRewardReceive {
|
||||
/**
|
||||
* Protobuf type {@code ActivityShareRewardReq}
|
||||
*/
|
||||
public static final class ActivityShareRewardReq extends ProtoMessage<ActivityShareRewardReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ChannelId = 2;</code>
|
||||
*/
|
||||
private int channelId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private ActivityShareRewardReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivityShareRewardReq}
|
||||
*/
|
||||
public static ActivityShareRewardReq newInstance() {
|
||||
return new ActivityShareRewardReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return whether the activityId field is set
|
||||
*/
|
||||
public boolean hasActivityId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq clearActivityId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
activityId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return the activityId
|
||||
*/
|
||||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @param value the activityId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ChannelId = 2;</code>
|
||||
* @return whether the channelId field is set
|
||||
*/
|
||||
public boolean hasChannelId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ChannelId = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq clearChannelId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
channelId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ChannelId = 2;</code>
|
||||
* @return the channelId
|
||||
*/
|
||||
public int getChannelId() {
|
||||
return channelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ChannelId = 2;</code>
|
||||
* @param value the channelId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq setChannelId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
channelId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
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_ |= 0x00000004;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityShareRewardReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq copyFrom(final ActivityShareRewardReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
activityId = other.activityId;
|
||||
channelId = other.channelId;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq mergeFrom(final ActivityShareRewardReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasActivityId()) {
|
||||
setActivityId(other.activityId);
|
||||
}
|
||||
if (other.hasChannelId()) {
|
||||
setChannelId(other.channelId);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
activityId = 0;
|
||||
channelId = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq 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 ActivityShareRewardReq)) {
|
||||
return false;
|
||||
}
|
||||
ActivityShareRewardReq other = (ActivityShareRewardReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasActivityId() || activityId == other.activityId)
|
||||
&& (!hasChannelId() || channelId == other.channelId)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(channelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(channelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public ActivityShareRewardReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// activityId
|
||||
activityId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// channelId
|
||||
channelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.activityId, activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.channelId, channelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -252882774: {
|
||||
if (input.isAtField(FieldNames.activityId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
activityId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -829263522: {
|
||||
if (input.isAtField(FieldNames.channelId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
channelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq clone() {
|
||||
return new ActivityShareRewardReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static ActivityShareRewardReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new ActivityShareRewardReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityShareRewardReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityShareRewardReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityShareRewardReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityShareRewardReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating ActivityShareRewardReq messages
|
||||
*/
|
||||
public static MessageFactory<ActivityShareRewardReq> getFactory() {
|
||||
return ActivityShareRewardReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivityShareRewardReqFactory implements MessageFactory<ActivityShareRewardReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public ActivityShareRewardReq create() {
|
||||
return ActivityShareRewardReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||
|
||||
static final FieldName channelId = FieldName.forField("ChannelId");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,549 @@
|
||||
// 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 ActivitySoldierQuestRewardReceive {
|
||||
/**
|
||||
* Protobuf type {@code ActivitySoldierQuestRewardReceiveReq}
|
||||
*/
|
||||
public static final class ActivitySoldierQuestRewardReceiveReq extends ProtoMessage<ActivitySoldierQuestRewardReceiveReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 2;</code>
|
||||
*/
|
||||
private int groupId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 3;</code>
|
||||
*/
|
||||
private int questId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private ActivitySoldierQuestRewardReceiveReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivitySoldierQuestRewardReceiveReq}
|
||||
*/
|
||||
public static ActivitySoldierQuestRewardReceiveReq newInstance() {
|
||||
return new ActivitySoldierQuestRewardReceiveReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return whether the activityId field is set
|
||||
*/
|
||||
public boolean hasActivityId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivitySoldierQuestRewardReceiveReq clearActivityId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
activityId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @return the activityId
|
||||
*/
|
||||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
* @param value the activityId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivitySoldierQuestRewardReceiveReq setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 2;</code>
|
||||
* @return whether the groupId field is set
|
||||
*/
|
||||
public boolean hasGroupId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivitySoldierQuestRewardReceiveReq clearGroupId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
groupId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 2;</code>
|
||||
* @return the groupId
|
||||
*/
|
||||
public int getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 2;</code>
|
||||
* @param value the groupId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivitySoldierQuestRewardReceiveReq setGroupId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
groupId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 3;</code>
|
||||
* @return whether the questId field is set
|
||||
*/
|
||||
public boolean hasQuestId() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivitySoldierQuestRewardReceiveReq clearQuestId() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
questId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 3;</code>
|
||||
* @return the questId
|
||||
*/
|
||||
public int getQuestId() {
|
||||
return questId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 3;</code>
|
||||
* @param value the questId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivitySoldierQuestRewardReceiveReq setQuestId(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
questId = 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 ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq copyFrom(
|
||||
final ActivitySoldierQuestRewardReceiveReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
activityId = other.activityId;
|
||||
groupId = other.groupId;
|
||||
questId = other.questId;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq mergeFrom(
|
||||
final ActivitySoldierQuestRewardReceiveReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasActivityId()) {
|
||||
setActivityId(other.activityId);
|
||||
}
|
||||
if (other.hasGroupId()) {
|
||||
setGroupId(other.groupId);
|
||||
}
|
||||
if (other.hasQuestId()) {
|
||||
setQuestId(other.questId);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
activityId = 0;
|
||||
groupId = 0;
|
||||
questId = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq 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 ActivitySoldierQuestRewardReceiveReq)) {
|
||||
return false;
|
||||
}
|
||||
ActivitySoldierQuestRewardReceiveReq other = (ActivitySoldierQuestRewardReceiveReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasActivityId() || activityId == other.activityId)
|
||||
&& (!hasGroupId() || groupId == other.groupId)
|
||||
&& (!hasQuestId() || questId == other.questId)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public ActivitySoldierQuestRewardReceiveReq mergeFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// activityId
|
||||
activityId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// groupId
|
||||
groupId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// questId
|
||||
questId = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.activityId, activityId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.groupId, groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.questId, questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq mergeFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -252882774: {
|
||||
if (input.isAtField(FieldNames.activityId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
activityId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1958081498: {
|
||||
if (input.isAtField(FieldNames.groupId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
groupId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1975187075: {
|
||||
if (input.isAtField(FieldNames.questId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
questId = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq clone() {
|
||||
return new ActivitySoldierQuestRewardReceiveReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static ActivitySoldierQuestRewardReceiveReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new ActivitySoldierQuestRewardReceiveReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivitySoldierQuestRewardReceiveReq parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivitySoldierQuestRewardReceiveReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivitySoldierQuestRewardReceiveReq parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivitySoldierQuestRewardReceiveReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating ActivitySoldierQuestRewardReceiveReq messages
|
||||
*/
|
||||
public static MessageFactory<ActivitySoldierQuestRewardReceiveReq> getFactory() {
|
||||
return ActivitySoldierQuestRewardReceiveReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivitySoldierQuestRewardReceiveReqFactory implements MessageFactory<ActivitySoldierQuestRewardReceiveReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public ActivitySoldierQuestRewardReceiveReq create() {
|
||||
return ActivitySoldierQuestRewardReceiveReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||
|
||||
static final FieldName groupId = FieldName.forField("GroupId");
|
||||
|
||||
static final FieldName questId = FieldName.forField("QuestId");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11551,4 +11551,814 @@ public final class NotifyGm {
|
||||
static final FieldName buildRewards = FieldName.forField("BuildRewards");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Protobuf type {@code SoldierEffectNtf}
|
||||
*/
|
||||
public static final class SoldierEffectNtf extends ProtoMessage<SoldierEffectNtf> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 1;</code>
|
||||
*/
|
||||
private final RepeatedMessage<PublicSoldier.SoldierEffect> effects = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierEffect.getFactory());
|
||||
|
||||
private SoldierEffectNtf() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code SoldierEffectNtf}
|
||||
*/
|
||||
public static SoldierEffectNtf newInstance() {
|
||||
return new SoldierEffectNtf();
|
||||
}
|
||||
|
||||
/**
|
||||
* <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 SoldierEffectNtf 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 SoldierEffectNtf 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 SoldierEffectNtf 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 SoldierEffectNtf setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000001;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 1;</code>
|
||||
* @return whether the effects field is set
|
||||
*/
|
||||
public boolean hasEffects() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierEffectNtf clearEffects() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
effects.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 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 #getMutableEffects()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<PublicSoldier.SoldierEffect> getEffects() {
|
||||
return effects;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 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<PublicSoldier.SoldierEffect> getMutableEffects() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return effects;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 1;</code>
|
||||
* @param value the effects to add
|
||||
* @return this
|
||||
*/
|
||||
public SoldierEffectNtf addEffects(final PublicSoldier.SoldierEffect value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
effects.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .SoldierEffect Effects = 1;</code>
|
||||
* @param values the effects to add
|
||||
* @return this
|
||||
*/
|
||||
public SoldierEffectNtf addAllEffects(final PublicSoldier.SoldierEffect... values) {
|
||||
bitField0_ |= 0x00000002;
|
||||
effects.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf copyFrom(final SoldierEffectNtf other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
effects.copyFrom(other.effects);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf mergeFrom(final SoldierEffectNtf other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
if (other.hasEffects()) {
|
||||
getMutableEffects().addAll(other.effects);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
nextPackage.clear();
|
||||
effects.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
nextPackage.clear();
|
||||
effects.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof SoldierEffectNtf)) {
|
||||
return false;
|
||||
}
|
||||
SoldierEffectNtf other = (SoldierEffectNtf) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||
&& (!hasEffects() || effects.equals(other.effects));
|
||||
}
|
||||
|
||||
@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 < effects.length(); i++) {
|
||||
output.writeRawByte((byte) 10);
|
||||
output.writeMessageNoTag(effects.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += (1 * effects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(effects);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public SoldierEffectNtf 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: {
|
||||
// effects
|
||||
tag = input.readRepeatedMessage(effects, 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.effects, effects);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf 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 -169275166: {
|
||||
if (input.isAtField(FieldNames.effects)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(effects);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf clone() {
|
||||
return new SoldierEffectNtf().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static SoldierEffectNtf parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new SoldierEffectNtf(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierEffectNtf parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierEffectNtf(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierEffectNtf parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierEffectNtf(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating SoldierEffectNtf messages
|
||||
*/
|
||||
public static MessageFactory<SoldierEffectNtf> getFactory() {
|
||||
return SoldierEffectNtfFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum SoldierEffectNtfFactory implements MessageFactory<SoldierEffectNtf> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public SoldierEffectNtf create() {
|
||||
return SoldierEffectNtf.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
|
||||
static final FieldName effects = FieldName.forField("Effects");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Protobuf type {@code GmClearAllActivityIceCreamLevelsNotify}
|
||||
*/
|
||||
public static final class GmClearAllActivityIceCreamLevelsNotify extends ProtoMessage<GmClearAllActivityIceCreamLevelsNotify> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 1;</code>
|
||||
*/
|
||||
private final RepeatedMessage<Public.ActivityIceCreamLevel> levels = RepeatedMessage.newEmptyInstance(Public.ActivityIceCreamLevel.getFactory());
|
||||
|
||||
private GmClearAllActivityIceCreamLevelsNotify() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code GmClearAllActivityIceCreamLevelsNotify}
|
||||
*/
|
||||
public static GmClearAllActivityIceCreamLevelsNotify newInstance() {
|
||||
return new GmClearAllActivityIceCreamLevelsNotify();
|
||||
}
|
||||
|
||||
/**
|
||||
* <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 GmClearAllActivityIceCreamLevelsNotify 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 GmClearAllActivityIceCreamLevelsNotify 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 GmClearAllActivityIceCreamLevelsNotify 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 GmClearAllActivityIceCreamLevelsNotify setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000001;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 1;</code>
|
||||
* @return whether the levels field is set
|
||||
*/
|
||||
public boolean hasLevels() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public GmClearAllActivityIceCreamLevelsNotify clearLevels() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
levels.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 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 #getMutableLevels()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<Public.ActivityIceCreamLevel> getLevels() {
|
||||
return levels;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 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<Public.ActivityIceCreamLevel> getMutableLevels() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return levels;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 1;</code>
|
||||
* @param value the levels to add
|
||||
* @return this
|
||||
*/
|
||||
public GmClearAllActivityIceCreamLevelsNotify addLevels(
|
||||
final Public.ActivityIceCreamLevel value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
levels.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .ActivityIceCreamLevel levels = 1;</code>
|
||||
* @param values the levels to add
|
||||
* @return this
|
||||
*/
|
||||
public GmClearAllActivityIceCreamLevelsNotify addAllLevels(
|
||||
final Public.ActivityIceCreamLevel... values) {
|
||||
bitField0_ |= 0x00000002;
|
||||
levels.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify copyFrom(
|
||||
final GmClearAllActivityIceCreamLevelsNotify other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
levels.copyFrom(other.levels);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify mergeFrom(
|
||||
final GmClearAllActivityIceCreamLevelsNotify other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
if (other.hasLevels()) {
|
||||
getMutableLevels().addAll(other.levels);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
nextPackage.clear();
|
||||
levels.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
nextPackage.clear();
|
||||
levels.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof GmClearAllActivityIceCreamLevelsNotify)) {
|
||||
return false;
|
||||
}
|
||||
GmClearAllActivityIceCreamLevelsNotify other = (GmClearAllActivityIceCreamLevelsNotify) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||
&& (!hasLevels() || levels.equals(other.levels));
|
||||
}
|
||||
|
||||
@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 < levels.length(); i++) {
|
||||
output.writeRawByte((byte) 10);
|
||||
output.writeMessageNoTag(levels.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += (1 * levels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(levels);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public GmClearAllActivityIceCreamLevelsNotify 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: {
|
||||
// levels
|
||||
tag = input.readRepeatedMessage(levels, 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.levels, levels);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify 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 -1106127505: {
|
||||
if (input.isAtField(FieldNames.levels)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(levels);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify clone() {
|
||||
return new GmClearAllActivityIceCreamLevelsNotify().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static GmClearAllActivityIceCreamLevelsNotify parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new GmClearAllActivityIceCreamLevelsNotify(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static GmClearAllActivityIceCreamLevelsNotify parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new GmClearAllActivityIceCreamLevelsNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static GmClearAllActivityIceCreamLevelsNotify parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new GmClearAllActivityIceCreamLevelsNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating GmClearAllActivityIceCreamLevelsNotify messages
|
||||
*/
|
||||
public static MessageFactory<GmClearAllActivityIceCreamLevelsNotify> getFactory() {
|
||||
return GmClearAllActivityIceCreamLevelsNotifyFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum GmClearAllActivityIceCreamLevelsNotifyFactory implements MessageFactory<GmClearAllActivityIceCreamLevelsNotify> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public GmClearAllActivityIceCreamLevelsNotify create() {
|
||||
return GmClearAllActivityIceCreamLevelsNotify.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
|
||||
static final FieldName levels = FieldName.forField("levels");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1268,6 +1268,11 @@ public final class ScoreBossRank {
|
||||
*/
|
||||
private int levelId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 SkillScore = 9;</code>
|
||||
*/
|
||||
private int skillScore;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
@@ -1419,12 +1424,49 @@ public final class ScoreBossRank {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 SkillScore = 9;</code>
|
||||
* @return whether the skillScore field is set
|
||||
*/
|
||||
public boolean hasSkillScore() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 SkillScore = 9;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearSkillScore() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
skillScore = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 SkillScore = 9;</code>
|
||||
* @return the skillScore
|
||||
*/
|
||||
public int getSkillScore() {
|
||||
return skillScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 SkillScore = 9;</code>
|
||||
* @param value the skillScore to set
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam setSkillScore(final int value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
skillScore = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1432,7 +1474,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearNextPackage() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
bitField0_ &= ~0x00000010;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1461,7 +1503,7 @@ public final class ScoreBossRank {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedByte getMutableNextPackage() {
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
@@ -1471,7 +1513,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1482,7 +1524,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1493,7 +1535,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1503,7 +1545,7 @@ public final class ScoreBossRank {
|
||||
* @return whether the discs field is set
|
||||
*/
|
||||
public boolean hasDiscs() {
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1511,7 +1553,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearDiscs() {
|
||||
bitField0_ &= ~0x00000010;
|
||||
bitField0_ &= ~0x00000020;
|
||||
discs.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1540,7 +1582,7 @@ public final class ScoreBossRank {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedInt getMutableDiscs() {
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
return discs;
|
||||
}
|
||||
|
||||
@@ -1550,7 +1592,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addDiscs(final int value) {
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
discs.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1561,7 +1603,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addAllDiscs(final int... values) {
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
discs.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1571,7 +1613,7 @@ public final class ScoreBossRank {
|
||||
* @return whether the activeSecondaryIds field is set
|
||||
*/
|
||||
public boolean hasActiveSecondaryIds() {
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
return (bitField0_ & 0x00000040) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1579,7 +1621,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearActiveSecondaryIds() {
|
||||
bitField0_ &= ~0x00000020;
|
||||
bitField0_ &= ~0x00000040;
|
||||
activeSecondaryIds.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1608,7 +1650,7 @@ public final class ScoreBossRank {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedInt getMutableActiveSecondaryIds() {
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
return activeSecondaryIds;
|
||||
}
|
||||
|
||||
@@ -1618,7 +1660,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addActiveSecondaryIds(final int value) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
activeSecondaryIds.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1629,7 +1671,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addAllActiveSecondaryIds(final int... values) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
activeSecondaryIds.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1639,7 +1681,7 @@ public final class ScoreBossRank {
|
||||
* @return whether the chars field is set
|
||||
*/
|
||||
public boolean hasChars() {
|
||||
return (bitField0_ & 0x00000040) != 0;
|
||||
return (bitField0_ & 0x00000080) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1647,7 +1689,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearChars() {
|
||||
bitField0_ &= ~0x00000040;
|
||||
bitField0_ &= ~0x00000080;
|
||||
chars.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1676,7 +1718,7 @@ public final class ScoreBossRank {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<ScoreBossRankChar> getMutableChars() {
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
return chars;
|
||||
}
|
||||
|
||||
@@ -1686,7 +1728,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addChars(final ScoreBossRankChar value) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
chars.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1697,7 +1739,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addAllChars(final ScoreBossRankChar... values) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
chars.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1707,7 +1749,7 @@ public final class ScoreBossRank {
|
||||
* @return whether the potentials field is set
|
||||
*/
|
||||
public boolean hasPotentials() {
|
||||
return (bitField0_ & 0x00000080) != 0;
|
||||
return (bitField0_ & 0x00000100) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1715,7 +1757,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearPotentials() {
|
||||
bitField0_ &= ~0x00000080;
|
||||
bitField0_ &= ~0x00000100;
|
||||
potentials.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1744,7 +1786,7 @@ public final class ScoreBossRank {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<PublicStarTower.BuildPotential> getMutablePotentials() {
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
return potentials;
|
||||
}
|
||||
|
||||
@@ -1754,7 +1796,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addPotentials(final PublicStarTower.BuildPotential value) {
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
potentials.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1765,7 +1807,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addAllPotentials(final PublicStarTower.BuildPotential... values) {
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
potentials.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1775,7 +1817,7 @@ public final class ScoreBossRank {
|
||||
* @return whether the notes field is set
|
||||
*/
|
||||
public boolean hasNotes() {
|
||||
return (bitField0_ & 0x00000100) != 0;
|
||||
return (bitField0_ & 0x00000200) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1783,7 +1825,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam clearNotes() {
|
||||
bitField0_ &= ~0x00000100;
|
||||
bitField0_ &= ~0x00000200;
|
||||
notes.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1812,7 +1854,7 @@ public final class ScoreBossRank {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<Public.ItemTpl> getMutableNotes() {
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
return notes;
|
||||
}
|
||||
|
||||
@@ -1822,7 +1864,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addNotes(final Public.ItemTpl value) {
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
notes.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1833,7 +1875,7 @@ public final class ScoreBossRank {
|
||||
* @return this
|
||||
*/
|
||||
public ScoreBossRankTeam addAllNotes(final Public.ItemTpl... values) {
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
notes.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1846,6 +1888,7 @@ public final class ScoreBossRank {
|
||||
buildScore = other.buildScore;
|
||||
levelScore = other.levelScore;
|
||||
levelId = other.levelId;
|
||||
skillScore = other.skillScore;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
discs.copyFrom(other.discs);
|
||||
activeSecondaryIds.copyFrom(other.activeSecondaryIds);
|
||||
@@ -1871,6 +1914,9 @@ public final class ScoreBossRank {
|
||||
if (other.hasLevelId()) {
|
||||
setLevelId(other.levelId);
|
||||
}
|
||||
if (other.hasSkillScore()) {
|
||||
setSkillScore(other.skillScore);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
@@ -1902,6 +1948,7 @@ public final class ScoreBossRank {
|
||||
buildScore = 0;
|
||||
levelScore = 0;
|
||||
levelId = 0;
|
||||
skillScore = 0;
|
||||
nextPackage.clear();
|
||||
discs.clear();
|
||||
activeSecondaryIds.clear();
|
||||
@@ -1940,6 +1987,7 @@ public final class ScoreBossRank {
|
||||
&& (!hasBuildScore() || buildScore == other.buildScore)
|
||||
&& (!hasLevelScore() || levelScore == other.levelScore)
|
||||
&& (!hasLevelId() || levelId == other.levelId)
|
||||
&& (!hasSkillScore() || skillScore == other.skillScore)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||
&& (!hasDiscs() || discs.equals(other.discs))
|
||||
&& (!hasActiveSecondaryIds() || activeSecondaryIds.equals(other.activeSecondaryIds))
|
||||
@@ -1963,34 +2011,38 @@ public final class ScoreBossRank {
|
||||
output.writeUInt32NoTag(levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 72);
|
||||
output.writeUInt32NoTag(skillScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
for (int i = 0; i < discs.length(); i++) {
|
||||
output.writeRawByte((byte) 40);
|
||||
output.writeUInt32NoTag(discs.array()[i]);
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
for (int i = 0; i < activeSecondaryIds.length(); i++) {
|
||||
output.writeRawByte((byte) 64);
|
||||
output.writeUInt32NoTag(activeSecondaryIds.array()[i]);
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
for (int i = 0; i < chars.length(); i++) {
|
||||
output.writeRawByte((byte) 18);
|
||||
output.writeMessageNoTag(chars.get(i));
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
for (int i = 0; i < potentials.length(); i++) {
|
||||
output.writeRawByte((byte) 50);
|
||||
output.writeMessageNoTag(potentials.get(i));
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
for (int i = 0; i < notes.length(); i++) {
|
||||
output.writeRawByte((byte) 58);
|
||||
output.writeMessageNoTag(notes.get(i));
|
||||
@@ -2011,21 +2063,24 @@ public final class ScoreBossRank {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(skillScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += (1 * discs.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(discs);
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds);
|
||||
size += (1 * discs.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(discs);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
|
||||
size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
size += (1 * potentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(potentials);
|
||||
size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
|
||||
}
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
size += (1 * potentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(potentials);
|
||||
}
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
size += (1 * notes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(notes);
|
||||
}
|
||||
return size;
|
||||
@@ -2061,6 +2116,15 @@ public final class ScoreBossRank {
|
||||
levelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 72) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 72: {
|
||||
// skillScore
|
||||
skillScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
@@ -2068,7 +2132,7 @@ public final class ScoreBossRank {
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
tag = input.readTag();
|
||||
if (tag != 42) {
|
||||
break;
|
||||
@@ -2077,7 +2141,7 @@ public final class ScoreBossRank {
|
||||
case 42: {
|
||||
// discs [packed=true]
|
||||
input.readPackedUInt32(discs, tag);
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
tag = input.readTag();
|
||||
if (tag != 66) {
|
||||
break;
|
||||
@@ -2086,7 +2150,7 @@ public final class ScoreBossRank {
|
||||
case 66: {
|
||||
// activeSecondaryIds [packed=true]
|
||||
input.readPackedUInt32(activeSecondaryIds, tag);
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
tag = input.readTag();
|
||||
if (tag != 18) {
|
||||
break;
|
||||
@@ -2095,7 +2159,7 @@ public final class ScoreBossRank {
|
||||
case 18: {
|
||||
// chars
|
||||
tag = input.readRepeatedMessage(chars, tag);
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
if (tag != 50) {
|
||||
break;
|
||||
}
|
||||
@@ -2103,7 +2167,7 @@ public final class ScoreBossRank {
|
||||
case 50: {
|
||||
// potentials
|
||||
tag = input.readRepeatedMessage(potentials, tag);
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
if (tag != 58) {
|
||||
break;
|
||||
}
|
||||
@@ -2111,7 +2175,7 @@ public final class ScoreBossRank {
|
||||
case 58: {
|
||||
// notes
|
||||
tag = input.readRepeatedMessage(notes, tag);
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
@@ -2129,13 +2193,13 @@ public final class ScoreBossRank {
|
||||
case 40: {
|
||||
// discs [packed=false]
|
||||
tag = input.readRepeatedUInt32(discs, tag);
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
// activeSecondaryIds [packed=false]
|
||||
tag = input.readRepeatedUInt32(activeSecondaryIds, tag);
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2155,21 +2219,24 @@ public final class ScoreBossRank {
|
||||
output.writeUInt32(FieldNames.levelId, levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
output.writeUInt32(FieldNames.skillScore, skillScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRepeatedUInt32(FieldNames.discs, discs);
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds);
|
||||
output.writeRepeatedUInt32(FieldNames.discs, discs);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.chars, chars);
|
||||
output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.potentials, potentials);
|
||||
output.writeRepeatedMessage(FieldNames.chars, chars);
|
||||
}
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.potentials, potentials);
|
||||
}
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.notes, notes);
|
||||
}
|
||||
output.endObject();
|
||||
@@ -2215,11 +2282,22 @@ public final class ScoreBossRank {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -705549599: {
|
||||
if (input.isAtField(FieldNames.skillScore)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
skillScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2230,7 +2308,7 @@ public final class ScoreBossRank {
|
||||
if (input.isAtField(FieldNames.discs)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedUInt32(discs);
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2241,7 +2319,7 @@ public final class ScoreBossRank {
|
||||
if (input.isAtField(FieldNames.activeSecondaryIds)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedUInt32(activeSecondaryIds);
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2252,7 +2330,7 @@ public final class ScoreBossRank {
|
||||
if (input.isAtField(FieldNames.chars)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(chars);
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2263,7 +2341,7 @@ public final class ScoreBossRank {
|
||||
if (input.isAtField(FieldNames.potentials)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(potentials);
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2274,7 +2352,7 @@ public final class ScoreBossRank {
|
||||
if (input.isAtField(FieldNames.notes)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(notes);
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -2340,6 +2418,8 @@ public final class ScoreBossRank {
|
||||
|
||||
static final FieldName levelId = FieldName.forField("LevelId");
|
||||
|
||||
static final FieldName skillScore = FieldName.forField("SkillScore");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
|
||||
static final FieldName discs = FieldName.forField("Discs");
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,463 @@
|
||||
// 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 SoldierGiveUp {
|
||||
/**
|
||||
* Protobuf type {@code SoldierGiveUpResp}
|
||||
*/
|
||||
public static final class SoldierGiveUpResp extends ProtoMessage<SoldierGiveUpResp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 1;</code>
|
||||
*/
|
||||
private int totalScore;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 RewardScore = 2;</code>
|
||||
*/
|
||||
private int rewardScore;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private SoldierGiveUpResp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code SoldierGiveUpResp}
|
||||
*/
|
||||
public static SoldierGiveUpResp newInstance() {
|
||||
return new SoldierGiveUpResp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 1;</code>
|
||||
* @return whether the totalScore field is set
|
||||
*/
|
||||
public boolean hasTotalScore() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp clearTotalScore() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
totalScore = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 1;</code>
|
||||
* @return the totalScore
|
||||
*/
|
||||
public int getTotalScore() {
|
||||
return totalScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 TotalScore = 1;</code>
|
||||
* @param value the totalScore to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp setTotalScore(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
totalScore = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 RewardScore = 2;</code>
|
||||
* @return whether the rewardScore field is set
|
||||
*/
|
||||
public boolean hasRewardScore() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 RewardScore = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp clearRewardScore() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
rewardScore = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 RewardScore = 2;</code>
|
||||
* @return the rewardScore
|
||||
*/
|
||||
public int getRewardScore() {
|
||||
return rewardScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 RewardScore = 2;</code>
|
||||
* @param value the rewardScore to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp setRewardScore(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
rewardScore = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp clearNextPackage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
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_ |= 0x00000004;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierGiveUpResp setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp copyFrom(final SoldierGiveUpResp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
totalScore = other.totalScore;
|
||||
rewardScore = other.rewardScore;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp mergeFrom(final SoldierGiveUpResp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasTotalScore()) {
|
||||
setTotalScore(other.totalScore);
|
||||
}
|
||||
if (other.hasRewardScore()) {
|
||||
setRewardScore(other.rewardScore);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
totalScore = 0;
|
||||
rewardScore = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp 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 SoldierGiveUpResp)) {
|
||||
return false;
|
||||
}
|
||||
SoldierGiveUpResp other = (SoldierGiveUpResp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasTotalScore() || totalScore == other.totalScore)
|
||||
&& (!hasRewardScore() || rewardScore == other.rewardScore)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(totalScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(rewardScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public SoldierGiveUpResp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// totalScore
|
||||
totalScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// rewardScore
|
||||
rewardScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.totalScore, totalScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.rewardScore, rewardScore);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1276492238: {
|
||||
if (input.isAtField(FieldNames.totalScore)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
totalScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1740125053: {
|
||||
if (input.isAtField(FieldNames.rewardScore)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
rewardScore = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp clone() {
|
||||
return new SoldierGiveUpResp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static SoldierGiveUpResp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierGiveUpResp parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierGiveUpResp parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating SoldierGiveUpResp messages
|
||||
*/
|
||||
public static MessageFactory<SoldierGiveUpResp> getFactory() {
|
||||
return SoldierGiveUpRespFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum SoldierGiveUpRespFactory implements MessageFactory<SoldierGiveUpResp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public SoldierGiveUpResp create() {
|
||||
return SoldierGiveUpResp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName totalScore = FieldName.forField("TotalScore");
|
||||
|
||||
static final FieldName rewardScore = FieldName.forField("RewardScore");
|
||||
|
||||
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 SoldierInfo {
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,463 @@
|
||||
// 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 SoldierPartnerTrace {
|
||||
/**
|
||||
* Protobuf type {@code SoldierPartnerTraceReq}
|
||||
*/
|
||||
public static final class SoldierPartnerTraceReq extends ProtoMessage<SoldierPartnerTraceReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PartnerType = 1;</code>
|
||||
*/
|
||||
private int partnerType;
|
||||
|
||||
/**
|
||||
* <code>optional bool Trace = 2;</code>
|
||||
*/
|
||||
private boolean trace;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private SoldierPartnerTraceReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code SoldierPartnerTraceReq}
|
||||
*/
|
||||
public static SoldierPartnerTraceReq newInstance() {
|
||||
return new SoldierPartnerTraceReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PartnerType = 1;</code>
|
||||
* @return whether the partnerType field is set
|
||||
*/
|
||||
public boolean hasPartnerType() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PartnerType = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq clearPartnerType() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
partnerType = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PartnerType = 1;</code>
|
||||
* @return the partnerType
|
||||
*/
|
||||
public int getPartnerType() {
|
||||
return partnerType;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 PartnerType = 1;</code>
|
||||
* @param value the partnerType to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq setPartnerType(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
partnerType = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bool Trace = 2;</code>
|
||||
* @return whether the trace field is set
|
||||
*/
|
||||
public boolean hasTrace() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bool Trace = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq clearTrace() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
trace = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bool Trace = 2;</code>
|
||||
* @return the trace
|
||||
*/
|
||||
public boolean getTrace() {
|
||||
return trace;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bool Trace = 2;</code>
|
||||
* @param value the trace to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq setTrace(final boolean value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
trace = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
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_ |= 0x00000004;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierPartnerTraceReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq copyFrom(final SoldierPartnerTraceReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
partnerType = other.partnerType;
|
||||
trace = other.trace;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq mergeFrom(final SoldierPartnerTraceReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasPartnerType()) {
|
||||
setPartnerType(other.partnerType);
|
||||
}
|
||||
if (other.hasTrace()) {
|
||||
setTrace(other.trace);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
partnerType = 0;
|
||||
trace = false;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq 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 SoldierPartnerTraceReq)) {
|
||||
return false;
|
||||
}
|
||||
SoldierPartnerTraceReq other = (SoldierPartnerTraceReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasPartnerType() || partnerType == other.partnerType)
|
||||
&& (!hasTrace() || trace == other.trace)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(partnerType);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeBoolNoTag(trace);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(partnerType);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 2;
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public SoldierPartnerTraceReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// partnerType
|
||||
partnerType = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// trace
|
||||
trace = input.readBool();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.partnerType, partnerType);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeBool(FieldNames.trace, trace);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -1652366334: {
|
||||
if (input.isAtField(FieldNames.partnerType)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
partnerType = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 81068325: {
|
||||
if (input.isAtField(FieldNames.trace)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
trace = input.readBool();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq clone() {
|
||||
return new SoldierPartnerTraceReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static SoldierPartnerTraceReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new SoldierPartnerTraceReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierPartnerTraceReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierPartnerTraceReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierPartnerTraceReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierPartnerTraceReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating SoldierPartnerTraceReq messages
|
||||
*/
|
||||
public static MessageFactory<SoldierPartnerTraceReq> getFactory() {
|
||||
return SoldierPartnerTraceReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum SoldierPartnerTraceReqFactory implements MessageFactory<SoldierPartnerTraceReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public SoldierPartnerTraceReq create() {
|
||||
return SoldierPartnerTraceReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName partnerType = FieldName.forField("PartnerType");
|
||||
|
||||
static final FieldName trace = FieldName.forField("Trace");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,404 @@
|
||||
// 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 SoldierStepOut {
|
||||
/**
|
||||
* Protobuf type {@code SoldierStepOutReq}
|
||||
*/
|
||||
public static final class SoldierStepOutReq extends ProtoMessage<SoldierStepOutReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional .SoldierDeploy Deploy = 1;</code>
|
||||
*/
|
||||
private final PublicSoldier.SoldierDeploy deploy = PublicSoldier.SoldierDeploy.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private SoldierStepOutReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code SoldierStepOutReq}
|
||||
*/
|
||||
public static SoldierStepOutReq newInstance() {
|
||||
return new SoldierStepOutReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .SoldierDeploy Deploy = 1;</code>
|
||||
* @return whether the deploy field is set
|
||||
*/
|
||||
public boolean hasDeploy() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .SoldierDeploy Deploy = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SoldierStepOutReq clearDeploy() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
deploy.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .SoldierDeploy Deploy = 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 #getMutableDeploy()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public PublicSoldier.SoldierDeploy getDeploy() {
|
||||
return deploy;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .SoldierDeploy Deploy = 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 PublicSoldier.SoldierDeploy getMutableDeploy() {
|
||||
bitField0_ |= 0x00000001;
|
||||
return deploy;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .SoldierDeploy Deploy = 1;</code>
|
||||
* @param value the deploy to set
|
||||
* @return this
|
||||
*/
|
||||
public SoldierStepOutReq setDeploy(final PublicSoldier.SoldierDeploy value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
deploy.copyFrom(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 SoldierStepOutReq 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 SoldierStepOutReq 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 SoldierStepOutReq 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 SoldierStepOutReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000002;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq copyFrom(final SoldierStepOutReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
deploy.copyFrom(other.deploy);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq mergeFrom(final SoldierStepOutReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasDeploy()) {
|
||||
getMutableDeploy().mergeFrom(other.deploy);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
deploy.clear();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
deploy.clearQuick();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof SoldierStepOutReq)) {
|
||||
return false;
|
||||
}
|
||||
SoldierStepOutReq other = (SoldierStepOutReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasDeploy() || deploy.equals(other.deploy))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 10);
|
||||
output.writeMessageNoTag(deploy);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(deploy);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public SoldierStepOutReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 10: {
|
||||
// deploy
|
||||
input.readMessage(deploy);
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeMessage(FieldNames.deploy, deploy);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 2043501831: {
|
||||
if (input.isAtField(FieldNames.deploy)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(deploy);
|
||||
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;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq clone() {
|
||||
return new SoldierStepOutReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static SoldierStepOutReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new SoldierStepOutReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierStepOutReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierStepOutReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static SoldierStepOutReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SoldierStepOutReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating SoldierStepOutReq messages
|
||||
*/
|
||||
public static MessageFactory<SoldierStepOutReq> getFactory() {
|
||||
return SoldierStepOutReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum SoldierStepOutReqFactory implements MessageFactory<SoldierStepOutReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public SoldierStepOutReq create() {
|
||||
return SoldierStepOutReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName deploy = FieldName.forField("Deploy");
|
||||
|
||||
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 TraceHuntApply {
|
||||
/**
|
||||
* Protobuf type {@code TraceHuntApplyReq}
|
||||
*/
|
||||
public static final class TraceHuntApplyReq extends ProtoMessage<TraceHuntApplyReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional int64 BossCreateTime = 4;</code>
|
||||
*/
|
||||
private long bossCreateTime;
|
||||
|
||||
/**
|
||||
* <code>optional uint64 OwnerUID = 1;</code>
|
||||
*/
|
||||
private long ownerUID;
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildID = 3;</code>
|
||||
*/
|
||||
private long buildID;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 2;</code>
|
||||
*/
|
||||
private int bossID;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private TraceHuntApplyReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code TraceHuntApplyReq}
|
||||
*/
|
||||
public static TraceHuntApplyReq newInstance() {
|
||||
return new TraceHuntApplyReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional int64 BossCreateTime = 4;</code>
|
||||
* @return whether the bossCreateTime field is set
|
||||
*/
|
||||
public boolean hasBossCreateTime() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional int64 BossCreateTime = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq clearBossCreateTime() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
bossCreateTime = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional int64 BossCreateTime = 4;</code>
|
||||
* @return the bossCreateTime
|
||||
*/
|
||||
public long getBossCreateTime() {
|
||||
return bossCreateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional int64 BossCreateTime = 4;</code>
|
||||
* @param value the bossCreateTime to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq setBossCreateTime(final long value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
bossCreateTime = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 OwnerUID = 1;</code>
|
||||
* @return whether the ownerUID field is set
|
||||
*/
|
||||
public boolean hasOwnerUID() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 OwnerUID = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq clearOwnerUID() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
ownerUID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 OwnerUID = 1;</code>
|
||||
* @return the ownerUID
|
||||
*/
|
||||
public long getOwnerUID() {
|
||||
return ownerUID;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 OwnerUID = 1;</code>
|
||||
* @param value the ownerUID to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq setOwnerUID(final long value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
ownerUID = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildID = 3;</code>
|
||||
* @return whether the buildID field is set
|
||||
*/
|
||||
public boolean hasBuildID() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildID = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq clearBuildID() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
buildID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildID = 3;</code>
|
||||
* @return the buildID
|
||||
*/
|
||||
public long getBuildID() {
|
||||
return buildID;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildID = 3;</code>
|
||||
* @param value the buildID to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq setBuildID(final long value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
buildID = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 2;</code>
|
||||
* @return whether the bossID field is set
|
||||
*/
|
||||
public boolean hasBossID() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq clearBossID() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
bossID = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 2;</code>
|
||||
* @return the bossID
|
||||
*/
|
||||
public int getBossID() {
|
||||
return bossID;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 2;</code>
|
||||
* @param value the bossID to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntApplyReq setBossID(final int value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
bossID = 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 TraceHuntApplyReq 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 TraceHuntApplyReq 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 TraceHuntApplyReq 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 TraceHuntApplyReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000010;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntApplyReq copyFrom(final TraceHuntApplyReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
bossCreateTime = other.bossCreateTime;
|
||||
ownerUID = other.ownerUID;
|
||||
buildID = other.buildID;
|
||||
bossID = other.bossID;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntApplyReq mergeFrom(final TraceHuntApplyReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasBossCreateTime()) {
|
||||
setBossCreateTime(other.bossCreateTime);
|
||||
}
|
||||
if (other.hasOwnerUID()) {
|
||||
setOwnerUID(other.ownerUID);
|
||||
}
|
||||
if (other.hasBuildID()) {
|
||||
setBuildID(other.buildID);
|
||||
}
|
||||
if (other.hasBossID()) {
|
||||
setBossID(other.bossID);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntApplyReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
bossCreateTime = 0L;
|
||||
ownerUID = 0L;
|
||||
buildID = 0L;
|
||||
bossID = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntApplyReq 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 TraceHuntApplyReq)) {
|
||||
return false;
|
||||
}
|
||||
TraceHuntApplyReq other = (TraceHuntApplyReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime)
|
||||
&& (!hasOwnerUID() || ownerUID == other.ownerUID)
|
||||
&& (!hasBuildID() || buildID == other.buildID)
|
||||
&& (!hasBossID() || bossID == other.bossID)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 32);
|
||||
output.writeInt64NoTag(bossCreateTime);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt64NoTag(ownerUID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt64NoTag(buildID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(bossID);
|
||||
}
|
||||
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.computeInt64SizeNoTag(bossCreateTime);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt64SizeNoTag(ownerUID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt64SizeNoTag(buildID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public TraceHuntApplyReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 32: {
|
||||
// bossCreateTime
|
||||
bossCreateTime = input.readInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 8) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 8: {
|
||||
// ownerUID
|
||||
ownerUID = input.readUInt64();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// buildID
|
||||
buildID = input.readUInt64();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// bossID
|
||||
bossID = 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.writeInt64(FieldNames.bossCreateTime, bossCreateTime);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt64(FieldNames.ownerUID, ownerUID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt64(FieldNames.buildID, buildID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeUInt32(FieldNames.bossID, bossID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntApplyReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -973747882: {
|
||||
if (input.isAtField(FieldNames.bossCreateTime)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
bossCreateTime = input.readInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1727781053: {
|
||||
if (input.isAtField(FieldNames.ownerUID)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
ownerUID = input.readUInt64();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1895597033: {
|
||||
if (input.isAtField(FieldNames.buildID)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
buildID = input.readUInt64();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1995573608: {
|
||||
if (input.isAtField(FieldNames.bossID)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
bossID = 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 TraceHuntApplyReq clone() {
|
||||
return new TraceHuntApplyReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static TraceHuntApplyReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntApplyReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static TraceHuntApplyReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntApplyReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static TraceHuntApplyReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntApplyReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating TraceHuntApplyReq messages
|
||||
*/
|
||||
public static MessageFactory<TraceHuntApplyReq> getFactory() {
|
||||
return TraceHuntApplyReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum TraceHuntApplyReqFactory implements MessageFactory<TraceHuntApplyReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public TraceHuntApplyReq create() {
|
||||
return TraceHuntApplyReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName bossCreateTime = FieldName.forField("BossCreateTime");
|
||||
|
||||
static final FieldName ownerUID = FieldName.forField("OwnerUID");
|
||||
|
||||
static final FieldName buildID = FieldName.forField("BuildID");
|
||||
|
||||
static final FieldName bossID = FieldName.forField("BossID");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,566 @@
|
||||
// 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 TraceHuntBossRewardReceive {
|
||||
/**
|
||||
* Protobuf type {@code TraceHuntBossRewardReceiveResp}
|
||||
*/
|
||||
public static final class TraceHuntBossRewardReceiveResp extends ProtoMessage<TraceHuntBossRewardReceiveResp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Level = 1;</code>
|
||||
*/
|
||||
private int level;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Exp = 2;</code>
|
||||
*/
|
||||
private int exp;
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 3;</code>
|
||||
*/
|
||||
private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private TraceHuntBossRewardReceiveResp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code TraceHuntBossRewardReceiveResp}
|
||||
*/
|
||||
public static TraceHuntBossRewardReceiveResp newInstance() {
|
||||
return new TraceHuntBossRewardReceiveResp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Level = 1;</code>
|
||||
* @return whether the level field is set
|
||||
*/
|
||||
public boolean hasLevel() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Level = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntBossRewardReceiveResp clearLevel() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
level = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Level = 1;</code>
|
||||
* @return the level
|
||||
*/
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Level = 1;</code>
|
||||
* @param value the level to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntBossRewardReceiveResp setLevel(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
level = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Exp = 2;</code>
|
||||
* @return whether the exp field is set
|
||||
*/
|
||||
public boolean hasExp() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Exp = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntBossRewardReceiveResp clearExp() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
exp = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Exp = 2;</code>
|
||||
* @return the exp
|
||||
*/
|
||||
public int getExp() {
|
||||
return exp;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Exp = 2;</code>
|
||||
* @param value the exp to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntBossRewardReceiveResp setExp(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
exp = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 3;</code>
|
||||
* @return whether the changeInfo field is set
|
||||
*/
|
||||
public boolean hasChangeInfo() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntBossRewardReceiveResp clearChangeInfo() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
changeInfo.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 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 #getMutableChangeInfo()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ChangeInfo getChangeInfo() {
|
||||
return changeInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 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 Public.ChangeInfo getMutableChangeInfo() {
|
||||
bitField0_ |= 0x00000004;
|
||||
return changeInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 3;</code>
|
||||
* @param value the changeInfo to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntBossRewardReceiveResp setChangeInfo(final Public.ChangeInfo value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
changeInfo.copyFrom(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 TraceHuntBossRewardReceiveResp 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 TraceHuntBossRewardReceiveResp 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 TraceHuntBossRewardReceiveResp 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 TraceHuntBossRewardReceiveResp setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp copyFrom(final TraceHuntBossRewardReceiveResp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
level = other.level;
|
||||
exp = other.exp;
|
||||
changeInfo.copyFrom(other.changeInfo);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp mergeFrom(final TraceHuntBossRewardReceiveResp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasLevel()) {
|
||||
setLevel(other.level);
|
||||
}
|
||||
if (other.hasExp()) {
|
||||
setExp(other.exp);
|
||||
}
|
||||
if (other.hasChangeInfo()) {
|
||||
getMutableChangeInfo().mergeFrom(other.changeInfo);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
level = 0;
|
||||
exp = 0;
|
||||
changeInfo.clear();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
changeInfo.clearQuick();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof TraceHuntBossRewardReceiveResp)) {
|
||||
return false;
|
||||
}
|
||||
TraceHuntBossRewardReceiveResp other = (TraceHuntBossRewardReceiveResp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasLevel() || level == other.level)
|
||||
&& (!hasExp() || exp == other.exp)
|
||||
&& (!hasChangeInfo() || changeInfo.equals(other.changeInfo))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(level);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(exp);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 26);
|
||||
output.writeMessageNoTag(changeInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(exp);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public TraceHuntBossRewardReceiveResp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// level
|
||||
level = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// exp
|
||||
exp = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 26) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 26: {
|
||||
// changeInfo
|
||||
input.readMessage(changeInfo);
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.level, level);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.exp, exp);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeMessage(FieldNames.changeInfo, changeInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 73313124: {
|
||||
if (input.isAtField(FieldNames.level)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
level = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 70141: {
|
||||
if (input.isAtField(FieldNames.exp)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
exp = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -138776418: {
|
||||
if (input.isAtField(FieldNames.changeInfo)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(changeInfo);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp clone() {
|
||||
return new TraceHuntBossRewardReceiveResp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static TraceHuntBossRewardReceiveResp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntBossRewardReceiveResp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static TraceHuntBossRewardReceiveResp parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntBossRewardReceiveResp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static TraceHuntBossRewardReceiveResp parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntBossRewardReceiveResp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating TraceHuntBossRewardReceiveResp messages
|
||||
*/
|
||||
public static MessageFactory<TraceHuntBossRewardReceiveResp> getFactory() {
|
||||
return TraceHuntBossRewardReceiveRespFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum TraceHuntBossRewardReceiveRespFactory implements MessageFactory<TraceHuntBossRewardReceiveResp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public TraceHuntBossRewardReceiveResp create() {
|
||||
return TraceHuntBossRewardReceiveResp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName level = FieldName.forField("Level");
|
||||
|
||||
static final FieldName exp = FieldName.forField("Exp");
|
||||
|
||||
static final FieldName changeInfo = FieldName.forField("ChangeInfo");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,598 @@
|
||||
// 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 TraceHuntTrace {
|
||||
/**
|
||||
* Protobuf type {@code TraceHuntTraceResp}
|
||||
*/
|
||||
public static final class TraceHuntTraceResp extends ProtoMessage<TraceHuntTraceResp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 1;</code>
|
||||
*/
|
||||
private int bossID;
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 2;</code>
|
||||
*/
|
||||
private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 3;</code>
|
||||
*/
|
||||
private final RepeatedMessage<Public.TraceHuntLogEntry> traceLog = RepeatedMessage.newEmptyInstance(Public.TraceHuntLogEntry.getFactory());
|
||||
|
||||
private TraceHuntTraceResp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code TraceHuntTraceResp}
|
||||
*/
|
||||
public static TraceHuntTraceResp newInstance() {
|
||||
return new TraceHuntTraceResp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 1;</code>
|
||||
* @return whether the bossID field is set
|
||||
*/
|
||||
public boolean hasBossID() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp clearBossID() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
bossID = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 1;</code>
|
||||
* @return the bossID
|
||||
*/
|
||||
public int getBossID() {
|
||||
return bossID;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 BossID = 1;</code>
|
||||
* @param value the bossID to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp setBossID(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
bossID = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 2;</code>
|
||||
* @return whether the changeInfo field is set
|
||||
*/
|
||||
public boolean hasChangeInfo() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp clearChangeInfo() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
changeInfo.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 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 #getMutableChangeInfo()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ChangeInfo getChangeInfo() {
|
||||
return changeInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 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 Public.ChangeInfo getMutableChangeInfo() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return changeInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ChangeInfo ChangeInfo = 2;</code>
|
||||
* @param value the changeInfo to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp setChangeInfo(final Public.ChangeInfo value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
changeInfo.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp clearNextPackage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
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_ |= 0x00000004;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 3;</code>
|
||||
* @return whether the traceLog field is set
|
||||
*/
|
||||
public boolean hasTraceLog() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp clearTraceLog() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
traceLog.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 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 #getMutableTraceLog()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<Public.TraceHuntLogEntry> getTraceLog() {
|
||||
return traceLog;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 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<Public.TraceHuntLogEntry> getMutableTraceLog() {
|
||||
bitField0_ |= 0x00000008;
|
||||
return traceLog;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 3;</code>
|
||||
* @param value the traceLog to add
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp addTraceLog(final Public.TraceHuntLogEntry value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
traceLog.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .TraceHuntLogEntry TraceLog = 3;</code>
|
||||
* @param values the traceLog to add
|
||||
* @return this
|
||||
*/
|
||||
public TraceHuntTraceResp addAllTraceLog(final Public.TraceHuntLogEntry... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
traceLog.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp copyFrom(final TraceHuntTraceResp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
bossID = other.bossID;
|
||||
changeInfo.copyFrom(other.changeInfo);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
traceLog.copyFrom(other.traceLog);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp mergeFrom(final TraceHuntTraceResp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasBossID()) {
|
||||
setBossID(other.bossID);
|
||||
}
|
||||
if (other.hasChangeInfo()) {
|
||||
getMutableChangeInfo().mergeFrom(other.changeInfo);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
if (other.hasTraceLog()) {
|
||||
getMutableTraceLog().addAll(other.traceLog);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
bossID = 0;
|
||||
changeInfo.clear();
|
||||
nextPackage.clear();
|
||||
traceLog.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
changeInfo.clearQuick();
|
||||
nextPackage.clear();
|
||||
traceLog.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof TraceHuntTraceResp)) {
|
||||
return false;
|
||||
}
|
||||
TraceHuntTraceResp other = (TraceHuntTraceResp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasBossID() || bossID == other.bossID)
|
||||
&& (!hasChangeInfo() || changeInfo.equals(other.changeInfo))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||
&& (!hasTraceLog() || traceLog.equals(other.traceLog));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(bossID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 18);
|
||||
output.writeMessageNoTag(changeInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
for (int i = 0; i < traceLog.length(); i++) {
|
||||
output.writeRawByte((byte) 26);
|
||||
output.writeMessageNoTag(traceLog.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += (1 * traceLog.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(traceLog);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public TraceHuntTraceResp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// bossID
|
||||
bossID = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 18) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 18: {
|
||||
// changeInfo
|
||||
input.readMessage(changeInfo);
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 26) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 26: {
|
||||
// traceLog
|
||||
tag = input.readRepeatedMessage(traceLog, tag);
|
||||
bitField0_ |= 0x00000008;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.bossID, bossID);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeMessage(FieldNames.changeInfo, changeInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.traceLog, traceLog);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1995573608: {
|
||||
if (input.isAtField(FieldNames.bossID)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
bossID = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -138776418: {
|
||||
if (input.isAtField(FieldNames.changeInfo)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(changeInfo);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1334926303: {
|
||||
if (input.isAtField(FieldNames.traceLog)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(traceLog);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp clone() {
|
||||
return new TraceHuntTraceResp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static TraceHuntTraceResp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntTraceResp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static TraceHuntTraceResp parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntTraceResp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static TraceHuntTraceResp parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new TraceHuntTraceResp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating TraceHuntTraceResp messages
|
||||
*/
|
||||
public static MessageFactory<TraceHuntTraceResp> getFactory() {
|
||||
return TraceHuntTraceRespFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum TraceHuntTraceRespFactory implements MessageFactory<TraceHuntTraceResp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public TraceHuntTraceResp create() {
|
||||
return TraceHuntTraceResp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName bossID = FieldName.forField("BossID");
|
||||
|
||||
static final FieldName changeInfo = FieldName.forField("ChangeInfo");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
|
||||
static final FieldName traceLog = FieldName.forField("TraceLog");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap;
|
||||
import emu.nebula.util.WeightedList;
|
||||
|
||||
public class GameConstants {
|
||||
public static final String VERSION = "1.12.0";
|
||||
public static final String VERSION = "1.13.0";
|
||||
public static int DATA_VERSION = 0;
|
||||
|
||||
public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
|
||||
|
||||
@@ -65,9 +65,14 @@ public class ActivityModule extends GameContextModule {
|
||||
//this.activities.add(1010804);
|
||||
|
||||
// A Sandstorm of Gunfire
|
||||
this.activities.add(1010901);
|
||||
this.activities.add(1010903);
|
||||
this.activities.add(1010904);
|
||||
//this.activities.add(1010901);
|
||||
//this.activities.add(1010903);
|
||||
//this.activities.add(1010904);
|
||||
|
||||
// Checking In for A Cozy Summer
|
||||
this.activities.add(2010301);
|
||||
this.activities.add(2010303);
|
||||
this.activities.add(2010304);
|
||||
|
||||
// ===== Joint Drills (Finale Echoing) =====
|
||||
//this.activities.add(510003); // Causes soft lock in event screen
|
||||
|
||||
@@ -37,7 +37,8 @@ public enum ItemSubType {
|
||||
PlayHead (45),
|
||||
CharacterSkin (46),
|
||||
SouvenirEnergyItem (47),
|
||||
Build (48);
|
||||
Build (48),
|
||||
Chess (49);
|
||||
|
||||
@Getter
|
||||
private final int value;
|
||||
|
||||
@@ -20,7 +20,8 @@ public enum ItemType {
|
||||
HeadItem (14),
|
||||
LevelHonor (15),
|
||||
TraceRequest (16),
|
||||
HuntPermit (17);
|
||||
HuntPermit (17),
|
||||
SoldierItem (18);
|
||||
|
||||
@Getter
|
||||
private final int value;
|
||||
|
||||
@@ -1234,6 +1234,7 @@ public class Player implements GameDatabaseObject {
|
||||
state.getMutableStarTowerBook();
|
||||
state.getMutableScoreBoss();
|
||||
state.getMutableCharAffinityRewards();
|
||||
state.getMutableTraceHunt();
|
||||
|
||||
// Force complete tutorials
|
||||
for (var guide : GameData.getGuideGroupDataTable()) {
|
||||
@@ -1305,6 +1306,10 @@ public class Player implements GameDatabaseObject {
|
||||
proto.addActivities(activity.toProto());
|
||||
}
|
||||
|
||||
// Trace hunt
|
||||
proto.getMutableHuntPermit();
|
||||
proto.getMutableTraceRequest();
|
||||
|
||||
// Complete
|
||||
return proto;
|
||||
}
|
||||
|
||||
@@ -97,6 +97,7 @@ public enum QuestCondition {
|
||||
DiscWithSpecificQuantityPhaseAndAttr (122),
|
||||
WeekBossClearTotal (123),
|
||||
ActivityStoryReadStory (124),
|
||||
ActivitySoldierScore (158),
|
||||
ClientReport (200),
|
||||
TowerBattleTimes (501),
|
||||
TowerBossChallengeSpecificHighRewardWithTotal (502),
|
||||
|
||||
@@ -3,6 +3,12 @@ package emu.nebula.net;
|
||||
public class NetMsgId {
|
||||
public static final int none = 0;
|
||||
|
||||
public static final int clear_all_activity_iceCream_levels_notify = -10057;
|
||||
public static final int sd_soldier_effect_notify = -10056;
|
||||
public static final int sd_soldier_info_notify = -10055;
|
||||
public static final int sd_shop_data_notify = -10054;
|
||||
public static final int sd_item_change_notify = -10053;
|
||||
public static final int sd_buff_card_add_notify = -10052;
|
||||
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_story_set_notify = -10049;
|
||||
@@ -192,6 +198,9 @@ public class NetMsgId {
|
||||
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 activity_soldier_quest_reward_receive_req = 1601;
|
||||
public static final int activity_soldier_quest_reward_receive_succeed_ack = 1602;
|
||||
public static final int activity_soldier_quest_reward_receive_failed_ack = 1603;
|
||||
public static final int player_formation_req = 2001;
|
||||
public static final int player_formation_succeed_ack = 2002;
|
||||
public static final int player_formation_failed_ack = 2003;
|
||||
@@ -462,6 +471,42 @@ public class NetMsgId {
|
||||
public static final int mall_shop_order_req = 5128;
|
||||
public static final int mall_shop_order_succeed_ack = 5129;
|
||||
public static final int mall_shop_order_failed_ack = 5130;
|
||||
public static final int trace_hunt_info_req = 5201;
|
||||
public static final int trace_hunt_info_succeed_ack = 5202;
|
||||
public static final int trace_hunt_info_failed_ack = 5203;
|
||||
public static final int trace_hunt_apply_req = 5204;
|
||||
public static final int trace_hunt_apply_succeed_ack = 5205;
|
||||
public static final int trace_hunt_apply_failed_ack = 5206;
|
||||
public static final int trace_hunt_settle_req = 5207;
|
||||
public static final int trace_hunt_settle_succeed_ack = 5208;
|
||||
public static final int trace_hunt_settle_failed_ack = 5209;
|
||||
public static final int trace_hunt_recommend_req = 5210;
|
||||
public static final int trace_hunt_recommend_succeed_ack = 5211;
|
||||
public static final int trace_hunt_recommend_failed_ack = 5212;
|
||||
public static final int trace_hunt_boss_reward_receive_req = 5213;
|
||||
public static final int trace_hunt_boss_reward_receive_succeed_ack = 5214;
|
||||
public static final int trace_hunt_boss_reward_receive_failed_ack = 5215;
|
||||
public static final int trace_hunt_trace_req = 5216;
|
||||
public static final int trace_hunt_trace_succeed_ack = 5217;
|
||||
public static final int trace_hunt_trace_failed_ack = 5218;
|
||||
public static final int soldier_apply_req = 5301;
|
||||
public static final int soldier_apply_succeed_ack = 5302;
|
||||
public static final int soldier_apply_failed_ack = 5303;
|
||||
public static final int soldier_info_req = 5304;
|
||||
public static final int soldier_info_succeed_ack = 5305;
|
||||
public static final int soldier_info_failed_ack = 5306;
|
||||
public static final int soldier_interact_req = 5307;
|
||||
public static final int soldier_interact_succeed_ack = 5308;
|
||||
public static final int soldier_interact_failed_ack = 5309;
|
||||
public static final int soldier_give_up_req = 5310;
|
||||
public static final int soldier_give_up_succeed_ack = 5311;
|
||||
public static final int soldier_give_up_failed_ack = 5312;
|
||||
public static final int soldier_step_out_req = 5313;
|
||||
public static final int soldier_step_out_succeed_ack = 5314;
|
||||
public static final int soldier_step_out_failed_ack = 5315;
|
||||
public static final int soldier_partner_trace_req = 5316;
|
||||
public static final int soldier_partner_trace_succeed_ack = 5317;
|
||||
public static final int soldier_partner_trace_failed_ack = 5318;
|
||||
public static final int gacha_spin_req = 6001;
|
||||
public static final int gacha_spin_succeed_ack = 6002;
|
||||
public static final int gacha_spin_failed_ack = 6003;
|
||||
@@ -703,6 +748,9 @@ public class NetMsgId {
|
||||
public static final int activity_double_quest_reward_receive_req = 8407;
|
||||
public static final int activity_double_quest_reward_receive_succeed_ack = 8408;
|
||||
public static final int activity_double_quest_reward_receive_failed_ack = 8409;
|
||||
public static final int activity_ice_cream_level_settle_req = 8411;
|
||||
public static final int activity_ice_cream_level_settle_succeed_ack = 8412;
|
||||
public static final int activity_ice_cream_level_settle_failed_ack = 8413;
|
||||
public static final int mail_list_req = 9001;
|
||||
public static final int mail_list_succeed_ack = 9002;
|
||||
public static final int mail_list_failed_ack = 9003;
|
||||
@@ -772,6 +820,9 @@ public class NetMsgId {
|
||||
public static final int phone_contacts_top_req = 9207;
|
||||
public static final int phone_contacts_top_succeed_ack = 9208;
|
||||
public static final int phone_contacts_top_failed_ack = 9209;
|
||||
public static final int activity_share_reward_receive_req = 9210;
|
||||
public static final int activity_share_reward_receive_succeed_ack = 9211;
|
||||
public static final int activity_share_reward_receive_failed_ack = 9212;
|
||||
public static final int talent_unlock_req = 9301;
|
||||
public static final int talent_unlock_succeed_ack = 9302;
|
||||
public static final int talent_unlock_failed_ack = 9303;
|
||||
@@ -886,6 +937,9 @@ public class NetMsgId {
|
||||
public static final int item_expired_change_notify = 10054;
|
||||
public static final int milkout_character_unlock_notify = 10055;
|
||||
public static final int activity_double_reward_times_notify = 10056;
|
||||
public static final int trace_hunt_new_control_notify = 10057;
|
||||
public static final int trace_hunt_state_notify = 10058;
|
||||
public static final int trace_hunt_item_change_notify = 10060;
|
||||
public static final int activity_mining_apply_req = 11001;
|
||||
public static final int activity_mining_apply_succeed_ack = 11002;
|
||||
public static final int activity_mining_apply_failed_ack = 11003;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"global": 123,
|
||||
"kr": 129,
|
||||
"jp": 127,
|
||||
"tw": 133,
|
||||
"cn": 123
|
||||
"global": 124,
|
||||
"kr": 130,
|
||||
"jp": 128,
|
||||
"tw": 134,
|
||||
"cn": 124
|
||||
}
|
||||
Reference in New Issue
Block a user