mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Update server to support latest version
This commit is contained in:
@@ -90,6 +90,16 @@ public final class ActivityDetail {
|
|||||||
*/
|
*/
|
||||||
private final Public.ActivityBuildConvert bdConvert = Public.ActivityBuildConvert.newInstance();
|
private final Public.ActivityBuildConvert bdConvert = Public.ActivityBuildConvert.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityTrekkerVersus TrekkerVersus = 15;</code>
|
||||||
|
*/
|
||||||
|
private final Public.ActivityTrekkerVersus trekkerVersus = Public.ActivityTrekkerVersus.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityStoryChapter StoryChapter = 16;</code>
|
||||||
|
*/
|
||||||
|
private final Public.ActivityStoryChapter storyChapter = Public.ActivityStoryChapter.newInstance();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional bytes NextPackage = 2047;</code>
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
*/
|
*/
|
||||||
@@ -883,12 +893,126 @@ public final class ActivityDetail {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityTrekkerVersus TrekkerVersus = 15;</code>
|
||||||
|
* @return whether the trekkerVersus field is set
|
||||||
|
*/
|
||||||
|
public boolean hasTrekkerVersus() {
|
||||||
|
return (bitField0_ & 0x00004000) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityTrekkerVersus TrekkerVersus = 15;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityMsg clearTrekkerVersus() {
|
||||||
|
bitField0_ &= ~0x00004000;
|
||||||
|
trekkerVersus.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityTrekkerVersus TrekkerVersus = 15;</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 #getMutableTrekkerVersus()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public Public.ActivityTrekkerVersus getTrekkerVersus() {
|
||||||
|
return trekkerVersus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityTrekkerVersus TrekkerVersus = 15;</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.ActivityTrekkerVersus getMutableTrekkerVersus() {
|
||||||
|
bitField0_ |= 0x00004000;
|
||||||
|
return trekkerVersus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityTrekkerVersus TrekkerVersus = 15;</code>
|
||||||
|
* @param value the trekkerVersus to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityMsg setTrekkerVersus(final Public.ActivityTrekkerVersus value) {
|
||||||
|
bitField0_ |= 0x00004000;
|
||||||
|
trekkerVersus.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityStoryChapter StoryChapter = 16;</code>
|
||||||
|
* @return whether the storyChapter field is set
|
||||||
|
*/
|
||||||
|
public boolean hasStoryChapter() {
|
||||||
|
return (bitField0_ & 0x00008000) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityStoryChapter StoryChapter = 16;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityMsg clearStoryChapter() {
|
||||||
|
bitField0_ &= ~0x00008000;
|
||||||
|
storyChapter.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityStoryChapter StoryChapter = 16;</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 #getMutableStoryChapter()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public Public.ActivityStoryChapter getStoryChapter() {
|
||||||
|
return storyChapter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityStoryChapter StoryChapter = 16;</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.ActivityStoryChapter getMutableStoryChapter() {
|
||||||
|
bitField0_ |= 0x00008000;
|
||||||
|
return storyChapter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ActivityStoryChapter StoryChapter = 16;</code>
|
||||||
|
* @param value the storyChapter to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityMsg setStoryChapter(final Public.ActivityStoryChapter value) {
|
||||||
|
bitField0_ |= 0x00008000;
|
||||||
|
storyChapter.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional bytes NextPackage = 2047;</code>
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
* @return whether the nextPackage field is set
|
* @return whether the nextPackage field is set
|
||||||
*/
|
*/
|
||||||
public boolean hasNextPackage() {
|
public boolean hasNextPackage() {
|
||||||
return (bitField0_ & 0x00004000) != 0;
|
return (bitField0_ & 0x00010000) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -896,7 +1020,7 @@ public final class ActivityDetail {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ActivityMsg clearNextPackage() {
|
public ActivityMsg clearNextPackage() {
|
||||||
bitField0_ &= ~0x00004000;
|
bitField0_ &= ~0x00010000;
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -925,7 +1049,7 @@ public final class ActivityDetail {
|
|||||||
* @return internal storage object for modifications
|
* @return internal storage object for modifications
|
||||||
*/
|
*/
|
||||||
public RepeatedByte getMutableNextPackage() {
|
public RepeatedByte getMutableNextPackage() {
|
||||||
bitField0_ |= 0x00004000;
|
bitField0_ |= 0x00010000;
|
||||||
return nextPackage;
|
return nextPackage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -935,7 +1059,7 @@ public final class ActivityDetail {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ActivityMsg addNextPackage(final byte value) {
|
public ActivityMsg addNextPackage(final byte value) {
|
||||||
bitField0_ |= 0x00004000;
|
bitField0_ |= 0x00010000;
|
||||||
nextPackage.add(value);
|
nextPackage.add(value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -946,7 +1070,7 @@ public final class ActivityDetail {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ActivityMsg addAllNextPackage(final byte... values) {
|
public ActivityMsg addAllNextPackage(final byte... values) {
|
||||||
bitField0_ |= 0x00004000;
|
bitField0_ |= 0x00010000;
|
||||||
nextPackage.addAll(values);
|
nextPackage.addAll(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -957,7 +1081,7 @@ public final class ActivityDetail {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ActivityMsg setNextPackage(final byte... values) {
|
public ActivityMsg setNextPackage(final byte... values) {
|
||||||
bitField0_ |= 0x00004000;
|
bitField0_ |= 0x00010000;
|
||||||
nextPackage.copyFrom(values);
|
nextPackage.copyFrom(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -981,6 +1105,8 @@ public final class ActivityDetail {
|
|||||||
task.copyFrom(other.task);
|
task.copyFrom(other.task);
|
||||||
shop.copyFrom(other.shop);
|
shop.copyFrom(other.shop);
|
||||||
bdConvert.copyFrom(other.bdConvert);
|
bdConvert.copyFrom(other.bdConvert);
|
||||||
|
trekkerVersus.copyFrom(other.trekkerVersus);
|
||||||
|
storyChapter.copyFrom(other.storyChapter);
|
||||||
nextPackage.copyFrom(other.nextPackage);
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
@@ -1034,6 +1160,12 @@ public final class ActivityDetail {
|
|||||||
if (other.hasBdConvert()) {
|
if (other.hasBdConvert()) {
|
||||||
getMutableBdConvert().mergeFrom(other.bdConvert);
|
getMutableBdConvert().mergeFrom(other.bdConvert);
|
||||||
}
|
}
|
||||||
|
if (other.hasTrekkerVersus()) {
|
||||||
|
getMutableTrekkerVersus().mergeFrom(other.trekkerVersus);
|
||||||
|
}
|
||||||
|
if (other.hasStoryChapter()) {
|
||||||
|
getMutableStoryChapter().mergeFrom(other.storyChapter);
|
||||||
|
}
|
||||||
if (other.hasNextPackage()) {
|
if (other.hasNextPackage()) {
|
||||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
}
|
}
|
||||||
@@ -1061,6 +1193,8 @@ public final class ActivityDetail {
|
|||||||
task.clear();
|
task.clear();
|
||||||
shop.clear();
|
shop.clear();
|
||||||
bdConvert.clear();
|
bdConvert.clear();
|
||||||
|
trekkerVersus.clear();
|
||||||
|
storyChapter.clear();
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1085,6 +1219,8 @@ public final class ActivityDetail {
|
|||||||
task.clearQuick();
|
task.clearQuick();
|
||||||
shop.clearQuick();
|
shop.clearQuick();
|
||||||
bdConvert.clearQuick();
|
bdConvert.clearQuick();
|
||||||
|
trekkerVersus.clearQuick();
|
||||||
|
storyChapter.clearQuick();
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1113,6 +1249,8 @@ public final class ActivityDetail {
|
|||||||
&& (!hasTask() || task.equals(other.task))
|
&& (!hasTask() || task.equals(other.task))
|
||||||
&& (!hasShop() || shop.equals(other.shop))
|
&& (!hasShop() || shop.equals(other.shop))
|
||||||
&& (!hasBdConvert() || bdConvert.equals(other.bdConvert))
|
&& (!hasBdConvert() || bdConvert.equals(other.bdConvert))
|
||||||
|
&& (!hasTrekkerVersus() || trekkerVersus.equals(other.trekkerVersus))
|
||||||
|
&& (!hasStoryChapter() || storyChapter.equals(other.storyChapter))
|
||||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1175,6 +1313,14 @@ public final class ActivityDetail {
|
|||||||
output.writeMessageNoTag(bdConvert);
|
output.writeMessageNoTag(bdConvert);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00004000) != 0) {
|
if ((bitField0_ & 0x00004000) != 0) {
|
||||||
|
output.writeRawByte((byte) 122);
|
||||||
|
output.writeMessageNoTag(trekkerVersus);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00008000) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 386);
|
||||||
|
output.writeMessageNoTag(storyChapter);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00010000) != 0) {
|
||||||
output.writeRawLittleEndian16((short) 32762);
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
output.writeBytesNoTag(nextPackage);
|
output.writeBytesNoTag(nextPackage);
|
||||||
}
|
}
|
||||||
@@ -1226,6 +1372,12 @@ public final class ActivityDetail {
|
|||||||
size += 1 + ProtoSink.computeMessageSizeNoTag(bdConvert);
|
size += 1 + ProtoSink.computeMessageSizeNoTag(bdConvert);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00004000) != 0) {
|
if ((bitField0_ & 0x00004000) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(trekkerVersus);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00008000) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeMessageSizeNoTag(storyChapter);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00010000) != 0) {
|
||||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
@@ -1360,6 +1512,24 @@ public final class ActivityDetail {
|
|||||||
input.readMessage(bdConvert);
|
input.readMessage(bdConvert);
|
||||||
bitField0_ |= 0x00002000;
|
bitField0_ |= 0x00002000;
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
|
if (tag != 122) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 122: {
|
||||||
|
// trekkerVersus
|
||||||
|
input.readMessage(trekkerVersus);
|
||||||
|
bitField0_ |= 0x00004000;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 130) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 130: {
|
||||||
|
// storyChapter
|
||||||
|
input.readMessage(storyChapter);
|
||||||
|
bitField0_ |= 0x00008000;
|
||||||
|
tag = input.readTag();
|
||||||
if (tag != 16378) {
|
if (tag != 16378) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1367,7 +1537,7 @@ public final class ActivityDetail {
|
|||||||
case 16378: {
|
case 16378: {
|
||||||
// nextPackage
|
// nextPackage
|
||||||
input.readBytes(nextPackage);
|
input.readBytes(nextPackage);
|
||||||
bitField0_ |= 0x00004000;
|
bitField0_ |= 0x00010000;
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
if (tag != 0) {
|
if (tag != 0) {
|
||||||
break;
|
break;
|
||||||
@@ -1433,6 +1603,12 @@ public final class ActivityDetail {
|
|||||||
output.writeMessage(FieldNames.bdConvert, bdConvert);
|
output.writeMessage(FieldNames.bdConvert, bdConvert);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00004000) != 0) {
|
if ((bitField0_ & 0x00004000) != 0) {
|
||||||
|
output.writeMessage(FieldNames.trekkerVersus, trekkerVersus);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00008000) != 0) {
|
||||||
|
output.writeMessage(FieldNames.storyChapter, storyChapter);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00010000) != 0) {
|
||||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
}
|
}
|
||||||
output.endObject();
|
output.endObject();
|
||||||
@@ -1599,11 +1775,33 @@ public final class ActivityDetail {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case -1534874366: {
|
||||||
|
if (input.isAtField(FieldNames.trekkerVersus)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(trekkerVersus);
|
||||||
|
bitField0_ |= 0x00004000;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -1858182728: {
|
||||||
|
if (input.isAtField(FieldNames.storyChapter)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(storyChapter);
|
||||||
|
bitField0_ |= 0x00008000;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case -2082324045: {
|
case -2082324045: {
|
||||||
if (input.isAtField(FieldNames.nextPackage)) {
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
if (!input.trySkipNullValue()) {
|
if (!input.trySkipNullValue()) {
|
||||||
input.readBytes(nextPackage);
|
input.readBytes(nextPackage);
|
||||||
bitField0_ |= 0x00004000;
|
bitField0_ |= 0x00010000;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
input.skipUnknownField();
|
input.skipUnknownField();
|
||||||
@@ -1690,6 +1888,10 @@ public final class ActivityDetail {
|
|||||||
|
|
||||||
static final FieldName bdConvert = FieldName.forField("BdConvert");
|
static final FieldName bdConvert = FieldName.forField("BdConvert");
|
||||||
|
|
||||||
|
static final FieldName trekkerVersus = FieldName.forField("TrekkerVersus");
|
||||||
|
|
||||||
|
static final FieldName storyChapter = FieldName.forField("StoryChapter");
|
||||||
|
|
||||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,543 @@
|
|||||||
|
// 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 ActivityStoryApply {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code ActivityStoryApplyReq}
|
||||||
|
*/
|
||||||
|
public static final class ActivityStoryApplyReq extends ProtoMessage<ActivityStoryApplyReq> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
*/
|
||||||
|
private long buildId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 ActivityId = 1;</code>
|
||||||
|
*/
|
||||||
|
private int activityId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 StoryId = 2;</code>
|
||||||
|
*/
|
||||||
|
private int storyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
private ActivityStoryApplyReq() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code ActivityStoryApplyReq}
|
||||||
|
*/
|
||||||
|
public static ActivityStoryApplyReq newInstance() {
|
||||||
|
return new ActivityStoryApplyReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @return whether the buildId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBuildId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityStoryApplyReq clearBuildId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
buildId = 0L;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @return the buildId
|
||||||
|
*/
|
||||||
|
public long getBuildId() {
|
||||||
|
return buildId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @param value the buildId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityStoryApplyReq setBuildId(final long value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
buildId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 ActivityId = 1;</code>
|
||||||
|
* @return whether the activityId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasActivityId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 ActivityId = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityStoryApplyReq clearActivityId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
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 ActivityStoryApplyReq setActivityId(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
activityId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 StoryId = 2;</code>
|
||||||
|
* @return whether the storyId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasStoryId() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 StoryId = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityStoryApplyReq clearStoryId() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
storyId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 StoryId = 2;</code>
|
||||||
|
* @return the storyId
|
||||||
|
*/
|
||||||
|
public int getStoryId() {
|
||||||
|
return storyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 StoryId = 2;</code>
|
||||||
|
* @param value the storyId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityStoryApplyReq setStoryId(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
storyId = 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 ActivityStoryApplyReq 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 ActivityStoryApplyReq 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 ActivityStoryApplyReq 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 ActivityStoryApplyReq setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityStoryApplyReq copyFrom(final ActivityStoryApplyReq other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
buildId = other.buildId;
|
||||||
|
activityId = other.activityId;
|
||||||
|
storyId = other.storyId;
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityStoryApplyReq mergeFrom(final ActivityStoryApplyReq other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasBuildId()) {
|
||||||
|
setBuildId(other.buildId);
|
||||||
|
}
|
||||||
|
if (other.hasActivityId()) {
|
||||||
|
setActivityId(other.activityId);
|
||||||
|
}
|
||||||
|
if (other.hasStoryId()) {
|
||||||
|
setStoryId(other.storyId);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityStoryApplyReq clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
buildId = 0L;
|
||||||
|
activityId = 0;
|
||||||
|
storyId = 0;
|
||||||
|
nextPackage.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityStoryApplyReq 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 ActivityStoryApplyReq)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ActivityStoryApplyReq other = (ActivityStoryApplyReq) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasBuildId() || buildId == other.buildId)
|
||||||
|
&& (!hasActivityId() || activityId == other.activityId)
|
||||||
|
&& (!hasStoryId() || storyId == other.storyId)
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 24);
|
||||||
|
output.writeUInt64NoTag(buildId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 8);
|
||||||
|
output.writeUInt32NoTag(activityId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRawByte((byte) 16);
|
||||||
|
output.writeUInt32NoTag(storyId);
|
||||||
|
}
|
||||||
|
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.computeUInt64SizeNoTag(buildId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public ActivityStoryApplyReq mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 24: {
|
||||||
|
// buildId
|
||||||
|
buildId = input.readUInt64();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 8) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 8: {
|
||||||
|
// activityId
|
||||||
|
activityId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16: {
|
||||||
|
// storyId
|
||||||
|
storyId = 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.writeUInt64(FieldNames.buildId, buildId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.activityId, activityId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.storyId, storyId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityStoryApplyReq 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 -252882774: {
|
||||||
|
if (input.isAtField(FieldNames.activityId)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
activityId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -219598640: {
|
||||||
|
if (input.isAtField(FieldNames.storyId)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
storyId = 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 ActivityStoryApplyReq clone() {
|
||||||
|
return new ActivityStoryApplyReq().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityStoryApplyReq parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityStoryApplyReq(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityStoryApplyReq parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityStoryApplyReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityStoryApplyReq parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityStoryApplyReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating ActivityStoryApplyReq messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<ActivityStoryApplyReq> getFactory() {
|
||||||
|
return ActivityStoryApplyReqFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum ActivityStoryApplyReqFactory implements MessageFactory<ActivityStoryApplyReq> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityStoryApplyReq create() {
|
||||||
|
return ActivityStoryApplyReq.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName buildId = FieldName.forField("BuildId");
|
||||||
|
|
||||||
|
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||||
|
|
||||||
|
static final FieldName storyId = FieldName.forField("StoryId");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,666 @@
|
|||||||
|
// 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.RepeatedInt;
|
||||||
|
|
||||||
|
public final class ActivityTrekkerVersusApply {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code ActivityTrekkerVersusApplyReq}
|
||||||
|
*/
|
||||||
|
public static final class ActivityTrekkerVersusApplyReq extends ProtoMessage<ActivityTrekkerVersusApplyReq> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
*/
|
||||||
|
private long buildId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 ActivityId = 1;</code>
|
||||||
|
*/
|
||||||
|
private int activityId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 2;</code>
|
||||||
|
*/
|
||||||
|
private int levelId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 4;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedInt affixIds = RepeatedInt.newEmptyInstance();
|
||||||
|
|
||||||
|
private ActivityTrekkerVersusApplyReq() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code ActivityTrekkerVersusApplyReq}
|
||||||
|
*/
|
||||||
|
public static ActivityTrekkerVersusApplyReq newInstance() {
|
||||||
|
return new ActivityTrekkerVersusApplyReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @return whether the buildId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBuildId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq clearBuildId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
buildId = 0L;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @return the buildId
|
||||||
|
*/
|
||||||
|
public long getBuildId() {
|
||||||
|
return buildId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint64 BuildId = 3;</code>
|
||||||
|
* @param value the buildId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq setBuildId(final long value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
buildId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 ActivityId = 1;</code>
|
||||||
|
* @return whether the activityId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasActivityId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 ActivityId = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq clearActivityId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
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 ActivityTrekkerVersusApplyReq setActivityId(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
activityId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 2;</code>
|
||||||
|
* @return whether the levelId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasLevelId() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq clearLevelId() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
levelId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 2;</code>
|
||||||
|
* @return the levelId
|
||||||
|
*/
|
||||||
|
public int getLevelId() {
|
||||||
|
return levelId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 2;</code>
|
||||||
|
* @param value the levelId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq setLevelId(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
levelId = 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 ActivityTrekkerVersusApplyReq 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 ActivityTrekkerVersusApplyReq 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 ActivityTrekkerVersusApplyReq 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 ActivityTrekkerVersusApplyReq setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 4;</code>
|
||||||
|
* @return whether the affixIds field is set
|
||||||
|
*/
|
||||||
|
public boolean hasAffixIds() {
|
||||||
|
return (bitField0_ & 0x00000010) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 4;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq clearAffixIds() {
|
||||||
|
bitField0_ &= ~0x00000010;
|
||||||
|
affixIds.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 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 #getMutableAffixIds()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedInt getAffixIds() {
|
||||||
|
return affixIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 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 RepeatedInt getMutableAffixIds() {
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
return affixIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 4;</code>
|
||||||
|
* @param value the affixIds to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq addAffixIds(final int value) {
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
affixIds.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 AffixIds = 4;</code>
|
||||||
|
* @param values the affixIds to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusApplyReq addAllAffixIds(final int... values) {
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
affixIds.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq copyFrom(final ActivityTrekkerVersusApplyReq other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
buildId = other.buildId;
|
||||||
|
activityId = other.activityId;
|
||||||
|
levelId = other.levelId;
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
affixIds.copyFrom(other.affixIds);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq mergeFrom(final ActivityTrekkerVersusApplyReq other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasBuildId()) {
|
||||||
|
setBuildId(other.buildId);
|
||||||
|
}
|
||||||
|
if (other.hasActivityId()) {
|
||||||
|
setActivityId(other.activityId);
|
||||||
|
}
|
||||||
|
if (other.hasLevelId()) {
|
||||||
|
setLevelId(other.levelId);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
if (other.hasAffixIds()) {
|
||||||
|
getMutableAffixIds().addAll(other.affixIds);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
buildId = 0L;
|
||||||
|
activityId = 0;
|
||||||
|
levelId = 0;
|
||||||
|
nextPackage.clear();
|
||||||
|
affixIds.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
nextPackage.clear();
|
||||||
|
affixIds.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof ActivityTrekkerVersusApplyReq)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ActivityTrekkerVersusApplyReq other = (ActivityTrekkerVersusApplyReq) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasBuildId() || buildId == other.buildId)
|
||||||
|
&& (!hasActivityId() || activityId == other.activityId)
|
||||||
|
&& (!hasLevelId() || levelId == other.levelId)
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasAffixIds() || affixIds.equals(other.affixIds));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 24);
|
||||||
|
output.writeUInt64NoTag(buildId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 8);
|
||||||
|
output.writeUInt32NoTag(activityId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRawByte((byte) 16);
|
||||||
|
output.writeUInt32NoTag(levelId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
|
output.writeBytesNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000010) != 0) {
|
||||||
|
for (int i = 0; i < affixIds.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 32);
|
||||||
|
output.writeUInt32NoTag(affixIds.array()[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000010) != 0) {
|
||||||
|
size += (1 * affixIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(affixIds);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public ActivityTrekkerVersusApplyReq mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 24: {
|
||||||
|
// buildId
|
||||||
|
buildId = input.readUInt64();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 8) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 8: {
|
||||||
|
// activityId
|
||||||
|
activityId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16: {
|
||||||
|
// levelId
|
||||||
|
levelId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16378) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16378: {
|
||||||
|
// nextPackage
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 34) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 34: {
|
||||||
|
// affixIds [packed=true]
|
||||||
|
input.readPackedUInt32(affixIds, tag);
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 32: {
|
||||||
|
// affixIds [packed=false]
|
||||||
|
tag = input.readRepeatedUInt32(affixIds, tag);
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
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.writeUInt32(FieldNames.activityId, activityId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.levelId, levelId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000010) != 0) {
|
||||||
|
output.writeRepeatedUInt32(FieldNames.affixIds, affixIds);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq 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 -252882774: {
|
||||||
|
if (input.isAtField(FieldNames.activityId)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
activityId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 1734437791: {
|
||||||
|
if (input.isAtField(FieldNames.levelId)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
levelId = 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;
|
||||||
|
}
|
||||||
|
case 670408424: {
|
||||||
|
if (input.isAtField(FieldNames.affixIds)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedUInt32(affixIds);
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq clone() {
|
||||||
|
return new ActivityTrekkerVersusApplyReq().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityTrekkerVersusApplyReq parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityTrekkerVersusApplyReq(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityTrekkerVersusApplyReq parseFrom(final ProtoSource input) throws
|
||||||
|
IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityTrekkerVersusApplyReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityTrekkerVersusApplyReq parseFrom(final JsonSource input) throws
|
||||||
|
IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityTrekkerVersusApplyReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating ActivityTrekkerVersusApplyReq messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<ActivityTrekkerVersusApplyReq> getFactory() {
|
||||||
|
return ActivityTrekkerVersusApplyReqFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum ActivityTrekkerVersusApplyReqFactory implements MessageFactory<ActivityTrekkerVersusApplyReq> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusApplyReq create() {
|
||||||
|
return ActivityTrekkerVersusApplyReq.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName buildId = FieldName.forField("BuildId");
|
||||||
|
|
||||||
|
static final FieldName activityId = FieldName.forField("ActivityId");
|
||||||
|
|
||||||
|
static final FieldName levelId = FieldName.forField("LevelId");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName affixIds = FieldName.forField("AffixIds");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,524 @@
|
|||||||
|
// 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 ActivityTrekkerVersusRewardReceive {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code ActivityTrekkerVersusRewardReceiveResp}
|
||||||
|
*/
|
||||||
|
public static final class ActivityTrekkerVersusRewardReceiveResp extends ProtoMessage<ActivityTrekkerVersusRewardReceiveResp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*/
|
||||||
|
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<Public.ItemTpl> awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
|
||||||
|
|
||||||
|
private ActivityTrekkerVersusRewardReceiveResp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code ActivityTrekkerVersusRewardReceiveResp}
|
||||||
|
*/
|
||||||
|
public static ActivityTrekkerVersusRewardReceiveResp newInstance() {
|
||||||
|
return new ActivityTrekkerVersusRewardReceiveResp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @return whether the change field is set
|
||||||
|
*/
|
||||||
|
public boolean hasChange() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp clearChange() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
change.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableChange()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getChange() {
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getMutableChange() {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @param value the change to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp setChange(final Public.ChangeInfo value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
change.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return whether the nextPackage field is set
|
||||||
|
*/
|
||||||
|
public boolean hasNextPackage() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp 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 ActivityTrekkerVersusRewardReceiveResp 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 ActivityTrekkerVersusRewardReceiveResp 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 ActivityTrekkerVersusRewardReceiveResp setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
* @return whether the awardItems field is set
|
||||||
|
*/
|
||||||
|
public boolean hasAwardItems() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp clearAwardItems() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
awardItems.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableAwardItems()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getAwardItems() {
|
||||||
|
return awardItems;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getMutableAwardItems() {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
return awardItems;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
* @param value the awardItems to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp addAwardItems(final Public.ItemTpl value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
awardItems.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl AwardItems = 2;</code>
|
||||||
|
* @param values the awardItems to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp addAllAwardItems(final Public.ItemTpl... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
awardItems.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp copyFrom(
|
||||||
|
final ActivityTrekkerVersusRewardReceiveResp other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
change.copyFrom(other.change);
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
awardItems.copyFrom(other.awardItems);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp mergeFrom(
|
||||||
|
final ActivityTrekkerVersusRewardReceiveResp other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasChange()) {
|
||||||
|
getMutableChange().mergeFrom(other.change);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
if (other.hasAwardItems()) {
|
||||||
|
getMutableAwardItems().addAll(other.awardItems);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clear();
|
||||||
|
nextPackage.clear();
|
||||||
|
awardItems.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clearQuick();
|
||||||
|
nextPackage.clear();
|
||||||
|
awardItems.clearQuick();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof ActivityTrekkerVersusRewardReceiveResp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ActivityTrekkerVersusRewardReceiveResp other = (ActivityTrekkerVersusRewardReceiveResp) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasChange() || change.equals(other.change))
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasAwardItems() || awardItems.equals(other.awardItems));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 10);
|
||||||
|
output.writeMessageNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
|
output.writeBytesNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
for (int i = 0; i < awardItems.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 18);
|
||||||
|
output.writeMessageNoTag(awardItems.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp mergeFrom(final ProtoSource input) throws
|
||||||
|
IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 10: {
|
||||||
|
// change
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16378) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16378: {
|
||||||
|
// nextPackage
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 18) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 18: {
|
||||||
|
// awardItems
|
||||||
|
tag = input.readRepeatedMessage(awardItems, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeMessage(FieldNames.change, change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.awardItems, awardItems);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp mergeFrom(final JsonSource input) throws
|
||||||
|
IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 2017198032: {
|
||||||
|
if (input.isAtField(FieldNames.change)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -2082324045: {
|
||||||
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -1943188605: {
|
||||||
|
if (input.isAtField(FieldNames.awardItems)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(awardItems);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp clone() {
|
||||||
|
return new ActivityTrekkerVersusRewardReceiveResp().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityTrekkerVersusRewardReceiveResp parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRewardReceiveResp(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityTrekkerVersusRewardReceiveResp parseFrom(final ProtoSource input) throws
|
||||||
|
IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRewardReceiveResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ActivityTrekkerVersusRewardReceiveResp parseFrom(final JsonSource input) throws
|
||||||
|
IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new ActivityTrekkerVersusRewardReceiveResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating ActivityTrekkerVersusRewardReceiveResp messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<ActivityTrekkerVersusRewardReceiveResp> getFactory() {
|
||||||
|
return ActivityTrekkerVersusRewardReceiveRespFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum ActivityTrekkerVersusRewardReceiveRespFactory implements MessageFactory<ActivityTrekkerVersusRewardReceiveResp> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivityTrekkerVersusRewardReceiveResp create() {
|
||||||
|
return ActivityTrekkerVersusRewardReceiveResp.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName change = FieldName.forField("Change");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName awardItems = FieldName.forField("AwardItems");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -35,6 +35,11 @@ public final class GachaSpin {
|
|||||||
*/
|
*/
|
||||||
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<Public.ItemTpl> check = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
|
||||||
|
|
||||||
private GachaSpinReq() {
|
private GachaSpinReq() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -198,6 +203,74 @@ public final class GachaSpin {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</code>
|
||||||
|
* @return whether the check field is set
|
||||||
|
*/
|
||||||
|
public boolean hasCheck() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinReq clearCheck() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
check.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</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 #getMutableCheck()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getCheck() {
|
||||||
|
return check;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getMutableCheck() {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return check;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</code>
|
||||||
|
* @param value the check to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinReq addCheck(final Public.ItemTpl value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
check.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl Check = 15;</code>
|
||||||
|
* @param values the check to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinReq addAllCheck(final Public.ItemTpl... values) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
check.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public GachaSpinReq copyFrom(final GachaSpinReq other) {
|
public GachaSpinReq copyFrom(final GachaSpinReq other) {
|
||||||
cachedSize = other.cachedSize;
|
cachedSize = other.cachedSize;
|
||||||
@@ -206,6 +279,7 @@ public final class GachaSpin {
|
|||||||
id = other.id;
|
id = other.id;
|
||||||
mode = other.mode;
|
mode = other.mode;
|
||||||
nextPackage.copyFrom(other.nextPackage);
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
check.copyFrom(other.check);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -225,6 +299,9 @@ public final class GachaSpin {
|
|||||||
if (other.hasNextPackage()) {
|
if (other.hasNextPackage()) {
|
||||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
}
|
}
|
||||||
|
if (other.hasCheck()) {
|
||||||
|
getMutableCheck().addAll(other.check);
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,6 +315,7 @@ public final class GachaSpin {
|
|||||||
id = 0;
|
id = 0;
|
||||||
mode = 0;
|
mode = 0;
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
|
check.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,6 +327,7 @@ public final class GachaSpin {
|
|||||||
cachedSize = -1;
|
cachedSize = -1;
|
||||||
bitField0_ = 0;
|
bitField0_ = 0;
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
|
check.clearQuick();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,7 +343,8 @@ public final class GachaSpin {
|
|||||||
return bitField0_ == other.bitField0_
|
return bitField0_ == other.bitField0_
|
||||||
&& (!hasId() || id == other.id)
|
&& (!hasId() || id == other.id)
|
||||||
&& (!hasMode() || mode == other.mode)
|
&& (!hasMode() || mode == other.mode)
|
||||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasCheck() || check.equals(other.check));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -281,6 +361,12 @@ public final class GachaSpin {
|
|||||||
output.writeRawLittleEndian16((short) 32762);
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
output.writeBytesNoTag(nextPackage);
|
output.writeBytesNoTag(nextPackage);
|
||||||
}
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
for (int i = 0; i < check.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 122);
|
||||||
|
output.writeMessageNoTag(check.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -295,6 +381,9 @@ public final class GachaSpin {
|
|||||||
if ((bitField0_ & 0x00000004) != 0) {
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
}
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += (1 * check.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(check);
|
||||||
|
}
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,6 +417,14 @@ public final class GachaSpin {
|
|||||||
input.readBytes(nextPackage);
|
input.readBytes(nextPackage);
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000004;
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
|
if (tag != 122) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 122: {
|
||||||
|
// check
|
||||||
|
tag = input.readRepeatedMessage(check, tag);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
if (tag != 0) {
|
if (tag != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -358,6 +455,9 @@ public final class GachaSpin {
|
|||||||
if ((bitField0_ & 0x00000004) != 0) {
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
}
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.check, check);
|
||||||
|
}
|
||||||
output.endObject();
|
output.endObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -401,6 +501,17 @@ public final class GachaSpin {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 65074408: {
|
||||||
|
if (input.isAtField(FieldNames.check)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(check);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
input.skipUnknownField();
|
input.skipUnknownField();
|
||||||
break;
|
break;
|
||||||
@@ -458,6 +569,8 @@ public final class GachaSpin {
|
|||||||
static final FieldName mode = FieldName.forField("Mode");
|
static final FieldName mode = FieldName.forField("Mode");
|
||||||
|
|
||||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName check = FieldName.forField("Check");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2022,4 +2135,518 @@ public final class GachaSpin {
|
|||||||
static final FieldName rewards = FieldName.forField("Rewards");
|
static final FieldName rewards = FieldName.forField("Rewards");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code GachaSpinSyncResp}
|
||||||
|
*/
|
||||||
|
public static final class GachaSpinSyncResp extends ProtoMessage<GachaSpinSyncResp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<Public.Res> res = RepeatedMessage.newEmptyInstance(Public.Res.getFactory());
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 3;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<Public.Item> items = RepeatedMessage.newEmptyInstance(Public.Item.getFactory());
|
||||||
|
|
||||||
|
private GachaSpinSyncResp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code GachaSpinSyncResp}
|
||||||
|
*/
|
||||||
|
public static GachaSpinSyncResp newInstance() {
|
||||||
|
return new GachaSpinSyncResp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return whether the nextPackage field is set
|
||||||
|
*/
|
||||||
|
public boolean hasNextPackage() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp clearNextPackage() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
nextPackage.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableNextPackage()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedByte getNextPackage() {
|
||||||
|
return nextPackage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedByte getMutableNextPackage() {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
return nextPackage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @param value the nextPackage to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp addNextPackage(final byte value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
nextPackage.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @param values the nextPackage to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp addAllNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
nextPackage.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @param values the nextPackage to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
* @return whether the res field is set
|
||||||
|
*/
|
||||||
|
public boolean hasRes() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp clearRes() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
res.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableRes()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.Res> getRes() {
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.Res> getMutableRes() {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
* @param value the res to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp addRes(final Public.Res value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
res.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Res Res = 2;</code>
|
||||||
|
* @param values the res to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp addAllRes(final Public.Res... values) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
res.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 3;</code>
|
||||||
|
* @return whether the items field is set
|
||||||
|
*/
|
||||||
|
public boolean hasItems() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp clearItems() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
items.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 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 #getMutableItems()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.Item> getItems() {
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 3;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.Item> getMutableItems() {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 3;</code>
|
||||||
|
* @param value the items to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp addItems(final Public.Item value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
items.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .Item Items = 3;</code>
|
||||||
|
* @param values the items to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GachaSpinSyncResp addAllItems(final Public.Item... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
items.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp copyFrom(final GachaSpinSyncResp other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
res.copyFrom(other.res);
|
||||||
|
items.copyFrom(other.items);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp mergeFrom(final GachaSpinSyncResp other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
if (other.hasRes()) {
|
||||||
|
getMutableRes().addAll(other.res);
|
||||||
|
}
|
||||||
|
if (other.hasItems()) {
|
||||||
|
getMutableItems().addAll(other.items);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
nextPackage.clear();
|
||||||
|
res.clear();
|
||||||
|
items.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
nextPackage.clear();
|
||||||
|
res.clearQuick();
|
||||||
|
items.clearQuick();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof GachaSpinSyncResp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GachaSpinSyncResp other = (GachaSpinSyncResp) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasRes() || res.equals(other.res))
|
||||||
|
&& (!hasItems() || items.equals(other.items));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
|
output.writeBytesNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
for (int i = 0; i < res.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 18);
|
||||||
|
output.writeMessageNoTag(res.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
for (int i = 0; i < items.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 26);
|
||||||
|
output.writeMessageNoTag(items.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public GachaSpinSyncResp mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 16378: {
|
||||||
|
// nextPackage
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 18) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 18: {
|
||||||
|
// res
|
||||||
|
tag = input.readRepeatedMessage(res, tag);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
if (tag != 26) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 26: {
|
||||||
|
// items
|
||||||
|
tag = input.readRepeatedMessage(items, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.res, res);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.items, items);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case -2082324045: {
|
||||||
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 82048: {
|
||||||
|
if (input.isAtField(FieldNames.res)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(res);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 70973344: {
|
||||||
|
if (input.isAtField(FieldNames.items)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(items);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp clone() {
|
||||||
|
return new GachaSpinSyncResp().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GachaSpinSyncResp parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new GachaSpinSyncResp(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GachaSpinSyncResp parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new GachaSpinSyncResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GachaSpinSyncResp parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new GachaSpinSyncResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating GachaSpinSyncResp messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<GachaSpinSyncResp> getFactory() {
|
||||||
|
return GachaSpinSyncRespFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum GachaSpinSyncRespFactory implements MessageFactory<GachaSpinSyncResp> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GachaSpinSyncResp create() {
|
||||||
|
return GachaSpinSyncResp.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName res = FieldName.forField("Res");
|
||||||
|
|
||||||
|
static final FieldName items = FieldName.forField("Items");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10948,4 +10948,607 @@ public final class NotifyGm {
|
|||||||
static final FieldName levels = FieldName.forField("levels");
|
static final FieldName levels = FieldName.forField("levels");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code AssistAddBuildNotify}
|
||||||
|
*/
|
||||||
|
public static final class AssistAddBuildNotify extends ProtoMessage<AssistAddBuildNotify> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*/
|
||||||
|
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
*/
|
||||||
|
private final PublicStarTower.StarTowerBuildInfo buildInfo = PublicStarTower.StarTowerBuildInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<Public.ItemTpl> buildRewards = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
|
||||||
|
|
||||||
|
private AssistAddBuildNotify() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code AssistAddBuildNotify}
|
||||||
|
*/
|
||||||
|
public static AssistAddBuildNotify newInstance() {
|
||||||
|
return new AssistAddBuildNotify();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @return whether the change field is set
|
||||||
|
*/
|
||||||
|
public boolean hasChange() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify clearChange() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
change.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableChange()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getChange() {
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getMutableChange() {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @param value the change to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify setChange(final Public.ChangeInfo value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
change.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
* @return whether the buildInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBuildInfo() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify clearBuildInfo() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
buildInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 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 #getMutableBuildInfo()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public PublicStarTower.StarTowerBuildInfo getBuildInfo() {
|
||||||
|
return buildInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 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 PublicStarTower.StarTowerBuildInfo getMutableBuildInfo() {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
return buildInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
* @param value the buildInfo to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify setBuildInfo(final PublicStarTower.StarTowerBuildInfo value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
buildInfo.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return whether the nextPackage field is set
|
||||||
|
*/
|
||||||
|
public boolean hasNextPackage() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify 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 AssistAddBuildNotify 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 AssistAddBuildNotify 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 AssistAddBuildNotify setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @return whether the buildRewards field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBuildRewards() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify clearBuildRewards() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
buildRewards.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableBuildRewards()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getBuildRewards() {
|
||||||
|
return buildRewards;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getMutableBuildRewards() {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return buildRewards;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @param value the buildRewards to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify addBuildRewards(final Public.ItemTpl value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
buildRewards.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @param values the buildRewards to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistAddBuildNotify addAllBuildRewards(final Public.ItemTpl... values) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
buildRewards.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify copyFrom(final AssistAddBuildNotify other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
change.copyFrom(other.change);
|
||||||
|
buildInfo.copyFrom(other.buildInfo);
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
buildRewards.copyFrom(other.buildRewards);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify mergeFrom(final AssistAddBuildNotify other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasChange()) {
|
||||||
|
getMutableChange().mergeFrom(other.change);
|
||||||
|
}
|
||||||
|
if (other.hasBuildInfo()) {
|
||||||
|
getMutableBuildInfo().mergeFrom(other.buildInfo);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
if (other.hasBuildRewards()) {
|
||||||
|
getMutableBuildRewards().addAll(other.buildRewards);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clear();
|
||||||
|
buildInfo.clear();
|
||||||
|
nextPackage.clear();
|
||||||
|
buildRewards.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clearQuick();
|
||||||
|
buildInfo.clearQuick();
|
||||||
|
nextPackage.clear();
|
||||||
|
buildRewards.clearQuick();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof AssistAddBuildNotify)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AssistAddBuildNotify other = (AssistAddBuildNotify) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasChange() || change.equals(other.change))
|
||||||
|
&& (!hasBuildInfo() || buildInfo.equals(other.buildInfo))
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasBuildRewards() || buildRewards.equals(other.buildRewards));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 10);
|
||||||
|
output.writeMessageNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 26);
|
||||||
|
output.writeMessageNoTag(buildInfo);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
|
output.writeBytesNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
for (int i = 0; i < buildRewards.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 18);
|
||||||
|
output.writeMessageNoTag(buildRewards.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(buildInfo);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += (1 * buildRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buildRewards);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public AssistAddBuildNotify mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 10: {
|
||||||
|
// change
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 26) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 26: {
|
||||||
|
// buildInfo
|
||||||
|
input.readMessage(buildInfo);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16378) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16378: {
|
||||||
|
// nextPackage
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 18) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 18: {
|
||||||
|
// buildRewards
|
||||||
|
tag = input.readRepeatedMessage(buildRewards, tag);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeMessage(FieldNames.change, change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeMessage(FieldNames.buildInfo, buildInfo);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.buildRewards, buildRewards);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 2017198032: {
|
||||||
|
if (input.isAtField(FieldNames.change)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 602658844: {
|
||||||
|
if (input.isAtField(FieldNames.buildInfo)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(buildInfo);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -2082324045: {
|
||||||
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 1656054: {
|
||||||
|
if (input.isAtField(FieldNames.buildRewards)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(buildRewards);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify clone() {
|
||||||
|
return new AssistAddBuildNotify().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistAddBuildNotify parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistAddBuildNotify(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistAddBuildNotify parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistAddBuildNotify(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistAddBuildNotify parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistAddBuildNotify(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating AssistAddBuildNotify messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<AssistAddBuildNotify> getFactory() {
|
||||||
|
return AssistAddBuildNotifyFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum AssistAddBuildNotifyFactory implements MessageFactory<AssistAddBuildNotify> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistAddBuildNotify create() {
|
||||||
|
return AssistAddBuildNotify.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName change = FieldName.forField("Change");
|
||||||
|
|
||||||
|
static final FieldName buildInfo = FieldName.forField("BuildInfo");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName buildRewards = FieldName.forField("BuildRewards");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,619 @@
|
|||||||
|
// 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 QuestAssistGroupRewardReceive {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code AssistGroupRewardResp}
|
||||||
|
*/
|
||||||
|
public static final class AssistGroupRewardResp extends ProtoMessage<AssistGroupRewardResp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*/
|
||||||
|
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
*/
|
||||||
|
private final PublicStarTower.StarTowerBuildInfo buildInfo = PublicStarTower.StarTowerBuildInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<Public.ItemTpl> buildRewards = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
|
||||||
|
|
||||||
|
private AssistGroupRewardResp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code AssistGroupRewardResp}
|
||||||
|
*/
|
||||||
|
public static AssistGroupRewardResp newInstance() {
|
||||||
|
return new AssistGroupRewardResp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @return whether the change field is set
|
||||||
|
*/
|
||||||
|
public boolean hasChange() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp clearChange() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
change.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableChange()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getChange() {
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getMutableChange() {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 1;</code>
|
||||||
|
* @param value the change to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp setChange(final Public.ChangeInfo value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
change.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
* @return whether the buildInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBuildInfo() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp clearBuildInfo() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
buildInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 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 #getMutableBuildInfo()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public PublicStarTower.StarTowerBuildInfo getBuildInfo() {
|
||||||
|
return buildInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 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 PublicStarTower.StarTowerBuildInfo getMutableBuildInfo() {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
return buildInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .StarTowerBuildInfo BuildInfo = 3;</code>
|
||||||
|
* @param value the buildInfo to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp setBuildInfo(final PublicStarTower.StarTowerBuildInfo value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
buildInfo.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return whether the nextPackage field is set
|
||||||
|
*/
|
||||||
|
public boolean hasNextPackage() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp 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 AssistGroupRewardResp 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 AssistGroupRewardResp 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 AssistGroupRewardResp setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @return whether the buildRewards field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBuildRewards() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp clearBuildRewards() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
buildRewards.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableBuildRewards()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getBuildRewards() {
|
||||||
|
return buildRewards;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<Public.ItemTpl> getMutableBuildRewards() {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return buildRewards;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @param value the buildRewards to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp addBuildRewards(final Public.ItemTpl value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
buildRewards.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .ItemTpl BuildRewards = 2;</code>
|
||||||
|
* @param values the buildRewards to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistGroupRewardResp addAllBuildRewards(final Public.ItemTpl... values) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
buildRewards.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp copyFrom(final AssistGroupRewardResp other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
change.copyFrom(other.change);
|
||||||
|
buildInfo.copyFrom(other.buildInfo);
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
buildRewards.copyFrom(other.buildRewards);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp mergeFrom(final AssistGroupRewardResp other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasChange()) {
|
||||||
|
getMutableChange().mergeFrom(other.change);
|
||||||
|
}
|
||||||
|
if (other.hasBuildInfo()) {
|
||||||
|
getMutableBuildInfo().mergeFrom(other.buildInfo);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
if (other.hasBuildRewards()) {
|
||||||
|
getMutableBuildRewards().addAll(other.buildRewards);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clear();
|
||||||
|
buildInfo.clear();
|
||||||
|
nextPackage.clear();
|
||||||
|
buildRewards.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clearQuick();
|
||||||
|
buildInfo.clearQuick();
|
||||||
|
nextPackage.clear();
|
||||||
|
buildRewards.clearQuick();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof AssistGroupRewardResp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AssistGroupRewardResp other = (AssistGroupRewardResp) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasChange() || change.equals(other.change))
|
||||||
|
&& (!hasBuildInfo() || buildInfo.equals(other.buildInfo))
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasBuildRewards() || buildRewards.equals(other.buildRewards));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 10);
|
||||||
|
output.writeMessageNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 26);
|
||||||
|
output.writeMessageNoTag(buildInfo);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
|
output.writeBytesNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
for (int i = 0; i < buildRewards.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 18);
|
||||||
|
output.writeMessageNoTag(buildRewards.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(buildInfo);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += (1 * buildRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buildRewards);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public AssistGroupRewardResp mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 10: {
|
||||||
|
// change
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 26) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 26: {
|
||||||
|
// buildInfo
|
||||||
|
input.readMessage(buildInfo);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16378) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16378: {
|
||||||
|
// nextPackage
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 18) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 18: {
|
||||||
|
// buildRewards
|
||||||
|
tag = input.readRepeatedMessage(buildRewards, tag);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeMessage(FieldNames.change, change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeMessage(FieldNames.buildInfo, buildInfo);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.buildRewards, buildRewards);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 2017198032: {
|
||||||
|
if (input.isAtField(FieldNames.change)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 602658844: {
|
||||||
|
if (input.isAtField(FieldNames.buildInfo)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(buildInfo);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -2082324045: {
|
||||||
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 1656054: {
|
||||||
|
if (input.isAtField(FieldNames.buildRewards)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(buildRewards);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp clone() {
|
||||||
|
return new AssistGroupRewardResp().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistGroupRewardResp parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistGroupRewardResp(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistGroupRewardResp parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistGroupRewardResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistGroupRewardResp parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistGroupRewardResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating AssistGroupRewardResp messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<AssistGroupRewardResp> getFactory() {
|
||||||
|
return AssistGroupRewardRespFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum AssistGroupRewardRespFactory implements MessageFactory<AssistGroupRewardResp> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistGroupRewardResp create() {
|
||||||
|
return AssistGroupRewardResp.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName change = FieldName.forField("Change");
|
||||||
|
|
||||||
|
static final FieldName buildInfo = FieldName.forField("BuildInfo");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName buildRewards = FieldName.forField("BuildRewards");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,463 @@
|
|||||||
|
// Code generated by protocol buffer compiler. Do not edit!
|
||||||
|
package emu.nebula.proto;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import us.hebi.quickbuf.FieldName;
|
||||||
|
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||||
|
import us.hebi.quickbuf.JsonSink;
|
||||||
|
import us.hebi.quickbuf.JsonSource;
|
||||||
|
import us.hebi.quickbuf.MessageFactory;
|
||||||
|
import us.hebi.quickbuf.ProtoMessage;
|
||||||
|
import us.hebi.quickbuf.ProtoSink;
|
||||||
|
import us.hebi.quickbuf.ProtoSource;
|
||||||
|
import us.hebi.quickbuf.RepeatedByte;
|
||||||
|
|
||||||
|
public final class QuestAssistRewardReceive {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code AssistQuestReceiveReq}
|
||||||
|
*/
|
||||||
|
public static final class AssistQuestReceiveReq extends ProtoMessage<AssistQuestReceiveReq> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Group = 1;</code>
|
||||||
|
*/
|
||||||
|
private int group;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Quest = 2;</code>
|
||||||
|
*/
|
||||||
|
private int quest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
private AssistQuestReceiveReq() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code AssistQuestReceiveReq}
|
||||||
|
*/
|
||||||
|
public static AssistQuestReceiveReq newInstance() {
|
||||||
|
return new AssistQuestReceiveReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Group = 1;</code>
|
||||||
|
* @return whether the group field is set
|
||||||
|
*/
|
||||||
|
public boolean hasGroup() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Group = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistQuestReceiveReq clearGroup() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
group = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Group = 1;</code>
|
||||||
|
* @return the group
|
||||||
|
*/
|
||||||
|
public int getGroup() {
|
||||||
|
return group;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Group = 1;</code>
|
||||||
|
* @param value the group to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistQuestReceiveReq setGroup(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
group = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Quest = 2;</code>
|
||||||
|
* @return whether the quest field is set
|
||||||
|
*/
|
||||||
|
public boolean hasQuest() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Quest = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistQuestReceiveReq clearQuest() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
quest = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Quest = 2;</code>
|
||||||
|
* @return the quest
|
||||||
|
*/
|
||||||
|
public int getQuest() {
|
||||||
|
return quest;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 Quest = 2;</code>
|
||||||
|
* @param value the quest to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public AssistQuestReceiveReq setQuest(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
quest = 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 AssistQuestReceiveReq 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 AssistQuestReceiveReq 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 AssistQuestReceiveReq 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 AssistQuestReceiveReq setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistQuestReceiveReq copyFrom(final AssistQuestReceiveReq other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
group = other.group;
|
||||||
|
quest = other.quest;
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistQuestReceiveReq mergeFrom(final AssistQuestReceiveReq other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasGroup()) {
|
||||||
|
setGroup(other.group);
|
||||||
|
}
|
||||||
|
if (other.hasQuest()) {
|
||||||
|
setQuest(other.quest);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistQuestReceiveReq clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
group = 0;
|
||||||
|
quest = 0;
|
||||||
|
nextPackage.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistQuestReceiveReq 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 AssistQuestReceiveReq)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AssistQuestReceiveReq other = (AssistQuestReceiveReq) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasGroup() || group == other.group)
|
||||||
|
&& (!hasQuest() || quest == other.quest)
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 8);
|
||||||
|
output.writeUInt32NoTag(group);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 16);
|
||||||
|
output.writeUInt32NoTag(quest);
|
||||||
|
}
|
||||||
|
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(group);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(quest);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public AssistQuestReceiveReq mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 8: {
|
||||||
|
// group
|
||||||
|
group = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16: {
|
||||||
|
// quest
|
||||||
|
quest = 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.group, group);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.quest, quest);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistQuestReceiveReq mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 69076575: {
|
||||||
|
if (input.isAtField(FieldNames.group)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
group = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 78391490: {
|
||||||
|
if (input.isAtField(FieldNames.quest)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
quest = 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 AssistQuestReceiveReq clone() {
|
||||||
|
return new AssistQuestReceiveReq().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistQuestReceiveReq parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistQuestReceiveReq(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistQuestReceiveReq parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistQuestReceiveReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AssistQuestReceiveReq parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new AssistQuestReceiveReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating AssistQuestReceiveReq messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<AssistQuestReceiveReq> getFactory() {
|
||||||
|
return AssistQuestReceiveReqFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum AssistQuestReceiveReqFactory implements MessageFactory<AssistQuestReceiveReq> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AssistQuestReceiveReq create() {
|
||||||
|
return AssistQuestReceiveReq.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName group = FieldName.forField("Group");
|
||||||
|
|
||||||
|
static final FieldName quest = FieldName.forField("Quest");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,530 @@
|
|||||||
|
// 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.RepeatedInt;
|
||||||
|
|
||||||
|
public final class QuestWeeklyActiveRewardRecevie {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code QuestWeeklyActiveRewardReceiveResp}
|
||||||
|
*/
|
||||||
|
public static final class QuestWeeklyActiveRewardReceiveResp extends ProtoMessage<QuestWeeklyActiveRewardReceiveResp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 2;</code>
|
||||||
|
*/
|
||||||
|
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedInt activeIds = RepeatedInt.newEmptyInstance();
|
||||||
|
|
||||||
|
private QuestWeeklyActiveRewardReceiveResp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code QuestWeeklyActiveRewardReceiveResp}
|
||||||
|
*/
|
||||||
|
public static QuestWeeklyActiveRewardReceiveResp newInstance() {
|
||||||
|
return new QuestWeeklyActiveRewardReceiveResp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 2;</code>
|
||||||
|
* @return whether the change field is set
|
||||||
|
*/
|
||||||
|
public boolean hasChange() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp clearChange() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
change.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableChange()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getChange() {
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public Public.ChangeInfo getMutableChange() {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
return change;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .ChangeInfo Change = 2;</code>
|
||||||
|
* @param value the change to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp setChange(final Public.ChangeInfo value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
change.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return whether the nextPackage field is set
|
||||||
|
*/
|
||||||
|
public boolean hasNextPackage() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp 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 QuestWeeklyActiveRewardReceiveResp 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 QuestWeeklyActiveRewardReceiveResp 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 QuestWeeklyActiveRewardReceiveResp setNextPackage(final byte... values) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
nextPackage.copyFrom(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
* @return whether the activeIds field is set
|
||||||
|
*/
|
||||||
|
public boolean hasActiveIds() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp clearActiveIds() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
activeIds.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableActiveIds()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedInt getActiveIds() {
|
||||||
|
return activeIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedInt getMutableActiveIds() {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
return activeIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
* @param value the activeIds to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp addActiveIds(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
activeIds.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 ActiveIds = 1;</code>
|
||||||
|
* @param values the activeIds to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp addAllActiveIds(final int... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
activeIds.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp copyFrom(
|
||||||
|
final QuestWeeklyActiveRewardReceiveResp other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
change.copyFrom(other.change);
|
||||||
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
|
activeIds.copyFrom(other.activeIds);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp mergeFrom(
|
||||||
|
final QuestWeeklyActiveRewardReceiveResp other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasChange()) {
|
||||||
|
getMutableChange().mergeFrom(other.change);
|
||||||
|
}
|
||||||
|
if (other.hasNextPackage()) {
|
||||||
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
|
}
|
||||||
|
if (other.hasActiveIds()) {
|
||||||
|
getMutableActiveIds().addAll(other.activeIds);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clear();
|
||||||
|
nextPackage.clear();
|
||||||
|
activeIds.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
change.clearQuick();
|
||||||
|
nextPackage.clear();
|
||||||
|
activeIds.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof QuestWeeklyActiveRewardReceiveResp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
QuestWeeklyActiveRewardReceiveResp other = (QuestWeeklyActiveRewardReceiveResp) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasChange() || change.equals(other.change))
|
||||||
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
|
&& (!hasActiveIds() || activeIds.equals(other.activeIds));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 18);
|
||||||
|
output.writeMessageNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
|
output.writeBytesNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
for (int i = 0; i < activeIds.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 8);
|
||||||
|
output.writeUInt32NoTag(activeIds.array()[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += (1 * activeIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeIds);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp mergeFrom(final ProtoSource input) throws
|
||||||
|
IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 18: {
|
||||||
|
// change
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 16378) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 16378: {
|
||||||
|
// nextPackage
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 10) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 10: {
|
||||||
|
// activeIds [packed=true]
|
||||||
|
input.readPackedUInt32(activeIds, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 8: {
|
||||||
|
// activeIds [packed=false]
|
||||||
|
tag = input.readRepeatedUInt32(activeIds, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeMessage(FieldNames.change, change);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRepeatedUInt32(FieldNames.activeIds, activeIds);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 2017198032: {
|
||||||
|
if (input.isAtField(FieldNames.change)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(change);
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -2082324045: {
|
||||||
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readBytes(nextPackage);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -2086528590: {
|
||||||
|
if (input.isAtField(FieldNames.activeIds)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedUInt32(activeIds);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp clone() {
|
||||||
|
return new QuestWeeklyActiveRewardReceiveResp().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static QuestWeeklyActiveRewardReceiveResp parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new QuestWeeklyActiveRewardReceiveResp(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static QuestWeeklyActiveRewardReceiveResp parseFrom(final ProtoSource input) throws
|
||||||
|
IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new QuestWeeklyActiveRewardReceiveResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static QuestWeeklyActiveRewardReceiveResp parseFrom(final JsonSource input) throws
|
||||||
|
IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new QuestWeeklyActiveRewardReceiveResp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating QuestWeeklyActiveRewardReceiveResp messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<QuestWeeklyActiveRewardReceiveResp> getFactory() {
|
||||||
|
return QuestWeeklyActiveRewardReceiveRespFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum QuestWeeklyActiveRewardReceiveRespFactory implements MessageFactory<QuestWeeklyActiveRewardReceiveResp> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QuestWeeklyActiveRewardReceiveResp create() {
|
||||||
|
return QuestWeeklyActiveRewardReceiveResp.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName change = FieldName.forField("Change");
|
||||||
|
|
||||||
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
|
static final FieldName activeIds = FieldName.forField("ActiveIds");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// Code generated by protocol buffer compiler. Do not edit!
|
||||||
|
package emu.nebula.proto;
|
||||||
|
|
||||||
|
public final class QuestWeeklyRewardRecevie {
|
||||||
|
}
|
||||||
@@ -1262,6 +1262,11 @@ public final class ScoreBossRank {
|
|||||||
*/
|
*/
|
||||||
private int levelScore;
|
private int levelScore;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 4;</code>
|
||||||
|
*/
|
||||||
|
private int levelId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional bytes NextPackage = 2047;</code>
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
*/
|
*/
|
||||||
@@ -1356,12 +1361,49 @@ public final class ScoreBossRank {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 4;</code>
|
||||||
|
* @return whether the levelId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasLevelId() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 4;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ScoreBossRankTeam clearLevelId() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
levelId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 4;</code>
|
||||||
|
* @return the levelId
|
||||||
|
*/
|
||||||
|
public int getLevelId() {
|
||||||
|
return levelId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 LevelId = 4;</code>
|
||||||
|
* @param value the levelId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public ScoreBossRankTeam setLevelId(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
levelId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional bytes NextPackage = 2047;</code>
|
* <code>optional bytes NextPackage = 2047;</code>
|
||||||
* @return whether the nextPackage field is set
|
* @return whether the nextPackage field is set
|
||||||
*/
|
*/
|
||||||
public boolean hasNextPackage() {
|
public boolean hasNextPackage() {
|
||||||
return (bitField0_ & 0x00000004) != 0;
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1369,7 +1411,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam clearNextPackage() {
|
public ScoreBossRankTeam clearNextPackage() {
|
||||||
bitField0_ &= ~0x00000004;
|
bitField0_ &= ~0x00000008;
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1398,7 +1440,7 @@ public final class ScoreBossRank {
|
|||||||
* @return internal storage object for modifications
|
* @return internal storage object for modifications
|
||||||
*/
|
*/
|
||||||
public RepeatedByte getMutableNextPackage() {
|
public RepeatedByte getMutableNextPackage() {
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
return nextPackage;
|
return nextPackage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1408,7 +1450,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam addNextPackage(final byte value) {
|
public ScoreBossRankTeam addNextPackage(final byte value) {
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
nextPackage.add(value);
|
nextPackage.add(value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1419,7 +1461,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam addAllNextPackage(final byte... values) {
|
public ScoreBossRankTeam addAllNextPackage(final byte... values) {
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
nextPackage.addAll(values);
|
nextPackage.addAll(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1430,7 +1472,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam setNextPackage(final byte... values) {
|
public ScoreBossRankTeam setNextPackage(final byte... values) {
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
nextPackage.copyFrom(values);
|
nextPackage.copyFrom(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1440,7 +1482,7 @@ public final class ScoreBossRank {
|
|||||||
* @return whether the chars field is set
|
* @return whether the chars field is set
|
||||||
*/
|
*/
|
||||||
public boolean hasChars() {
|
public boolean hasChars() {
|
||||||
return (bitField0_ & 0x00000008) != 0;
|
return (bitField0_ & 0x00000010) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1448,7 +1490,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam clearChars() {
|
public ScoreBossRankTeam clearChars() {
|
||||||
bitField0_ &= ~0x00000008;
|
bitField0_ &= ~0x00000010;
|
||||||
chars.clear();
|
chars.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1477,7 +1519,7 @@ public final class ScoreBossRank {
|
|||||||
* @return internal storage object for modifications
|
* @return internal storage object for modifications
|
||||||
*/
|
*/
|
||||||
public RepeatedMessage<ScoreBossRankChar> getMutableChars() {
|
public RepeatedMessage<ScoreBossRankChar> getMutableChars() {
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
return chars;
|
return chars;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1487,7 +1529,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam addChars(final ScoreBossRankChar value) {
|
public ScoreBossRankTeam addChars(final ScoreBossRankChar value) {
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
chars.add(value);
|
chars.add(value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1498,7 +1540,7 @@ public final class ScoreBossRank {
|
|||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public ScoreBossRankTeam addAllChars(final ScoreBossRankChar... values) {
|
public ScoreBossRankTeam addAllChars(final ScoreBossRankChar... values) {
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
chars.addAll(values);
|
chars.addAll(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1510,6 +1552,7 @@ public final class ScoreBossRank {
|
|||||||
bitField0_ = other.bitField0_;
|
bitField0_ = other.bitField0_;
|
||||||
buildScore = other.buildScore;
|
buildScore = other.buildScore;
|
||||||
levelScore = other.levelScore;
|
levelScore = other.levelScore;
|
||||||
|
levelId = other.levelId;
|
||||||
nextPackage.copyFrom(other.nextPackage);
|
nextPackage.copyFrom(other.nextPackage);
|
||||||
chars.copyFrom(other.chars);
|
chars.copyFrom(other.chars);
|
||||||
}
|
}
|
||||||
@@ -1528,6 +1571,9 @@ public final class ScoreBossRank {
|
|||||||
if (other.hasLevelScore()) {
|
if (other.hasLevelScore()) {
|
||||||
setLevelScore(other.levelScore);
|
setLevelScore(other.levelScore);
|
||||||
}
|
}
|
||||||
|
if (other.hasLevelId()) {
|
||||||
|
setLevelId(other.levelId);
|
||||||
|
}
|
||||||
if (other.hasNextPackage()) {
|
if (other.hasNextPackage()) {
|
||||||
getMutableNextPackage().copyFrom(other.nextPackage);
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
||||||
}
|
}
|
||||||
@@ -1546,6 +1592,7 @@ public final class ScoreBossRank {
|
|||||||
bitField0_ = 0;
|
bitField0_ = 0;
|
||||||
buildScore = 0;
|
buildScore = 0;
|
||||||
levelScore = 0;
|
levelScore = 0;
|
||||||
|
levelId = 0;
|
||||||
nextPackage.clear();
|
nextPackage.clear();
|
||||||
chars.clear();
|
chars.clear();
|
||||||
return this;
|
return this;
|
||||||
@@ -1575,6 +1622,7 @@ public final class ScoreBossRank {
|
|||||||
return bitField0_ == other.bitField0_
|
return bitField0_ == other.bitField0_
|
||||||
&& (!hasBuildScore() || buildScore == other.buildScore)
|
&& (!hasBuildScore() || buildScore == other.buildScore)
|
||||||
&& (!hasLevelScore() || levelScore == other.levelScore)
|
&& (!hasLevelScore() || levelScore == other.levelScore)
|
||||||
|
&& (!hasLevelId() || levelId == other.levelId)
|
||||||
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
||||||
&& (!hasChars() || chars.equals(other.chars));
|
&& (!hasChars() || chars.equals(other.chars));
|
||||||
}
|
}
|
||||||
@@ -1590,10 +1638,14 @@ public final class ScoreBossRank {
|
|||||||
output.writeUInt32NoTag(levelScore);
|
output.writeUInt32NoTag(levelScore);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000004) != 0) {
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRawByte((byte) 32);
|
||||||
|
output.writeUInt32NoTag(levelId);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
output.writeRawLittleEndian16((short) 32762);
|
output.writeRawLittleEndian16((short) 32762);
|
||||||
output.writeBytesNoTag(nextPackage);
|
output.writeBytesNoTag(nextPackage);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000008) != 0) {
|
if ((bitField0_ & 0x00000010) != 0) {
|
||||||
for (int i = 0; i < chars.length(); i++) {
|
for (int i = 0; i < chars.length(); i++) {
|
||||||
output.writeRawByte((byte) 18);
|
output.writeRawByte((byte) 18);
|
||||||
output.writeMessageNoTag(chars.get(i));
|
output.writeMessageNoTag(chars.get(i));
|
||||||
@@ -1611,9 +1663,12 @@ public final class ScoreBossRank {
|
|||||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelScore);
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelScore);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000004) != 0) {
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000008) != 0) {
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000010) != 0) {
|
||||||
size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
|
size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
@@ -1640,6 +1695,15 @@ public final class ScoreBossRank {
|
|||||||
levelScore = input.readUInt32();
|
levelScore = input.readUInt32();
|
||||||
bitField0_ |= 0x00000002;
|
bitField0_ |= 0x00000002;
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
|
if (tag != 32) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 32: {
|
||||||
|
// levelId
|
||||||
|
levelId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
if (tag != 16378) {
|
if (tag != 16378) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1647,7 +1711,7 @@ public final class ScoreBossRank {
|
|||||||
case 16378: {
|
case 16378: {
|
||||||
// nextPackage
|
// nextPackage
|
||||||
input.readBytes(nextPackage);
|
input.readBytes(nextPackage);
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
if (tag != 18) {
|
if (tag != 18) {
|
||||||
break;
|
break;
|
||||||
@@ -1656,7 +1720,7 @@ public final class ScoreBossRank {
|
|||||||
case 18: {
|
case 18: {
|
||||||
// chars
|
// chars
|
||||||
tag = input.readRepeatedMessage(chars, tag);
|
tag = input.readRepeatedMessage(chars, tag);
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
if (tag != 0) {
|
if (tag != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1685,9 +1749,12 @@ public final class ScoreBossRank {
|
|||||||
output.writeUInt32(FieldNames.levelScore, levelScore);
|
output.writeUInt32(FieldNames.levelScore, levelScore);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000004) != 0) {
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
output.writeUInt32(FieldNames.levelId, levelId);
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000008) != 0) {
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000010) != 0) {
|
||||||
output.writeRepeatedMessage(FieldNames.chars, chars);
|
output.writeRepeatedMessage(FieldNames.chars, chars);
|
||||||
}
|
}
|
||||||
output.endObject();
|
output.endObject();
|
||||||
@@ -1722,11 +1789,22 @@ public final class ScoreBossRank {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 1734437791: {
|
||||||
|
if (input.isAtField(FieldNames.levelId)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
levelId = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case -2082324045: {
|
case -2082324045: {
|
||||||
if (input.isAtField(FieldNames.nextPackage)) {
|
if (input.isAtField(FieldNames.nextPackage)) {
|
||||||
if (!input.trySkipNullValue()) {
|
if (!input.trySkipNullValue()) {
|
||||||
input.readBytes(nextPackage);
|
input.readBytes(nextPackage);
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
input.skipUnknownField();
|
input.skipUnknownField();
|
||||||
@@ -1737,7 +1815,7 @@ public final class ScoreBossRank {
|
|||||||
if (input.isAtField(FieldNames.chars)) {
|
if (input.isAtField(FieldNames.chars)) {
|
||||||
if (!input.trySkipNullValue()) {
|
if (!input.trySkipNullValue()) {
|
||||||
input.readRepeatedMessage(chars);
|
input.readRepeatedMessage(chars);
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
input.skipUnknownField();
|
input.skipUnknownField();
|
||||||
@@ -1801,6 +1879,8 @@ public final class ScoreBossRank {
|
|||||||
|
|
||||||
static final FieldName levelScore = FieldName.forField("LevelScore");
|
static final FieldName levelScore = FieldName.forField("LevelScore");
|
||||||
|
|
||||||
|
static final FieldName levelId = FieldName.forField("LevelId");
|
||||||
|
|
||||||
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
||||||
|
|
||||||
static final FieldName chars = FieldName.forField("Chars");
|
static final FieldName chars = FieldName.forField("Chars");
|
||||||
|
|||||||
@@ -6,25 +6,25 @@ import emu.nebula.game.inventory.ItemParam;
|
|||||||
import emu.nebula.util.WeightedList;
|
import emu.nebula.util.WeightedList;
|
||||||
|
|
||||||
public class GameConstants {
|
public class GameConstants {
|
||||||
public static final String VERSION = "1.3.0";
|
public static final String VERSION = "1.4.0";
|
||||||
public static int DATA_VERSION = 0;
|
public static int DATA_VERSION = 0;
|
||||||
|
|
||||||
// Set data versions for each region
|
// Set data versions for each region
|
||||||
static {
|
static {
|
||||||
RegionConfig.getRegion("global")
|
RegionConfig.getRegion("global")
|
||||||
.setDataVersion(69);
|
|
||||||
|
|
||||||
RegionConfig.getRegion("kr")
|
|
||||||
.setDataVersion(76);
|
|
||||||
|
|
||||||
RegionConfig.getRegion("jp")
|
|
||||||
.setDataVersion(72);
|
.setDataVersion(72);
|
||||||
|
|
||||||
|
RegionConfig.getRegion("kr")
|
||||||
|
.setDataVersion(79);
|
||||||
|
|
||||||
|
RegionConfig.getRegion("jp")
|
||||||
|
.setDataVersion(75);
|
||||||
|
|
||||||
RegionConfig.getRegion("tw")
|
RegionConfig.getRegion("tw")
|
||||||
.setDataVersion(70);
|
.setDataVersion(73);
|
||||||
|
|
||||||
RegionConfig.getRegion("cn")
|
RegionConfig.getRegion("cn")
|
||||||
.setDataVersion(70);
|
.setDataVersion(73);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
|
public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
|
||||||
|
|||||||
@@ -25,13 +25,15 @@ public class ActivityModule extends GameContextModule {
|
|||||||
// Tower defense activity
|
// Tower defense activity
|
||||||
this.activities.add(102001);
|
this.activities.add(102001);
|
||||||
|
|
||||||
//
|
// Beyond the dream
|
||||||
this.activities.add(1010201);
|
//this.activities.add(1010201);
|
||||||
this.activities.add(1010203);
|
//this.activities.add(1010203);
|
||||||
this.activities.add(1010204);
|
//this.activities.add(1010204);
|
||||||
|
|
||||||
//this.activities.add(101002);
|
// Christmas 2025
|
||||||
//this.activities.add(101003);
|
this.activities.add(2010101);
|
||||||
|
this.activities.add(2010103);
|
||||||
|
this.activities.add(2010104);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,8 +133,16 @@ public class ScoreBossRankEntry implements GameDatabaseObject {
|
|||||||
proto.addHonors(HonorInfo.newInstance().setId(id));
|
proto.addHonors(HonorInfo.newInstance().setId(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var team : this.getTeams().values()) {
|
for (var entry : this.getTeams().entrySet()) {
|
||||||
proto.addTeams(team.toProto());
|
// Get team and level id from entry
|
||||||
|
int levelId = entry.getKey();
|
||||||
|
var team = entry.getValue();
|
||||||
|
|
||||||
|
// Get team proto
|
||||||
|
var info = team.toProto()
|
||||||
|
.setLevelId(levelId);
|
||||||
|
|
||||||
|
proto.addTeams(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
return proto;
|
return proto;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package emu.nebula.net;
|
|||||||
public class NetMsgId {
|
public class NetMsgId {
|
||||||
public static final int none = 0;
|
public static final int none = 0;
|
||||||
|
|
||||||
|
public static final int assist_add_build_notify = -10047;
|
||||||
public static final int clear_all_activity_levels_notify = -10046;
|
public static final int clear_all_activity_levels_notify = -10046;
|
||||||
public static final int clear_all_activity_avg_notify = -10045;
|
public static final int clear_all_activity_avg_notify = -10045;
|
||||||
public static final int vs_add_fate_card_notify = -10044;
|
public static final int vs_add_fate_card_notify = -10044;
|
||||||
@@ -286,6 +287,18 @@ public class NetMsgId {
|
|||||||
public static final int quest_tour_guide_group_reward_receive_req = 4216;
|
public static final int quest_tour_guide_group_reward_receive_req = 4216;
|
||||||
public static final int quest_tour_guide_group_reward_receive_succeed_ack = 4217;
|
public static final int quest_tour_guide_group_reward_receive_succeed_ack = 4217;
|
||||||
public static final int quest_tour_guide_group_reward_receive_failed_ack = 4218;
|
public static final int quest_tour_guide_group_reward_receive_failed_ack = 4218;
|
||||||
|
public static final int quest_weekly_reward_receive_req = 4219;
|
||||||
|
public static final int quest_weekly_reward_receive_succeed_ack = 4220;
|
||||||
|
public static final int quest_weekly_reward_receive_failed_ack = 4221;
|
||||||
|
public static final int quest_weekly_active_reward_receive_req = 4222;
|
||||||
|
public static final int quest_weekly_active_reward_receive_succeed_ack = 4223;
|
||||||
|
public static final int quest_weekly_active_reward_receive_failed_ack = 4224;
|
||||||
|
public static final int quest_assist_reward_receive_req = 4225;
|
||||||
|
public static final int quest_assist_reward_receive_succeed_ack = 4226;
|
||||||
|
public static final int quest_assist_reward_receive_failed_ack = 4227;
|
||||||
|
public static final int quest_assist_group_reward_receive_req = 4228;
|
||||||
|
public static final int quest_assist_group_reward_receive_succeed_ack = 4229;
|
||||||
|
public static final int quest_assist_group_reward_receive_failed_ack = 4230;
|
||||||
public static final int activity_task_reward_receive_req = 4301;
|
public static final int activity_task_reward_receive_req = 4301;
|
||||||
public static final int activity_task_reward_receive_succeed_ack = 4302;
|
public static final int activity_task_reward_receive_succeed_ack = 4302;
|
||||||
public static final int activity_task_reward_receive_failed_ack = 4303;
|
public static final int activity_task_reward_receive_failed_ack = 4303;
|
||||||
@@ -433,6 +446,7 @@ public class NetMsgId {
|
|||||||
public static final int gacha_newbie_info_req = 6022;
|
public static final int gacha_newbie_info_req = 6022;
|
||||||
public static final int gacha_newbie_info_succeed_ack = 6023;
|
public static final int gacha_newbie_info_succeed_ack = 6023;
|
||||||
public static final int gacha_newbie_info_failed_ack = 6024;
|
public static final int gacha_newbie_info_failed_ack = 6024;
|
||||||
|
public static final int gacha_spin_sync_ack = 6025;
|
||||||
public static final int tower_book_fate_card_detail_req = 6101;
|
public static final int tower_book_fate_card_detail_req = 6101;
|
||||||
public static final int tower_book_fate_card_detail_succeed_ack = 6102;
|
public static final int tower_book_fate_card_detail_succeed_ack = 6102;
|
||||||
public static final int tower_book_fate_card_detail_failed_ack = 6103;
|
public static final int tower_book_fate_card_detail_failed_ack = 6103;
|
||||||
@@ -598,6 +612,12 @@ public class NetMsgId {
|
|||||||
public static final int vampire_survivor_info_req = 8313;
|
public static final int vampire_survivor_info_req = 8313;
|
||||||
public static final int vampire_survivor_info_succeed_ack = 8314;
|
public static final int vampire_survivor_info_succeed_ack = 8314;
|
||||||
public static final int vampire_survivor_info_failed_ack = 8315;
|
public static final int vampire_survivor_info_failed_ack = 8315;
|
||||||
|
public static final int activity_story_apply_req = 8316;
|
||||||
|
public static final int activity_story_apply_succeed_ack = 8317;
|
||||||
|
public static final int activity_story_apply_failed_ack = 8318;
|
||||||
|
public static final int activity_story_settle_req = 8319;
|
||||||
|
public static final int activity_story_settle_succeed_ack = 8320;
|
||||||
|
public static final int activity_story_settle_failed_ack = 8321;
|
||||||
public static final int mail_list_req = 9001;
|
public static final int mail_list_req = 9001;
|
||||||
public static final int mail_list_succeed_ack = 9002;
|
public static final int mail_list_succeed_ack = 9002;
|
||||||
public static final int mail_list_failed_ack = 9003;
|
public static final int mail_list_failed_ack = 9003;
|
||||||
@@ -637,6 +657,15 @@ public class NetMsgId {
|
|||||||
public static final int activity_tower_defense_level_settle_req = 9122;
|
public static final int activity_tower_defense_level_settle_req = 9122;
|
||||||
public static final int activity_tower_defense_level_settle_succeed_ack = 9123;
|
public static final int activity_tower_defense_level_settle_succeed_ack = 9123;
|
||||||
public static final int activity_tower_defense_level_settle_failed_ack = 9124;
|
public static final int activity_tower_defense_level_settle_failed_ack = 9124;
|
||||||
|
public static final int activity_trekker_versus_apply_req = 9125;
|
||||||
|
public static final int activity_trekker_versus_apply_succeed_ack = 9126;
|
||||||
|
public static final int activity_trekker_versus_apply_failed_ack = 9127;
|
||||||
|
public static final int activity_trekker_versus_settle_req = 9128;
|
||||||
|
public static final int activity_trekker_versus_settle_succeed_ack = 9129;
|
||||||
|
public static final int activity_trekker_versus_settle_failed_ack = 9130;
|
||||||
|
public static final int activity_trekker_versus_reward_receive_req = 9131;
|
||||||
|
public static final int activity_trekker_versus_reward_receive_succeed_ack = 9132;
|
||||||
|
public static final int activity_trekker_versus_reward_receive_failed_ack = 9133;
|
||||||
public static final int phone_contacts_info_req = 9201;
|
public static final int phone_contacts_info_req = 9201;
|
||||||
public static final int phone_contacts_info_succeed_ack = 9202;
|
public static final int phone_contacts_info_succeed_ack = 9202;
|
||||||
public static final int phone_contacts_info_failed_ack = 9203;
|
public static final int phone_contacts_info_failed_ack = 9203;
|
||||||
@@ -758,7 +787,6 @@ public class NetMsgId {
|
|||||||
public static final int order_collected_notify = 10052;
|
public static final int order_collected_notify = 10052;
|
||||||
public static final int activity_end_item_change_notify = 10053;
|
public static final int activity_end_item_change_notify = 10053;
|
||||||
public static final int item_expired_change_notify = 10054;
|
public static final int item_expired_change_notify = 10054;
|
||||||
public static final int activity_mining_grids_error_notify = 10055;
|
|
||||||
public static final int activity_mining_apply_req = 11001;
|
public static final int activity_mining_apply_req = 11001;
|
||||||
public static final int activity_mining_apply_succeed_ack = 11002;
|
public static final int activity_mining_apply_succeed_ack = 11002;
|
||||||
public static final int activity_mining_apply_failed_ack = 11003;
|
public static final int activity_mining_apply_failed_ack = 11003;
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package emu.nebula.server.handlers;
|
||||||
|
|
||||||
|
import emu.nebula.net.NetHandler;
|
||||||
|
import emu.nebula.net.NetMsgId;
|
||||||
|
import emu.nebula.proto.NpcAffinityBookGet.NPCAffinityBookGetResp;
|
||||||
|
import emu.nebula.net.HandlerId;
|
||||||
|
import emu.nebula.net.GameSession;
|
||||||
|
|
||||||
|
@HandlerId(NetMsgId.npc_affinity_book_get_req)
|
||||||
|
public class HandlerNpcAffinityBookGetReq extends NetHandler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public byte[] handle(GameSession session, byte[] message) throws Exception {
|
||||||
|
// Build response
|
||||||
|
var rsp = NPCAffinityBookGetResp.newInstance();
|
||||||
|
|
||||||
|
// Encode and send
|
||||||
|
return session.encodeMsg(NetMsgId.npc_affinity_book_get_succeed_ack, rsp);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user