mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Update to support game version 1.6.0.*
This commit is contained in:
@@ -100,6 +100,21 @@ public final class ActivityDetail {
|
||||
*/
|
||||
private final Public.ActivityStoryChapter storyChapter = Public.ActivityStoryChapter.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .Milkout Milkout = 17;</code>
|
||||
*/
|
||||
private final Public.Milkout milkout = Public.Milkout.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityPenguinCard PenguinCard = 18;</code>
|
||||
*/
|
||||
private final Public.ActivityPenguinCard penguinCard = Public.ActivityPenguinCard.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityThrowGift ThrowGift = 19;</code>
|
||||
*/
|
||||
private final Public.ActivityThrowGift throwGift = Public.ActivityThrowGift.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
@@ -1007,12 +1022,183 @@ public final class ActivityDetail {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Milkout Milkout = 17;</code>
|
||||
* @return whether the milkout field is set
|
||||
*/
|
||||
public boolean hasMilkout() {
|
||||
return (bitField0_ & 0x00010000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Milkout Milkout = 17;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearMilkout() {
|
||||
bitField0_ &= ~0x00010000;
|
||||
milkout.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Milkout Milkout = 17;</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 #getMutableMilkout()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.Milkout getMilkout() {
|
||||
return milkout;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Milkout Milkout = 17;</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.Milkout getMutableMilkout() {
|
||||
bitField0_ |= 0x00010000;
|
||||
return milkout;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Milkout Milkout = 17;</code>
|
||||
* @param value the milkout to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setMilkout(final Public.Milkout value) {
|
||||
bitField0_ |= 0x00010000;
|
||||
milkout.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityPenguinCard PenguinCard = 18;</code>
|
||||
* @return whether the penguinCard field is set
|
||||
*/
|
||||
public boolean hasPenguinCard() {
|
||||
return (bitField0_ & 0x00020000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityPenguinCard PenguinCard = 18;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearPenguinCard() {
|
||||
bitField0_ &= ~0x00020000;
|
||||
penguinCard.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityPenguinCard PenguinCard = 18;</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 #getMutablePenguinCard()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ActivityPenguinCard getPenguinCard() {
|
||||
return penguinCard;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityPenguinCard PenguinCard = 18;</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.ActivityPenguinCard getMutablePenguinCard() {
|
||||
bitField0_ |= 0x00020000;
|
||||
return penguinCard;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityPenguinCard PenguinCard = 18;</code>
|
||||
* @param value the penguinCard to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setPenguinCard(final Public.ActivityPenguinCard value) {
|
||||
bitField0_ |= 0x00020000;
|
||||
penguinCard.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityThrowGift ThrowGift = 19;</code>
|
||||
* @return whether the throwGift field is set
|
||||
*/
|
||||
public boolean hasThrowGift() {
|
||||
return (bitField0_ & 0x00040000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityThrowGift ThrowGift = 19;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearThrowGift() {
|
||||
bitField0_ &= ~0x00040000;
|
||||
throwGift.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityThrowGift ThrowGift = 19;</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 #getMutableThrowGift()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.ActivityThrowGift getThrowGift() {
|
||||
return throwGift;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityThrowGift ThrowGift = 19;</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.ActivityThrowGift getMutableThrowGift() {
|
||||
bitField0_ |= 0x00040000;
|
||||
return throwGift;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .ActivityThrowGift ThrowGift = 19;</code>
|
||||
* @param value the throwGift to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setThrowGift(final Public.ActivityThrowGift value) {
|
||||
bitField0_ |= 0x00040000;
|
||||
throwGift.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00010000) != 0;
|
||||
return (bitField0_ & 0x00080000) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1020,7 +1206,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg clearNextPackage() {
|
||||
bitField0_ &= ~0x00010000;
|
||||
bitField0_ &= ~0x00080000;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1049,7 +1235,7 @@ public final class ActivityDetail {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedByte getMutableNextPackage() {
|
||||
bitField0_ |= 0x00010000;
|
||||
bitField0_ |= 0x00080000;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
@@ -1059,7 +1245,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00010000;
|
||||
bitField0_ |= 0x00080000;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
@@ -1070,7 +1256,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00010000;
|
||||
bitField0_ |= 0x00080000;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1081,7 +1267,7 @@ public final class ActivityDetail {
|
||||
* @return this
|
||||
*/
|
||||
public ActivityMsg setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00010000;
|
||||
bitField0_ |= 0x00080000;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
@@ -1107,6 +1293,9 @@ public final class ActivityDetail {
|
||||
bdConvert.copyFrom(other.bdConvert);
|
||||
trekkerVersus.copyFrom(other.trekkerVersus);
|
||||
storyChapter.copyFrom(other.storyChapter);
|
||||
milkout.copyFrom(other.milkout);
|
||||
penguinCard.copyFrom(other.penguinCard);
|
||||
throwGift.copyFrom(other.throwGift);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
@@ -1166,6 +1355,15 @@ public final class ActivityDetail {
|
||||
if (other.hasStoryChapter()) {
|
||||
getMutableStoryChapter().mergeFrom(other.storyChapter);
|
||||
}
|
||||
if (other.hasMilkout()) {
|
||||
getMutableMilkout().mergeFrom(other.milkout);
|
||||
}
|
||||
if (other.hasPenguinCard()) {
|
||||
getMutablePenguinCard().mergeFrom(other.penguinCard);
|
||||
}
|
||||
if (other.hasThrowGift()) {
|
||||
getMutableThrowGift().mergeFrom(other.throwGift);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
@@ -1195,6 +1393,9 @@ public final class ActivityDetail {
|
||||
bdConvert.clear();
|
||||
trekkerVersus.clear();
|
||||
storyChapter.clear();
|
||||
milkout.clear();
|
||||
penguinCard.clear();
|
||||
throwGift.clear();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1221,6 +1422,9 @@ public final class ActivityDetail {
|
||||
bdConvert.clearQuick();
|
||||
trekkerVersus.clearQuick();
|
||||
storyChapter.clearQuick();
|
||||
milkout.clearQuick();
|
||||
penguinCard.clearQuick();
|
||||
throwGift.clearQuick();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
@@ -1251,6 +1455,9 @@ public final class ActivityDetail {
|
||||
&& (!hasBdConvert() || bdConvert.equals(other.bdConvert))
|
||||
&& (!hasTrekkerVersus() || trekkerVersus.equals(other.trekkerVersus))
|
||||
&& (!hasStoryChapter() || storyChapter.equals(other.storyChapter))
|
||||
&& (!hasMilkout() || milkout.equals(other.milkout))
|
||||
&& (!hasPenguinCard() || penguinCard.equals(other.penguinCard))
|
||||
&& (!hasThrowGift() || throwGift.equals(other.throwGift))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@@ -1321,6 +1528,18 @@ public final class ActivityDetail {
|
||||
output.writeMessageNoTag(storyChapter);
|
||||
}
|
||||
if ((bitField0_ & 0x00010000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 394);
|
||||
output.writeMessageNoTag(milkout);
|
||||
}
|
||||
if ((bitField0_ & 0x00020000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 402);
|
||||
output.writeMessageNoTag(penguinCard);
|
||||
}
|
||||
if ((bitField0_ & 0x00040000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 410);
|
||||
output.writeMessageNoTag(throwGift);
|
||||
}
|
||||
if ((bitField0_ & 0x00080000) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
@@ -1378,6 +1597,15 @@ public final class ActivityDetail {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(storyChapter);
|
||||
}
|
||||
if ((bitField0_ & 0x00010000) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(milkout);
|
||||
}
|
||||
if ((bitField0_ & 0x00020000) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(penguinCard);
|
||||
}
|
||||
if ((bitField0_ & 0x00040000) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(throwGift);
|
||||
}
|
||||
if ((bitField0_ & 0x00080000) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
@@ -1530,6 +1758,33 @@ public final class ActivityDetail {
|
||||
input.readMessage(storyChapter);
|
||||
bitField0_ |= 0x00008000;
|
||||
tag = input.readTag();
|
||||
if (tag != 138) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 138: {
|
||||
// milkout
|
||||
input.readMessage(milkout);
|
||||
bitField0_ |= 0x00010000;
|
||||
tag = input.readTag();
|
||||
if (tag != 146) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 146: {
|
||||
// penguinCard
|
||||
input.readMessage(penguinCard);
|
||||
bitField0_ |= 0x00020000;
|
||||
tag = input.readTag();
|
||||
if (tag != 154) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 154: {
|
||||
// throwGift
|
||||
input.readMessage(throwGift);
|
||||
bitField0_ |= 0x00040000;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
@@ -1537,7 +1792,7 @@ public final class ActivityDetail {
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00010000;
|
||||
bitField0_ |= 0x00080000;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
@@ -1609,6 +1864,15 @@ public final class ActivityDetail {
|
||||
output.writeMessage(FieldNames.storyChapter, storyChapter);
|
||||
}
|
||||
if ((bitField0_ & 0x00010000) != 0) {
|
||||
output.writeMessage(FieldNames.milkout, milkout);
|
||||
}
|
||||
if ((bitField0_ & 0x00020000) != 0) {
|
||||
output.writeMessage(FieldNames.penguinCard, penguinCard);
|
||||
}
|
||||
if ((bitField0_ & 0x00040000) != 0) {
|
||||
output.writeMessage(FieldNames.throwGift, throwGift);
|
||||
}
|
||||
if ((bitField0_ & 0x00080000) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
@@ -1797,11 +2061,44 @@ public final class ActivityDetail {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1567561421: {
|
||||
if (input.isAtField(FieldNames.milkout)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(milkout);
|
||||
bitField0_ |= 0x00010000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1342583868: {
|
||||
if (input.isAtField(FieldNames.penguinCard)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(penguinCard);
|
||||
bitField0_ |= 0x00020000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 747487510: {
|
||||
if (input.isAtField(FieldNames.throwGift)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(throwGift);
|
||||
bitField0_ |= 0x00040000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00010000;
|
||||
bitField0_ |= 0x00080000;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@@ -1892,6 +2189,12 @@ public final class ActivityDetail {
|
||||
|
||||
static final FieldName storyChapter = FieldName.forField("StoryChapter");
|
||||
|
||||
static final FieldName milkout = FieldName.forField("Milkout");
|
||||
|
||||
static final FieldName penguinCard = FieldName.forField("PenguinCard");
|
||||
|
||||
static final FieldName throwGift = FieldName.forField("ThrowGift");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,545 @@
|
||||
// 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 ActivityPenguinCardLevelSettle {
|
||||
/**
|
||||
* Protobuf type {@code ActivityPenguinCardSettleReq}
|
||||
*/
|
||||
public static final class ActivityPenguinCardSettleReq extends ProtoMessage<ActivityPenguinCardSettleReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 1;</code>
|
||||
*/
|
||||
private int levelId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Star = 2;</code>
|
||||
*/
|
||||
private int star;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Score = 3;</code>
|
||||
*/
|
||||
private int score;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private ActivityPenguinCardSettleReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivityPenguinCardSettleReq}
|
||||
*/
|
||||
public static ActivityPenguinCardSettleReq newInstance() {
|
||||
return new ActivityPenguinCardSettleReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 1;</code>
|
||||
* @return whether the levelId field is set
|
||||
*/
|
||||
public boolean hasLevelId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardSettleReq clearLevelId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
levelId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 1;</code>
|
||||
* @return the levelId
|
||||
*/
|
||||
public int getLevelId() {
|
||||
return levelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 LevelId = 1;</code>
|
||||
* @param value the levelId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardSettleReq setLevelId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
levelId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Star = 2;</code>
|
||||
* @return whether the star field is set
|
||||
*/
|
||||
public boolean hasStar() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Star = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardSettleReq clearStar() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
star = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Star = 2;</code>
|
||||
* @return the star
|
||||
*/
|
||||
public int getStar() {
|
||||
return star;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Star = 2;</code>
|
||||
* @param value the star to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardSettleReq setStar(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
star = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Score = 3;</code>
|
||||
* @return whether the score field is set
|
||||
*/
|
||||
public boolean hasScore() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Score = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardSettleReq clearScore() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
score = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Score = 3;</code>
|
||||
* @return the score
|
||||
*/
|
||||
public int getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Score = 3;</code>
|
||||
* @param value the score to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardSettleReq setScore(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
score = 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 ActivityPenguinCardSettleReq 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 ActivityPenguinCardSettleReq 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 ActivityPenguinCardSettleReq 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 ActivityPenguinCardSettleReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardSettleReq copyFrom(final ActivityPenguinCardSettleReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
levelId = other.levelId;
|
||||
star = other.star;
|
||||
score = other.score;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardSettleReq mergeFrom(final ActivityPenguinCardSettleReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasLevelId()) {
|
||||
setLevelId(other.levelId);
|
||||
}
|
||||
if (other.hasStar()) {
|
||||
setStar(other.star);
|
||||
}
|
||||
if (other.hasScore()) {
|
||||
setScore(other.score);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardSettleReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
levelId = 0;
|
||||
star = 0;
|
||||
score = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardSettleReq 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 ActivityPenguinCardSettleReq)) {
|
||||
return false;
|
||||
}
|
||||
ActivityPenguinCardSettleReq other = (ActivityPenguinCardSettleReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasLevelId() || levelId == other.levelId)
|
||||
&& (!hasStar() || star == other.star)
|
||||
&& (!hasScore() || score == other.score)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(star);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(score);
|
||||
}
|
||||
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(levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(star);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(score);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public ActivityPenguinCardSettleReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// levelId
|
||||
levelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// star
|
||||
star = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// score
|
||||
score = 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.levelId, levelId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.star, star);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.score, score);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardSettleReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1734437791: {
|
||||
if (input.isAtField(FieldNames.levelId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
levelId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2587250: {
|
||||
if (input.isAtField(FieldNames.star)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
star = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 79711858: {
|
||||
if (input.isAtField(FieldNames.score)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
score = 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 ActivityPenguinCardSettleReq clone() {
|
||||
return new ActivityPenguinCardSettleReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static ActivityPenguinCardSettleReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new ActivityPenguinCardSettleReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityPenguinCardSettleReq parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityPenguinCardSettleReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityPenguinCardSettleReq parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityPenguinCardSettleReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating ActivityPenguinCardSettleReq messages
|
||||
*/
|
||||
public static MessageFactory<ActivityPenguinCardSettleReq> getFactory() {
|
||||
return ActivityPenguinCardSettleReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivityPenguinCardSettleReqFactory implements MessageFactory<ActivityPenguinCardSettleReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardSettleReq create() {
|
||||
return ActivityPenguinCardSettleReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName levelId = FieldName.forField("LevelId");
|
||||
|
||||
static final FieldName star = FieldName.forField("Star");
|
||||
|
||||
static final FieldName score = FieldName.forField("Score");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,548 @@
|
||||
// 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 ActivityPenguinCardQuestRewardReceive {
|
||||
/**
|
||||
* Protobuf type {@code ActivityPenguinCardQuestReceiveReq}
|
||||
*/
|
||||
public static final class ActivityPenguinCardQuestReceiveReq extends ProtoMessage<ActivityPenguinCardQuestReceiveReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 2;</code>
|
||||
*/
|
||||
private int questId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 GroupId = 3;</code>
|
||||
*/
|
||||
private int groupId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private ActivityPenguinCardQuestReceiveReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code ActivityPenguinCardQuestReceiveReq}
|
||||
*/
|
||||
public static ActivityPenguinCardQuestReceiveReq newInstance() {
|
||||
return new ActivityPenguinCardQuestReceiveReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <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 ActivityPenguinCardQuestReceiveReq 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 ActivityPenguinCardQuestReceiveReq setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 2;</code>
|
||||
* @return whether the questId field is set
|
||||
*/
|
||||
public boolean hasQuestId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardQuestReceiveReq clearQuestId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
questId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 2;</code>
|
||||
* @return the questId
|
||||
*/
|
||||
public int getQuestId() {
|
||||
return questId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 QuestId = 2;</code>
|
||||
* @param value the questId to set
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardQuestReceiveReq setQuestId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
questId = value;
|
||||
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 ActivityPenguinCardQuestReceiveReq 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 ActivityPenguinCardQuestReceiveReq 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_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public ActivityPenguinCardQuestReceiveReq 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 ActivityPenguinCardQuestReceiveReq 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 ActivityPenguinCardQuestReceiveReq 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 ActivityPenguinCardQuestReceiveReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq copyFrom(
|
||||
final ActivityPenguinCardQuestReceiveReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
activityId = other.activityId;
|
||||
questId = other.questId;
|
||||
groupId = other.groupId;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq mergeFrom(
|
||||
final ActivityPenguinCardQuestReceiveReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasActivityId()) {
|
||||
setActivityId(other.activityId);
|
||||
}
|
||||
if (other.hasQuestId()) {
|
||||
setQuestId(other.questId);
|
||||
}
|
||||
if (other.hasGroupId()) {
|
||||
setGroupId(other.groupId);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
activityId = 0;
|
||||
questId = 0;
|
||||
groupId = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq 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 ActivityPenguinCardQuestReceiveReq)) {
|
||||
return false;
|
||||
}
|
||||
ActivityPenguinCardQuestReceiveReq other = (ActivityPenguinCardQuestReceiveReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasActivityId() || activityId == other.activityId)
|
||||
&& (!hasQuestId() || questId == other.questId)
|
||||
&& (!hasGroupId() || groupId == other.groupId)
|
||||
&& (!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(questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(groupId);
|
||||
}
|
||||
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(questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public ActivityPenguinCardQuestReceiveReq 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: {
|
||||
// questId
|
||||
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;
|
||||
}
|
||||
}
|
||||
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.questId, questId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.groupId, groupId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq 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 -1975187075: {
|
||||
if (input.isAtField(FieldNames.questId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
questId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
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_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq clone() {
|
||||
return new ActivityPenguinCardQuestReceiveReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static ActivityPenguinCardQuestReceiveReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new ActivityPenguinCardQuestReceiveReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityPenguinCardQuestReceiveReq parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityPenguinCardQuestReceiveReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static ActivityPenguinCardQuestReceiveReq parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new ActivityPenguinCardQuestReceiveReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating ActivityPenguinCardQuestReceiveReq messages
|
||||
*/
|
||||
public static MessageFactory<ActivityPenguinCardQuestReceiveReq> getFactory() {
|
||||
return ActivityPenguinCardQuestReceiveReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum ActivityPenguinCardQuestReceiveReqFactory implements MessageFactory<ActivityPenguinCardQuestReceiveReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public ActivityPenguinCardQuestReceiveReq create() {
|
||||
return ActivityPenguinCardQuestReceiveReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||
|
||||
static final FieldName questId = FieldName.forField("QuestId");
|
||||
|
||||
static final FieldName groupId = FieldName.forField("GroupId");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.nebula.proto;
|
||||
|
||||
public final class DailyMallRewardReceive {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.nebula.proto;
|
||||
|
||||
public final class EnergyInfo {
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,383 @@
|
||||
// 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 JointDrill2Continue {
|
||||
/**
|
||||
* Protobuf type {@code JointDrill2ContinueReq}
|
||||
*/
|
||||
public static final class JointDrill2ContinueReq extends ProtoMessage<JointDrill2ContinueReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 1;</code>
|
||||
*/
|
||||
private long buildId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private JointDrill2ContinueReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code JointDrill2ContinueReq}
|
||||
*/
|
||||
public static JointDrill2ContinueReq newInstance() {
|
||||
return new JointDrill2ContinueReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 1;</code>
|
||||
* @return whether the buildId field is set
|
||||
*/
|
||||
public boolean hasBuildId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2ContinueReq clearBuildId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
buildId = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 1;</code>
|
||||
* @return the buildId
|
||||
*/
|
||||
public long getBuildId() {
|
||||
return buildId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 BuildId = 1;</code>
|
||||
* @param value the buildId to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2ContinueReq setBuildId(final long value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
buildId = 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 JointDrill2ContinueReq 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 JointDrill2ContinueReq 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 JointDrill2ContinueReq 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 JointDrill2ContinueReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000002;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2ContinueReq copyFrom(final JointDrill2ContinueReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
buildId = other.buildId;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2ContinueReq mergeFrom(final JointDrill2ContinueReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasBuildId()) {
|
||||
setBuildId(other.buildId);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2ContinueReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
buildId = 0L;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2ContinueReq 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 JointDrill2ContinueReq)) {
|
||||
return false;
|
||||
}
|
||||
JointDrill2ContinueReq other = (JointDrill2ContinueReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasBuildId() || buildId == other.buildId)
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt64NoTag(buildId);
|
||||
}
|
||||
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.computeUInt64SizeNoTag(buildId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public JointDrill2ContinueReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// buildId
|
||||
buildId = input.readUInt64();
|
||||
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.writeUInt64(FieldNames.buildId, buildId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2ContinueReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1895597065: {
|
||||
if (input.isAtField(FieldNames.buildId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
buildId = input.readUInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -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 JointDrill2ContinueReq clone() {
|
||||
return new JointDrill2ContinueReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static JointDrill2ContinueReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2ContinueReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2ContinueReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2ContinueReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2ContinueReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2ContinueReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating JointDrill2ContinueReq messages
|
||||
*/
|
||||
public static MessageFactory<JointDrill2ContinueReq> getFactory() {
|
||||
return JointDrill2ContinueReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum JointDrill2ContinueReqFactory implements MessageFactory<JointDrill2ContinueReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public JointDrill2ContinueReq create() {
|
||||
return JointDrill2ContinueReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName buildId = FieldName.forField("BuildId");
|
||||
|
||||
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 JointDrill2GameOver {
|
||||
}
|
||||
@@ -0,0 +1,780 @@
|
||||
// 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 JointDrill2GiveUp {
|
||||
/**
|
||||
* Protobuf type {@code JointDrill2GiveUpReq}
|
||||
*/
|
||||
public static final class JointDrill2GiveUpReq extends ProtoMessage<JointDrill2GiveUpReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
*/
|
||||
private int floor;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
*/
|
||||
private int time;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
*/
|
||||
private int damage;
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</code>
|
||||
*/
|
||||
private final RepeatedByte record = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
*/
|
||||
private final RepeatedMessage<PublicJointDrill.JointDrillBossHp> bossHps = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory());
|
||||
|
||||
private JointDrill2GiveUpReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code JointDrill2GiveUpReq}
|
||||
*/
|
||||
public static JointDrill2GiveUpReq newInstance() {
|
||||
return new JointDrill2GiveUpReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @return whether the floor field is set
|
||||
*/
|
||||
public boolean hasFloor() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq clearFloor() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
floor = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @return the floor
|
||||
*/
|
||||
public int getFloor() {
|
||||
return floor;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @param value the floor to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq setFloor(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
floor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @return whether the time field is set
|
||||
*/
|
||||
public boolean hasTime() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq clearTime() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
time = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @return the time
|
||||
*/
|
||||
public int getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @param value the time to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq setTime(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
time = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @return whether the damage field is set
|
||||
*/
|
||||
public boolean hasDamage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq clearDamage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
damage = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @return the damage
|
||||
*/
|
||||
public int getDamage() {
|
||||
return damage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @param value the damage to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq setDamage(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
damage = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</code>
|
||||
* @return whether the record field is set
|
||||
*/
|
||||
public boolean hasRecord() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq clearRecord() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
record.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</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 #getMutableRecord()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedByte getRecord() {
|
||||
return record;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</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 getMutableRecord() {
|
||||
bitField0_ |= 0x00000008;
|
||||
return record;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</code>
|
||||
* @param value the record to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq addRecord(final byte value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
record.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</code>
|
||||
* @param values the record to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq addAllRecord(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
record.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 5;</code>
|
||||
* @param values the record to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq setRecord(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
record.copyFrom(values);
|
||||
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 JointDrill2GiveUpReq 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 JointDrill2GiveUpReq 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 JointDrill2GiveUpReq 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 JointDrill2GiveUpReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000010;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @return whether the bossHps field is set
|
||||
*/
|
||||
public boolean hasBossHps() {
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq clearBossHps() {
|
||||
bitField0_ &= ~0x00000020;
|
||||
bossHps.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
*
|
||||
* This method returns the internal storage object without modifying any has state.
|
||||
* The returned object should not be modified and be treated as read-only.
|
||||
*
|
||||
* Use {@link #getMutableBossHps()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<PublicJointDrill.JointDrillBossHp> getBossHps() {
|
||||
return bossHps;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of this message and its
|
||||
* contents may be modified as long as the has state is not cleared.
|
||||
*
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<PublicJointDrill.JointDrillBossHp> getMutableBossHps() {
|
||||
bitField0_ |= 0x00000020;
|
||||
return bossHps;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @param value the bossHps to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq addBossHps(final PublicJointDrill.JointDrillBossHp value) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bossHps.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @param values the bossHps to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2GiveUpReq addAllBossHps(final PublicJointDrill.JointDrillBossHp... values) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bossHps.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq copyFrom(final JointDrill2GiveUpReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
floor = other.floor;
|
||||
time = other.time;
|
||||
damage = other.damage;
|
||||
record.copyFrom(other.record);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
bossHps.copyFrom(other.bossHps);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq mergeFrom(final JointDrill2GiveUpReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasFloor()) {
|
||||
setFloor(other.floor);
|
||||
}
|
||||
if (other.hasTime()) {
|
||||
setTime(other.time);
|
||||
}
|
||||
if (other.hasDamage()) {
|
||||
setDamage(other.damage);
|
||||
}
|
||||
if (other.hasRecord()) {
|
||||
getMutableRecord().copyFrom(other.record);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
if (other.hasBossHps()) {
|
||||
getMutableBossHps().addAll(other.bossHps);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
floor = 0;
|
||||
time = 0;
|
||||
damage = 0;
|
||||
record.clear();
|
||||
nextPackage.clear();
|
||||
bossHps.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
record.clear();
|
||||
nextPackage.clear();
|
||||
bossHps.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof JointDrill2GiveUpReq)) {
|
||||
return false;
|
||||
}
|
||||
JointDrill2GiveUpReq other = (JointDrill2GiveUpReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasFloor() || floor == other.floor)
|
||||
&& (!hasTime() || time == other.time)
|
||||
&& (!hasDamage() || damage == other.damage)
|
||||
&& (!hasRecord() || record.equals(other.record))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||
&& (!hasBossHps() || bossHps.equals(other.bossHps));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(floor);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 42);
|
||||
output.writeBytesNoTag(record);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
for (int i = 0; i < bossHps.length(); i++) {
|
||||
output.writeRawByte((byte) 34);
|
||||
output.writeMessageNoTag(bossHps.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(floor);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 1 + ProtoSink.computeBytesSizeNoTag(record);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
size += (1 * bossHps.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHps);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public JointDrill2GiveUpReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// floor
|
||||
floor = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// time
|
||||
time = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// damage
|
||||
damage = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 42) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 42: {
|
||||
// record
|
||||
input.readBytes(record);
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000010;
|
||||
tag = input.readTag();
|
||||
if (tag != 34) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 34: {
|
||||
// bossHps
|
||||
tag = input.readRepeatedMessage(bossHps, tag);
|
||||
bitField0_ |= 0x00000020;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.floor, floor);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.time, time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.damage, damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.record, record);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.bossHps, bossHps);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 67974124: {
|
||||
if (input.isAtField(FieldNames.floor)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
floor = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2606829: {
|
||||
if (input.isAtField(FieldNames.time)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
time = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2039707535: {
|
||||
if (input.isAtField(FieldNames.damage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
damage = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1851041679: {
|
||||
if (input.isAtField(FieldNames.record)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(record);
|
||||
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;
|
||||
}
|
||||
case 1733240222: {
|
||||
if (input.isAtField(FieldNames.bossHps)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(bossHps);
|
||||
bitField0_ |= 0x00000020;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq clone() {
|
||||
return new JointDrill2GiveUpReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static JointDrill2GiveUpReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2GiveUpReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2GiveUpReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2GiveUpReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2GiveUpReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2GiveUpReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating JointDrill2GiveUpReq messages
|
||||
*/
|
||||
public static MessageFactory<JointDrill2GiveUpReq> getFactory() {
|
||||
return JointDrill2GiveUpReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum JointDrill2GiveUpReqFactory implements MessageFactory<JointDrill2GiveUpReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public JointDrill2GiveUpReq create() {
|
||||
return JointDrill2GiveUpReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName floor = FieldName.forField("Floor");
|
||||
|
||||
static final FieldName time = FieldName.forField("Time");
|
||||
|
||||
static final FieldName damage = FieldName.forField("Damage");
|
||||
|
||||
static final FieldName record = FieldName.forField("Record");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
|
||||
static final FieldName bossHps = FieldName.forField("BossHps");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.nebula.proto;
|
||||
|
||||
public final class JointDrill2Retreat {
|
||||
}
|
||||
@@ -0,0 +1,746 @@
|
||||
// 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 JointDrill2Settle {
|
||||
/**
|
||||
* Protobuf type {@code JointDrill2SettleReq}
|
||||
*/
|
||||
public static final class JointDrill2SettleReq extends ProtoMessage<JointDrill2SettleReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint64 Checksum = 4;</code>
|
||||
*/
|
||||
private long checksum;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 1;</code>
|
||||
*/
|
||||
private int time;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 2;</code>
|
||||
*/
|
||||
private int damage;
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
*/
|
||||
private final TravelerDuelRankUpload.TravelerDuelBattleSamples sample = TravelerDuelRankUpload.TravelerDuelBattleSamples.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 7;</code>
|
||||
*/
|
||||
private final Public.Events events = Public.Events.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private JointDrill2SettleReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code JointDrill2SettleReq}
|
||||
*/
|
||||
public static JointDrill2SettleReq newInstance() {
|
||||
return new JointDrill2SettleReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 Checksum = 4;</code>
|
||||
* @return whether the checksum field is set
|
||||
*/
|
||||
public boolean hasChecksum() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 Checksum = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq clearChecksum() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
checksum = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 Checksum = 4;</code>
|
||||
* @return the checksum
|
||||
*/
|
||||
public long getChecksum() {
|
||||
return checksum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 Checksum = 4;</code>
|
||||
* @param value the checksum to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq setChecksum(final long value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
checksum = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 1;</code>
|
||||
* @return whether the time field is set
|
||||
*/
|
||||
public boolean hasTime() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq clearTime() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
time = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 1;</code>
|
||||
* @return the time
|
||||
*/
|
||||
public int getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 1;</code>
|
||||
* @param value the time to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq setTime(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
time = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 2;</code>
|
||||
* @return whether the damage field is set
|
||||
*/
|
||||
public boolean hasDamage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq clearDamage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
damage = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 2;</code>
|
||||
* @return the damage
|
||||
*/
|
||||
public int getDamage() {
|
||||
return damage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 2;</code>
|
||||
* @param value the damage to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq setDamage(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
damage = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
* @return whether the sample field is set
|
||||
*/
|
||||
public boolean hasSample() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq clearSample() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
sample.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 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 #getMutableSample()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public TravelerDuelRankUpload.TravelerDuelBattleSamples getSample() {
|
||||
return sample;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 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 TravelerDuelRankUpload.TravelerDuelBattleSamples getMutableSample() {
|
||||
bitField0_ |= 0x00000008;
|
||||
return sample;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
* @param value the sample to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq setSample(
|
||||
final TravelerDuelRankUpload.TravelerDuelBattleSamples value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
sample.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 7;</code>
|
||||
* @return whether the events field is set
|
||||
*/
|
||||
public boolean hasEvents() {
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 7;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq clearEvents() {
|
||||
bitField0_ &= ~0x00000010;
|
||||
events.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 7;</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 #getMutableEvents()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public Public.Events getEvents() {
|
||||
return events;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 7;</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.Events getMutableEvents() {
|
||||
bitField0_ |= 0x00000010;
|
||||
return events;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .Events Events = 7;</code>
|
||||
* @param value the events to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq setEvents(final Public.Events value) {
|
||||
bitField0_ |= 0x00000010;
|
||||
events.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return whether the nextPackage field is set
|
||||
*/
|
||||
public boolean hasNextPackage() {
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq clearNextPackage() {
|
||||
bitField0_ &= ~0x00000020;
|
||||
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_ |= 0x00000020;
|
||||
return nextPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param value the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq addNextPackage(final byte value) {
|
||||
bitField0_ |= 0x00000020;
|
||||
nextPackage.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq addAllNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000020;
|
||||
nextPackage.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
* @param values the nextPackage to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SettleReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000020;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq copyFrom(final JointDrill2SettleReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
checksum = other.checksum;
|
||||
time = other.time;
|
||||
damage = other.damage;
|
||||
sample.copyFrom(other.sample);
|
||||
events.copyFrom(other.events);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq mergeFrom(final JointDrill2SettleReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasChecksum()) {
|
||||
setChecksum(other.checksum);
|
||||
}
|
||||
if (other.hasTime()) {
|
||||
setTime(other.time);
|
||||
}
|
||||
if (other.hasDamage()) {
|
||||
setDamage(other.damage);
|
||||
}
|
||||
if (other.hasSample()) {
|
||||
getMutableSample().mergeFrom(other.sample);
|
||||
}
|
||||
if (other.hasEvents()) {
|
||||
getMutableEvents().mergeFrom(other.events);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
checksum = 0L;
|
||||
time = 0;
|
||||
damage = 0;
|
||||
sample.clear();
|
||||
events.clear();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
sample.clearQuick();
|
||||
events.clearQuick();
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof JointDrill2SettleReq)) {
|
||||
return false;
|
||||
}
|
||||
JointDrill2SettleReq other = (JointDrill2SettleReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasChecksum() || checksum == other.checksum)
|
||||
&& (!hasTime() || time == other.time)
|
||||
&& (!hasDamage() || damage == other.damage)
|
||||
&& (!hasSample() || sample.equals(other.sample))
|
||||
&& (!hasEvents() || events.equals(other.events))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 32);
|
||||
output.writeUInt64NoTag(checksum);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 26);
|
||||
output.writeMessageNoTag(sample);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRawByte((byte) 58);
|
||||
output.writeMessageNoTag(events);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt64SizeNoTag(checksum);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(sample);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(events);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public JointDrill2SettleReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 32: {
|
||||
// checksum
|
||||
checksum = input.readUInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 8) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 8: {
|
||||
// time
|
||||
time = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// damage
|
||||
damage = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 26) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 26: {
|
||||
// sample
|
||||
input.readMessage(sample);
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 58) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 58: {
|
||||
// events
|
||||
input.readMessage(events);
|
||||
bitField0_ |= 0x00000010;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000020;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt64(FieldNames.checksum, checksum);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.time, time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.damage, damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeMessage(FieldNames.sample, sample);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeMessage(FieldNames.events, events);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1601552483: {
|
||||
if (input.isAtField(FieldNames.checksum)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
checksum = input.readUInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2606829: {
|
||||
if (input.isAtField(FieldNames.time)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
time = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2039707535: {
|
||||
if (input.isAtField(FieldNames.damage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
damage = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1825807926: {
|
||||
if (input.isAtField(FieldNames.sample)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(sample);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2087505209: {
|
||||
if (input.isAtField(FieldNames.events)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(events);
|
||||
bitField0_ |= 0x00000010;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -2082324045: {
|
||||
if (input.isAtField(FieldNames.nextPackage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000020;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq clone() {
|
||||
return new JointDrill2SettleReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static JointDrill2SettleReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2SettleReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2SettleReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2SettleReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2SettleReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2SettleReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating JointDrill2SettleReq messages
|
||||
*/
|
||||
public static MessageFactory<JointDrill2SettleReq> getFactory() {
|
||||
return JointDrill2SettleReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum JointDrill2SettleReqFactory implements MessageFactory<JointDrill2SettleReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public JointDrill2SettleReq create() {
|
||||
return JointDrill2SettleReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName checksum = FieldName.forField("Checksum");
|
||||
|
||||
static final FieldName time = FieldName.forField("Time");
|
||||
|
||||
static final FieldName damage = FieldName.forField("Damage");
|
||||
|
||||
static final FieldName sample = FieldName.forField("Sample");
|
||||
|
||||
static final FieldName events = FieldName.forField("Events");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,893 @@
|
||||
// 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 JointDrill2Sync {
|
||||
/**
|
||||
* Protobuf type {@code JointDrill2SyncReq}
|
||||
*/
|
||||
public static final class JointDrill2SyncReq extends ProtoMessage<JointDrill2SyncReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
*/
|
||||
private int floor;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
*/
|
||||
private int time;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
*/
|
||||
private int damage;
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</code>
|
||||
*/
|
||||
private final RepeatedByte record = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
*/
|
||||
private final RepeatedMessage<PublicJointDrill.JointDrillBossHp> bossHps = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory());
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</code>
|
||||
*/
|
||||
private final RepeatedMessage<PublicJointDrill.JointDrillBossHp> bossHpMaxes = RepeatedMessage.newEmptyInstance(PublicJointDrill.JointDrillBossHp.getFactory());
|
||||
|
||||
private JointDrill2SyncReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code JointDrill2SyncReq}
|
||||
*/
|
||||
public static JointDrill2SyncReq newInstance() {
|
||||
return new JointDrill2SyncReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @return whether the floor field is set
|
||||
*/
|
||||
public boolean hasFloor() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq clearFloor() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
floor = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @return the floor
|
||||
*/
|
||||
public int getFloor() {
|
||||
return floor;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Floor = 1;</code>
|
||||
* @param value the floor to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq setFloor(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
floor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @return whether the time field is set
|
||||
*/
|
||||
public boolean hasTime() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq clearTime() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
time = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @return the time
|
||||
*/
|
||||
public int getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Time = 2;</code>
|
||||
* @param value the time to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq setTime(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
time = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @return whether the damage field is set
|
||||
*/
|
||||
public boolean hasDamage() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq clearDamage() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
damage = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @return the damage
|
||||
*/
|
||||
public int getDamage() {
|
||||
return damage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 Damage = 3;</code>
|
||||
* @param value the damage to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq setDamage(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
damage = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</code>
|
||||
* @return whether the record field is set
|
||||
*/
|
||||
public boolean hasRecord() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq clearRecord() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
record.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</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 #getMutableRecord()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedByte getRecord() {
|
||||
return record;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</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 getMutableRecord() {
|
||||
bitField0_ |= 0x00000008;
|
||||
return record;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</code>
|
||||
* @param value the record to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq addRecord(final byte value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
record.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</code>
|
||||
* @param values the record to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq addAllRecord(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
record.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional bytes Record = 6;</code>
|
||||
* @param values the record to set
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq setRecord(final byte... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
record.copyFrom(values);
|
||||
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 JointDrill2SyncReq 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 JointDrill2SyncReq 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 JointDrill2SyncReq 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 JointDrill2SyncReq setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000010;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @return whether the bossHps field is set
|
||||
*/
|
||||
public boolean hasBossHps() {
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq clearBossHps() {
|
||||
bitField0_ &= ~0x00000020;
|
||||
bossHps.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
*
|
||||
* This method returns the internal storage object without modifying any has state.
|
||||
* The returned object should not be modified and be treated as read-only.
|
||||
*
|
||||
* Use {@link #getMutableBossHps()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<PublicJointDrill.JointDrillBossHp> getBossHps() {
|
||||
return bossHps;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of this message and its
|
||||
* contents may be modified as long as the has state is not cleared.
|
||||
*
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<PublicJointDrill.JointDrillBossHp> getMutableBossHps() {
|
||||
bitField0_ |= 0x00000020;
|
||||
return bossHps;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @param value the bossHps to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq addBossHps(final PublicJointDrill.JointDrillBossHp value) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bossHps.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHps = 4;</code>
|
||||
* @param values the bossHps to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq addAllBossHps(final PublicJointDrill.JointDrillBossHp... values) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bossHps.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</code>
|
||||
* @return whether the bossHpMaxes field is set
|
||||
*/
|
||||
public boolean hasBossHpMaxes() {
|
||||
return (bitField0_ & 0x00000040) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq clearBossHpMaxes() {
|
||||
bitField0_ &= ~0x00000040;
|
||||
bossHpMaxes.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</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 #getMutableBossHpMaxes()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<PublicJointDrill.JointDrillBossHp> getBossHpMaxes() {
|
||||
return bossHpMaxes;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</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<PublicJointDrill.JointDrillBossHp> getMutableBossHpMaxes() {
|
||||
bitField0_ |= 0x00000040;
|
||||
return bossHpMaxes;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</code>
|
||||
* @param value the bossHpMaxes to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq addBossHpMaxes(final PublicJointDrill.JointDrillBossHp value) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bossHpMaxes.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .JointDrillBossHp BossHpMaxes = 5;</code>
|
||||
* @param values the bossHpMaxes to add
|
||||
* @return this
|
||||
*/
|
||||
public JointDrill2SyncReq addAllBossHpMaxes(final PublicJointDrill.JointDrillBossHp... values) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bossHpMaxes.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq copyFrom(final JointDrill2SyncReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
floor = other.floor;
|
||||
time = other.time;
|
||||
damage = other.damage;
|
||||
record.copyFrom(other.record);
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
bossHps.copyFrom(other.bossHps);
|
||||
bossHpMaxes.copyFrom(other.bossHpMaxes);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq mergeFrom(final JointDrill2SyncReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasFloor()) {
|
||||
setFloor(other.floor);
|
||||
}
|
||||
if (other.hasTime()) {
|
||||
setTime(other.time);
|
||||
}
|
||||
if (other.hasDamage()) {
|
||||
setDamage(other.damage);
|
||||
}
|
||||
if (other.hasRecord()) {
|
||||
getMutableRecord().copyFrom(other.record);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
if (other.hasBossHps()) {
|
||||
getMutableBossHps().addAll(other.bossHps);
|
||||
}
|
||||
if (other.hasBossHpMaxes()) {
|
||||
getMutableBossHpMaxes().addAll(other.bossHpMaxes);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
floor = 0;
|
||||
time = 0;
|
||||
damage = 0;
|
||||
record.clear();
|
||||
nextPackage.clear();
|
||||
bossHps.clear();
|
||||
bossHpMaxes.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
record.clear();
|
||||
nextPackage.clear();
|
||||
bossHps.clearQuick();
|
||||
bossHpMaxes.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof JointDrill2SyncReq)) {
|
||||
return false;
|
||||
}
|
||||
JointDrill2SyncReq other = (JointDrill2SyncReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasFloor() || floor == other.floor)
|
||||
&& (!hasTime() || time == other.time)
|
||||
&& (!hasDamage() || damage == other.damage)
|
||||
&& (!hasRecord() || record.equals(other.record))
|
||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||
&& (!hasBossHps() || bossHps.equals(other.bossHps))
|
||||
&& (!hasBossHpMaxes() || bossHpMaxes.equals(other.bossHpMaxes));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(floor);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 50);
|
||||
output.writeBytesNoTag(record);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRawLittleEndian16((short) 32762);
|
||||
output.writeBytesNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
for (int i = 0; i < bossHps.length(); i++) {
|
||||
output.writeRawByte((byte) 34);
|
||||
output.writeMessageNoTag(bossHps.get(i));
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
for (int i = 0; i < bossHpMaxes.length(); i++) {
|
||||
output.writeRawByte((byte) 42);
|
||||
output.writeMessageNoTag(bossHpMaxes.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(floor);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 1 + ProtoSink.computeBytesSizeNoTag(record);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
size += (1 * bossHps.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHps);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
size += (1 * bossHpMaxes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bossHpMaxes);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public JointDrill2SyncReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 8: {
|
||||
// floor
|
||||
floor = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16: {
|
||||
// time
|
||||
time = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 24) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 24: {
|
||||
// damage
|
||||
damage = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 50) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 50: {
|
||||
// record
|
||||
input.readBytes(record);
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 16378) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 16378: {
|
||||
// nextPackage
|
||||
input.readBytes(nextPackage);
|
||||
bitField0_ |= 0x00000010;
|
||||
tag = input.readTag();
|
||||
if (tag != 34) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 34: {
|
||||
// bossHps
|
||||
tag = input.readRepeatedMessage(bossHps, tag);
|
||||
bitField0_ |= 0x00000020;
|
||||
if (tag != 42) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 42: {
|
||||
// bossHpMaxes
|
||||
tag = input.readRepeatedMessage(bossHpMaxes, tag);
|
||||
bitField0_ |= 0x00000040;
|
||||
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.floor, floor);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.time, time);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.damage, damage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeBytes(FieldNames.record, record);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.bossHps, bossHps);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.bossHpMaxes, bossHpMaxes);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 67974124: {
|
||||
if (input.isAtField(FieldNames.floor)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
floor = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2606829: {
|
||||
if (input.isAtField(FieldNames.time)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
time = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2039707535: {
|
||||
if (input.isAtField(FieldNames.damage)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
damage = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1851041679: {
|
||||
if (input.isAtField(FieldNames.record)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readBytes(record);
|
||||
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;
|
||||
}
|
||||
case 1733240222: {
|
||||
if (input.isAtField(FieldNames.bossHps)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(bossHps);
|
||||
bitField0_ |= 0x00000020;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 939364509: {
|
||||
if (input.isAtField(FieldNames.bossHpMaxes)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(bossHpMaxes);
|
||||
bitField0_ |= 0x00000040;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq clone() {
|
||||
return new JointDrill2SyncReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static JointDrill2SyncReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2SyncReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2SyncReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2SyncReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static JointDrill2SyncReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new JointDrill2SyncReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating JointDrill2SyncReq messages
|
||||
*/
|
||||
public static MessageFactory<JointDrill2SyncReq> getFactory() {
|
||||
return JointDrill2SyncReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum JointDrill2SyncReqFactory implements MessageFactory<JointDrill2SyncReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public JointDrill2SyncReq create() {
|
||||
return JointDrill2SyncReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName floor = FieldName.forField("Floor");
|
||||
|
||||
static final FieldName time = FieldName.forField("Time");
|
||||
|
||||
static final FieldName damage = FieldName.forField("Damage");
|
||||
|
||||
static final FieldName record = FieldName.forField("Record");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
|
||||
static final FieldName bossHps = FieldName.forField("BossHps");
|
||||
|
||||
static final FieldName bossHpMaxes = FieldName.forField("BossHpMaxes");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ public final class JointDrillSettle {
|
||||
private int damage;
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples sample = 3;</code>
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
*/
|
||||
private final TravelerDuelRankUpload.TravelerDuelBattleSamples sample = TravelerDuelRankUpload.TravelerDuelBattleSamples.newInstance();
|
||||
|
||||
@@ -171,7 +171,7 @@ public final class JointDrillSettle {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples sample = 3;</code>
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
* @return whether the sample field is set
|
||||
*/
|
||||
public boolean hasSample() {
|
||||
@@ -179,7 +179,7 @@ public final class JointDrillSettle {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples sample = 3;</code>
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public JointDrillSettleReq clearSample() {
|
||||
@@ -189,7 +189,7 @@ public final class JointDrillSettle {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples sample = 3;</code>
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 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.
|
||||
@@ -203,7 +203,7 @@ public final class JointDrillSettle {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples sample = 3;</code>
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 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
|
||||
@@ -217,7 +217,7 @@ public final class JointDrillSettle {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TravelerDuelBattleSamples sample = 3;</code>
|
||||
* <code>optional .TravelerDuelBattleSamples Sample = 3;</code>
|
||||
* @param value the sample to set
|
||||
* @return this
|
||||
*/
|
||||
@@ -644,7 +644,7 @@ public final class JointDrillSettle {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -909675094: {
|
||||
case -1825807926: {
|
||||
if (input.isAtField(FieldNames.sample)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(sample);
|
||||
@@ -736,7 +736,7 @@ public final class JointDrillSettle {
|
||||
|
||||
static final FieldName damage = FieldName.forField("Damage");
|
||||
|
||||
static final FieldName sample = FieldName.forField("sample");
|
||||
static final FieldName sample = FieldName.forField("Sample");
|
||||
|
||||
static final FieldName events = FieldName.forField("Events");
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8060,4 +8060,454 @@ public final class Notify {
|
||||
static final FieldName orders = FieldName.forField("Orders");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Protobuf type {@code MilkoutCharacterUnlockNotify}
|
||||
*/
|
||||
public static final class MilkoutCharacterUnlockNotify extends ProtoMessage<MilkoutCharacterUnlockNotify> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 ActivityId = 1;</code>
|
||||
*/
|
||||
private int activityId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 CharId = 2;</code>
|
||||
*/
|
||||
private int charId;
|
||||
|
||||
/**
|
||||
* <code>optional bytes NextPackage = 2047;</code>
|
||||
*/
|
||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||
|
||||
private MilkoutCharacterUnlockNotify() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code MilkoutCharacterUnlockNotify}
|
||||
*/
|
||||
public static MilkoutCharacterUnlockNotify newInstance() {
|
||||
return new MilkoutCharacterUnlockNotify();
|
||||
}
|
||||
|
||||
/**
|
||||
* <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 MilkoutCharacterUnlockNotify 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 MilkoutCharacterUnlockNotify setActivityId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
activityId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 CharId = 2;</code>
|
||||
* @return whether the charId field is set
|
||||
*/
|
||||
public boolean hasCharId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 CharId = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public MilkoutCharacterUnlockNotify clearCharId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
charId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 CharId = 2;</code>
|
||||
* @return the charId
|
||||
*/
|
||||
public int getCharId() {
|
||||
return charId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 CharId = 2;</code>
|
||||
* @param value the charId to set
|
||||
* @return this
|
||||
*/
|
||||
public MilkoutCharacterUnlockNotify setCharId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
charId = 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 MilkoutCharacterUnlockNotify 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 MilkoutCharacterUnlockNotify 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 MilkoutCharacterUnlockNotify 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 MilkoutCharacterUnlockNotify setNextPackage(final byte... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
nextPackage.copyFrom(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MilkoutCharacterUnlockNotify copyFrom(final MilkoutCharacterUnlockNotify other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
activityId = other.activityId;
|
||||
charId = other.charId;
|
||||
nextPackage.copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MilkoutCharacterUnlockNotify mergeFrom(final MilkoutCharacterUnlockNotify other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasActivityId()) {
|
||||
setActivityId(other.activityId);
|
||||
}
|
||||
if (other.hasCharId()) {
|
||||
setCharId(other.charId);
|
||||
}
|
||||
if (other.hasNextPackage()) {
|
||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MilkoutCharacterUnlockNotify clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
activityId = 0;
|
||||
charId = 0;
|
||||
nextPackage.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MilkoutCharacterUnlockNotify 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 MilkoutCharacterUnlockNotify)) {
|
||||
return false;
|
||||
}
|
||||
MilkoutCharacterUnlockNotify other = (MilkoutCharacterUnlockNotify) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasActivityId() || activityId == other.activityId)
|
||||
&& (!hasCharId() || charId == other.charId)
|
||||
&& (!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(charId);
|
||||
}
|
||||
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(charId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public MilkoutCharacterUnlockNotify 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: {
|
||||
// charId
|
||||
charId = 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.charId, charId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MilkoutCharacterUnlockNotify 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 2017200945: {
|
||||
if (input.isAtField(FieldNames.charId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
charId = 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 MilkoutCharacterUnlockNotify clone() {
|
||||
return new MilkoutCharacterUnlockNotify().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static MilkoutCharacterUnlockNotify parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new MilkoutCharacterUnlockNotify(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static MilkoutCharacterUnlockNotify parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new MilkoutCharacterUnlockNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static MilkoutCharacterUnlockNotify parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new MilkoutCharacterUnlockNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating MilkoutCharacterUnlockNotify messages
|
||||
*/
|
||||
public static MessageFactory<MilkoutCharacterUnlockNotify> getFactory() {
|
||||
return MilkoutCharacterUnlockNotifyFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum MilkoutCharacterUnlockNotifyFactory implements MessageFactory<MilkoutCharacterUnlockNotify> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public MilkoutCharacterUnlockNotify create() {
|
||||
return MilkoutCharacterUnlockNotify.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||
|
||||
static final FieldName charId = FieldName.forField("CharId");
|
||||
|
||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.nebula.proto;
|
||||
|
||||
public final class PlayerLastReadUpdate {
|
||||
}
|
||||
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
Reference in New Issue
Block a user