Update server to support latest version

This commit is contained in:
Melledy
2025-12-22 20:37:45 -08:00
parent 450b0cca30
commit a8e358d2d6
21 changed files with 11944 additions and 362 deletions
@@ -90,6 +90,16 @@ public final class ActivityDetail {
*/
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>
*/
@@ -883,12 +893,126 @@ public final class ActivityDetail {
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>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00004000) != 0;
return (bitField0_ & 0x00010000) != 0;
}
/**
@@ -896,7 +1020,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg clearNextPackage() {
bitField0_ &= ~0x00004000;
bitField0_ &= ~0x00010000;
nextPackage.clear();
return this;
}
@@ -925,7 +1049,7 @@ public final class ActivityDetail {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00004000;
bitField0_ |= 0x00010000;
return nextPackage;
}
@@ -935,7 +1059,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg addNextPackage(final byte value) {
bitField0_ |= 0x00004000;
bitField0_ |= 0x00010000;
nextPackage.add(value);
return this;
}
@@ -946,7 +1070,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg addAllNextPackage(final byte... values) {
bitField0_ |= 0x00004000;
bitField0_ |= 0x00010000;
nextPackage.addAll(values);
return this;
}
@@ -957,7 +1081,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg setNextPackage(final byte... values) {
bitField0_ |= 0x00004000;
bitField0_ |= 0x00010000;
nextPackage.copyFrom(values);
return this;
}
@@ -981,6 +1105,8 @@ public final class ActivityDetail {
task.copyFrom(other.task);
shop.copyFrom(other.shop);
bdConvert.copyFrom(other.bdConvert);
trekkerVersus.copyFrom(other.trekkerVersus);
storyChapter.copyFrom(other.storyChapter);
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -1034,6 +1160,12 @@ public final class ActivityDetail {
if (other.hasBdConvert()) {
getMutableBdConvert().mergeFrom(other.bdConvert);
}
if (other.hasTrekkerVersus()) {
getMutableTrekkerVersus().mergeFrom(other.trekkerVersus);
}
if (other.hasStoryChapter()) {
getMutableStoryChapter().mergeFrom(other.storyChapter);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -1061,6 +1193,8 @@ public final class ActivityDetail {
task.clear();
shop.clear();
bdConvert.clear();
trekkerVersus.clear();
storyChapter.clear();
nextPackage.clear();
return this;
}
@@ -1085,6 +1219,8 @@ public final class ActivityDetail {
task.clearQuick();
shop.clearQuick();
bdConvert.clearQuick();
trekkerVersus.clearQuick();
storyChapter.clearQuick();
nextPackage.clear();
return this;
}
@@ -1113,6 +1249,8 @@ public final class ActivityDetail {
&& (!hasTask() || task.equals(other.task))
&& (!hasShop() || shop.equals(other.shop))
&& (!hasBdConvert() || bdConvert.equals(other.bdConvert))
&& (!hasTrekkerVersus() || trekkerVersus.equals(other.trekkerVersus))
&& (!hasStoryChapter() || storyChapter.equals(other.storyChapter))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -1175,6 +1313,14 @@ public final class ActivityDetail {
output.writeMessageNoTag(bdConvert);
}
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.writeBytesNoTag(nextPackage);
}
@@ -1226,6 +1372,12 @@ public final class ActivityDetail {
size += 1 + ProtoSink.computeMessageSizeNoTag(bdConvert);
}
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);
}
return size;
@@ -1360,6 +1512,24 @@ public final class ActivityDetail {
input.readMessage(bdConvert);
bitField0_ |= 0x00002000;
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) {
break;
}
@@ -1367,7 +1537,7 @@ public final class ActivityDetail {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00004000;
bitField0_ |= 0x00010000;
tag = input.readTag();
if (tag != 0) {
break;
@@ -1433,6 +1603,12 @@ public final class ActivityDetail {
output.writeMessage(FieldNames.bdConvert, bdConvert);
}
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.endObject();
@@ -1599,11 +1775,33 @@ public final class ActivityDetail {
}
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: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00004000;
bitField0_ |= 0x00010000;
}
} else {
input.skipUnknownField();
@@ -1690,6 +1888,10 @@ public final class ActivityDetail {
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");
}
}
@@ -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();
/**
* <code>repeated .ItemTpl Check = 15;</code>
*/
private final RepeatedMessage<Public.ItemTpl> check = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
private GachaSpinReq() {
}
@@ -198,6 +203,74 @@ public final class GachaSpin {
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
public GachaSpinReq copyFrom(final GachaSpinReq other) {
cachedSize = other.cachedSize;
@@ -206,6 +279,7 @@ public final class GachaSpin {
id = other.id;
mode = other.mode;
nextPackage.copyFrom(other.nextPackage);
check.copyFrom(other.check);
}
return this;
}
@@ -225,6 +299,9 @@ public final class GachaSpin {
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasCheck()) {
getMutableCheck().addAll(other.check);
}
return this;
}
@@ -238,6 +315,7 @@ public final class GachaSpin {
id = 0;
mode = 0;
nextPackage.clear();
check.clear();
return this;
}
@@ -249,6 +327,7 @@ public final class GachaSpin {
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
check.clearQuick();
return this;
}
@@ -264,7 +343,8 @@ public final class GachaSpin {
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasMode() || mode == other.mode)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasCheck() || check.equals(other.check));
}
@Override
@@ -281,6 +361,12 @@ public final class GachaSpin {
output.writeRawLittleEndian16((short) 32762);
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
@@ -295,6 +381,9 @@ public final class GachaSpin {
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * check.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(check);
}
return size;
}
@@ -328,6 +417,14 @@ public final class GachaSpin {
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 122) {
break;
}
}
case 122: {
// check
tag = input.readRepeatedMessage(check, tag);
bitField0_ |= 0x00000008;
if (tag != 0) {
break;
}
@@ -358,6 +455,9 @@ public final class GachaSpin {
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedMessage(FieldNames.check, check);
}
output.endObject();
}
@@ -401,6 +501,17 @@ public final class GachaSpin {
}
break;
}
case 65074408: {
if (input.isAtField(FieldNames.check)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(check);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
@@ -458,6 +569,8 @@ public final class GachaSpin {
static final FieldName mode = FieldName.forField("Mode");
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");
}
}
/**
* 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");
}
}
/**
* 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;
/**
* <code>optional uint32 LevelId = 4;</code>
*/
private int levelId;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -1356,12 +1361,49 @@ public final class ScoreBossRank {
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>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000004) != 0;
return (bitField0_ & 0x00000008) != 0;
}
/**
@@ -1369,7 +1411,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam clearNextPackage() {
bitField0_ &= ~0x00000004;
bitField0_ &= ~0x00000008;
nextPackage.clear();
return this;
}
@@ -1398,7 +1440,7 @@ public final class ScoreBossRank {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
return nextPackage;
}
@@ -1408,7 +1450,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addNextPackage(final byte value) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.add(value);
return this;
}
@@ -1419,7 +1461,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.addAll(values);
return this;
}
@@ -1430,7 +1472,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam setNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.copyFrom(values);
return this;
}
@@ -1440,7 +1482,7 @@ public final class ScoreBossRank {
* @return whether the chars field is set
*/
public boolean hasChars() {
return (bitField0_ & 0x00000008) != 0;
return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -1448,7 +1490,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam clearChars() {
bitField0_ &= ~0x00000008;
bitField0_ &= ~0x00000010;
chars.clear();
return this;
}
@@ -1477,7 +1519,7 @@ public final class ScoreBossRank {
* @return internal storage object for modifications
*/
public RepeatedMessage<ScoreBossRankChar> getMutableChars() {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
return chars;
}
@@ -1487,7 +1529,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addChars(final ScoreBossRankChar value) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
chars.add(value);
return this;
}
@@ -1498,7 +1540,7 @@ public final class ScoreBossRank {
* @return this
*/
public ScoreBossRankTeam addAllChars(final ScoreBossRankChar... values) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
chars.addAll(values);
return this;
}
@@ -1510,6 +1552,7 @@ public final class ScoreBossRank {
bitField0_ = other.bitField0_;
buildScore = other.buildScore;
levelScore = other.levelScore;
levelId = other.levelId;
nextPackage.copyFrom(other.nextPackage);
chars.copyFrom(other.chars);
}
@@ -1528,6 +1571,9 @@ public final class ScoreBossRank {
if (other.hasLevelScore()) {
setLevelScore(other.levelScore);
}
if (other.hasLevelId()) {
setLevelId(other.levelId);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -1546,6 +1592,7 @@ public final class ScoreBossRank {
bitField0_ = 0;
buildScore = 0;
levelScore = 0;
levelId = 0;
nextPackage.clear();
chars.clear();
return this;
@@ -1575,6 +1622,7 @@ public final class ScoreBossRank {
return bitField0_ == other.bitField0_
&& (!hasBuildScore() || buildScore == other.buildScore)
&& (!hasLevelScore() || levelScore == other.levelScore)
&& (!hasLevelId() || levelId == other.levelId)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasChars() || chars.equals(other.chars));
}
@@ -1590,10 +1638,14 @@ public final class ScoreBossRank {
output.writeUInt32NoTag(levelScore);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(levelId);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
if ((bitField0_ & 0x00000010) != 0) {
for (int i = 0; i < chars.length(); i++) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(chars.get(i));
@@ -1611,9 +1663,12 @@ public final class ScoreBossRank {
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelScore);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars);
}
return size;
@@ -1640,6 +1695,15 @@ public final class ScoreBossRank {
levelScore = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// levelId
levelId = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -1647,7 +1711,7 @@ public final class ScoreBossRank {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 18) {
break;
@@ -1656,7 +1720,7 @@ public final class ScoreBossRank {
case 18: {
// chars
tag = input.readRepeatedMessage(chars, tag);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
if (tag != 0) {
break;
}
@@ -1685,9 +1749,12 @@ public final class ScoreBossRank {
output.writeUInt32(FieldNames.levelScore, levelScore);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
output.writeUInt32(FieldNames.levelId, levelId);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRepeatedMessage(FieldNames.chars, chars);
}
output.endObject();
@@ -1722,11 +1789,22 @@ public final class ScoreBossRank {
}
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_ |= 0x00000004;
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -1737,7 +1815,7 @@ public final class ScoreBossRank {
if (input.isAtField(FieldNames.chars)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(chars);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -1801,6 +1879,8 @@ public final class ScoreBossRank {
static final FieldName levelScore = FieldName.forField("LevelScore");
static final FieldName levelId = FieldName.forField("LevelId");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName chars = FieldName.forField("Chars");