diff --git a/src/generated/main/emu/nebula/proto/ActivityArchiveStoryApply.java b/src/generated/main/emu/nebula/proto/ActivityArchiveStoryApply.java new file mode 100644 index 0000000..4234798 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityArchiveStoryApply.java @@ -0,0 +1,566 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class ActivityArchiveStoryApply { + /** + * Protobuf type {@code ActivityArchiveStoryApplyReq} + */ + public static final class ActivityArchiveStoryApplyReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 StoryId = 2; + */ + private int storyId; + + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityArchiveStoryApplyReq() { + } + + /** + * @return a new empty instance of {@code ActivityArchiveStoryApplyReq} + */ + public static ActivityArchiveStoryApplyReq newInstance() { + return new ActivityArchiveStoryApplyReq(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityArchiveStoryApplyReq clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityArchiveStoryApplyReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 StoryId = 2; + * @return whether the storyId field is set + */ + public boolean hasStoryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 StoryId = 2; + * @return this + */ + public ActivityArchiveStoryApplyReq clearStoryId() { + bitField0_ &= ~0x00000002; + storyId = 0; + return this; + } + + /** + * optional uint32 StoryId = 2; + * @return the storyId + */ + public int getStoryId() { + return storyId; + } + + /** + * optional uint32 StoryId = 2; + * @param value the storyId to set + * @return this + */ + public ActivityArchiveStoryApplyReq setStoryId(final int value) { + bitField0_ |= 0x00000002; + storyId = value; + return this; + } + + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public ActivityArchiveStoryApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public ActivityArchiveStoryApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityArchiveStoryApplyReq clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityArchiveStoryApplyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityArchiveStoryApplyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityArchiveStoryApplyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityArchiveStoryApplyReq copyFrom(final ActivityArchiveStoryApplyReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + storyId = other.storyId; + build.copyFrom(other.build); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityArchiveStoryApplyReq mergeFrom(final ActivityArchiveStoryApplyReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasStoryId()) { + setStoryId(other.storyId); + } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityArchiveStoryApplyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + storyId = 0; + build.clear(); + nextPackage.clear(); + return this; + } + + @Override + public ActivityArchiveStoryApplyReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + build.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityArchiveStoryApplyReq)) { + return false; + } + ActivityArchiveStoryApplyReq other = (ActivityArchiveStoryApplyReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasStoryId() || storyId == other.storyId) + && (!hasBuild() || build.equals(other.build)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(storyId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityArchiveStoryApplyReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // storyId + storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.storyId, storyId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityArchiveStoryApplyReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -219598640: { + if (input.isAtField(FieldNames.storyId)) { + if (!input.trySkipNullValue()) { + storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); + 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 ActivityArchiveStoryApplyReq clone() { + return new ActivityArchiveStoryApplyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityArchiveStoryApplyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityArchiveStoryApplyReq(), data).checkInitialized(); + } + + public static ActivityArchiveStoryApplyReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityArchiveStoryApplyReq(), input).checkInitialized(); + } + + public static ActivityArchiveStoryApplyReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityArchiveStoryApplyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityArchiveStoryApplyReq messages + */ + public static MessageFactory getFactory() { + return ActivityArchiveStoryApplyReqFactory.INSTANCE; + } + + private enum ActivityArchiveStoryApplyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityArchiveStoryApplyReq create() { + return ActivityArchiveStoryApplyReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName storyId = FieldName.forField("StoryId"); + + static final FieldName build = FieldName.forField("Build"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityArchiveStoryChapterPass.java b/src/generated/main/emu/nebula/proto/ActivityArchiveStoryChapterPass.java new file mode 100644 index 0000000..084dd0f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityArchiveStoryChapterPass.java @@ -0,0 +1,388 @@ +// 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 ActivityArchiveStoryChapterPass { + /** + * Protobuf type {@code ActivityArchiveStoryChapterPassReq} + */ + public static final class ActivityArchiveStoryChapterPassReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ChapterId = 1; + */ + private int chapterId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityArchiveStoryChapterPassReq() { + } + + /** + * @return a new empty instance of {@code ActivityArchiveStoryChapterPassReq} + */ + public static ActivityArchiveStoryChapterPassReq newInstance() { + return new ActivityArchiveStoryChapterPassReq(); + } + + /** + * optional uint32 ChapterId = 1; + * @return whether the chapterId field is set + */ + public boolean hasChapterId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ChapterId = 1; + * @return this + */ + public ActivityArchiveStoryChapterPassReq clearChapterId() { + bitField0_ &= ~0x00000001; + chapterId = 0; + return this; + } + + /** + * optional uint32 ChapterId = 1; + * @return the chapterId + */ + public int getChapterId() { + return chapterId; + } + + /** + * optional uint32 ChapterId = 1; + * @param value the chapterId to set + * @return this + */ + public ActivityArchiveStoryChapterPassReq setChapterId(final int value) { + bitField0_ |= 0x00000001; + chapterId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityArchiveStoryChapterPassReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityArchiveStoryChapterPassReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityArchiveStoryChapterPassReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityArchiveStoryChapterPassReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityArchiveStoryChapterPassReq copyFrom( + final ActivityArchiveStoryChapterPassReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + chapterId = other.chapterId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityArchiveStoryChapterPassReq mergeFrom( + final ActivityArchiveStoryChapterPassReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChapterId()) { + setChapterId(other.chapterId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityArchiveStoryChapterPassReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chapterId = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityArchiveStoryChapterPassReq 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 ActivityArchiveStoryChapterPassReq)) { + return false; + } + ActivityArchiveStoryChapterPassReq other = (ActivityArchiveStoryChapterPassReq) o; + return bitField0_ == other.bitField0_ + && (!hasChapterId() || chapterId == other.chapterId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityArchiveStoryChapterPassReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // chapterId + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.chapterId, chapterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityArchiveStoryChapterPassReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -766458328: { + if (input.isAtField(FieldNames.chapterId)) { + if (!input.trySkipNullValue()) { + chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityArchiveStoryChapterPassReq clone() { + return new ActivityArchiveStoryChapterPassReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityArchiveStoryChapterPassReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityArchiveStoryChapterPassReq(), data).checkInitialized(); + } + + public static ActivityArchiveStoryChapterPassReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityArchiveStoryChapterPassReq(), input).checkInitialized(); + } + + public static ActivityArchiveStoryChapterPassReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityArchiveStoryChapterPassReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityArchiveStoryChapterPassReq messages + */ + public static MessageFactory getFactory() { + return ActivityArchiveStoryChapterPassReqFactory.INSTANCE; + } + + private enum ActivityArchiveStoryChapterPassReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityArchiveStoryChapterPassReq create() { + return ActivityArchiveStoryChapterPassReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName chapterId = FieldName.forField("ChapterId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityArchiveStoryInfo.java b/src/generated/main/emu/nebula/proto/ActivityArchiveStoryInfo.java new file mode 100644 index 0000000..e942fb9 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityArchiveStoryInfo.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityArchiveStoryInfo { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityArchiveStorySettle.java b/src/generated/main/emu/nebula/proto/ActivityArchiveStorySettle.java new file mode 100644 index 0000000..395a02b --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityArchiveStorySettle.java @@ -0,0 +1,723 @@ +// 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; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ActivityArchiveStorySettle { + /** + * Protobuf type {@code ActivityArchiveStorySettleReq} + */ + public static final class ActivityArchiveStorySettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional .Events Events = 14; + */ + private final Public.Events events = Public.Events.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Evidences = 15; + */ + private final RepeatedInt evidences = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ActivityStorySettle List = 2; + */ + private final RepeatedMessage list = RepeatedMessage.newEmptyInstance(ActivityStorySettleOuterClass.ActivityStorySettle.getFactory()); + + private ActivityArchiveStorySettleReq() { + } + + /** + * @return a new empty instance of {@code ActivityArchiveStorySettleReq} + */ + public static ActivityArchiveStorySettleReq newInstance() { + return new ActivityArchiveStorySettleReq(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityArchiveStorySettleReq clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityArchiveStorySettleReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional .Events Events = 14; + * @return whether the events field is set + */ + public boolean hasEvents() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .Events Events = 14; + * @return this + */ + public ActivityArchiveStorySettleReq clearEvents() { + bitField0_ &= ~0x00000002; + events.clear(); + return this; + } + + /** + * optional .Events Events = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEvents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Events getEvents() { + return events; + } + + /** + * optional .Events Events = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.Events getMutableEvents() { + bitField0_ |= 0x00000002; + return events; + } + + /** + * optional .Events Events = 14; + * @param value the events to set + * @return this + */ + public ActivityArchiveStorySettleReq setEvents(final Public.Events value) { + bitField0_ |= 0x00000002; + events.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityArchiveStorySettleReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityArchiveStorySettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityArchiveStorySettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityArchiveStorySettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Evidences = 15; + * @return whether the evidences field is set + */ + public boolean hasEvidences() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 Evidences = 15; + * @return this + */ + public ActivityArchiveStorySettleReq clearEvidences() { + bitField0_ &= ~0x00000008; + evidences.clear(); + return this; + } + + /** + * repeated uint32 Evidences = 15; + * + * 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 #getMutableEvidences()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getEvidences() { + return evidences; + } + + /** + * repeated uint32 Evidences = 15; + * + * 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 getMutableEvidences() { + bitField0_ |= 0x00000008; + return evidences; + } + + /** + * repeated uint32 Evidences = 15; + * @param value the evidences to add + * @return this + */ + public ActivityArchiveStorySettleReq addEvidences(final int value) { + bitField0_ |= 0x00000008; + evidences.add(value); + return this; + } + + /** + * repeated uint32 Evidences = 15; + * @param values the evidences to add + * @return this + */ + public ActivityArchiveStorySettleReq addAllEvidences(final int... values) { + bitField0_ |= 0x00000008; + evidences.addAll(values); + return this; + } + + /** + * repeated .ActivityStorySettle List = 2; + * @return whether the list field is set + */ + public boolean hasList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .ActivityStorySettle List = 2; + * @return this + */ + public ActivityArchiveStorySettleReq clearList() { + bitField0_ &= ~0x00000010; + list.clear(); + return this; + } + + /** + * repeated .ActivityStorySettle List = 2; + * + * 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 #getMutableList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getList() { + return list; + } + + /** + * repeated .ActivityStorySettle List = 2; + * + * 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 getMutableList() { + bitField0_ |= 0x00000010; + return list; + } + + /** + * repeated .ActivityStorySettle List = 2; + * @param value the list to add + * @return this + */ + public ActivityArchiveStorySettleReq addList( + final ActivityStorySettleOuterClass.ActivityStorySettle value) { + bitField0_ |= 0x00000010; + list.add(value); + return this; + } + + /** + * repeated .ActivityStorySettle List = 2; + * @param values the list to add + * @return this + */ + public ActivityArchiveStorySettleReq addAllList( + final ActivityStorySettleOuterClass.ActivityStorySettle... values) { + bitField0_ |= 0x00000010; + list.addAll(values); + return this; + } + + @Override + public ActivityArchiveStorySettleReq copyFrom(final ActivityArchiveStorySettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + events.copyFrom(other.events); + nextPackage.copyFrom(other.nextPackage); + evidences.copyFrom(other.evidences); + list.copyFrom(other.list); + } + return this; + } + + @Override + public ActivityArchiveStorySettleReq mergeFrom(final ActivityArchiveStorySettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasEvents()) { + getMutableEvents().mergeFrom(other.events); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasEvidences()) { + getMutableEvidences().addAll(other.evidences); + } + if (other.hasList()) { + getMutableList().addAll(other.list); + } + return this; + } + + @Override + public ActivityArchiveStorySettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + events.clear(); + nextPackage.clear(); + evidences.clear(); + list.clear(); + return this; + } + + @Override + public ActivityArchiveStorySettleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + events.clearQuick(); + nextPackage.clear(); + evidences.clear(); + list.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityArchiveStorySettleReq)) { + return false; + } + ActivityArchiveStorySettleReq other = (ActivityArchiveStorySettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasEvents() || events.equals(other.events)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasEvidences() || evidences.equals(other.evidences)) + && (!hasList() || list.equals(other.list)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(events); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < evidences.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(evidences.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < list.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(list.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(events); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * evidences.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(evidences); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * list.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(list); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityArchiveStorySettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // events + input.readMessage(events); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // evidences [packed=true] + input.readPackedUInt32(evidences, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // list + tag = input.readRepeatedMessage(list, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 120: { + // evidences [packed=false] + tag = input.readRepeatedUInt32(evidences, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.events, events); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.evidences, evidences); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.list, list); + } + output.endObject(); + } + + @Override + public ActivityArchiveStorySettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2087505209: { + if (input.isAtField(FieldNames.events)) { + if (!input.trySkipNullValue()) { + input.readMessage(events); + 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 991055068: { + if (input.isAtField(FieldNames.evidences)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(evidences); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2368702: { + if (input.isAtField(FieldNames.list)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(list); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityArchiveStorySettleReq clone() { + return new ActivityArchiveStorySettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityArchiveStorySettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityArchiveStorySettleReq(), data).checkInitialized(); + } + + public static ActivityArchiveStorySettleReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityArchiveStorySettleReq(), input).checkInitialized(); + } + + public static ActivityArchiveStorySettleReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityArchiveStorySettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityArchiveStorySettleReq messages + */ + public static MessageFactory getFactory() { + return ActivityArchiveStorySettleReqFactory.INSTANCE; + } + + private enum ActivityArchiveStorySettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityArchiveStorySettleReq create() { + return ActivityArchiveStorySettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName events = FieldName.forField("Events"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName evidences = FieldName.forField("Evidences"); + + static final FieldName list = FieldName.forField("List"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityDetail.java b/src/generated/main/emu/nebula/proto/ActivityDetail.java index b5686bb..8523f08 100644 --- a/src/generated/main/emu/nebula/proto/ActivityDetail.java +++ b/src/generated/main/emu/nebula/proto/ActivityDetail.java @@ -145,6 +145,21 @@ public final class ActivityDetail { */ private final Public.ActivitySoldier soldier = Public.ActivitySoldier.newInstance(); + /** + * optional .ActivityMathParkour MathParkour = 26; + */ + private final Public.ActivityMathParkour mathParkour = Public.ActivityMathParkour.newInstance(); + + /** + * optional .ActivityMailBind MailBind = 27; + */ + private final Public.ActivityMailBind mailBind = Public.ActivityMailBind.newInstance(); + + /** + * optional .ActivityMallLogin MallLogin = 28; + */ + private final Public.ActivityMallLogin mallLogin = Public.ActivityMallLogin.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -1565,12 +1580,183 @@ public final class ActivityDetail { return this; } + /** + * optional .ActivityMathParkour MathParkour = 26; + * @return whether the mathParkour field is set + */ + public boolean hasMathParkour() { + return (bitField0_ & 0x02000000) != 0; + } + + /** + * optional .ActivityMathParkour MathParkour = 26; + * @return this + */ + public ActivityMsg clearMathParkour() { + bitField0_ &= ~0x02000000; + mathParkour.clear(); + return this; + } + + /** + * optional .ActivityMathParkour MathParkour = 26; + * + * 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 #getMutableMathParkour()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityMathParkour getMathParkour() { + return mathParkour; + } + + /** + * optional .ActivityMathParkour MathParkour = 26; + * + * 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.ActivityMathParkour getMutableMathParkour() { + bitField0_ |= 0x02000000; + return mathParkour; + } + + /** + * optional .ActivityMathParkour MathParkour = 26; + * @param value the mathParkour to set + * @return this + */ + public ActivityMsg setMathParkour(final Public.ActivityMathParkour value) { + bitField0_ |= 0x02000000; + mathParkour.copyFrom(value); + return this; + } + + /** + * optional .ActivityMailBind MailBind = 27; + * @return whether the mailBind field is set + */ + public boolean hasMailBind() { + return (bitField0_ & 0x04000000) != 0; + } + + /** + * optional .ActivityMailBind MailBind = 27; + * @return this + */ + public ActivityMsg clearMailBind() { + bitField0_ &= ~0x04000000; + mailBind.clear(); + return this; + } + + /** + * optional .ActivityMailBind MailBind = 27; + * + * 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 #getMutableMailBind()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityMailBind getMailBind() { + return mailBind; + } + + /** + * optional .ActivityMailBind MailBind = 27; + * + * 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.ActivityMailBind getMutableMailBind() { + bitField0_ |= 0x04000000; + return mailBind; + } + + /** + * optional .ActivityMailBind MailBind = 27; + * @param value the mailBind to set + * @return this + */ + public ActivityMsg setMailBind(final Public.ActivityMailBind value) { + bitField0_ |= 0x04000000; + mailBind.copyFrom(value); + return this; + } + + /** + * optional .ActivityMallLogin MallLogin = 28; + * @return whether the mallLogin field is set + */ + public boolean hasMallLogin() { + return (bitField0_ & 0x08000000) != 0; + } + + /** + * optional .ActivityMallLogin MallLogin = 28; + * @return this + */ + public ActivityMsg clearMallLogin() { + bitField0_ &= ~0x08000000; + mallLogin.clear(); + return this; + } + + /** + * optional .ActivityMallLogin MallLogin = 28; + * + * 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 #getMutableMallLogin()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ActivityMallLogin getMallLogin() { + return mallLogin; + } + + /** + * optional .ActivityMallLogin MallLogin = 28; + * + * 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.ActivityMallLogin getMutableMallLogin() { + bitField0_ |= 0x08000000; + return mallLogin; + } + + /** + * optional .ActivityMallLogin MallLogin = 28; + * @param value the mallLogin to set + * @return this + */ + public ActivityMsg setMallLogin(final Public.ActivityMallLogin value) { + bitField0_ |= 0x08000000; + mallLogin.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x02000000) != 0; + return (bitField0_ & 0x10000000) != 0; } /** @@ -1578,7 +1764,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg clearNextPackage() { - bitField0_ &= ~0x02000000; + bitField0_ &= ~0x10000000; nextPackage.clear(); return this; } @@ -1607,7 +1793,7 @@ public final class ActivityDetail { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; return nextPackage; } @@ -1617,7 +1803,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addNextPackage(final byte value) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; nextPackage.add(value); return this; } @@ -1628,7 +1814,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg addAllNextPackage(final byte... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; nextPackage.addAll(values); return this; } @@ -1639,7 +1825,7 @@ public final class ActivityDetail { * @return this */ public ActivityMsg setNextPackage(final byte... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; nextPackage.copyFrom(values); return this; } @@ -1674,6 +1860,9 @@ public final class ActivityDetail { share.copyFrom(other.share); iceCream.copyFrom(other.iceCream); soldier.copyFrom(other.soldier); + mathParkour.copyFrom(other.mathParkour); + mailBind.copyFrom(other.mailBind); + mallLogin.copyFrom(other.mallLogin); nextPackage.copyFrom(other.nextPackage); } return this; @@ -1760,6 +1949,15 @@ public final class ActivityDetail { if (other.hasSoldier()) { getMutableSoldier().mergeFrom(other.soldier); } + if (other.hasMathParkour()) { + getMutableMathParkour().mergeFrom(other.mathParkour); + } + if (other.hasMailBind()) { + getMutableMailBind().mergeFrom(other.mailBind); + } + if (other.hasMallLogin()) { + getMutableMallLogin().mergeFrom(other.mallLogin); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1798,6 +1996,9 @@ public final class ActivityDetail { share.clear(); iceCream.clear(); soldier.clear(); + mathParkour.clear(); + mailBind.clear(); + mallLogin.clear(); nextPackage.clear(); return this; } @@ -1833,6 +2034,9 @@ public final class ActivityDetail { share.clearQuick(); iceCream.clearQuick(); soldier.clearQuick(); + mathParkour.clearQuick(); + mailBind.clearQuick(); + mallLogin.clearQuick(); nextPackage.clear(); return this; } @@ -1872,6 +2076,9 @@ public final class ActivityDetail { && (!hasShare() || share.equals(other.share)) && (!hasIceCream() || iceCream.equals(other.iceCream)) && (!hasSoldier() || soldier.equals(other.soldier)) + && (!hasMathParkour() || mathParkour.equals(other.mathParkour)) + && (!hasMailBind() || mailBind.equals(other.mailBind)) + && (!hasMallLogin() || mallLogin.equals(other.mallLogin)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -1978,6 +2185,18 @@ public final class ActivityDetail { output.writeMessageNoTag(soldier); } if ((bitField0_ & 0x02000000) != 0) { + output.writeRawLittleEndian16((short) 466); + output.writeMessageNoTag(mathParkour); + } + if ((bitField0_ & 0x04000000) != 0) { + output.writeRawLittleEndian16((short) 474); + output.writeMessageNoTag(mailBind); + } + if ((bitField0_ & 0x08000000) != 0) { + output.writeRawLittleEndian16((short) 482); + output.writeMessageNoTag(mallLogin); + } + if ((bitField0_ & 0x10000000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -2062,6 +2281,15 @@ public final class ActivityDetail { size += 2 + ProtoSink.computeMessageSizeNoTag(soldier); } if ((bitField0_ & 0x02000000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(mathParkour); + } + if ((bitField0_ & 0x04000000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(mailBind); + } + if ((bitField0_ & 0x08000000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(mallLogin); + } + if ((bitField0_ & 0x10000000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -2295,6 +2523,33 @@ public final class ActivityDetail { input.readMessage(soldier); bitField0_ |= 0x01000000; tag = input.readTag(); + if (tag != 210) { + break; + } + } + case 210: { + // mathParkour + input.readMessage(mathParkour); + bitField0_ |= 0x02000000; + tag = input.readTag(); + if (tag != 218) { + break; + } + } + case 218: { + // mailBind + input.readMessage(mailBind); + bitField0_ |= 0x04000000; + tag = input.readTag(); + if (tag != 226) { + break; + } + } + case 226: { + // mallLogin + input.readMessage(mallLogin); + bitField0_ |= 0x08000000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -2302,7 +2557,7 @@ public final class ActivityDetail { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; tag = input.readTag(); if (tag != 0) { break; @@ -2401,6 +2656,15 @@ public final class ActivityDetail { output.writeMessage(FieldNames.soldier, soldier); } if ((bitField0_ & 0x02000000) != 0) { + output.writeMessage(FieldNames.mathParkour, mathParkour); + } + if ((bitField0_ & 0x04000000) != 0) { + output.writeMessage(FieldNames.mailBind, mailBind); + } + if ((bitField0_ & 0x08000000) != 0) { + output.writeMessage(FieldNames.mallLogin, mallLogin); + } + if ((bitField0_ & 0x10000000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -2688,11 +2952,44 @@ public final class ActivityDetail { } break; } + case -284456230: { + if (input.isAtField(FieldNames.mathParkour)) { + if (!input.trySkipNullValue()) { + input.readMessage(mathParkour); + bitField0_ |= 0x02000000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 53825204: { + if (input.isAtField(FieldNames.mailBind)) { + if (!input.trySkipNullValue()) { + input.readMessage(mailBind); + bitField0_ |= 0x04000000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 45532565: { + if (input.isAtField(FieldNames.mallLogin)) { + if (!input.trySkipNullValue()) { + input.readMessage(mallLogin); + bitField0_ |= 0x08000000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; } } else { input.skipUnknownField(); @@ -2801,6 +3098,12 @@ public final class ActivityDetail { static final FieldName soldier = FieldName.forField("Soldier"); + static final FieldName mathParkour = FieldName.forField("MathParkour"); + + static final FieldName mailBind = FieldName.forField("MailBind"); + + static final FieldName mallLogin = FieldName.forField("MallLogin"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java b/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java index ca57b3e..b8e1f84 100644 --- a/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java +++ b/src/generated/main/emu/nebula/proto/ActivityHistoryStoryApply.java @@ -19,11 +19,6 @@ public final class ActivityHistoryStoryApply { public static final class ActivityHistoryStoryApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 3; - */ - private long buildId; - /** * optional uint32 ActivityId = 1; */ @@ -34,6 +29,11 @@ public final class ActivityHistoryStoryApply { */ private int storyId; + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -49,49 +49,12 @@ public final class ActivityHistoryStoryApply { return new ActivityHistoryStoryApplyReq(); } - /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 3; - * @return this - */ - public ActivityHistoryStoryApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 3; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 3; - * @param value the buildId to set - * @return this - */ - public ActivityHistoryStoryApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 ActivityId = 1; * @return whether the activityId field is set */ public boolean hasActivityId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -99,7 +62,7 @@ public final class ActivityHistoryStoryApply { * @return this */ public ActivityHistoryStoryApplyReq clearActivityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; activityId = 0; return this; } @@ -118,7 +81,7 @@ public final class ActivityHistoryStoryApply { * @return this */ public ActivityHistoryStoryApplyReq setActivityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; activityId = value; return this; } @@ -128,7 +91,7 @@ public final class ActivityHistoryStoryApply { * @return whether the storyId field is set */ public boolean hasStoryId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -136,7 +99,7 @@ public final class ActivityHistoryStoryApply { * @return this */ public ActivityHistoryStoryApplyReq clearStoryId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; storyId = 0; return this; } @@ -155,11 +118,68 @@ public final class ActivityHistoryStoryApply { * @return this */ public ActivityHistoryStoryApplyReq setStoryId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; storyId = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public ActivityHistoryStoryApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public ActivityHistoryStoryApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -244,9 +264,9 @@ public final class ActivityHistoryStoryApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; activityId = other.activityId; storyId = other.storyId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -258,15 +278,15 @@ public final class ActivityHistoryStoryApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasActivityId()) { setActivityId(other.activityId); } if (other.hasStoryId()) { setStoryId(other.storyId); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -280,9 +300,9 @@ public final class ActivityHistoryStoryApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; activityId = 0; storyId = 0; + build.clear(); nextPackage.clear(); return this; } @@ -294,6 +314,7 @@ public final class ActivityHistoryStoryApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -308,26 +329,26 @@ public final class ActivityHistoryStoryApply { } ActivityHistoryStoryApplyReq other = (ActivityHistoryStoryApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasActivityId() || activityId == other.activityId) && (!hasStoryId() || storyId == other.storyId) + && (!hasBuild() || build.equals(other.build)) && (!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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(storyId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -338,14 +359,14 @@ public final class ActivityHistoryStoryApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -359,19 +380,10 @@ public final class ActivityHistoryStoryApply { 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; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -380,6 +392,15 @@ public final class ActivityHistoryStoryApply { case 16: { // storyId storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -413,14 +434,14 @@ public final class ActivityHistoryStoryApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.storyId, storyId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -434,22 +455,11 @@ public final class ActivityHistoryStoryApply { } 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; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -460,6 +470,17 @@ public final class ActivityHistoryStoryApply { if (input.isAtField(FieldNames.storyId)) { if (!input.trySkipNullValue()) { storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -533,12 +554,12 @@ public final class ActivityHistoryStoryApply { * 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 build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityLevelsApply.java b/src/generated/main/emu/nebula/proto/ActivityLevelsApply.java index eff2730..e1ad6b5 100644 --- a/src/generated/main/emu/nebula/proto/ActivityLevelsApply.java +++ b/src/generated/main/emu/nebula/proto/ActivityLevelsApply.java @@ -19,11 +19,6 @@ public final class ActivityLevelsApply { public static final class ActivityLevelsApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 3; - */ - private long buildId; - /** * optional uint32 ActivityId = 1; */ @@ -34,6 +29,11 @@ public final class ActivityLevelsApply { */ private int levelId; + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -49,49 +49,12 @@ public final class ActivityLevelsApply { return new ActivityLevelsApplyReq(); } - /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 3; - * @return this - */ - public ActivityLevelsApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 3; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 3; - * @param value the buildId to set - * @return this - */ - public ActivityLevelsApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 ActivityId = 1; * @return whether the activityId field is set */ public boolean hasActivityId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -99,7 +62,7 @@ public final class ActivityLevelsApply { * @return this */ public ActivityLevelsApplyReq clearActivityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; activityId = 0; return this; } @@ -118,7 +81,7 @@ public final class ActivityLevelsApply { * @return this */ public ActivityLevelsApplyReq setActivityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; activityId = value; return this; } @@ -128,7 +91,7 @@ public final class ActivityLevelsApply { * @return whether the levelId field is set */ public boolean hasLevelId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -136,7 +99,7 @@ public final class ActivityLevelsApply { * @return this */ public ActivityLevelsApplyReq clearLevelId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; levelId = 0; return this; } @@ -155,11 +118,68 @@ public final class ActivityLevelsApply { * @return this */ public ActivityLevelsApplyReq setLevelId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; levelId = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public ActivityLevelsApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public ActivityLevelsApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -244,9 +264,9 @@ public final class ActivityLevelsApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; activityId = other.activityId; levelId = other.levelId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -258,15 +278,15 @@ public final class ActivityLevelsApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasActivityId()) { setActivityId(other.activityId); } if (other.hasLevelId()) { setLevelId(other.levelId); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -280,9 +300,9 @@ public final class ActivityLevelsApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; activityId = 0; levelId = 0; + build.clear(); nextPackage.clear(); return this; } @@ -294,6 +314,7 @@ public final class ActivityLevelsApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -308,26 +329,26 @@ public final class ActivityLevelsApply { } ActivityLevelsApplyReq other = (ActivityLevelsApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasActivityId() || activityId == other.activityId) && (!hasLevelId() || levelId == other.levelId) + && (!hasBuild() || build.equals(other.build)) && (!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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(levelId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -338,14 +359,14 @@ public final class ActivityLevelsApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -359,19 +380,10 @@ public final class ActivityLevelsApply { 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; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -380,6 +392,15 @@ public final class ActivityLevelsApply { case 16: { // levelId levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -413,14 +434,14 @@ public final class ActivityLevelsApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.levelId, levelId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -434,22 +455,11 @@ public final class ActivityLevelsApply { } 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; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -460,6 +470,17 @@ public final class ActivityLevelsApply { if (input.isAtField(FieldNames.levelId)) { if (!input.trySkipNullValue()) { levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -531,12 +552,12 @@ public final class ActivityLevelsApply { * 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 build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityMailBindRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityMailBindRewardReceive.java new file mode 100644 index 0000000..42fbdd9 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityMailBindRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityMailBindRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityMallloginRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityMallloginRewardReceive.java new file mode 100644 index 0000000..267e3fd --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityMallloginRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityMallloginRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityMathParkourLevelSettle.java b/src/generated/main/emu/nebula/proto/ActivityMathParkourLevelSettle.java new file mode 100644 index 0000000..70f0369 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityMathParkourLevelSettle.java @@ -0,0 +1,707 @@ +// 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 ActivityMathParkourLevelSettle { + /** + * Protobuf type {@code ActivityMathParkourLevelSettleReq} + */ + public static final class ActivityMathParkourLevelSettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 LevelId = 2; + */ + private int levelId; + + /** + * optional uint32 TotalScore = 3; + */ + private int totalScore; + + /** + * optional uint32 PropCount = 5; + */ + private int propCount; + + /** + * optional bool State = 4; + */ + private boolean state; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityMathParkourLevelSettleReq() { + } + + /** + * @return a new empty instance of {@code ActivityMathParkourLevelSettleReq} + */ + public static ActivityMathParkourLevelSettleReq newInstance() { + return new ActivityMathParkourLevelSettleReq(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityMathParkourLevelSettleReq clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityMathParkourLevelSettleReq setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 LevelId = 2; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LevelId = 2; + * @return this + */ + public ActivityMathParkourLevelSettleReq clearLevelId() { + bitField0_ &= ~0x00000002; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 2; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 2; + * @param value the levelId to set + * @return this + */ + public ActivityMathParkourLevelSettleReq setLevelId(final int value) { + bitField0_ |= 0x00000002; + levelId = value; + return this; + } + + /** + * optional uint32 TotalScore = 3; + * @return whether the totalScore field is set + */ + public boolean hasTotalScore() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 TotalScore = 3; + * @return this + */ + public ActivityMathParkourLevelSettleReq clearTotalScore() { + bitField0_ &= ~0x00000004; + totalScore = 0; + return this; + } + + /** + * optional uint32 TotalScore = 3; + * @return the totalScore + */ + public int getTotalScore() { + return totalScore; + } + + /** + * optional uint32 TotalScore = 3; + * @param value the totalScore to set + * @return this + */ + public ActivityMathParkourLevelSettleReq setTotalScore(final int value) { + bitField0_ |= 0x00000004; + totalScore = value; + return this; + } + + /** + * optional uint32 PropCount = 5; + * @return whether the propCount field is set + */ + public boolean hasPropCount() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 PropCount = 5; + * @return this + */ + public ActivityMathParkourLevelSettleReq clearPropCount() { + bitField0_ &= ~0x00000008; + propCount = 0; + return this; + } + + /** + * optional uint32 PropCount = 5; + * @return the propCount + */ + public int getPropCount() { + return propCount; + } + + /** + * optional uint32 PropCount = 5; + * @param value the propCount to set + * @return this + */ + public ActivityMathParkourLevelSettleReq setPropCount(final int value) { + bitField0_ |= 0x00000008; + propCount = value; + return this; + } + + /** + * optional bool State = 4; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool State = 4; + * @return this + */ + public ActivityMathParkourLevelSettleReq clearState() { + bitField0_ &= ~0x00000010; + state = false; + return this; + } + + /** + * optional bool State = 4; + * @return the state + */ + public boolean getState() { + return state; + } + + /** + * optional bool State = 4; + * @param value the state to set + * @return this + */ + public ActivityMathParkourLevelSettleReq setState(final boolean value) { + bitField0_ |= 0x00000010; + state = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityMathParkourLevelSettleReq clearNextPackage() { + bitField0_ &= ~0x00000020; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000020; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityMathParkourLevelSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityMathParkourLevelSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityMathParkourLevelSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityMathParkourLevelSettleReq copyFrom( + final ActivityMathParkourLevelSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + levelId = other.levelId; + totalScore = other.totalScore; + propCount = other.propCount; + state = other.state; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMathParkourLevelSettleReq mergeFrom( + final ActivityMathParkourLevelSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasTotalScore()) { + setTotalScore(other.totalScore); + } + if (other.hasPropCount()) { + setPropCount(other.propCount); + } + if (other.hasState()) { + setState(other.state); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMathParkourLevelSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + levelId = 0; + totalScore = 0; + propCount = 0; + state = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityMathParkourLevelSettleReq 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 ActivityMathParkourLevelSettleReq)) { + return false; + } + ActivityMathParkourLevelSettleReq other = (ActivityMathParkourLevelSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasLevelId() || levelId == other.levelId) + && (!hasTotalScore() || totalScore == other.totalScore) + && (!hasPropCount() || propCount == other.propCount) + && (!hasState() || state == other.state) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(totalScore); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(propCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(state); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propCount); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityMathParkourLevelSettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // totalScore + totalScore = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // propCount + propCount = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // state + state = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.levelId, levelId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.totalScore, totalScore); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.propCount, propCount); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.state, state); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityMathParkourLevelSettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1276492238: { + if (input.isAtField(FieldNames.totalScore)) { + if (!input.trySkipNullValue()) { + totalScore = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1249870668: { + if (input.isAtField(FieldNames.propCount)) { + if (!input.trySkipNullValue()) { + propCount = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 80204913: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityMathParkourLevelSettleReq clone() { + return new ActivityMathParkourLevelSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityMathParkourLevelSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevelSettleReq(), data).checkInitialized(); + } + + public static ActivityMathParkourLevelSettleReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevelSettleReq(), input).checkInitialized(); + } + + public static ActivityMathParkourLevelSettleReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevelSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityMathParkourLevelSettleReq messages + */ + public static MessageFactory getFactory() { + return ActivityMathParkourLevelSettleReqFactory.INSTANCE; + } + + private enum ActivityMathParkourLevelSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityMathParkourLevelSettleReq create() { + return ActivityMathParkourLevelSettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName totalScore = FieldName.forField("TotalScore"); + + static final FieldName propCount = FieldName.forField("PropCount"); + + static final FieldName state = FieldName.forField("State"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeAvgReq.java b/src/generated/main/emu/nebula/proto/ActivityReturneeAvgReq.java new file mode 100644 index 0000000..cf84a32 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeAvgReq.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeAvgReq { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeCardOrder.java b/src/generated/main/emu/nebula/proto/ActivityReturneeCardOrder.java new file mode 100644 index 0000000..2bd1f18 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeCardOrder.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeCardOrder { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeCardRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityReturneeCardRewardReceive.java new file mode 100644 index 0000000..29aa35a --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeCardRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeCardRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeInfo.java b/src/generated/main/emu/nebula/proto/ActivityReturneeInfo.java new file mode 100644 index 0000000..713e909 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeInfo.java @@ -0,0 +1,3648 @@ +// 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.RepeatedString; +import us.hebi.quickbuf.Utf8String; + +public final class ActivityReturneeInfo { + /** + * Protobuf type {@code ActivityReturneeInfoResp} + */ + public static final class ActivityReturneeInfoResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ActivityReturneeReunionInfo Reunion = 1; + */ + private final ActivityReturneeReunionInfo reunion = ActivityReturneeReunionInfo.newInstance(); + + /** + * optional .ActivityReturneeLoginInfo Login = 2; + */ + private final ActivityReturneeLoginInfo login = ActivityReturneeLoginInfo.newInstance(); + + /** + * optional .ActivityReturneeAvgInfo Avg = 3; + */ + private final ActivityReturneeAvgInfo avg = ActivityReturneeAvgInfo.newInstance(); + + /** + * optional .Quests Quests = 4; + */ + private final Public.Quests quests = Public.Quests.newInstance(); + + /** + * optional .ActivityReturneeQuestPointInfo QuestPoint = 5; + */ + private final ActivityReturneeQuestPointInfo questPoint = ActivityReturneeQuestPointInfo.newInstance(); + + /** + * optional .ActivityReturneeMallInfo MallInfo = 6; + */ + private final ActivityReturneeMallInfo mallInfo = ActivityReturneeMallInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeInfoResp() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeInfoResp} + */ + public static ActivityReturneeInfoResp newInstance() { + return new ActivityReturneeInfoResp(); + } + + /** + * optional .ActivityReturneeReunionInfo Reunion = 1; + * @return whether the reunion field is set + */ + public boolean hasReunion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ActivityReturneeReunionInfo Reunion = 1; + * @return this + */ + public ActivityReturneeInfoResp clearReunion() { + bitField0_ &= ~0x00000001; + reunion.clear(); + return this; + } + + /** + * optional .ActivityReturneeReunionInfo Reunion = 1; + * + * 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 #getMutableReunion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeReunionInfo getReunion() { + return reunion; + } + + /** + * optional .ActivityReturneeReunionInfo Reunion = 1; + * + * 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 ActivityReturneeReunionInfo getMutableReunion() { + bitField0_ |= 0x00000001; + return reunion; + } + + /** + * optional .ActivityReturneeReunionInfo Reunion = 1; + * @param value the reunion to set + * @return this + */ + public ActivityReturneeInfoResp setReunion(final ActivityReturneeReunionInfo value) { + bitField0_ |= 0x00000001; + reunion.copyFrom(value); + return this; + } + + /** + * optional .ActivityReturneeLoginInfo Login = 2; + * @return whether the login field is set + */ + public boolean hasLogin() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ActivityReturneeLoginInfo Login = 2; + * @return this + */ + public ActivityReturneeInfoResp clearLogin() { + bitField0_ &= ~0x00000002; + login.clear(); + return this; + } + + /** + * optional .ActivityReturneeLoginInfo Login = 2; + * + * 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 #getMutableLogin()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeLoginInfo getLogin() { + return login; + } + + /** + * optional .ActivityReturneeLoginInfo Login = 2; + * + * 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 ActivityReturneeLoginInfo getMutableLogin() { + bitField0_ |= 0x00000002; + return login; + } + + /** + * optional .ActivityReturneeLoginInfo Login = 2; + * @param value the login to set + * @return this + */ + public ActivityReturneeInfoResp setLogin(final ActivityReturneeLoginInfo value) { + bitField0_ |= 0x00000002; + login.copyFrom(value); + return this; + } + + /** + * optional .ActivityReturneeAvgInfo Avg = 3; + * @return whether the avg field is set + */ + public boolean hasAvg() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ActivityReturneeAvgInfo Avg = 3; + * @return this + */ + public ActivityReturneeInfoResp clearAvg() { + bitField0_ &= ~0x00000004; + avg.clear(); + return this; + } + + /** + * optional .ActivityReturneeAvgInfo Avg = 3; + * + * 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 #getMutableAvg()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeAvgInfo getAvg() { + return avg; + } + + /** + * optional .ActivityReturneeAvgInfo Avg = 3; + * + * 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 ActivityReturneeAvgInfo getMutableAvg() { + bitField0_ |= 0x00000004; + return avg; + } + + /** + * optional .ActivityReturneeAvgInfo Avg = 3; + * @param value the avg to set + * @return this + */ + public ActivityReturneeInfoResp setAvg(final ActivityReturneeAvgInfo value) { + bitField0_ |= 0x00000004; + avg.copyFrom(value); + return this; + } + + /** + * optional .Quests Quests = 4; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .Quests Quests = 4; + * @return this + */ + public ActivityReturneeInfoResp clearQuests() { + bitField0_ &= ~0x00000008; + quests.clear(); + return this; + } + + /** + * optional .Quests Quests = 4; + * + * 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 #getMutableQuests()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Quests getQuests() { + return quests; + } + + /** + * optional .Quests Quests = 4; + * + * 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.Quests getMutableQuests() { + bitField0_ |= 0x00000008; + return quests; + } + + /** + * optional .Quests Quests = 4; + * @param value the quests to set + * @return this + */ + public ActivityReturneeInfoResp setQuests(final Public.Quests value) { + bitField0_ |= 0x00000008; + quests.copyFrom(value); + return this; + } + + /** + * optional .ActivityReturneeQuestPointInfo QuestPoint = 5; + * @return whether the questPoint field is set + */ + public boolean hasQuestPoint() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ActivityReturneeQuestPointInfo QuestPoint = 5; + * @return this + */ + public ActivityReturneeInfoResp clearQuestPoint() { + bitField0_ &= ~0x00000010; + questPoint.clear(); + return this; + } + + /** + * optional .ActivityReturneeQuestPointInfo QuestPoint = 5; + * + * 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 #getMutableQuestPoint()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeQuestPointInfo getQuestPoint() { + return questPoint; + } + + /** + * optional .ActivityReturneeQuestPointInfo QuestPoint = 5; + * + * 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 ActivityReturneeQuestPointInfo getMutableQuestPoint() { + bitField0_ |= 0x00000010; + return questPoint; + } + + /** + * optional .ActivityReturneeQuestPointInfo QuestPoint = 5; + * @param value the questPoint to set + * @return this + */ + public ActivityReturneeInfoResp setQuestPoint(final ActivityReturneeQuestPointInfo value) { + bitField0_ |= 0x00000010; + questPoint.copyFrom(value); + return this; + } + + /** + * optional .ActivityReturneeMallInfo MallInfo = 6; + * @return whether the mallInfo field is set + */ + public boolean hasMallInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ActivityReturneeMallInfo MallInfo = 6; + * @return this + */ + public ActivityReturneeInfoResp clearMallInfo() { + bitField0_ &= ~0x00000020; + mallInfo.clear(); + return this; + } + + /** + * optional .ActivityReturneeMallInfo MallInfo = 6; + * + * 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 #getMutableMallInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeMallInfo getMallInfo() { + return mallInfo; + } + + /** + * optional .ActivityReturneeMallInfo MallInfo = 6; + * + * 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 ActivityReturneeMallInfo getMutableMallInfo() { + bitField0_ |= 0x00000020; + return mallInfo; + } + + /** + * optional .ActivityReturneeMallInfo MallInfo = 6; + * @param value the mallInfo to set + * @return this + */ + public ActivityReturneeInfoResp setMallInfo(final ActivityReturneeMallInfo value) { + bitField0_ |= 0x00000020; + mallInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeInfoResp clearNextPackage() { + bitField0_ &= ~0x00000040; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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_ |= 0x00000040; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeInfoResp addNextPackage(final byte value) { + bitField0_ |= 0x00000040; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeInfoResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeInfoResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeInfoResp copyFrom(final ActivityReturneeInfoResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reunion.copyFrom(other.reunion); + login.copyFrom(other.login); + avg.copyFrom(other.avg); + quests.copyFrom(other.quests); + questPoint.copyFrom(other.questPoint); + mallInfo.copyFrom(other.mallInfo); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeInfoResp mergeFrom(final ActivityReturneeInfoResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReunion()) { + getMutableReunion().mergeFrom(other.reunion); + } + if (other.hasLogin()) { + getMutableLogin().mergeFrom(other.login); + } + if (other.hasAvg()) { + getMutableAvg().mergeFrom(other.avg); + } + if (other.hasQuests()) { + getMutableQuests().mergeFrom(other.quests); + } + if (other.hasQuestPoint()) { + getMutableQuestPoint().mergeFrom(other.questPoint); + } + if (other.hasMallInfo()) { + getMutableMallInfo().mergeFrom(other.mallInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeInfoResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reunion.clear(); + login.clear(); + avg.clear(); + quests.clear(); + questPoint.clear(); + mallInfo.clear(); + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeInfoResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reunion.clearQuick(); + login.clearQuick(); + avg.clearQuick(); + quests.clearQuick(); + questPoint.clearQuick(); + mallInfo.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityReturneeInfoResp)) { + return false; + } + ActivityReturneeInfoResp other = (ActivityReturneeInfoResp) o; + return bitField0_ == other.bitField0_ + && (!hasReunion() || reunion.equals(other.reunion)) + && (!hasLogin() || login.equals(other.login)) + && (!hasAvg() || avg.equals(other.avg)) + && (!hasQuests() || quests.equals(other.quests)) + && (!hasQuestPoint() || questPoint.equals(other.questPoint)) + && (!hasMallInfo() || mallInfo.equals(other.mallInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(reunion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(login); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(avg); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(quests); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(questPoint); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(mallInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reunion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(login); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(avg); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(quests); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(questPoint); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(mallInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeInfoResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // reunion + input.readMessage(reunion); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // login + input.readMessage(login); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // avg + input.readMessage(avg); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // quests + input.readMessage(quests); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // questPoint + input.readMessage(questPoint); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // mallInfo + input.readMessage(mallInfo); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.reunion, reunion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.login, login); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.avg, avg); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.quests, quests); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.questPoint, questPoint); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.mallInfo, mallInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeInfoResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1531131812: { + if (input.isAtField(FieldNames.reunion)) { + if (!input.trySkipNullValue()) { + input.readMessage(reunion); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73596745: { + if (input.isAtField(FieldNames.login)) { + if (!input.trySkipNullValue()) { + input.readMessage(login); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 66226: { + if (input.isAtField(FieldNames.avg)) { + if (!input.trySkipNullValue()) { + input.readMessage(avg); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1864830991: { + if (input.isAtField(FieldNames.quests)) { + if (!input.trySkipNullValue()) { + input.readMessage(quests); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1739299346: { + if (input.isAtField(FieldNames.questPoint)) { + if (!input.trySkipNullValue()) { + input.readMessage(questPoint); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 139925762: { + if (input.isAtField(FieldNames.mallInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(mallInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeInfoResp clone() { + return new ActivityReturneeInfoResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeInfoResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeInfoResp(), data).checkInitialized(); + } + + public static ActivityReturneeInfoResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeInfoResp(), input).checkInitialized(); + } + + public static ActivityReturneeInfoResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeInfoResp(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeInfoResp messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeInfoRespFactory.INSTANCE; + } + + private enum ActivityReturneeInfoRespFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeInfoResp create() { + return ActivityReturneeInfoResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reunion = FieldName.forField("Reunion"); + + static final FieldName login = FieldName.forField("Login"); + + static final FieldName avg = FieldName.forField("Avg"); + + static final FieldName quests = FieldName.forField("Quests"); + + static final FieldName questPoint = FieldName.forField("QuestPoint"); + + static final FieldName mallInfo = FieldName.forField("MallInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityReturneeReunionInfo} + */ + public static final class ActivityReturneeReunionInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool ReunionReward = 1; + */ + private boolean reunionReward; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeReunionInfo() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeReunionInfo} + */ + public static ActivityReturneeReunionInfo newInstance() { + return new ActivityReturneeReunionInfo(); + } + + /** + * optional bool ReunionReward = 1; + * @return whether the reunionReward field is set + */ + public boolean hasReunionReward() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool ReunionReward = 1; + * @return this + */ + public ActivityReturneeReunionInfo clearReunionReward() { + bitField0_ &= ~0x00000001; + reunionReward = false; + return this; + } + + /** + * optional bool ReunionReward = 1; + * @return the reunionReward + */ + public boolean getReunionReward() { + return reunionReward; + } + + /** + * optional bool ReunionReward = 1; + * @param value the reunionReward to set + * @return this + */ + public ActivityReturneeReunionInfo setReunionReward(final boolean value) { + bitField0_ |= 0x00000001; + reunionReward = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeReunionInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeReunionInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeReunionInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeReunionInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeReunionInfo copyFrom(final ActivityReturneeReunionInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reunionReward = other.reunionReward; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeReunionInfo mergeFrom(final ActivityReturneeReunionInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReunionReward()) { + setReunionReward(other.reunionReward); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeReunionInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reunionReward = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeReunionInfo 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 ActivityReturneeReunionInfo)) { + return false; + } + ActivityReturneeReunionInfo other = (ActivityReturneeReunionInfo) o; + return bitField0_ == other.bitField0_ + && (!hasReunionReward() || reunionReward == other.reunionReward) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(reunionReward); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeReunionInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // reunionReward + reunionReward = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.reunionReward, reunionReward); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeReunionInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1703391573: { + if (input.isAtField(FieldNames.reunionReward)) { + if (!input.trySkipNullValue()) { + reunionReward = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeReunionInfo clone() { + return new ActivityReturneeReunionInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeReunionInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeReunionInfo(), data).checkInitialized(); + } + + public static ActivityReturneeReunionInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeReunionInfo(), input).checkInitialized(); + } + + public static ActivityReturneeReunionInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeReunionInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeReunionInfo messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeReunionInfoFactory.INSTANCE; + } + + private enum ActivityReturneeReunionInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeReunionInfo create() { + return ActivityReturneeReunionInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reunionReward = FieldName.forField("ReunionReward"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityReturneeLoginInfo} + */ + public static final class ActivityReturneeLoginInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Receive = 1; + */ + private int receive; + + /** + * optional uint32 Actual = 2; + */ + private int actual; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeLoginInfo() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeLoginInfo} + */ + public static ActivityReturneeLoginInfo newInstance() { + return new ActivityReturneeLoginInfo(); + } + + /** + * optional uint32 Receive = 1; + * @return whether the receive field is set + */ + public boolean hasReceive() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Receive = 1; + * @return this + */ + public ActivityReturneeLoginInfo clearReceive() { + bitField0_ &= ~0x00000001; + receive = 0; + return this; + } + + /** + * optional uint32 Receive = 1; + * @return the receive + */ + public int getReceive() { + return receive; + } + + /** + * optional uint32 Receive = 1; + * @param value the receive to set + * @return this + */ + public ActivityReturneeLoginInfo setReceive(final int value) { + bitField0_ |= 0x00000001; + receive = value; + return this; + } + + /** + * optional uint32 Actual = 2; + * @return whether the actual field is set + */ + public boolean hasActual() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Actual = 2; + * @return this + */ + public ActivityReturneeLoginInfo clearActual() { + bitField0_ &= ~0x00000002; + actual = 0; + return this; + } + + /** + * optional uint32 Actual = 2; + * @return the actual + */ + public int getActual() { + return actual; + } + + /** + * optional uint32 Actual = 2; + * @param value the actual to set + * @return this + */ + public ActivityReturneeLoginInfo setActual(final int value) { + bitField0_ |= 0x00000002; + actual = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeLoginInfo clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeLoginInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeLoginInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeLoginInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeLoginInfo copyFrom(final ActivityReturneeLoginInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + receive = other.receive; + actual = other.actual; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeLoginInfo mergeFrom(final ActivityReturneeLoginInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReceive()) { + setReceive(other.receive); + } + if (other.hasActual()) { + setActual(other.actual); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeLoginInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + receive = 0; + actual = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeLoginInfo 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 ActivityReturneeLoginInfo)) { + return false; + } + ActivityReturneeLoginInfo other = (ActivityReturneeLoginInfo) o; + return bitField0_ == other.bitField0_ + && (!hasReceive() || receive == other.receive) + && (!hasActual() || actual == other.actual) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(receive); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(actual); + } + 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(receive); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(actual); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeLoginInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // receive + receive = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // actual + actual = 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.receive, receive); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.actual, actual); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeLoginInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1548023101: { + if (input.isAtField(FieldNames.receive)) { + if (!input.trySkipNullValue()) { + receive = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1955894702: { + if (input.isAtField(FieldNames.actual)) { + if (!input.trySkipNullValue()) { + actual = 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 ActivityReturneeLoginInfo clone() { + return new ActivityReturneeLoginInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeLoginInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeLoginInfo(), data).checkInitialized(); + } + + public static ActivityReturneeLoginInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeLoginInfo(), input).checkInitialized(); + } + + public static ActivityReturneeLoginInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeLoginInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeLoginInfo messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeLoginInfoFactory.INSTANCE; + } + + private enum ActivityReturneeLoginInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeLoginInfo create() { + return ActivityReturneeLoginInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName receive = FieldName.forField("Receive"); + + static final FieldName actual = FieldName.forField("Actual"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityReturneeAvgInfo} + */ + public static final class ActivityReturneeAvgInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool Avg = 1; + */ + private boolean avg; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeAvgInfo() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeAvgInfo} + */ + public static ActivityReturneeAvgInfo newInstance() { + return new ActivityReturneeAvgInfo(); + } + + /** + * optional bool Avg = 1; + * @return whether the avg field is set + */ + public boolean hasAvg() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool Avg = 1; + * @return this + */ + public ActivityReturneeAvgInfo clearAvg() { + bitField0_ &= ~0x00000001; + avg = false; + return this; + } + + /** + * optional bool Avg = 1; + * @return the avg + */ + public boolean getAvg() { + return avg; + } + + /** + * optional bool Avg = 1; + * @param value the avg to set + * @return this + */ + public ActivityReturneeAvgInfo setAvg(final boolean value) { + bitField0_ |= 0x00000001; + avg = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeAvgInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeAvgInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeAvgInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeAvgInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeAvgInfo copyFrom(final ActivityReturneeAvgInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avg = other.avg; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeAvgInfo mergeFrom(final ActivityReturneeAvgInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvg()) { + setAvg(other.avg); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeAvgInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avg = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeAvgInfo 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 ActivityReturneeAvgInfo)) { + return false; + } + ActivityReturneeAvgInfo other = (ActivityReturneeAvgInfo) o; + return bitField0_ == other.bitField0_ + && (!hasAvg() || avg == other.avg) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(avg); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeAvgInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // avg + avg = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.avg, avg); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeAvgInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 66226: { + if (input.isAtField(FieldNames.avg)) { + if (!input.trySkipNullValue()) { + avg = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeAvgInfo clone() { + return new ActivityReturneeAvgInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeAvgInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeAvgInfo(), data).checkInitialized(); + } + + public static ActivityReturneeAvgInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeAvgInfo(), input).checkInitialized(); + } + + public static ActivityReturneeAvgInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeAvgInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeAvgInfo messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeAvgInfoFactory.INSTANCE; + } + + private enum ActivityReturneeAvgInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeAvgInfo create() { + return ActivityReturneeAvgInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avg = FieldName.forField("Avg"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityReturneeQuestPointInfo} + */ + public static final class ActivityReturneeQuestPointInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Point = 1; + */ + private int point; + + /** + * optional bytes Received = 2; + */ + private final RepeatedByte received = RepeatedByte.newEmptyInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeQuestPointInfo() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeQuestPointInfo} + */ + public static ActivityReturneeQuestPointInfo newInstance() { + return new ActivityReturneeQuestPointInfo(); + } + + /** + * optional uint32 Point = 1; + * @return whether the point field is set + */ + public boolean hasPoint() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Point = 1; + * @return this + */ + public ActivityReturneeQuestPointInfo clearPoint() { + bitField0_ &= ~0x00000001; + point = 0; + return this; + } + + /** + * optional uint32 Point = 1; + * @return the point + */ + public int getPoint() { + return point; + } + + /** + * optional uint32 Point = 1; + * @param value the point to set + * @return this + */ + public ActivityReturneeQuestPointInfo setPoint(final int value) { + bitField0_ |= 0x00000001; + point = value; + return this; + } + + /** + * optional bytes Received = 2; + * @return whether the received field is set + */ + public boolean hasReceived() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes Received = 2; + * @return this + */ + public ActivityReturneeQuestPointInfo clearReceived() { + bitField0_ &= ~0x00000002; + received.clear(); + return this; + } + + /** + * optional bytes Received = 2; + * + * 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 #getMutableReceived()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getReceived() { + return received; + } + + /** + * optional bytes Received = 2; + * + * 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 getMutableReceived() { + bitField0_ |= 0x00000002; + return received; + } + + /** + * optional bytes Received = 2; + * @param value the received to add + * @return this + */ + public ActivityReturneeQuestPointInfo addReceived(final byte value) { + bitField0_ |= 0x00000002; + received.add(value); + return this; + } + + /** + * optional bytes Received = 2; + * @param values the received to add + * @return this + */ + public ActivityReturneeQuestPointInfo addAllReceived(final byte... values) { + bitField0_ |= 0x00000002; + received.addAll(values); + return this; + } + + /** + * optional bytes Received = 2; + * @param values the received to set + * @return this + */ + public ActivityReturneeQuestPointInfo setReceived(final byte... values) { + bitField0_ |= 0x00000002; + received.copyFrom(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeQuestPointInfo clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeQuestPointInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeQuestPointInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeQuestPointInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeQuestPointInfo copyFrom(final ActivityReturneeQuestPointInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + point = other.point; + received.copyFrom(other.received); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeQuestPointInfo mergeFrom(final ActivityReturneeQuestPointInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPoint()) { + setPoint(other.point); + } + if (other.hasReceived()) { + getMutableReceived().copyFrom(other.received); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeQuestPointInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + point = 0; + received.clear(); + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeQuestPointInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + received.clear(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityReturneeQuestPointInfo)) { + return false; + } + ActivityReturneeQuestPointInfo other = (ActivityReturneeQuestPointInfo) o; + return bitField0_ == other.bitField0_ + && (!hasPoint() || point == other.point) + && (!hasReceived() || received.equals(other.received)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeBytesNoTag(received); + } + 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(point); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(received); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeQuestPointInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // point + point = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // received + input.readBytes(received); + 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.point, point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.received, received); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeQuestPointInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 77292912: { + if (input.isAtField(FieldNames.point)) { + if (!input.trySkipNullValue()) { + point = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -744075775: { + if (input.isAtField(FieldNames.received)) { + if (!input.trySkipNullValue()) { + input.readBytes(received); + 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 ActivityReturneeQuestPointInfo clone() { + return new ActivityReturneeQuestPointInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeQuestPointInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeQuestPointInfo(), data).checkInitialized(); + } + + public static ActivityReturneeQuestPointInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeQuestPointInfo(), input).checkInitialized(); + } + + public static ActivityReturneeQuestPointInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeQuestPointInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeQuestPointInfo messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeQuestPointInfoFactory.INSTANCE; + } + + private enum ActivityReturneeQuestPointInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeQuestPointInfo create() { + return ActivityReturneeQuestPointInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName point = FieldName.forField("Point"); + + static final FieldName received = FieldName.forField("Received"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityReturneeMallInfo} + */ + public static final class ActivityReturneeMallInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ActivityReturneeCard Card = 2; + */ + private final ActivityReturneeCard card = ActivityReturneeCard.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated string Ids = 1; + */ + private final RepeatedString ids = RepeatedString.newEmptyInstance(); + + private ActivityReturneeMallInfo() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeMallInfo} + */ + public static ActivityReturneeMallInfo newInstance() { + return new ActivityReturneeMallInfo(); + } + + /** + * optional .ActivityReturneeCard Card = 2; + * @return whether the card field is set + */ + public boolean hasCard() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ActivityReturneeCard Card = 2; + * @return this + */ + public ActivityReturneeMallInfo clearCard() { + bitField0_ &= ~0x00000001; + card.clear(); + return this; + } + + /** + * optional .ActivityReturneeCard Card = 2; + * + * 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 #getMutableCard()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeCard getCard() { + return card; + } + + /** + * optional .ActivityReturneeCard Card = 2; + * + * 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 ActivityReturneeCard getMutableCard() { + bitField0_ |= 0x00000001; + return card; + } + + /** + * optional .ActivityReturneeCard Card = 2; + * @param value the card to set + * @return this + */ + public ActivityReturneeMallInfo setCard(final ActivityReturneeCard value) { + bitField0_ |= 0x00000001; + card.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeMallInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeMallInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeMallInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeMallInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated string Ids = 1; + * @return whether the ids field is set + */ + public boolean hasIds() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated string Ids = 1; + * @return this + */ + public ActivityReturneeMallInfo clearIds() { + bitField0_ &= ~0x00000004; + ids.clear(); + return this; + } + + /** + * repeated string Ids = 1; + * + * 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 #getMutableIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedString getIds() { + return ids; + } + + /** + * repeated string Ids = 1; + * + * 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 RepeatedString getMutableIds() { + bitField0_ |= 0x00000004; + return ids; + } + + /** + * repeated string Ids = 1; + * @param value the ids to add + * @return this + */ + public ActivityReturneeMallInfo addIds(final CharSequence value) { + bitField0_ |= 0x00000004; + ids.add(value); + return this; + } + + /** + * repeated string Ids = 1; + * @param values the ids to add + * @return this + */ + public ActivityReturneeMallInfo addAllIds(final CharSequence... values) { + bitField0_ |= 0x00000004; + ids.addAll(values); + return this; + } + + @Override + public ActivityReturneeMallInfo copyFrom(final ActivityReturneeMallInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + card.copyFrom(other.card); + nextPackage.copyFrom(other.nextPackage); + ids.copyFrom(other.ids); + } + return this; + } + + @Override + public ActivityReturneeMallInfo mergeFrom(final ActivityReturneeMallInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCard()) { + getMutableCard().mergeFrom(other.card); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasIds()) { + getMutableIds().addAll(other.ids); + } + return this; + } + + @Override + public ActivityReturneeMallInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + card.clear(); + nextPackage.clear(); + ids.clear(); + return this; + } + + @Override + public ActivityReturneeMallInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + card.clearQuick(); + nextPackage.clear(); + ids.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityReturneeMallInfo)) { + return false; + } + ActivityReturneeMallInfo other = (ActivityReturneeMallInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCard() || card.equals(other.card)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasIds() || ids.equals(other.ids)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(card); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < ids.length(); i++) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(ids.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(card); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * ids.length()) + ProtoSink.computeRepeatedStringSizeNoTag(ids); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeMallInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // card + input.readMessage(card); + 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: { + // ids + tag = input.readRepeatedString(ids, 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.card, card); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedString(FieldNames.ids, ids); + } + output.endObject(); + } + + @Override + public ActivityReturneeMallInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2092848: { + if (input.isAtField(FieldNames.card)) { + if (!input.trySkipNullValue()) { + input.readMessage(card); + 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 73368: { + if (input.isAtField(FieldNames.ids)) { + if (!input.trySkipNullValue()) { + input.readRepeatedString(ids); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeMallInfo clone() { + return new ActivityReturneeMallInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeMallInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeMallInfo(), data).checkInitialized(); + } + + public static ActivityReturneeMallInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeMallInfo(), input).checkInitialized(); + } + + public static ActivityReturneeMallInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeMallInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeMallInfo messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeMallInfoFactory.INSTANCE; + } + + private enum ActivityReturneeMallInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeMallInfo create() { + return ActivityReturneeMallInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName card = FieldName.forField("Card"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName ids = FieldName.forField("Ids"); + } + } + + /** + * Protobuf type {@code ActivityReturneeCard} + */ + public static final class ActivityReturneeCard extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Remaining = 2; + */ + private int remaining; + + /** + * optional bool Received = 3; + */ + private boolean received; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string Id = 1; + */ + private final Utf8String id = Utf8String.newEmptyInstance(); + + private ActivityReturneeCard() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeCard} + */ + public static ActivityReturneeCard newInstance() { + return new ActivityReturneeCard(); + } + + /** + * optional uint32 Remaining = 2; + * @return whether the remaining field is set + */ + public boolean hasRemaining() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Remaining = 2; + * @return this + */ + public ActivityReturneeCard clearRemaining() { + bitField0_ &= ~0x00000001; + remaining = 0; + return this; + } + + /** + * optional uint32 Remaining = 2; + * @return the remaining + */ + public int getRemaining() { + return remaining; + } + + /** + * optional uint32 Remaining = 2; + * @param value the remaining to set + * @return this + */ + public ActivityReturneeCard setRemaining(final int value) { + bitField0_ |= 0x00000001; + remaining = value; + return this; + } + + /** + * optional bool Received = 3; + * @return whether the received field is set + */ + public boolean hasReceived() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Received = 3; + * @return this + */ + public ActivityReturneeCard clearReceived() { + bitField0_ &= ~0x00000002; + received = false; + return this; + } + + /** + * optional bool Received = 3; + * @return the received + */ + public boolean getReceived() { + return received; + } + + /** + * optional bool Received = 3; + * @param value the received to set + * @return this + */ + public ActivityReturneeCard setReceived(final boolean value) { + bitField0_ |= 0x00000002; + received = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeCard clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeCard addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeCard addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeCard setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string Id = 1; + * @return this + */ + public ActivityReturneeCard clearId() { + bitField0_ &= ~0x00000008; + id.clear(); + return this; + } + + /** + * optional string Id = 1; + * @return the id + */ + public String getId() { + return id.getString(); + } + + /** + * optional string Id = 1; + * @return internal {@code Utf8String} representation of id for reading + */ + public Utf8String getIdBytes() { + return this.id; + } + + /** + * optional string Id = 1; + * @return internal {@code Utf8String} representation of id for modifications + */ + public Utf8String getMutableIdBytes() { + bitField0_ |= 0x00000008; + return this.id; + } + + /** + * optional string Id = 1; + * @param value the id to set + * @return this + */ + public ActivityReturneeCard setId(final CharSequence value) { + bitField0_ |= 0x00000008; + id.copyFrom(value); + return this; + } + + /** + * optional string Id = 1; + * @param value the id to set + * @return this + */ + public ActivityReturneeCard setId(final Utf8String value) { + bitField0_ |= 0x00000008; + id.copyFrom(value); + return this; + } + + @Override + public ActivityReturneeCard copyFrom(final ActivityReturneeCard other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + remaining = other.remaining; + received = other.received; + nextPackage.copyFrom(other.nextPackage); + id.copyFrom(other.id); + } + return this; + } + + @Override + public ActivityReturneeCard mergeFrom(final ActivityReturneeCard other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRemaining()) { + setRemaining(other.remaining); + } + if (other.hasReceived()) { + setReceived(other.received); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasId()) { + getMutableIdBytes().copyFrom(other.id); + } + return this; + } + + @Override + public ActivityReturneeCard clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + remaining = 0; + received = false; + nextPackage.clear(); + id.clear(); + return this; + } + + @Override + public ActivityReturneeCard clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + id.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityReturneeCard)) { + return false; + } + ActivityReturneeCard other = (ActivityReturneeCard) o; + return bitField0_ == other.bitField0_ + && (!hasRemaining() || remaining == other.remaining) + && (!hasReceived() || received == other.received) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasId() || id.equals(other.id)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(remaining); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(received); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(remaining); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeCard mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // remaining + remaining = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // received + received = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // id + input.readString(id); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.remaining, remaining); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.received, received); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.id, id); + } + output.endObject(); + } + + @Override + public ActivityReturneeCard mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1421161002: { + if (input.isAtField(FieldNames.remaining)) { + if (!input.trySkipNullValue()) { + remaining = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -744075775: { + if (input.isAtField(FieldNames.received)) { + if (!input.trySkipNullValue()) { + received = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + input.readString(id); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeCard clone() { + return new ActivityReturneeCard().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeCard parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeCard(), data).checkInitialized(); + } + + public static ActivityReturneeCard parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeCard(), input).checkInitialized(); + } + + public static ActivityReturneeCard parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeCard(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeCard messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeCardFactory.INSTANCE; + } + + private enum ActivityReturneeCardFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeCard create() { + return ActivityReturneeCard.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName remaining = FieldName.forField("Remaining"); + + static final FieldName received = FieldName.forField("Received"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName id = FieldName.forField("Id"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeLoginRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityReturneeLoginRewardReceive.java new file mode 100644 index 0000000..c465094 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeLoginRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeLoginRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneePackOrder.java b/src/generated/main/emu/nebula/proto/ActivityReturneePackOrder.java new file mode 100644 index 0000000..13515d9 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneePackOrder.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneePackOrder { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeQuestPointRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityReturneeQuestPointRewardReceive.java new file mode 100644 index 0000000..3cd23a2 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeQuestPointRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeQuestPointRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeQuestRewardReceive.java b/src/generated/main/emu/nebula/proto/ActivityReturneeQuestRewardReceive.java new file mode 100644 index 0000000..915fab3 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeQuestRewardReceive.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeQuestRewardReceive { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityReturneeReunionRewardReq.java b/src/generated/main/emu/nebula/proto/ActivityReturneeReunionRewardReq.java new file mode 100644 index 0000000..aadfdf2 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/ActivityReturneeReunionRewardReq.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class ActivityReturneeReunionRewardReq { +} diff --git a/src/generated/main/emu/nebula/proto/ActivityStoryApply.java b/src/generated/main/emu/nebula/proto/ActivityStoryApply.java index e7a81e3..b57df19 100644 --- a/src/generated/main/emu/nebula/proto/ActivityStoryApply.java +++ b/src/generated/main/emu/nebula/proto/ActivityStoryApply.java @@ -19,11 +19,6 @@ public final class ActivityStoryApply { public static final class ActivityStoryApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 3; - */ - private long buildId; - /** * optional uint32 ActivityId = 1; */ @@ -34,6 +29,11 @@ public final class ActivityStoryApply { */ private int storyId; + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -49,49 +49,12 @@ public final class ActivityStoryApply { return new ActivityStoryApplyReq(); } - /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 3; - * @return this - */ - public ActivityStoryApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 3; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 3; - * @param value the buildId to set - * @return this - */ - public ActivityStoryApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 ActivityId = 1; * @return whether the activityId field is set */ public boolean hasActivityId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -99,7 +62,7 @@ public final class ActivityStoryApply { * @return this */ public ActivityStoryApplyReq clearActivityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; activityId = 0; return this; } @@ -118,7 +81,7 @@ public final class ActivityStoryApply { * @return this */ public ActivityStoryApplyReq setActivityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; activityId = value; return this; } @@ -128,7 +91,7 @@ public final class ActivityStoryApply { * @return whether the storyId field is set */ public boolean hasStoryId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -136,7 +99,7 @@ public final class ActivityStoryApply { * @return this */ public ActivityStoryApplyReq clearStoryId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; storyId = 0; return this; } @@ -155,11 +118,68 @@ public final class ActivityStoryApply { * @return this */ public ActivityStoryApplyReq setStoryId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; storyId = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public ActivityStoryApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public ActivityStoryApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -244,9 +264,9 @@ public final class ActivityStoryApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; activityId = other.activityId; storyId = other.storyId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -258,15 +278,15 @@ public final class ActivityStoryApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasActivityId()) { setActivityId(other.activityId); } if (other.hasStoryId()) { setStoryId(other.storyId); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -280,9 +300,9 @@ public final class ActivityStoryApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; activityId = 0; storyId = 0; + build.clear(); nextPackage.clear(); return this; } @@ -294,6 +314,7 @@ public final class ActivityStoryApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -308,26 +329,26 @@ public final class ActivityStoryApply { } ActivityStoryApplyReq other = (ActivityStoryApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasActivityId() || activityId == other.activityId) && (!hasStoryId() || storyId == other.storyId) + && (!hasBuild() || build.equals(other.build)) && (!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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(storyId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -338,14 +359,14 @@ public final class ActivityStoryApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -359,19 +380,10 @@ public final class ActivityStoryApply { 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; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -380,6 +392,15 @@ public final class ActivityStoryApply { case 16: { // storyId storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -413,14 +434,14 @@ public final class ActivityStoryApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.storyId, storyId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -434,22 +455,11 @@ public final class ActivityStoryApply { } 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; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -460,6 +470,17 @@ public final class ActivityStoryApply { if (input.isAtField(FieldNames.storyId)) { if (!input.trySkipNullValue()) { storyId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -531,12 +552,12 @@ public final class ActivityStoryApply { * 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 build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java index 442f36b..9ad7a24 100644 --- a/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java +++ b/src/generated/main/emu/nebula/proto/ActivityTrekkerVersusApply.java @@ -20,11 +20,6 @@ public final class ActivityTrekkerVersusApply { public static final class ActivityTrekkerVersusApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 3; - */ - private long buildId; - /** * optional uint32 ActivityId = 1; */ @@ -35,6 +30,11 @@ public final class ActivityTrekkerVersusApply { */ private int levelId; + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -55,49 +55,12 @@ public final class ActivityTrekkerVersusApply { return new ActivityTrekkerVersusApplyReq(); } - /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 3; - * @return this - */ - public ActivityTrekkerVersusApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 3; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 3; - * @param value the buildId to set - * @return this - */ - public ActivityTrekkerVersusApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 ActivityId = 1; * @return whether the activityId field is set */ public boolean hasActivityId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -105,7 +68,7 @@ public final class ActivityTrekkerVersusApply { * @return this */ public ActivityTrekkerVersusApplyReq clearActivityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; activityId = 0; return this; } @@ -124,7 +87,7 @@ public final class ActivityTrekkerVersusApply { * @return this */ public ActivityTrekkerVersusApplyReq setActivityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; activityId = value; return this; } @@ -134,7 +97,7 @@ public final class ActivityTrekkerVersusApply { * @return whether the levelId field is set */ public boolean hasLevelId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -142,7 +105,7 @@ public final class ActivityTrekkerVersusApply { * @return this */ public ActivityTrekkerVersusApplyReq clearLevelId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; levelId = 0; return this; } @@ -161,11 +124,68 @@ public final class ActivityTrekkerVersusApply { * @return this */ public ActivityTrekkerVersusApplyReq setLevelId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; levelId = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public ActivityTrekkerVersusApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public ActivityTrekkerVersusApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -318,9 +338,9 @@ public final class ActivityTrekkerVersusApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; activityId = other.activityId; levelId = other.levelId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); affixIds.copyFrom(other.affixIds); } @@ -333,15 +353,15 @@ public final class ActivityTrekkerVersusApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasActivityId()) { setActivityId(other.activityId); } if (other.hasLevelId()) { setLevelId(other.levelId); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -358,9 +378,9 @@ public final class ActivityTrekkerVersusApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; activityId = 0; levelId = 0; + build.clear(); nextPackage.clear(); affixIds.clear(); return this; @@ -373,6 +393,7 @@ public final class ActivityTrekkerVersusApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); affixIds.clear(); return this; @@ -388,9 +409,9 @@ public final class ActivityTrekkerVersusApply { } ActivityTrekkerVersusApplyReq other = (ActivityTrekkerVersusApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasActivityId() || activityId == other.activityId) && (!hasLevelId() || levelId == other.levelId) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasAffixIds() || affixIds.equals(other.affixIds)); } @@ -398,17 +419,17 @@ public final class ActivityTrekkerVersusApply { @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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(levelId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -425,14 +446,14 @@ public final class ActivityTrekkerVersusApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -449,19 +470,10 @@ public final class ActivityTrekkerVersusApply { 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; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -470,6 +482,15 @@ public final class ActivityTrekkerVersusApply { case 16: { // levelId levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -518,14 +539,14 @@ public final class ActivityTrekkerVersusApply { 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) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.levelId, levelId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -542,22 +563,11 @@ public final class ActivityTrekkerVersusApply { } 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; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -568,6 +578,17 @@ public final class ActivityTrekkerVersusApply { if (input.isAtField(FieldNames.levelId)) { if (!input.trySkipNullValue()) { levelId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -652,12 +673,12 @@ public final class ActivityTrekkerVersusApply { * 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 build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName affixIds = FieldName.forField("AffixIds"); diff --git a/src/generated/main/emu/nebula/proto/CharGemInstanceApply.java b/src/generated/main/emu/nebula/proto/CharGemInstanceApply.java index 8bcf157..3a6b0a5 100644 --- a/src/generated/main/emu/nebula/proto/CharGemInstanceApply.java +++ b/src/generated/main/emu/nebula/proto/CharGemInstanceApply.java @@ -19,11 +19,6 @@ public final class CharGemInstanceApply { public static final class CharGemInstanceApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -34,6 +29,11 @@ public final class CharGemInstanceApply { */ private int rewardType; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -49,49 +49,12 @@ public final class CharGemInstanceApply { return new CharGemInstanceApplyReq(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public CharGemInstanceApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public CharGemInstanceApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -99,7 +62,7 @@ public final class CharGemInstanceApply { * @return this */ public CharGemInstanceApplyReq clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -118,7 +81,7 @@ public final class CharGemInstanceApply { * @return this */ public CharGemInstanceApplyReq setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -128,7 +91,7 @@ public final class CharGemInstanceApply { * @return whether the rewardType field is set */ public boolean hasRewardType() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -136,7 +99,7 @@ public final class CharGemInstanceApply { * @return this */ public CharGemInstanceApplyReq clearRewardType() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; rewardType = 0; return this; } @@ -155,11 +118,68 @@ public final class CharGemInstanceApply { * @return this */ public CharGemInstanceApplyReq setRewardType(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; rewardType = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public CharGemInstanceApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public CharGemInstanceApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -244,9 +264,9 @@ public final class CharGemInstanceApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; rewardType = other.rewardType; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -258,15 +278,15 @@ public final class CharGemInstanceApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } if (other.hasRewardType()) { setRewardType(other.rewardType); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -280,9 +300,9 @@ public final class CharGemInstanceApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; rewardType = 0; + build.clear(); nextPackage.clear(); return this; } @@ -294,6 +314,7 @@ public final class CharGemInstanceApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -308,26 +329,26 @@ public final class CharGemInstanceApply { } CharGemInstanceApplyReq other = (CharGemInstanceApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasRewardType() || rewardType == other.rewardType) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(rewardType); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -338,14 +359,14 @@ public final class CharGemInstanceApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardType); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -359,19 +380,10 @@ public final class CharGemInstanceApply { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 24) { break; @@ -380,6 +392,15 @@ public final class CharGemInstanceApply { case 24: { // rewardType rewardType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -413,14 +434,14 @@ public final class CharGemInstanceApply { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.rewardType, rewardType); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -434,22 +455,11 @@ public final class CharGemInstanceApply { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -460,6 +470,17 @@ public final class CharGemInstanceApply { if (input.isAtField(FieldNames.rewardType)) { if (!input.trySkipNullValue()) { rewardType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -531,12 +552,12 @@ public final class CharGemInstanceApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName rewardType = FieldName.forField("RewardType"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/DailyInstanceApply.java b/src/generated/main/emu/nebula/proto/DailyInstanceApply.java index 96a054b..af91ec4 100644 --- a/src/generated/main/emu/nebula/proto/DailyInstanceApply.java +++ b/src/generated/main/emu/nebula/proto/DailyInstanceApply.java @@ -19,11 +19,6 @@ public final class DailyInstanceApply { public static final class DailyInstanceApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 15; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -34,6 +29,11 @@ public final class DailyInstanceApply { */ private int rewardType; + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -49,49 +49,12 @@ public final class DailyInstanceApply { return new DailyInstanceApplyReq(); } - /** - * optional uint64 BuildId = 15; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 15; - * @return this - */ - public DailyInstanceApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 15; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 15; - * @param value the buildId to set - * @return this - */ - public DailyInstanceApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -99,7 +62,7 @@ public final class DailyInstanceApply { * @return this */ public DailyInstanceApplyReq clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -118,7 +81,7 @@ public final class DailyInstanceApply { * @return this */ public DailyInstanceApplyReq setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -128,7 +91,7 @@ public final class DailyInstanceApply { * @return whether the rewardType field is set */ public boolean hasRewardType() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -136,7 +99,7 @@ public final class DailyInstanceApply { * @return this */ public DailyInstanceApplyReq clearRewardType() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; rewardType = 0; return this; } @@ -155,11 +118,68 @@ public final class DailyInstanceApply { * @return this */ public DailyInstanceApplyReq setRewardType(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; rewardType = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public DailyInstanceApplyReq clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public DailyInstanceApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -244,9 +264,9 @@ public final class DailyInstanceApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; rewardType = other.rewardType; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -258,15 +278,15 @@ public final class DailyInstanceApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } if (other.hasRewardType()) { setRewardType(other.rewardType); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -280,9 +300,9 @@ public final class DailyInstanceApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; rewardType = 0; + build.clear(); nextPackage.clear(); return this; } @@ -294,6 +314,7 @@ public final class DailyInstanceApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -308,26 +329,26 @@ public final class DailyInstanceApply { } DailyInstanceApplyReq other = (DailyInstanceApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasRewardType() || rewardType == other.rewardType) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(rewardType); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -338,14 +359,14 @@ public final class DailyInstanceApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardType); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -359,19 +380,10 @@ public final class DailyInstanceApply { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -380,6 +392,15 @@ public final class DailyInstanceApply { case 16: { // rewardType rewardType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -413,14 +434,14 @@ public final class DailyInstanceApply { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.rewardType, rewardType); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -434,22 +455,11 @@ public final class DailyInstanceApply { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -460,6 +470,17 @@ public final class DailyInstanceApply { if (input.isAtField(FieldNames.rewardType)) { if (!input.trySkipNullValue()) { rewardType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -531,12 +552,12 @@ public final class DailyInstanceApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName rewardType = FieldName.forField("RewardType"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/DormAchievementRewardReceive.java b/src/generated/main/emu/nebula/proto/DormAchievementRewardReceive.java new file mode 100644 index 0000000..526c87d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormAchievementRewardReceive.java @@ -0,0 +1,426 @@ +// 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 DormAchievementRewardReceive { + /** + * Protobuf type {@code DormAchievementRewardReceiveReq} + */ + public static final class DormAchievementRewardReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 AchievementIds = 1; + */ + private final RepeatedInt achievementIds = RepeatedInt.newEmptyInstance(); + + private DormAchievementRewardReceiveReq() { + } + + /** + * @return a new empty instance of {@code DormAchievementRewardReceiveReq} + */ + public static DormAchievementRewardReceiveReq newInstance() { + return new DormAchievementRewardReceiveReq(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormAchievementRewardReceiveReq clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormAchievementRewardReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormAchievementRewardReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormAchievementRewardReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 AchievementIds = 1; + * @return whether the achievementIds field is set + */ + public boolean hasAchievementIds() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 AchievementIds = 1; + * @return this + */ + public DormAchievementRewardReceiveReq clearAchievementIds() { + bitField0_ &= ~0x00000002; + achievementIds.clear(); + return this; + } + + /** + * repeated uint32 AchievementIds = 1; + * + * 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 #getMutableAchievementIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAchievementIds() { + return achievementIds; + } + + /** + * repeated uint32 AchievementIds = 1; + * + * 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 getMutableAchievementIds() { + bitField0_ |= 0x00000002; + return achievementIds; + } + + /** + * repeated uint32 AchievementIds = 1; + * @param value the achievementIds to add + * @return this + */ + public DormAchievementRewardReceiveReq addAchievementIds(final int value) { + bitField0_ |= 0x00000002; + achievementIds.add(value); + return this; + } + + /** + * repeated uint32 AchievementIds = 1; + * @param values the achievementIds to add + * @return this + */ + public DormAchievementRewardReceiveReq addAllAchievementIds(final int... values) { + bitField0_ |= 0x00000002; + achievementIds.addAll(values); + return this; + } + + @Override + public DormAchievementRewardReceiveReq copyFrom(final DormAchievementRewardReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + achievementIds.copyFrom(other.achievementIds); + } + return this; + } + + @Override + public DormAchievementRewardReceiveReq mergeFrom(final DormAchievementRewardReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasAchievementIds()) { + getMutableAchievementIds().addAll(other.achievementIds); + } + return this; + } + + @Override + public DormAchievementRewardReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + achievementIds.clear(); + return this; + } + + @Override + public DormAchievementRewardReceiveReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + achievementIds.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormAchievementRewardReceiveReq)) { + return false; + } + DormAchievementRewardReceiveReq other = (DormAchievementRewardReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasAchievementIds() || achievementIds.equals(other.achievementIds)); + } + + @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 < achievementIds.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(achievementIds.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * achievementIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(achievementIds); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormAchievementRewardReceiveReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // achievementIds [packed=true] + input.readPackedUInt32(achievementIds, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // achievementIds [packed=false] + tag = input.readRepeatedUInt32(achievementIds, tag); + bitField0_ |= 0x00000002; + 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.writeRepeatedUInt32(FieldNames.achievementIds, achievementIds); + } + output.endObject(); + } + + @Override + public DormAchievementRewardReceiveReq 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 -1259054807: { + if (input.isAtField(FieldNames.achievementIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(achievementIds); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormAchievementRewardReceiveReq clone() { + return new DormAchievementRewardReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormAchievementRewardReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormAchievementRewardReceiveReq(), data).checkInitialized(); + } + + public static DormAchievementRewardReceiveReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new DormAchievementRewardReceiveReq(), input).checkInitialized(); + } + + public static DormAchievementRewardReceiveReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new DormAchievementRewardReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormAchievementRewardReceiveReq messages + */ + public static MessageFactory getFactory() { + return DormAchievementRewardReceiveReqFactory.INSTANCE; + } + + private enum DormAchievementRewardReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormAchievementRewardReceiveReq create() { + return DormAchievementRewardReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName achievementIds = FieldName.forField("AchievementIds"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormAffinityGiftSend.java b/src/generated/main/emu/nebula/proto/DormAffinityGiftSend.java new file mode 100644 index 0000000..c0e4712 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormAffinityGiftSend.java @@ -0,0 +1,1147 @@ +// 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 DormAffinityGiftSend { + /** + * Protobuf type {@code DormAffinityGiftSendReq} + */ + public static final class DormAffinityGiftSendReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CharId = 1; + */ + private int charId; + + /** + * optional uint32 DormRoomId = 2; + */ + private int dormRoomId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ItemTpl Items = 3; + */ + private final RepeatedMessage items = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory()); + + private DormAffinityGiftSendReq() { + } + + /** + * @return a new empty instance of {@code DormAffinityGiftSendReq} + */ + public static DormAffinityGiftSendReq newInstance() { + return new DormAffinityGiftSendReq(); + } + + /** + * optional uint32 CharId = 1; + * @return whether the charId field is set + */ + public boolean hasCharId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CharId = 1; + * @return this + */ + public DormAffinityGiftSendReq clearCharId() { + bitField0_ &= ~0x00000001; + charId = 0; + return this; + } + + /** + * optional uint32 CharId = 1; + * @return the charId + */ + public int getCharId() { + return charId; + } + + /** + * optional uint32 CharId = 1; + * @param value the charId to set + * @return this + */ + public DormAffinityGiftSendReq setCharId(final int value) { + bitField0_ |= 0x00000001; + charId = value; + return this; + } + + /** + * optional uint32 DormRoomId = 2; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DormRoomId = 2; + * @return this + */ + public DormAffinityGiftSendReq clearDormRoomId() { + bitField0_ &= ~0x00000002; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 2; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 2; + * @param value the dormRoomId to set + * @return this + */ + public DormAffinityGiftSendReq setDormRoomId(final int value) { + bitField0_ |= 0x00000002; + dormRoomId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormAffinityGiftSendReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormAffinityGiftSendReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormAffinityGiftSendReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormAffinityGiftSendReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ItemTpl Items = 3; + * @return whether the items field is set + */ + public boolean hasItems() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ItemTpl Items = 3; + * @return this + */ + public DormAffinityGiftSendReq clearItems() { + bitField0_ &= ~0x00000008; + items.clear(); + return this; + } + + /** + * repeated .ItemTpl Items = 3; + * + * 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 getItems() { + return items; + } + + /** + * repeated .ItemTpl Items = 3; + * + * 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 getMutableItems() { + bitField0_ |= 0x00000008; + return items; + } + + /** + * repeated .ItemTpl Items = 3; + * @param value the items to add + * @return this + */ + public DormAffinityGiftSendReq addItems(final Public.ItemTpl value) { + bitField0_ |= 0x00000008; + items.add(value); + return this; + } + + /** + * repeated .ItemTpl Items = 3; + * @param values the items to add + * @return this + */ + public DormAffinityGiftSendReq addAllItems(final Public.ItemTpl... values) { + bitField0_ |= 0x00000008; + items.addAll(values); + return this; + } + + @Override + public DormAffinityGiftSendReq copyFrom(final DormAffinityGiftSendReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + charId = other.charId; + dormRoomId = other.dormRoomId; + nextPackage.copyFrom(other.nextPackage); + items.copyFrom(other.items); + } + return this; + } + + @Override + public DormAffinityGiftSendReq mergeFrom(final DormAffinityGiftSendReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCharId()) { + setCharId(other.charId); + } + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasItems()) { + getMutableItems().addAll(other.items); + } + return this; + } + + @Override + public DormAffinityGiftSendReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + charId = 0; + dormRoomId = 0; + nextPackage.clear(); + items.clear(); + return this; + } + + @Override + public DormAffinityGiftSendReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + items.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormAffinityGiftSendReq)) { + return false; + } + DormAffinityGiftSendReq other = (DormAffinityGiftSendReq) o; + return bitField0_ == other.bitField0_ + && (!hasCharId() || charId == other.charId) + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasItems() || items.equals(other.items)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(charId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 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 += 1 + ProtoSink.computeUInt32SizeNoTag(charId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dormRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormAffinityGiftSendReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // charId + charId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // dormRoomId + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // items + tag = input.readRepeatedMessage(items, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.charId, charId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.items, items); + } + output.endObject(); + } + + @Override + public DormAffinityGiftSendReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2017200945: { + if (input.isAtField(FieldNames.charId)) { + if (!input.trySkipNullValue()) { + charId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = 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; + } + case 70973344: { + if (input.isAtField(FieldNames.items)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(items); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormAffinityGiftSendReq clone() { + return new DormAffinityGiftSendReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormAffinityGiftSendReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormAffinityGiftSendReq(), data).checkInitialized(); + } + + public static DormAffinityGiftSendReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormAffinityGiftSendReq(), input).checkInitialized(); + } + + public static DormAffinityGiftSendReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormAffinityGiftSendReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormAffinityGiftSendReq messages + */ + public static MessageFactory getFactory() { + return DormAffinityGiftSendReqFactory.INSTANCE; + } + + private enum DormAffinityGiftSendReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormAffinityGiftSendReq create() { + return DormAffinityGiftSendReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName charId = FieldName.forField("CharId"); + + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName items = FieldName.forField("Items"); + } + } + + /** + * Protobuf type {@code DormAffinityGiftSendResp} + */ + public static final class DormAffinityGiftSendResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 SendGiftCnt = 3; + */ + private int sendGiftCnt; + + /** + * optional .AffinityInfo Info = 1; + */ + private final Public.AffinityInfo info = Public.AffinityInfo.newInstance(); + + /** + * optional .ChangeInfo Change = 2; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormAffinityGiftSendResp() { + } + + /** + * @return a new empty instance of {@code DormAffinityGiftSendResp} + */ + public static DormAffinityGiftSendResp newInstance() { + return new DormAffinityGiftSendResp(); + } + + /** + * optional uint32 SendGiftCnt = 3; + * @return whether the sendGiftCnt field is set + */ + public boolean hasSendGiftCnt() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 SendGiftCnt = 3; + * @return this + */ + public DormAffinityGiftSendResp clearSendGiftCnt() { + bitField0_ &= ~0x00000001; + sendGiftCnt = 0; + return this; + } + + /** + * optional uint32 SendGiftCnt = 3; + * @return the sendGiftCnt + */ + public int getSendGiftCnt() { + return sendGiftCnt; + } + + /** + * optional uint32 SendGiftCnt = 3; + * @param value the sendGiftCnt to set + * @return this + */ + public DormAffinityGiftSendResp setSendGiftCnt(final int value) { + bitField0_ |= 0x00000001; + sendGiftCnt = value; + return this; + } + + /** + * optional .AffinityInfo Info = 1; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .AffinityInfo Info = 1; + * @return this + */ + public DormAffinityGiftSendResp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .AffinityInfo Info = 1; + * + * 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.AffinityInfo getInfo() { + return info; + } + + /** + * optional .AffinityInfo Info = 1; + * + * 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.AffinityInfo getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .AffinityInfo Info = 1; + * @param value the info to set + * @return this + */ + public DormAffinityGiftSendResp setInfo(final Public.AffinityInfo value) { + bitField0_ |= 0x00000002; + info.copyFrom(value); + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChangeInfo Change = 2; + * @return this + */ + public DormAffinityGiftSendResp clearChange() { + bitField0_ &= ~0x00000004; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 2; + * + * 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_ |= 0x00000004; + return change; + } + + /** + * optional .ChangeInfo Change = 2; + * @param value the change to set + * @return this + */ + public DormAffinityGiftSendResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000004; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormAffinityGiftSendResp clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormAffinityGiftSendResp addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormAffinityGiftSendResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormAffinityGiftSendResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormAffinityGiftSendResp copyFrom(final DormAffinityGiftSendResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + sendGiftCnt = other.sendGiftCnt; + info.copyFrom(other.info); + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormAffinityGiftSendResp mergeFrom(final DormAffinityGiftSendResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSendGiftCnt()) { + setSendGiftCnt(other.sendGiftCnt); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormAffinityGiftSendResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sendGiftCnt = 0; + info.clear(); + change.clear(); + nextPackage.clear(); + return this; + } + + @Override + public DormAffinityGiftSendResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + change.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormAffinityGiftSendResp)) { + return false; + } + DormAffinityGiftSendResp other = (DormAffinityGiftSendResp) o; + return bitField0_ == other.bitField0_ + && (!hasSendGiftCnt() || sendGiftCnt == other.sendGiftCnt) + && (!hasInfo() || info.equals(other.info)) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(sendGiftCnt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sendGiftCnt); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormAffinityGiftSendResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // sendGiftCnt + sendGiftCnt = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // info + input.readMessage(info); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // change + input.readMessage(change); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.sendGiftCnt, sendGiftCnt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormAffinityGiftSendResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1431779665: { + if (input.isAtField(FieldNames.sendGiftCnt)) { + if (!input.trySkipNullValue()) { + sendGiftCnt = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2283726: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + 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 DormAffinityGiftSendResp clone() { + return new DormAffinityGiftSendResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormAffinityGiftSendResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormAffinityGiftSendResp(), data).checkInitialized(); + } + + public static DormAffinityGiftSendResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormAffinityGiftSendResp(), input).checkInitialized(); + } + + public static DormAffinityGiftSendResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormAffinityGiftSendResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormAffinityGiftSendResp messages + */ + public static MessageFactory getFactory() { + return DormAffinityGiftSendRespFactory.INSTANCE; + } + + private enum DormAffinityGiftSendRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormAffinityGiftSendResp create() { + return DormAffinityGiftSendResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName sendGiftCnt = FieldName.forField("SendGiftCnt"); + + static final FieldName info = FieldName.forField("Info"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormBlocksConvert.java b/src/generated/main/emu/nebula/proto/DormBlocksConvert.java new file mode 100644 index 0000000..ab8ff9e --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormBlocksConvert.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormBlocksConvert { +} diff --git a/src/generated/main/emu/nebula/proto/DormFriendLike.java b/src/generated/main/emu/nebula/proto/DormFriendLike.java new file mode 100644 index 0000000..73e376e --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFriendLike.java @@ -0,0 +1,383 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class DormFriendLike { + /** + * Protobuf type {@code DormFriendLikeReq} + */ + public static final class DormFriendLikeReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 FriendId = 1; + */ + private long friendId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormFriendLikeReq() { + } + + /** + * @return a new empty instance of {@code DormFriendLikeReq} + */ + public static DormFriendLikeReq newInstance() { + return new DormFriendLikeReq(); + } + + /** + * optional uint64 FriendId = 1; + * @return whether the friendId field is set + */ + public boolean hasFriendId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 FriendId = 1; + * @return this + */ + public DormFriendLikeReq clearFriendId() { + bitField0_ &= ~0x00000001; + friendId = 0L; + return this; + } + + /** + * optional uint64 FriendId = 1; + * @return the friendId + */ + public long getFriendId() { + return friendId; + } + + /** + * optional uint64 FriendId = 1; + * @param value the friendId to set + * @return this + */ + public DormFriendLikeReq setFriendId(final long value) { + bitField0_ |= 0x00000001; + friendId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFriendLikeReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFriendLikeReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFriendLikeReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFriendLikeReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormFriendLikeReq copyFrom(final DormFriendLikeReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + friendId = other.friendId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormFriendLikeReq mergeFrom(final DormFriendLikeReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFriendId()) { + setFriendId(other.friendId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormFriendLikeReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + friendId = 0L; + nextPackage.clear(); + return this; + } + + @Override + public DormFriendLikeReq 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 DormFriendLikeReq)) { + return false; + } + DormFriendLikeReq other = (DormFriendLikeReq) o; + return bitField0_ == other.bitField0_ + && (!hasFriendId() || friendId == other.friendId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(friendId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(friendId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFriendLikeReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // friendId + friendId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.friendId, friendId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormFriendLikeReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1358411655: { + if (input.isAtField(FieldNames.friendId)) { + if (!input.trySkipNullValue()) { + friendId = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFriendLikeReq clone() { + return new DormFriendLikeReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFriendLikeReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFriendLikeReq(), data).checkInitialized(); + } + + public static DormFriendLikeReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendLikeReq(), input).checkInitialized(); + } + + public static DormFriendLikeReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendLikeReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFriendLikeReq messages + */ + public static MessageFactory getFactory() { + return DormFriendLikeReqFactory.INSTANCE; + } + + private enum DormFriendLikeReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFriendLikeReq create() { + return DormFriendLikeReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName friendId = FieldName.forField("FriendId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormFriendList.java b/src/generated/main/emu/nebula/proto/DormFriendList.java new file mode 100644 index 0000000..11d9d39 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFriendList.java @@ -0,0 +1,417 @@ +// 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 DormFriendList { + /** + * Protobuf type {@code DormFriendListResp} + */ + public static final class DormFriendListResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .DormFriendDetail Friends = 1; + */ + private final RepeatedMessage friends = RepeatedMessage.newEmptyInstance(PublicDorm.DormFriendDetail.getFactory()); + + private DormFriendListResp() { + } + + /** + * @return a new empty instance of {@code DormFriendListResp} + */ + public static DormFriendListResp newInstance() { + return new DormFriendListResp(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFriendListResp clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFriendListResp addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFriendListResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFriendListResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .DormFriendDetail Friends = 1; + * @return whether the friends field is set + */ + public boolean hasFriends() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .DormFriendDetail Friends = 1; + * @return this + */ + public DormFriendListResp clearFriends() { + bitField0_ &= ~0x00000002; + friends.clear(); + return this; + } + + /** + * repeated .DormFriendDetail Friends = 1; + * + * 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 #getMutableFriends()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFriends() { + return friends; + } + + /** + * repeated .DormFriendDetail Friends = 1; + * + * 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 getMutableFriends() { + bitField0_ |= 0x00000002; + return friends; + } + + /** + * repeated .DormFriendDetail Friends = 1; + * @param value the friends to add + * @return this + */ + public DormFriendListResp addFriends(final PublicDorm.DormFriendDetail value) { + bitField0_ |= 0x00000002; + friends.add(value); + return this; + } + + /** + * repeated .DormFriendDetail Friends = 1; + * @param values the friends to add + * @return this + */ + public DormFriendListResp addAllFriends(final PublicDorm.DormFriendDetail... values) { + bitField0_ |= 0x00000002; + friends.addAll(values); + return this; + } + + @Override + public DormFriendListResp copyFrom(final DormFriendListResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + friends.copyFrom(other.friends); + } + return this; + } + + @Override + public DormFriendListResp mergeFrom(final DormFriendListResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasFriends()) { + getMutableFriends().addAll(other.friends); + } + return this; + } + + @Override + public DormFriendListResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + friends.clear(); + return this; + } + + @Override + public DormFriendListResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + friends.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormFriendListResp)) { + return false; + } + DormFriendListResp other = (DormFriendListResp) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasFriends() || friends.equals(other.friends)); + } + + @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 < friends.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(friends.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * friends.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friends); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFriendListResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // friends + tag = input.readRepeatedMessage(friends, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.friends, friends); + } + output.endObject(); + } + + @Override + public DormFriendListResp 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 1064558965: { + if (input.isAtField(FieldNames.friends)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(friends); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFriendListResp clone() { + return new DormFriendListResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFriendListResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFriendListResp(), data).checkInitialized(); + } + + public static DormFriendListResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendListResp(), input).checkInitialized(); + } + + public static DormFriendListResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendListResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFriendListResp messages + */ + public static MessageFactory getFactory() { + return DormFriendListRespFactory.INSTANCE; + } + + private enum DormFriendListRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFriendListResp create() { + return DormFriendListResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName friends = FieldName.forField("Friends"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormFriendVisit.java b/src/generated/main/emu/nebula/proto/DormFriendVisit.java new file mode 100644 index 0000000..023342d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFriendVisit.java @@ -0,0 +1,886 @@ +// 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 DormFriendVisit { + /** + * Protobuf type {@code DormFriendVisitReq} + */ + public static final class DormFriendVisitReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 FriendId = 1; + */ + private long friendId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormFriendVisitReq() { + } + + /** + * @return a new empty instance of {@code DormFriendVisitReq} + */ + public static DormFriendVisitReq newInstance() { + return new DormFriendVisitReq(); + } + + /** + * optional uint64 FriendId = 1; + * @return whether the friendId field is set + */ + public boolean hasFriendId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 FriendId = 1; + * @return this + */ + public DormFriendVisitReq clearFriendId() { + bitField0_ &= ~0x00000001; + friendId = 0L; + return this; + } + + /** + * optional uint64 FriendId = 1; + * @return the friendId + */ + public long getFriendId() { + return friendId; + } + + /** + * optional uint64 FriendId = 1; + * @param value the friendId to set + * @return this + */ + public DormFriendVisitReq setFriendId(final long value) { + bitField0_ |= 0x00000001; + friendId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFriendVisitReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFriendVisitReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFriendVisitReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFriendVisitReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormFriendVisitReq copyFrom(final DormFriendVisitReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + friendId = other.friendId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormFriendVisitReq mergeFrom(final DormFriendVisitReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFriendId()) { + setFriendId(other.friendId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormFriendVisitReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + friendId = 0L; + nextPackage.clear(); + return this; + } + + @Override + public DormFriendVisitReq 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 DormFriendVisitReq)) { + return false; + } + DormFriendVisitReq other = (DormFriendVisitReq) o; + return bitField0_ == other.bitField0_ + && (!hasFriendId() || friendId == other.friendId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(friendId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(friendId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFriendVisitReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // friendId + friendId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.friendId, friendId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormFriendVisitReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1358411655: { + if (input.isAtField(FieldNames.friendId)) { + if (!input.trySkipNullValue()) { + friendId = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFriendVisitReq clone() { + return new DormFriendVisitReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFriendVisitReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFriendVisitReq(), data).checkInitialized(); + } + + public static DormFriendVisitReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendVisitReq(), input).checkInitialized(); + } + + public static DormFriendVisitReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendVisitReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFriendVisitReq messages + */ + public static MessageFactory getFactory() { + return DormFriendVisitReqFactory.INSTANCE; + } + + private enum DormFriendVisitReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFriendVisitReq create() { + return DormFriendVisitReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName friendId = FieldName.forField("FriendId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormFriendVisitResp} + */ + public static final class DormFriendVisitResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .DormFriendInfo DormInfo = 3; + */ + private final PublicDorm.DormFriendInfo dormInfo = PublicDorm.DormFriendInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .DormRoomInfo DormList = 1; + */ + private final RepeatedMessage dormList = RepeatedMessage.newEmptyInstance(PublicDorm.DormRoomInfo.getFactory()); + + private DormFriendVisitResp() { + } + + /** + * @return a new empty instance of {@code DormFriendVisitResp} + */ + public static DormFriendVisitResp newInstance() { + return new DormFriendVisitResp(); + } + + /** + * optional .DormFriendInfo DormInfo = 3; + * @return whether the dormInfo field is set + */ + public boolean hasDormInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .DormFriendInfo DormInfo = 3; + * @return this + */ + public DormFriendVisitResp clearDormInfo() { + bitField0_ &= ~0x00000001; + dormInfo.clear(); + return this; + } + + /** + * optional .DormFriendInfo DormInfo = 3; + * + * 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 #getMutableDormInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicDorm.DormFriendInfo getDormInfo() { + return dormInfo; + } + + /** + * optional .DormFriendInfo DormInfo = 3; + * + * 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 PublicDorm.DormFriendInfo getMutableDormInfo() { + bitField0_ |= 0x00000001; + return dormInfo; + } + + /** + * optional .DormFriendInfo DormInfo = 3; + * @param value the dormInfo to set + * @return this + */ + public DormFriendVisitResp setDormInfo(final PublicDorm.DormFriendInfo value) { + bitField0_ |= 0x00000001; + dormInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFriendVisitResp clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFriendVisitResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFriendVisitResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFriendVisitResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @return whether the dormList field is set + */ + public boolean hasDormList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @return this + */ + public DormFriendVisitResp clearDormList() { + bitField0_ &= ~0x00000004; + dormList.clear(); + return this; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * + * 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 #getMutableDormList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDormList() { + return dormList; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * + * 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 getMutableDormList() { + bitField0_ |= 0x00000004; + return dormList; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @param value the dormList to add + * @return this + */ + public DormFriendVisitResp addDormList(final PublicDorm.DormRoomInfo value) { + bitField0_ |= 0x00000004; + dormList.add(value); + return this; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @param values the dormList to add + * @return this + */ + public DormFriendVisitResp addAllDormList(final PublicDorm.DormRoomInfo... values) { + bitField0_ |= 0x00000004; + dormList.addAll(values); + return this; + } + + @Override + public DormFriendVisitResp copyFrom(final DormFriendVisitResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormInfo.copyFrom(other.dormInfo); + nextPackage.copyFrom(other.nextPackage); + dormList.copyFrom(other.dormList); + } + return this; + } + + @Override + public DormFriendVisitResp mergeFrom(final DormFriendVisitResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormInfo()) { + getMutableDormInfo().mergeFrom(other.dormInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormList()) { + getMutableDormList().addAll(other.dormList); + } + return this; + } + + @Override + public DormFriendVisitResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormInfo.clear(); + nextPackage.clear(); + dormList.clear(); + return this; + } + + @Override + public DormFriendVisitResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormInfo.clearQuick(); + nextPackage.clear(); + dormList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormFriendVisitResp)) { + return false; + } + DormFriendVisitResp other = (DormFriendVisitResp) o; + return bitField0_ == other.bitField0_ + && (!hasDormInfo() || dormInfo.equals(other.dormInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormList() || dormList.equals(other.dormList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(dormInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < dormList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(dormList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dormInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * dormList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dormList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFriendVisitResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // dormInfo + input.readMessage(dormInfo); + 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: { + // dormList + tag = input.readRepeatedMessage(dormList, 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.dormInfo, dormInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.dormList, dormList); + } + output.endObject(); + } + + @Override + public DormFriendVisitResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1347350004: { + if (input.isAtField(FieldNames.dormInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dormInfo); + 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 1347434980: { + if (input.isAtField(FieldNames.dormList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dormList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFriendVisitResp clone() { + return new DormFriendVisitResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFriendVisitResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFriendVisitResp(), data).checkInitialized(); + } + + public static DormFriendVisitResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendVisitResp(), input).checkInitialized(); + } + + public static DormFriendVisitResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendVisitResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFriendVisitResp messages + */ + public static MessageFactory getFactory() { + return DormFriendVisitRespFactory.INSTANCE; + } + + private enum DormFriendVisitRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFriendVisitResp create() { + return DormFriendVisitResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormInfo = FieldName.forField("DormInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormList = FieldName.forField("DormList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormFurnitureDelPreset.java b/src/generated/main/emu/nebula/proto/DormFurnitureDelPreset.java new file mode 100644 index 0000000..7d4254a --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFurnitureDelPreset.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormFurnitureDelPreset { +} diff --git a/src/generated/main/emu/nebula/proto/DormFurnitureList.java b/src/generated/main/emu/nebula/proto/DormFurnitureList.java new file mode 100644 index 0000000..6025f8f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFurnitureList.java @@ -0,0 +1,417 @@ +// 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 DormFurnitureList { + /** + * Protobuf type {@code DormBagListResp} + */ + public static final class DormBagListResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .DormBagInfo DormBagList = 1; + */ + private final RepeatedMessage dormBagList = RepeatedMessage.newEmptyInstance(PublicDorm.DormBagInfo.getFactory()); + + private DormBagListResp() { + } + + /** + * @return a new empty instance of {@code DormBagListResp} + */ + public static DormBagListResp newInstance() { + return new DormBagListResp(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormBagListResp clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormBagListResp addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormBagListResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormBagListResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .DormBagInfo DormBagList = 1; + * @return whether the dormBagList field is set + */ + public boolean hasDormBagList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .DormBagInfo DormBagList = 1; + * @return this + */ + public DormBagListResp clearDormBagList() { + bitField0_ &= ~0x00000002; + dormBagList.clear(); + return this; + } + + /** + * repeated .DormBagInfo DormBagList = 1; + * + * 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 #getMutableDormBagList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDormBagList() { + return dormBagList; + } + + /** + * repeated .DormBagInfo DormBagList = 1; + * + * 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 getMutableDormBagList() { + bitField0_ |= 0x00000002; + return dormBagList; + } + + /** + * repeated .DormBagInfo DormBagList = 1; + * @param value the dormBagList to add + * @return this + */ + public DormBagListResp addDormBagList(final PublicDorm.DormBagInfo value) { + bitField0_ |= 0x00000002; + dormBagList.add(value); + return this; + } + + /** + * repeated .DormBagInfo DormBagList = 1; + * @param values the dormBagList to add + * @return this + */ + public DormBagListResp addAllDormBagList(final PublicDorm.DormBagInfo... values) { + bitField0_ |= 0x00000002; + dormBagList.addAll(values); + return this; + } + + @Override + public DormBagListResp copyFrom(final DormBagListResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + dormBagList.copyFrom(other.dormBagList); + } + return this; + } + + @Override + public DormBagListResp mergeFrom(final DormBagListResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormBagList()) { + getMutableDormBagList().addAll(other.dormBagList); + } + return this; + } + + @Override + public DormBagListResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormBagList.clear(); + return this; + } + + @Override + public DormBagListResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormBagList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormBagListResp)) { + return false; + } + DormBagListResp other = (DormBagListResp) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormBagList() || dormBagList.equals(other.dormBagList)); + } + + @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 < dormBagList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(dormBagList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * dormBagList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dormBagList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormBagListResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dormBagList + tag = input.readRepeatedMessage(dormBagList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.dormBagList, dormBagList); + } + output.endObject(); + } + + @Override + public DormBagListResp 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 144836032: { + if (input.isAtField(FieldNames.dormBagList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dormBagList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormBagListResp clone() { + return new DormBagListResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormBagListResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormBagListResp(), data).checkInitialized(); + } + + public static DormBagListResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormBagListResp(), input).checkInitialized(); + } + + public static DormBagListResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormBagListResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormBagListResp messages + */ + public static MessageFactory getFactory() { + return DormBagListRespFactory.INSTANCE; + } + + private enum DormBagListRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormBagListResp create() { + return DormBagListResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormBagList = FieldName.forField("DormBagList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormFurniturePreset.java b/src/generated/main/emu/nebula/proto/DormFurniturePreset.java new file mode 100644 index 0000000..c154c34 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFurniturePreset.java @@ -0,0 +1,499 @@ +// 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 DormFurniturePreset { + /** + * Protobuf type {@code DormFurniturePresetListResp} + */ + public static final class DormFurniturePresetListResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Num = 2; + */ + private int num; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .FurniturePresetInfo PresetList = 1; + */ + private final RepeatedMessage presetList = RepeatedMessage.newEmptyInstance(PublicDorm.FurniturePresetInfo.getFactory()); + + private DormFurniturePresetListResp() { + } + + /** + * @return a new empty instance of {@code DormFurniturePresetListResp} + */ + public static DormFurniturePresetListResp newInstance() { + return new DormFurniturePresetListResp(); + } + + /** + * optional uint32 Num = 2; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Num = 2; + * @return this + */ + public DormFurniturePresetListResp clearNum() { + bitField0_ &= ~0x00000001; + num = 0; + return this; + } + + /** + * optional uint32 Num = 2; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 Num = 2; + * @param value the num to set + * @return this + */ + public DormFurniturePresetListResp setNum(final int value) { + bitField0_ |= 0x00000001; + num = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFurniturePresetListResp clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFurniturePresetListResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFurniturePresetListResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFurniturePresetListResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .FurniturePresetInfo PresetList = 1; + * @return whether the presetList field is set + */ + public boolean hasPresetList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .FurniturePresetInfo PresetList = 1; + * @return this + */ + public DormFurniturePresetListResp clearPresetList() { + bitField0_ &= ~0x00000004; + presetList.clear(); + return this; + } + + /** + * repeated .FurniturePresetInfo PresetList = 1; + * + * 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 #getMutablePresetList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPresetList() { + return presetList; + } + + /** + * repeated .FurniturePresetInfo PresetList = 1; + * + * 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 getMutablePresetList() { + bitField0_ |= 0x00000004; + return presetList; + } + + /** + * repeated .FurniturePresetInfo PresetList = 1; + * @param value the presetList to add + * @return this + */ + public DormFurniturePresetListResp addPresetList(final PublicDorm.FurniturePresetInfo value) { + bitField0_ |= 0x00000004; + presetList.add(value); + return this; + } + + /** + * repeated .FurniturePresetInfo PresetList = 1; + * @param values the presetList to add + * @return this + */ + public DormFurniturePresetListResp addAllPresetList( + final PublicDorm.FurniturePresetInfo... values) { + bitField0_ |= 0x00000004; + presetList.addAll(values); + return this; + } + + @Override + public DormFurniturePresetListResp copyFrom(final DormFurniturePresetListResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + num = other.num; + nextPackage.copyFrom(other.nextPackage); + presetList.copyFrom(other.presetList); + } + return this; + } + + @Override + public DormFurniturePresetListResp mergeFrom(final DormFurniturePresetListResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNum()) { + setNum(other.num); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasPresetList()) { + getMutablePresetList().addAll(other.presetList); + } + return this; + } + + @Override + public DormFurniturePresetListResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + num = 0; + nextPackage.clear(); + presetList.clear(); + return this; + } + + @Override + public DormFurniturePresetListResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + presetList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormFurniturePresetListResp)) { + return false; + } + DormFurniturePresetListResp other = (DormFurniturePresetListResp) o; + return bitField0_ == other.bitField0_ + && (!hasNum() || num == other.num) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasPresetList() || presetList.equals(other.presetList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(num); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < presetList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(presetList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * presetList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(presetList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFurniturePresetListResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // num + num = input.readUInt32(); + 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: { + // presetList + tag = input.readRepeatedMessage(presetList, 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.writeUInt32(FieldNames.num, num); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.presetList, presetList); + } + output.endObject(); + } + + @Override + public DormFurniturePresetListResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 78694: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + 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 -812622787: { + if (input.isAtField(FieldNames.presetList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(presetList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFurniturePresetListResp clone() { + return new DormFurniturePresetListResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFurniturePresetListResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFurniturePresetListResp(), data).checkInitialized(); + } + + public static DormFurniturePresetListResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new DormFurniturePresetListResp(), input).checkInitialized(); + } + + public static DormFurniturePresetListResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFurniturePresetListResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFurniturePresetListResp messages + */ + public static MessageFactory getFactory() { + return DormFurniturePresetListRespFactory.INSTANCE; + } + + private enum DormFurniturePresetListRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFurniturePresetListResp create() { + return DormFurniturePresetListResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName num = FieldName.forField("Num"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName presetList = FieldName.forField("PresetList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormFurnitureSave.java b/src/generated/main/emu/nebula/proto/DormFurnitureSave.java new file mode 100644 index 0000000..ba71b59 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormFurnitureSave.java @@ -0,0 +1,578 @@ +// 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 DormFurnitureSave { + /** + * Protobuf type {@code DormFurnitureSaveReq} + */ + public static final class DormFurnitureSaveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DormRoomId = 1; + */ + private int dormRoomId; + + /** + * optional uint32 BuildId = 3; + */ + private int buildId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + */ + private final RepeatedMessage furniturePosInfoList = RepeatedMessage.newEmptyInstance(PublicDorm.FurnitureInfo.getFactory()); + + private DormFurnitureSaveReq() { + } + + /** + * @return a new empty instance of {@code DormFurnitureSaveReq} + */ + public static DormFurnitureSaveReq newInstance() { + return new DormFurnitureSaveReq(); + } + + /** + * optional uint32 DormRoomId = 1; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DormRoomId = 1; + * @return this + */ + public DormFurnitureSaveReq clearDormRoomId() { + bitField0_ &= ~0x00000001; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 1; + * @param value the dormRoomId to set + * @return this + */ + public DormFurnitureSaveReq setDormRoomId(final int value) { + bitField0_ |= 0x00000001; + dormRoomId = value; + return this; + } + + /** + * optional uint32 BuildId = 3; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BuildId = 3; + * @return this + */ + public DormFurnitureSaveReq clearBuildId() { + bitField0_ &= ~0x00000002; + buildId = 0; + return this; + } + + /** + * optional uint32 BuildId = 3; + * @return the buildId + */ + public int getBuildId() { + return buildId; + } + + /** + * optional uint32 BuildId = 3; + * @param value the buildId to set + * @return this + */ + public DormFurnitureSaveReq setBuildId(final int value) { + bitField0_ |= 0x00000002; + buildId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFurnitureSaveReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFurnitureSaveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFurnitureSaveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFurnitureSaveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + * @return whether the furniturePosInfoList field is set + */ + public boolean hasFurniturePosInfoList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + * @return this + */ + public DormFurnitureSaveReq clearFurniturePosInfoList() { + bitField0_ &= ~0x00000008; + furniturePosInfoList.clear(); + return this; + } + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + * + * 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 #getMutableFurniturePosInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFurniturePosInfoList() { + return furniturePosInfoList; + } + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + * + * 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 getMutableFurniturePosInfoList() { + bitField0_ |= 0x00000008; + return furniturePosInfoList; + } + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + * @param value the furniturePosInfoList to add + * @return this + */ + public DormFurnitureSaveReq addFurniturePosInfoList(final PublicDorm.FurnitureInfo value) { + bitField0_ |= 0x00000008; + furniturePosInfoList.add(value); + return this; + } + + /** + * repeated .FurnitureInfo FurniturePosInfoList = 2; + * @param values the furniturePosInfoList to add + * @return this + */ + public DormFurnitureSaveReq addAllFurniturePosInfoList( + final PublicDorm.FurnitureInfo... values) { + bitField0_ |= 0x00000008; + furniturePosInfoList.addAll(values); + return this; + } + + @Override + public DormFurnitureSaveReq copyFrom(final DormFurnitureSaveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormRoomId = other.dormRoomId; + buildId = other.buildId; + nextPackage.copyFrom(other.nextPackage); + furniturePosInfoList.copyFrom(other.furniturePosInfoList); + } + return this; + } + + @Override + public DormFurnitureSaveReq mergeFrom(final DormFurnitureSaveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasFurniturePosInfoList()) { + getMutableFurniturePosInfoList().addAll(other.furniturePosInfoList); + } + return this; + } + + @Override + public DormFurnitureSaveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormRoomId = 0; + buildId = 0; + nextPackage.clear(); + furniturePosInfoList.clear(); + return this; + } + + @Override + public DormFurnitureSaveReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + furniturePosInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormFurnitureSaveReq)) { + return false; + } + DormFurnitureSaveReq other = (DormFurnitureSaveReq) o; + return bitField0_ == other.bitField0_ + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasBuildId() || buildId == other.buildId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasFurniturePosInfoList() || furniturePosInfoList.equals(other.furniturePosInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(buildId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < furniturePosInfoList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(furniturePosInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * furniturePosInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(furniturePosInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFurnitureSaveReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dormRoomId + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // buildId + buildId = input.readUInt32(); + 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: { + // furniturePosInfoList + tag = input.readRepeatedMessage(furniturePosInfoList, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.furniturePosInfoList, furniturePosInfoList); + } + output.endObject(); + } + + @Override + public DormFurnitureSaveReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1895597065: { + if (input.isAtField(FieldNames.buildId)) { + if (!input.trySkipNullValue()) { + buildId = 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; + } + case 1503624622: { + if (input.isAtField(FieldNames.furniturePosInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(furniturePosInfoList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFurnitureSaveReq clone() { + return new DormFurnitureSaveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFurnitureSaveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFurnitureSaveReq(), data).checkInitialized(); + } + + public static DormFurnitureSaveReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFurnitureSaveReq(), input).checkInitialized(); + } + + public static DormFurnitureSaveReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFurnitureSaveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFurnitureSaveReq messages + */ + public static MessageFactory getFactory() { + return DormFurnitureSaveReqFactory.INSTANCE; + } + + private enum DormFurnitureSaveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFurnitureSaveReq create() { + return DormFurnitureSaveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName furniturePosInfoList = FieldName.forField("FurniturePosInfoList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormGetChangeData.java b/src/generated/main/emu/nebula/proto/DormGetChangeData.java new file mode 100644 index 0000000..880bd4d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormGetChangeData.java @@ -0,0 +1,404 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class DormGetChangeData { + /** + * Protobuf type {@code DormChangeDataResp} + */ + public static final class DormChangeDataResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .DormChangeDataInfo DormChangeData = 1; + */ + private final PublicDorm.DormChangeDataInfo dormChangeData = PublicDorm.DormChangeDataInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormChangeDataResp() { + } + + /** + * @return a new empty instance of {@code DormChangeDataResp} + */ + public static DormChangeDataResp newInstance() { + return new DormChangeDataResp(); + } + + /** + * optional .DormChangeDataInfo DormChangeData = 1; + * @return whether the dormChangeData field is set + */ + public boolean hasDormChangeData() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .DormChangeDataInfo DormChangeData = 1; + * @return this + */ + public DormChangeDataResp clearDormChangeData() { + bitField0_ &= ~0x00000001; + dormChangeData.clear(); + return this; + } + + /** + * optional .DormChangeDataInfo DormChangeData = 1; + * + * 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 #getMutableDormChangeData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicDorm.DormChangeDataInfo getDormChangeData() { + return dormChangeData; + } + + /** + * optional .DormChangeDataInfo DormChangeData = 1; + * + * 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 PublicDorm.DormChangeDataInfo getMutableDormChangeData() { + bitField0_ |= 0x00000001; + return dormChangeData; + } + + /** + * optional .DormChangeDataInfo DormChangeData = 1; + * @param value the dormChangeData to set + * @return this + */ + public DormChangeDataResp setDormChangeData(final PublicDorm.DormChangeDataInfo value) { + bitField0_ |= 0x00000001; + dormChangeData.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormChangeDataResp clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormChangeDataResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormChangeDataResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormChangeDataResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormChangeDataResp copyFrom(final DormChangeDataResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormChangeData.copyFrom(other.dormChangeData); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormChangeDataResp mergeFrom(final DormChangeDataResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormChangeData()) { + getMutableDormChangeData().mergeFrom(other.dormChangeData); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormChangeDataResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormChangeData.clear(); + nextPackage.clear(); + return this; + } + + @Override + public DormChangeDataResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormChangeData.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormChangeDataResp)) { + return false; + } + DormChangeDataResp other = (DormChangeDataResp) o; + return bitField0_ == other.bitField0_ + && (!hasDormChangeData() || dormChangeData.equals(other.dormChangeData)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(dormChangeData); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dormChangeData); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormChangeDataResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // dormChangeData + input.readMessage(dormChangeData); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.dormChangeData, dormChangeData); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormChangeDataResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 871177280: { + if (input.isAtField(FieldNames.dormChangeData)) { + if (!input.trySkipNullValue()) { + input.readMessage(dormChangeData); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormChangeDataResp clone() { + return new DormChangeDataResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormChangeDataResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormChangeDataResp(), data).checkInitialized(); + } + + public static DormChangeDataResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormChangeDataResp(), input).checkInitialized(); + } + + public static DormChangeDataResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormChangeDataResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormChangeDataResp messages + */ + public static MessageFactory getFactory() { + return DormChangeDataRespFactory.INSTANCE; + } + + private enum DormChangeDataRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormChangeDataResp create() { + return DormChangeDataResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormChangeData = FieldName.forField("DormChangeData"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormGetFurnitureNum.java b/src/generated/main/emu/nebula/proto/DormGetFurnitureNum.java new file mode 100644 index 0000000..b9566a6 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormGetFurnitureNum.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormGetFurnitureNum { +} diff --git a/src/generated/main/emu/nebula/proto/DormInfo.java b/src/generated/main/emu/nebula/proto/DormInfo.java new file mode 100644 index 0000000..4d95cc6 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormInfo.java @@ -0,0 +1,873 @@ +// 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; +import us.hebi.quickbuf.RepeatedMessage; + +public final class DormInfo { + /** + * Protobuf type {@code DormInfoListResp} + */ + public static final class DormInfoListResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .DormInfoData DormInfo = 2; + */ + private final PublicDorm.DormInfoData dormInfo = PublicDorm.DormInfoData.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 ReceivedRewardIds = 3; + */ + private final RepeatedInt receivedRewardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 InteractionRoleIds = 4; + */ + private final RepeatedInt interactionRoleIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated .DormRoomInfo DormList = 1; + */ + private final RepeatedMessage dormList = RepeatedMessage.newEmptyInstance(PublicDorm.DormRoomInfo.getFactory()); + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + */ + private final RepeatedMessage affinityGiftRoleInfos = RepeatedMessage.newEmptyInstance(PublicDorm.DormAffinityGiftInfo.getFactory()); + + private DormInfoListResp() { + } + + /** + * @return a new empty instance of {@code DormInfoListResp} + */ + public static DormInfoListResp newInstance() { + return new DormInfoListResp(); + } + + /** + * optional .DormInfoData DormInfo = 2; + * @return whether the dormInfo field is set + */ + public boolean hasDormInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .DormInfoData DormInfo = 2; + * @return this + */ + public DormInfoListResp clearDormInfo() { + bitField0_ &= ~0x00000001; + dormInfo.clear(); + return this; + } + + /** + * optional .DormInfoData DormInfo = 2; + * + * 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 #getMutableDormInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicDorm.DormInfoData getDormInfo() { + return dormInfo; + } + + /** + * optional .DormInfoData DormInfo = 2; + * + * 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 PublicDorm.DormInfoData getMutableDormInfo() { + bitField0_ |= 0x00000001; + return dormInfo; + } + + /** + * optional .DormInfoData DormInfo = 2; + * @param value the dormInfo to set + * @return this + */ + public DormInfoListResp setDormInfo(final PublicDorm.DormInfoData value) { + bitField0_ |= 0x00000001; + dormInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormInfoListResp clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormInfoListResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormInfoListResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormInfoListResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 ReceivedRewardIds = 3; + * @return whether the receivedRewardIds field is set + */ + public boolean hasReceivedRewardIds() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 ReceivedRewardIds = 3; + * @return this + */ + public DormInfoListResp clearReceivedRewardIds() { + bitField0_ &= ~0x00000004; + receivedRewardIds.clear(); + return this; + } + + /** + * repeated uint32 ReceivedRewardIds = 3; + * + * 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 #getMutableReceivedRewardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getReceivedRewardIds() { + return receivedRewardIds; + } + + /** + * repeated uint32 ReceivedRewardIds = 3; + * + * 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 getMutableReceivedRewardIds() { + bitField0_ |= 0x00000004; + return receivedRewardIds; + } + + /** + * repeated uint32 ReceivedRewardIds = 3; + * @param value the receivedRewardIds to add + * @return this + */ + public DormInfoListResp addReceivedRewardIds(final int value) { + bitField0_ |= 0x00000004; + receivedRewardIds.add(value); + return this; + } + + /** + * repeated uint32 ReceivedRewardIds = 3; + * @param values the receivedRewardIds to add + * @return this + */ + public DormInfoListResp addAllReceivedRewardIds(final int... values) { + bitField0_ |= 0x00000004; + receivedRewardIds.addAll(values); + return this; + } + + /** + * repeated uint32 InteractionRoleIds = 4; + * @return whether the interactionRoleIds field is set + */ + public boolean hasInteractionRoleIds() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 InteractionRoleIds = 4; + * @return this + */ + public DormInfoListResp clearInteractionRoleIds() { + bitField0_ &= ~0x00000008; + interactionRoleIds.clear(); + return this; + } + + /** + * repeated uint32 InteractionRoleIds = 4; + * + * 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 #getMutableInteractionRoleIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getInteractionRoleIds() { + return interactionRoleIds; + } + + /** + * repeated uint32 InteractionRoleIds = 4; + * + * 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 getMutableInteractionRoleIds() { + bitField0_ |= 0x00000008; + return interactionRoleIds; + } + + /** + * repeated uint32 InteractionRoleIds = 4; + * @param value the interactionRoleIds to add + * @return this + */ + public DormInfoListResp addInteractionRoleIds(final int value) { + bitField0_ |= 0x00000008; + interactionRoleIds.add(value); + return this; + } + + /** + * repeated uint32 InteractionRoleIds = 4; + * @param values the interactionRoleIds to add + * @return this + */ + public DormInfoListResp addAllInteractionRoleIds(final int... values) { + bitField0_ |= 0x00000008; + interactionRoleIds.addAll(values); + return this; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @return whether the dormList field is set + */ + public boolean hasDormList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @return this + */ + public DormInfoListResp clearDormList() { + bitField0_ &= ~0x00000010; + dormList.clear(); + return this; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * + * 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 #getMutableDormList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDormList() { + return dormList; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * + * 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 getMutableDormList() { + bitField0_ |= 0x00000010; + return dormList; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @param value the dormList to add + * @return this + */ + public DormInfoListResp addDormList(final PublicDorm.DormRoomInfo value) { + bitField0_ |= 0x00000010; + dormList.add(value); + return this; + } + + /** + * repeated .DormRoomInfo DormList = 1; + * @param values the dormList to add + * @return this + */ + public DormInfoListResp addAllDormList(final PublicDorm.DormRoomInfo... values) { + bitField0_ |= 0x00000010; + dormList.addAll(values); + return this; + } + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + * @return whether the affinityGiftRoleInfos field is set + */ + public boolean hasAffinityGiftRoleInfos() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + * @return this + */ + public DormInfoListResp clearAffinityGiftRoleInfos() { + bitField0_ &= ~0x00000020; + affinityGiftRoleInfos.clear(); + return this; + } + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + * + * 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 #getMutableAffinityGiftRoleInfos()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAffinityGiftRoleInfos() { + return affinityGiftRoleInfos; + } + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + * + * 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 getMutableAffinityGiftRoleInfos() { + bitField0_ |= 0x00000020; + return affinityGiftRoleInfos; + } + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + * @param value the affinityGiftRoleInfos to add + * @return this + */ + public DormInfoListResp addAffinityGiftRoleInfos(final PublicDorm.DormAffinityGiftInfo value) { + bitField0_ |= 0x00000020; + affinityGiftRoleInfos.add(value); + return this; + } + + /** + * repeated .DormAffinityGiftInfo AffinityGiftRoleInfos = 5; + * @param values the affinityGiftRoleInfos to add + * @return this + */ + public DormInfoListResp addAllAffinityGiftRoleInfos( + final PublicDorm.DormAffinityGiftInfo... values) { + bitField0_ |= 0x00000020; + affinityGiftRoleInfos.addAll(values); + return this; + } + + @Override + public DormInfoListResp copyFrom(final DormInfoListResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormInfo.copyFrom(other.dormInfo); + nextPackage.copyFrom(other.nextPackage); + receivedRewardIds.copyFrom(other.receivedRewardIds); + interactionRoleIds.copyFrom(other.interactionRoleIds); + dormList.copyFrom(other.dormList); + affinityGiftRoleInfos.copyFrom(other.affinityGiftRoleInfos); + } + return this; + } + + @Override + public DormInfoListResp mergeFrom(final DormInfoListResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormInfo()) { + getMutableDormInfo().mergeFrom(other.dormInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasReceivedRewardIds()) { + getMutableReceivedRewardIds().addAll(other.receivedRewardIds); + } + if (other.hasInteractionRoleIds()) { + getMutableInteractionRoleIds().addAll(other.interactionRoleIds); + } + if (other.hasDormList()) { + getMutableDormList().addAll(other.dormList); + } + if (other.hasAffinityGiftRoleInfos()) { + getMutableAffinityGiftRoleInfos().addAll(other.affinityGiftRoleInfos); + } + return this; + } + + @Override + public DormInfoListResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormInfo.clear(); + nextPackage.clear(); + receivedRewardIds.clear(); + interactionRoleIds.clear(); + dormList.clear(); + affinityGiftRoleInfos.clear(); + return this; + } + + @Override + public DormInfoListResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormInfo.clearQuick(); + nextPackage.clear(); + receivedRewardIds.clear(); + interactionRoleIds.clear(); + dormList.clearQuick(); + affinityGiftRoleInfos.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormInfoListResp)) { + return false; + } + DormInfoListResp other = (DormInfoListResp) o; + return bitField0_ == other.bitField0_ + && (!hasDormInfo() || dormInfo.equals(other.dormInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasReceivedRewardIds() || receivedRewardIds.equals(other.receivedRewardIds)) + && (!hasInteractionRoleIds() || interactionRoleIds.equals(other.interactionRoleIds)) + && (!hasDormList() || dormList.equals(other.dormList)) + && (!hasAffinityGiftRoleInfos() || affinityGiftRoleInfos.equals(other.affinityGiftRoleInfos)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(dormInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < receivedRewardIds.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(receivedRewardIds.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < interactionRoleIds.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(interactionRoleIds.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < dormList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(dormList.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < affinityGiftRoleInfos.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(affinityGiftRoleInfos.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dormInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * receivedRewardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(receivedRewardIds); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * interactionRoleIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(interactionRoleIds); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * dormList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dormList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * affinityGiftRoleInfos.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(affinityGiftRoleInfos); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormInfoListResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // dormInfo + input.readMessage(dormInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // receivedRewardIds [packed=true] + input.readPackedUInt32(receivedRewardIds, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // interactionRoleIds [packed=true] + input.readPackedUInt32(interactionRoleIds, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dormList + tag = input.readRepeatedMessage(dormList, tag); + bitField0_ |= 0x00000010; + if (tag != 42) { + break; + } + } + case 42: { + // affinityGiftRoleInfos + tag = input.readRepeatedMessage(affinityGiftRoleInfos, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // receivedRewardIds [packed=false] + tag = input.readRepeatedUInt32(receivedRewardIds, tag); + bitField0_ |= 0x00000004; + break; + } + case 32: { + // interactionRoleIds [packed=false] + tag = input.readRepeatedUInt32(interactionRoleIds, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.dormInfo, dormInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.receivedRewardIds, receivedRewardIds); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.interactionRoleIds, interactionRoleIds); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.dormList, dormList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.affinityGiftRoleInfos, affinityGiftRoleInfos); + } + output.endObject(); + } + + @Override + public DormInfoListResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1347350004: { + if (input.isAtField(FieldNames.dormInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dormInfo); + 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 -123875320: { + if (input.isAtField(FieldNames.receivedRewardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(receivedRewardIds); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1714147312: { + if (input.isAtField(FieldNames.interactionRoleIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(interactionRoleIds); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1347434980: { + if (input.isAtField(FieldNames.dormList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dormList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1829298441: { + if (input.isAtField(FieldNames.affinityGiftRoleInfos)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(affinityGiftRoleInfos); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormInfoListResp clone() { + return new DormInfoListResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormInfoListResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormInfoListResp(), data).checkInitialized(); + } + + public static DormInfoListResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInfoListResp(), input).checkInitialized(); + } + + public static DormInfoListResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInfoListResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormInfoListResp messages + */ + public static MessageFactory getFactory() { + return DormInfoListRespFactory.INSTANCE; + } + + private enum DormInfoListRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormInfoListResp create() { + return DormInfoListResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormInfo = FieldName.forField("DormInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName receivedRewardIds = FieldName.forField("ReceivedRewardIds"); + + static final FieldName interactionRoleIds = FieldName.forField("InteractionRoleIds"); + + static final FieldName dormList = FieldName.forField("DormList"); + + static final FieldName affinityGiftRoleInfos = FieldName.forField("AffinityGiftRoleInfos"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormInfoUpdateName.java b/src/generated/main/emu/nebula/proto/DormInfoUpdateName.java new file mode 100644 index 0000000..7d636f8 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormInfoUpdateName.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormInfoUpdateName { +} diff --git a/src/generated/main/emu/nebula/proto/DormInvitationRole.java b/src/generated/main/emu/nebula/proto/DormInvitationRole.java new file mode 100644 index 0000000..f0a7054 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormInvitationRole.java @@ -0,0 +1,498 @@ +// 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 DormInvitationRole { + /** + * Protobuf type {@code DormInvitationRoleReq} + */ + public static final class DormInvitationRoleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DormRoomId = 1; + */ + private int dormRoomId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + */ + private final RepeatedMessage invitationRoleList = RepeatedMessage.newEmptyInstance(PublicDorm.InvitationRoleInfo.getFactory()); + + private DormInvitationRoleReq() { + } + + /** + * @return a new empty instance of {@code DormInvitationRoleReq} + */ + public static DormInvitationRoleReq newInstance() { + return new DormInvitationRoleReq(); + } + + /** + * optional uint32 DormRoomId = 1; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DormRoomId = 1; + * @return this + */ + public DormInvitationRoleReq clearDormRoomId() { + bitField0_ &= ~0x00000001; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 1; + * @param value the dormRoomId to set + * @return this + */ + public DormInvitationRoleReq setDormRoomId(final int value) { + bitField0_ |= 0x00000001; + dormRoomId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormInvitationRoleReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormInvitationRoleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormInvitationRoleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormInvitationRoleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + * @return whether the invitationRoleList field is set + */ + public boolean hasInvitationRoleList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + * @return this + */ + public DormInvitationRoleReq clearInvitationRoleList() { + bitField0_ &= ~0x00000004; + invitationRoleList.clear(); + return this; + } + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + * + * 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 #getMutableInvitationRoleList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getInvitationRoleList() { + return invitationRoleList; + } + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + * + * 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 getMutableInvitationRoleList() { + bitField0_ |= 0x00000004; + return invitationRoleList; + } + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + * @param value the invitationRoleList to add + * @return this + */ + public DormInvitationRoleReq addInvitationRoleList(final PublicDorm.InvitationRoleInfo value) { + bitField0_ |= 0x00000004; + invitationRoleList.add(value); + return this; + } + + /** + * repeated .InvitationRoleInfo InvitationRoleList = 2; + * @param values the invitationRoleList to add + * @return this + */ + public DormInvitationRoleReq addAllInvitationRoleList( + final PublicDorm.InvitationRoleInfo... values) { + bitField0_ |= 0x00000004; + invitationRoleList.addAll(values); + return this; + } + + @Override + public DormInvitationRoleReq copyFrom(final DormInvitationRoleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormRoomId = other.dormRoomId; + nextPackage.copyFrom(other.nextPackage); + invitationRoleList.copyFrom(other.invitationRoleList); + } + return this; + } + + @Override + public DormInvitationRoleReq mergeFrom(final DormInvitationRoleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasInvitationRoleList()) { + getMutableInvitationRoleList().addAll(other.invitationRoleList); + } + return this; + } + + @Override + public DormInvitationRoleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormRoomId = 0; + nextPackage.clear(); + invitationRoleList.clear(); + return this; + } + + @Override + public DormInvitationRoleReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + invitationRoleList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormInvitationRoleReq)) { + return false; + } + DormInvitationRoleReq other = (DormInvitationRoleReq) o; + return bitField0_ == other.bitField0_ + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasInvitationRoleList() || invitationRoleList.equals(other.invitationRoleList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < invitationRoleList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(invitationRoleList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * invitationRoleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(invitationRoleList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormInvitationRoleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dormRoomId + dormRoomId = input.readUInt32(); + 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: { + // invitationRoleList + tag = input.readRepeatedMessage(invitationRoleList, 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.writeUInt32(FieldNames.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.invitationRoleList, invitationRoleList); + } + output.endObject(); + } + + @Override + public DormInvitationRoleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = input.readUInt32(); + 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 1718970637: { + if (input.isAtField(FieldNames.invitationRoleList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(invitationRoleList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormInvitationRoleReq clone() { + return new DormInvitationRoleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormInvitationRoleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormInvitationRoleReq(), data).checkInitialized(); + } + + public static DormInvitationRoleReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInvitationRoleReq(), input).checkInitialized(); + } + + public static DormInvitationRoleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInvitationRoleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormInvitationRoleReq messages + */ + public static MessageFactory getFactory() { + return DormInvitationRoleReqFactory.INSTANCE; + } + + private enum DormInvitationRoleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormInvitationRoleReq create() { + return DormInvitationRoleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName invitationRoleList = FieldName.forField("InvitationRoleList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormLayoutRewardReceive.java b/src/generated/main/emu/nebula/proto/DormLayoutRewardReceive.java new file mode 100644 index 0000000..e56ec94 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormLayoutRewardReceive.java @@ -0,0 +1,424 @@ +// 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 DormLayoutRewardReceive { + /** + * Protobuf type {@code DormLayoutRewardReceiveReq} + */ + public static final class DormLayoutRewardReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 LayoutIds = 1; + */ + private final RepeatedInt layoutIds = RepeatedInt.newEmptyInstance(); + + private DormLayoutRewardReceiveReq() { + } + + /** + * @return a new empty instance of {@code DormLayoutRewardReceiveReq} + */ + public static DormLayoutRewardReceiveReq newInstance() { + return new DormLayoutRewardReceiveReq(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormLayoutRewardReceiveReq clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormLayoutRewardReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormLayoutRewardReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormLayoutRewardReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 LayoutIds = 1; + * @return whether the layoutIds field is set + */ + public boolean hasLayoutIds() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 LayoutIds = 1; + * @return this + */ + public DormLayoutRewardReceiveReq clearLayoutIds() { + bitField0_ &= ~0x00000002; + layoutIds.clear(); + return this; + } + + /** + * repeated uint32 LayoutIds = 1; + * + * 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 #getMutableLayoutIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getLayoutIds() { + return layoutIds; + } + + /** + * repeated uint32 LayoutIds = 1; + * + * 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 getMutableLayoutIds() { + bitField0_ |= 0x00000002; + return layoutIds; + } + + /** + * repeated uint32 LayoutIds = 1; + * @param value the layoutIds to add + * @return this + */ + public DormLayoutRewardReceiveReq addLayoutIds(final int value) { + bitField0_ |= 0x00000002; + layoutIds.add(value); + return this; + } + + /** + * repeated uint32 LayoutIds = 1; + * @param values the layoutIds to add + * @return this + */ + public DormLayoutRewardReceiveReq addAllLayoutIds(final int... values) { + bitField0_ |= 0x00000002; + layoutIds.addAll(values); + return this; + } + + @Override + public DormLayoutRewardReceiveReq copyFrom(final DormLayoutRewardReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + layoutIds.copyFrom(other.layoutIds); + } + return this; + } + + @Override + public DormLayoutRewardReceiveReq mergeFrom(final DormLayoutRewardReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLayoutIds()) { + getMutableLayoutIds().addAll(other.layoutIds); + } + return this; + } + + @Override + public DormLayoutRewardReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + layoutIds.clear(); + return this; + } + + @Override + public DormLayoutRewardReceiveReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + layoutIds.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormLayoutRewardReceiveReq)) { + return false; + } + DormLayoutRewardReceiveReq other = (DormLayoutRewardReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLayoutIds() || layoutIds.equals(other.layoutIds)); + } + + @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 < layoutIds.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(layoutIds.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * layoutIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(layoutIds); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormLayoutRewardReceiveReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // layoutIds [packed=true] + input.readPackedUInt32(layoutIds, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // layoutIds [packed=false] + tag = input.readRepeatedUInt32(layoutIds, tag); + bitField0_ |= 0x00000002; + 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.writeRepeatedUInt32(FieldNames.layoutIds, layoutIds); + } + output.endObject(); + } + + @Override + public DormLayoutRewardReceiveReq 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 629504782: { + if (input.isAtField(FieldNames.layoutIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(layoutIds); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormLayoutRewardReceiveReq clone() { + return new DormLayoutRewardReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormLayoutRewardReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormLayoutRewardReceiveReq(), data).checkInitialized(); + } + + public static DormLayoutRewardReceiveReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormLayoutRewardReceiveReq(), input).checkInitialized(); + } + + public static DormLayoutRewardReceiveReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormLayoutRewardReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormLayoutRewardReceiveReq messages + */ + public static MessageFactory getFactory() { + return DormLayoutRewardReceiveReqFactory.INSTANCE; + } + + private enum DormLayoutRewardReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormLayoutRewardReceiveReq create() { + return DormLayoutRewardReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName layoutIds = FieldName.forField("LayoutIds"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormLearn.java b/src/generated/main/emu/nebula/proto/DormLearn.java new file mode 100644 index 0000000..afb9cb3 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormLearn.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormLearn { +} diff --git a/src/generated/main/emu/nebula/proto/DormRewardReceive.java b/src/generated/main/emu/nebula/proto/DormRewardReceive.java new file mode 100644 index 0000000..bc7ae81 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormRewardReceive.java @@ -0,0 +1,424 @@ +// 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 DormRewardReceive { + /** + * Protobuf type {@code DormRewardReceiveReq} + */ + public static final class DormRewardReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 rewardIds = 1; + */ + private final RepeatedInt rewardIds = RepeatedInt.newEmptyInstance(); + + private DormRewardReceiveReq() { + } + + /** + * @return a new empty instance of {@code DormRewardReceiveReq} + */ + public static DormRewardReceiveReq newInstance() { + return new DormRewardReceiveReq(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRewardReceiveReq clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRewardReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRewardReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRewardReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 rewardIds = 1; + * @return whether the rewardIds field is set + */ + public boolean hasRewardIds() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 rewardIds = 1; + * @return this + */ + public DormRewardReceiveReq clearRewardIds() { + bitField0_ &= ~0x00000002; + rewardIds.clear(); + return this; + } + + /** + * repeated uint32 rewardIds = 1; + * + * 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 #getMutableRewardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getRewardIds() { + return rewardIds; + } + + /** + * repeated uint32 rewardIds = 1; + * + * 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 getMutableRewardIds() { + bitField0_ |= 0x00000002; + return rewardIds; + } + + /** + * repeated uint32 rewardIds = 1; + * @param value the rewardIds to add + * @return this + */ + public DormRewardReceiveReq addRewardIds(final int value) { + bitField0_ |= 0x00000002; + rewardIds.add(value); + return this; + } + + /** + * repeated uint32 rewardIds = 1; + * @param values the rewardIds to add + * @return this + */ + public DormRewardReceiveReq addAllRewardIds(final int... values) { + bitField0_ |= 0x00000002; + rewardIds.addAll(values); + return this; + } + + @Override + public DormRewardReceiveReq copyFrom(final DormRewardReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + rewardIds.copyFrom(other.rewardIds); + } + return this; + } + + @Override + public DormRewardReceiveReq mergeFrom(final DormRewardReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRewardIds()) { + getMutableRewardIds().addAll(other.rewardIds); + } + return this; + } + + @Override + public DormRewardReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + rewardIds.clear(); + return this; + } + + @Override + public DormRewardReceiveReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + rewardIds.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormRewardReceiveReq)) { + return false; + } + DormRewardReceiveReq other = (DormRewardReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRewardIds() || rewardIds.equals(other.rewardIds)); + } + + @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 < rewardIds.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(rewardIds.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * rewardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rewardIds); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRewardReceiveReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rewardIds [packed=true] + input.readPackedUInt32(rewardIds, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // rewardIds [packed=false] + tag = input.readRepeatedUInt32(rewardIds, tag); + bitField0_ |= 0x00000002; + 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.writeRepeatedUInt32(FieldNames.rewardIds, rewardIds); + } + output.endObject(); + } + + @Override + public DormRewardReceiveReq 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 1162923273: { + if (input.isAtField(FieldNames.rewardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(rewardIds); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormRewardReceiveReq clone() { + return new DormRewardReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRewardReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRewardReceiveReq(), data).checkInitialized(); + } + + public static DormRewardReceiveReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRewardReceiveReq(), input).checkInitialized(); + } + + public static DormRewardReceiveReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRewardReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRewardReceiveReq messages + */ + public static MessageFactory getFactory() { + return DormRewardReceiveReqFactory.INSTANCE; + } + + private enum DormRewardReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRewardReceiveReq create() { + return DormRewardReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName rewardIds = FieldName.forField("rewardIds"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormRoleInteraction.java b/src/generated/main/emu/nebula/proto/DormRoleInteraction.java new file mode 100644 index 0000000..f728726 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormRoleInteraction.java @@ -0,0 +1,920 @@ +// 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 DormRoleInteraction { + /** + * Protobuf type {@code DormRoleInteractionReq} + */ + public static final class DormRoleInteractionReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .RoleInteraction RoleInteractions = 1; + */ + private final RepeatedMessage roleInteractions = RepeatedMessage.newEmptyInstance(PublicDorm.RoleInteraction.getFactory()); + + private DormRoleInteractionReq() { + } + + /** + * @return a new empty instance of {@code DormRoleInteractionReq} + */ + public static DormRoleInteractionReq newInstance() { + return new DormRoleInteractionReq(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoleInteractionReq clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoleInteractionReq addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoleInteractionReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoleInteractionReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .RoleInteraction RoleInteractions = 1; + * @return whether the roleInteractions field is set + */ + public boolean hasRoleInteractions() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .RoleInteraction RoleInteractions = 1; + * @return this + */ + public DormRoleInteractionReq clearRoleInteractions() { + bitField0_ &= ~0x00000002; + roleInteractions.clear(); + return this; + } + + /** + * repeated .RoleInteraction RoleInteractions = 1; + * + * 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 #getMutableRoleInteractions()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRoleInteractions() { + return roleInteractions; + } + + /** + * repeated .RoleInteraction RoleInteractions = 1; + * + * 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 getMutableRoleInteractions() { + bitField0_ |= 0x00000002; + return roleInteractions; + } + + /** + * repeated .RoleInteraction RoleInteractions = 1; + * @param value the roleInteractions to add + * @return this + */ + public DormRoleInteractionReq addRoleInteractions(final PublicDorm.RoleInteraction value) { + bitField0_ |= 0x00000002; + roleInteractions.add(value); + return this; + } + + /** + * repeated .RoleInteraction RoleInteractions = 1; + * @param values the roleInteractions to add + * @return this + */ + public DormRoleInteractionReq addAllRoleInteractions( + final PublicDorm.RoleInteraction... values) { + bitField0_ |= 0x00000002; + roleInteractions.addAll(values); + return this; + } + + @Override + public DormRoleInteractionReq copyFrom(final DormRoleInteractionReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + roleInteractions.copyFrom(other.roleInteractions); + } + return this; + } + + @Override + public DormRoleInteractionReq mergeFrom(final DormRoleInteractionReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRoleInteractions()) { + getMutableRoleInteractions().addAll(other.roleInteractions); + } + return this; + } + + @Override + public DormRoleInteractionReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + roleInteractions.clear(); + return this; + } + + @Override + public DormRoleInteractionReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + roleInteractions.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormRoleInteractionReq)) { + return false; + } + DormRoleInteractionReq other = (DormRoleInteractionReq) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRoleInteractions() || roleInteractions.equals(other.roleInteractions)); + } + + @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 < roleInteractions.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(roleInteractions.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * roleInteractions.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(roleInteractions); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoleInteractionReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // roleInteractions + tag = input.readRepeatedMessage(roleInteractions, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.roleInteractions, roleInteractions); + } + output.endObject(); + } + + @Override + public DormRoleInteractionReq 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 -212267945: { + if (input.isAtField(FieldNames.roleInteractions)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(roleInteractions); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormRoleInteractionReq clone() { + return new DormRoleInteractionReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoleInteractionReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoleInteractionReq(), data).checkInitialized(); + } + + public static DormRoleInteractionReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoleInteractionReq(), input).checkInitialized(); + } + + public static DormRoleInteractionReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoleInteractionReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoleInteractionReq messages + */ + public static MessageFactory getFactory() { + return DormRoleInteractionReqFactory.INSTANCE; + } + + private enum DormRoleInteractionReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoleInteractionReq create() { + return DormRoleInteractionReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName roleInteractions = FieldName.forField("RoleInteractions"); + } + } + + /** + * Protobuf type {@code DormRoleInteractionResp} + */ + public static final class DormRoleInteractionResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo Change = 2; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .AffinityData InfoList = 1; + */ + private final RepeatedMessage infoList = RepeatedMessage.newEmptyInstance(PublicDorm.AffinityData.getFactory()); + + private DormRoleInteractionResp() { + } + + /** + * @return a new empty instance of {@code DormRoleInteractionResp} + */ + public static DormRoleInteractionResp newInstance() { + return new DormRoleInteractionResp(); + } + + /** + * optional .ChangeInfo Change = 2; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo Change = 2; + * @return this + */ + public DormRoleInteractionResp clearChange() { + bitField0_ &= ~0x00000001; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 2; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 2; + * @param value the change to set + * @return this + */ + public DormRoleInteractionResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoleInteractionResp clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoleInteractionResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoleInteractionResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoleInteractionResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .AffinityData InfoList = 1; + * @return whether the infoList field is set + */ + public boolean hasInfoList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .AffinityData InfoList = 1; + * @return this + */ + public DormRoleInteractionResp clearInfoList() { + bitField0_ &= ~0x00000004; + infoList.clear(); + return this; + } + + /** + * repeated .AffinityData InfoList = 1; + * + * 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 #getMutableInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getInfoList() { + return infoList; + } + + /** + * repeated .AffinityData InfoList = 1; + * + * 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 getMutableInfoList() { + bitField0_ |= 0x00000004; + return infoList; + } + + /** + * repeated .AffinityData InfoList = 1; + * @param value the infoList to add + * @return this + */ + public DormRoleInteractionResp addInfoList(final PublicDorm.AffinityData value) { + bitField0_ |= 0x00000004; + infoList.add(value); + return this; + } + + /** + * repeated .AffinityData InfoList = 1; + * @param values the infoList to add + * @return this + */ + public DormRoleInteractionResp addAllInfoList(final PublicDorm.AffinityData... values) { + bitField0_ |= 0x00000004; + infoList.addAll(values); + return this; + } + + @Override + public DormRoleInteractionResp copyFrom(final DormRoleInteractionResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + infoList.copyFrom(other.infoList); + } + return this; + } + + @Override + public DormRoleInteractionResp mergeFrom(final DormRoleInteractionResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasInfoList()) { + getMutableInfoList().addAll(other.infoList); + } + return this; + } + + @Override + public DormRoleInteractionResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clear(); + nextPackage.clear(); + infoList.clear(); + return this; + } + + @Override + public DormRoleInteractionResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + infoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormRoleInteractionResp)) { + return false; + } + DormRoleInteractionResp other = (DormRoleInteractionResp) o; + return bitField0_ == other.bitField0_ + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasInfoList() || infoList.equals(other.infoList)); + } + + @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 < infoList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(infoList.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 * infoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(infoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoleInteractionResp 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: { + // infoList + tag = input.readRepeatedMessage(infoList, 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.infoList, infoList); + } + output.endObject(); + } + + @Override + public DormRoleInteractionResp 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 242345612: { + if (input.isAtField(FieldNames.infoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(infoList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormRoleInteractionResp clone() { + return new DormRoleInteractionResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoleInteractionResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoleInteractionResp(), data).checkInitialized(); + } + + public static DormRoleInteractionResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoleInteractionResp(), input).checkInitialized(); + } + + public static DormRoleInteractionResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoleInteractionResp(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoleInteractionResp messages + */ + public static MessageFactory getFactory() { + return DormRoleInteractionRespFactory.INSTANCE; + } + + private enum DormRoleInteractionRespFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoleInteractionResp create() { + return DormRoleInteractionResp.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 infoList = FieldName.forField("InfoList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormRoomBgm.java b/src/generated/main/emu/nebula/proto/DormRoomBgm.java new file mode 100644 index 0000000..c3ac3aa --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormRoomBgm.java @@ -0,0 +1,417 @@ +// 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 DormRoomBgm { + /** + * Protobuf type {@code DormRoomBGMReq} + */ + public static final class DormRoomBGMReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + */ + private final RepeatedMessage bGMList = RepeatedMessage.newEmptyInstance(PublicDorm.DormRoomBGMInfo.getFactory()); + + private DormRoomBGMReq() { + } + + /** + * @return a new empty instance of {@code DormRoomBGMReq} + */ + public static DormRoomBGMReq newInstance() { + return new DormRoomBGMReq(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoomBGMReq clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoomBGMReq addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoomBGMReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoomBGMReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + * @return whether the bGMList field is set + */ + public boolean hasBGMList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + * @return this + */ + public DormRoomBGMReq clearBGMList() { + bitField0_ &= ~0x00000002; + bGMList.clear(); + return this; + } + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + * + * 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 #getMutableBGMList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBGMList() { + return bGMList; + } + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + * + * 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 getMutableBGMList() { + bitField0_ |= 0x00000002; + return bGMList; + } + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + * @param value the bGMList to add + * @return this + */ + public DormRoomBGMReq addBGMList(final PublicDorm.DormRoomBGMInfo value) { + bitField0_ |= 0x00000002; + bGMList.add(value); + return this; + } + + /** + * repeated .DormRoomBGMInfo BGMList = 1; + * @param values the bGMList to add + * @return this + */ + public DormRoomBGMReq addAllBGMList(final PublicDorm.DormRoomBGMInfo... values) { + bitField0_ |= 0x00000002; + bGMList.addAll(values); + return this; + } + + @Override + public DormRoomBGMReq copyFrom(final DormRoomBGMReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + bGMList.copyFrom(other.bGMList); + } + return this; + } + + @Override + public DormRoomBGMReq mergeFrom(final DormRoomBGMReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBGMList()) { + getMutableBGMList().addAll(other.bGMList); + } + return this; + } + + @Override + public DormRoomBGMReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + bGMList.clear(); + return this; + } + + @Override + public DormRoomBGMReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + bGMList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormRoomBGMReq)) { + return false; + } + DormRoomBGMReq other = (DormRoomBGMReq) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBGMList() || bGMList.equals(other.bGMList)); + } + + @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 < bGMList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(bGMList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * bGMList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bGMList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoomBGMReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // bGMList + tag = input.readRepeatedMessage(bGMList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.bGMList, bGMList); + } + output.endObject(); + } + + @Override + public DormRoomBGMReq 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 551850342: { + if (input.isAtField(FieldNames.bGMList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bGMList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormRoomBGMReq clone() { + return new DormRoomBGMReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoomBGMReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoomBGMReq(), data).checkInitialized(); + } + + public static DormRoomBGMReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomBGMReq(), input).checkInitialized(); + } + + public static DormRoomBGMReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomBGMReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoomBGMReq messages + */ + public static MessageFactory getFactory() { + return DormRoomBGMReqFactory.INSTANCE; + } + + private enum DormRoomBGMReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoomBGMReq create() { + return DormRoomBGMReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName bGMList = FieldName.forField("BGMList"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/DormSetRoomScene.java b/src/generated/main/emu/nebula/proto/DormSetRoomScene.java new file mode 100644 index 0000000..0f20981 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormSetRoomScene.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormSetRoomScene { +} diff --git a/src/generated/main/emu/nebula/proto/DormUpdatePresetName.java b/src/generated/main/emu/nebula/proto/DormUpdatePresetName.java new file mode 100644 index 0000000..6873437 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/DormUpdatePresetName.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class DormUpdatePresetName { +} diff --git a/src/generated/main/emu/nebula/proto/GachaNewbieInfoOuterClass.java b/src/generated/main/emu/nebula/proto/GachaNewbieInfoOuterClass.java index b742408..79ac91b 100644 --- a/src/generated/main/emu/nebula/proto/GachaNewbieInfoOuterClass.java +++ b/src/generated/main/emu/nebula/proto/GachaNewbieInfoOuterClass.java @@ -11,417 +11,9 @@ 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; import us.hebi.quickbuf.RepeatedMessage; public final class GachaNewbieInfoOuterClass { - /** - * Protobuf type {@code UI32s} - */ - public static final class UI32s extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional bytes NextPackage = 2047; - */ - private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - - /** - * repeated uint32 Values = 1; - */ - private final RepeatedInt values_ = RepeatedInt.newEmptyInstance(); - - private UI32s() { - } - - /** - * @return a new empty instance of {@code UI32s} - */ - public static UI32s newInstance() { - return new UI32s(); - } - - /** - * optional bytes NextPackage = 2047; - * @return whether the nextPackage field is set - */ - public boolean hasNextPackage() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional bytes NextPackage = 2047; - * @return this - */ - public UI32s clearNextPackage() { - bitField0_ &= ~0x00000001; - nextPackage.clear(); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * @param value the nextPackage to add - * @return this - */ - public UI32s addNextPackage(final byte value) { - bitField0_ |= 0x00000001; - nextPackage.add(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to add - * @return this - */ - public UI32s addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000001; - nextPackage.addAll(values); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to set - * @return this - */ - public UI32s setNextPackage(final byte... values) { - bitField0_ |= 0x00000001; - nextPackage.copyFrom(values); - return this; - } - - /** - * repeated uint32 Values = 1; - * @return whether the values_ field is set - */ - public boolean hasValues() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated uint32 Values = 1; - * @return this - */ - public UI32s clearValues() { - bitField0_ &= ~0x00000002; - values_.clear(); - return this; - } - - /** - * repeated uint32 Values = 1; - * - * 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 #getMutableValues()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getValues() { - return values_; - } - - /** - * repeated uint32 Values = 1; - * - * 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 getMutableValues() { - bitField0_ |= 0x00000002; - return values_; - } - - /** - * repeated uint32 Values = 1; - * @param value the values_ to add - * @return this - */ - public UI32s addValues(final int value) { - bitField0_ |= 0x00000002; - values_.add(value); - return this; - } - - /** - * repeated uint32 Values = 1; - * @param values the values_ to add - * @return this - */ - public UI32s addAllValues(final int... values) { - bitField0_ |= 0x00000002; - values_.addAll(values); - return this; - } - - @Override - public UI32s copyFrom(final UI32s other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - nextPackage.copyFrom(other.nextPackage); - values_.copyFrom(other.values_); - } - return this; - } - - @Override - public UI32s mergeFrom(final UI32s other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasNextPackage()) { - getMutableNextPackage().copyFrom(other.nextPackage); - } - if (other.hasValues()) { - getMutableValues().addAll(other.values_); - } - return this; - } - - @Override - public UI32s clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nextPackage.clear(); - values_.clear(); - return this; - } - - @Override - public UI32s clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nextPackage.clear(); - values_.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof UI32s)) { - return false; - } - UI32s other = (UI32s) o; - return bitField0_ == other.bitField0_ - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasValues() || values_.equals(other.values_)); - } - - @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 < values_.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(values_.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * values_.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(values_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public UI32s mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16378: { - // nextPackage - input.readBytes(nextPackage); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // values_ [packed=true] - input.readPackedUInt32(values_, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 8: { - // values_ [packed=false] - tag = input.readRepeatedUInt32(values_, tag); - bitField0_ |= 0x00000002; - 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.writeRepeatedUInt32(FieldNames.values_, values_); - } - output.endObject(); - } - - @Override - public UI32s 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 -1739945662: { - if (input.isAtField(FieldNames.values_)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(values_); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public UI32s clone() { - return new UI32s().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static UI32s parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new UI32s(), data).checkInitialized(); - } - - public static UI32s parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new UI32s(), input).checkInitialized(); - } - - public static UI32s parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new UI32s(), input).checkInitialized(); - } - - /** - * @return factory for creating UI32s messages - */ - public static MessageFactory getFactory() { - return UI32sFactory.INSTANCE; - } - - private enum UI32sFactory implements MessageFactory { - INSTANCE; - - @Override - public UI32s create() { - return UI32s.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName nextPackage = FieldName.forField("NextPackage"); - - static final FieldName values_ = FieldName.forField("Values"); - } - } - /** * Protobuf type {@code GachaNewbieInfo} */ @@ -446,7 +38,7 @@ public final class GachaNewbieInfoOuterClass { /** * optional .UI32s Temp = 15; */ - private final UI32s temp = UI32s.newInstance(); + private final Public.UI32s temp = Public.UI32s.newInstance(); /** * optional bytes NextPackage = 2047; @@ -456,7 +48,7 @@ public final class GachaNewbieInfoOuterClass { /** * repeated .UI32s Cards = 14; */ - private final RepeatedMessage cards = RepeatedMessage.newEmptyInstance(UI32s.getFactory()); + private final RepeatedMessage cards = RepeatedMessage.newEmptyInstance(Public.UI32s.getFactory()); private GachaNewbieInfo() { } @@ -607,7 +199,7 @@ public final class GachaNewbieInfoOuterClass { * * @return internal storage object for reading */ - public UI32s getTemp() { + public Public.UI32s getTemp() { return temp; } @@ -620,7 +212,7 @@ public final class GachaNewbieInfoOuterClass { * * @return internal storage object for modifications */ - public UI32s getMutableTemp() { + public Public.UI32s getMutableTemp() { bitField0_ |= 0x00000008; return temp; } @@ -630,7 +222,7 @@ public final class GachaNewbieInfoOuterClass { * @param value the temp to set * @return this */ - public GachaNewbieInfo setTemp(final UI32s value) { + public GachaNewbieInfo setTemp(final Public.UI32s value) { bitField0_ |= 0x00000008; temp.copyFrom(value); return this; @@ -743,7 +335,7 @@ public final class GachaNewbieInfoOuterClass { * * @return internal storage object for reading */ - public RepeatedMessage getCards() { + public RepeatedMessage getCards() { return cards; } @@ -756,7 +348,7 @@ public final class GachaNewbieInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableCards() { + public RepeatedMessage getMutableCards() { bitField0_ |= 0x00000020; return cards; } @@ -766,7 +358,7 @@ public final class GachaNewbieInfoOuterClass { * @param value the cards to add * @return this */ - public GachaNewbieInfo addCards(final UI32s value) { + public GachaNewbieInfo addCards(final Public.UI32s value) { bitField0_ |= 0x00000020; cards.add(value); return this; @@ -777,7 +369,7 @@ public final class GachaNewbieInfoOuterClass { * @param values the cards to add * @return this */ - public GachaNewbieInfo addAllCards(final UI32s... values) { + public GachaNewbieInfo addAllCards(final Public.UI32s... values) { bitField0_ |= 0x00000020; cards.addAll(values); return this; diff --git a/src/generated/main/emu/nebula/proto/GuideMissionInfoOuterClass.java b/src/generated/main/emu/nebula/proto/GuideMissionInfoOuterClass.java new file mode 100644 index 0000000..ecf05b9 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/GuideMissionInfoOuterClass.java @@ -0,0 +1,1046 @@ +// 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 GuideMissionInfoOuterClass { + /** + * Protobuf type {@code GuideMissionInfo} + */ + public static final class GuideMissionInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .GuideMissionChapter Chapters = 1; + */ + private final RepeatedMessage chapters = RepeatedMessage.newEmptyInstance(GuideMissionChapter.getFactory()); + + private GuideMissionInfo() { + } + + /** + * @return a new empty instance of {@code GuideMissionInfo} + */ + public static GuideMissionInfo newInstance() { + return new GuideMissionInfo(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public GuideMissionInfo clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public GuideMissionInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GuideMissionInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GuideMissionInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .GuideMissionChapter Chapters = 1; + * @return whether the chapters field is set + */ + public boolean hasChapters() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .GuideMissionChapter Chapters = 1; + * @return this + */ + public GuideMissionInfo clearChapters() { + bitField0_ &= ~0x00000002; + chapters.clear(); + return this; + } + + /** + * repeated .GuideMissionChapter Chapters = 1; + * + * 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 #getMutableChapters()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChapters() { + return chapters; + } + + /** + * repeated .GuideMissionChapter Chapters = 1; + * + * 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 getMutableChapters() { + bitField0_ |= 0x00000002; + return chapters; + } + + /** + * repeated .GuideMissionChapter Chapters = 1; + * @param value the chapters to add + * @return this + */ + public GuideMissionInfo addChapters(final GuideMissionChapter value) { + bitField0_ |= 0x00000002; + chapters.add(value); + return this; + } + + /** + * repeated .GuideMissionChapter Chapters = 1; + * @param values the chapters to add + * @return this + */ + public GuideMissionInfo addAllChapters(final GuideMissionChapter... values) { + bitField0_ |= 0x00000002; + chapters.addAll(values); + return this; + } + + @Override + public GuideMissionInfo copyFrom(final GuideMissionInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + chapters.copyFrom(other.chapters); + } + return this; + } + + @Override + public GuideMissionInfo mergeFrom(final GuideMissionInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChapters()) { + getMutableChapters().addAll(other.chapters); + } + return this; + } + + @Override + public GuideMissionInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chapters.clear(); + return this; + } + + @Override + public GuideMissionInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chapters.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GuideMissionInfo)) { + return false; + } + GuideMissionInfo other = (GuideMissionInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChapters() || chapters.equals(other.chapters)); + } + + @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 < chapters.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(chapters.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * chapters.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chapters); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GuideMissionInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // chapters + tag = input.readRepeatedMessage(chapters, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.chapters, chapters); + } + output.endObject(); + } + + @Override + public GuideMissionInfo 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 1499296230: { + if (input.isAtField(FieldNames.chapters)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chapters); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GuideMissionInfo clone() { + return new GuideMissionInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GuideMissionInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GuideMissionInfo(), data).checkInitialized(); + } + + public static GuideMissionInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GuideMissionInfo(), input).checkInitialized(); + } + + public static GuideMissionInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GuideMissionInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating GuideMissionInfo messages + */ + public static MessageFactory getFactory() { + return GuideMissionInfoFactory.INSTANCE; + } + + private enum GuideMissionInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public GuideMissionInfo create() { + return GuideMissionInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName chapters = FieldName.forField("Chapters"); + } + } + + /** + * Protobuf type {@code GuideMissionChapter} + */ + public static final class GuideMissionChapter extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 UnlockTime = 2; + */ + private long unlockTime; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional bool Done = 4; + */ + private boolean done; + + /** + * optional .Quests Quests = 3; + */ + private final Public.Quests quests = Public.Quests.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private GuideMissionChapter() { + } + + /** + * @return a new empty instance of {@code GuideMissionChapter} + */ + public static GuideMissionChapter newInstance() { + return new GuideMissionChapter(); + } + + /** + * optional int64 UnlockTime = 2; + * @return whether the unlockTime field is set + */ + public boolean hasUnlockTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 UnlockTime = 2; + * @return this + */ + public GuideMissionChapter clearUnlockTime() { + bitField0_ &= ~0x00000001; + unlockTime = 0L; + return this; + } + + /** + * optional int64 UnlockTime = 2; + * @return the unlockTime + */ + public long getUnlockTime() { + return unlockTime; + } + + /** + * optional int64 UnlockTime = 2; + * @param value the unlockTime to set + * @return this + */ + public GuideMissionChapter setUnlockTime(final long value) { + bitField0_ |= 0x00000001; + unlockTime = value; + return this; + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public GuideMissionChapter clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public GuideMissionChapter setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional bool Done = 4; + * @return whether the done field is set + */ + public boolean hasDone() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool Done = 4; + * @return this + */ + public GuideMissionChapter clearDone() { + bitField0_ &= ~0x00000004; + done = false; + return this; + } + + /** + * optional bool Done = 4; + * @return the done + */ + public boolean getDone() { + return done; + } + + /** + * optional bool Done = 4; + * @param value the done to set + * @return this + */ + public GuideMissionChapter setDone(final boolean value) { + bitField0_ |= 0x00000004; + done = value; + return this; + } + + /** + * optional .Quests Quests = 3; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .Quests Quests = 3; + * @return this + */ + public GuideMissionChapter clearQuests() { + bitField0_ &= ~0x00000008; + quests.clear(); + return this; + } + + /** + * optional .Quests Quests = 3; + * + * 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 #getMutableQuests()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Quests getQuests() { + return quests; + } + + /** + * optional .Quests Quests = 3; + * + * 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.Quests getMutableQuests() { + bitField0_ |= 0x00000008; + return quests; + } + + /** + * optional .Quests Quests = 3; + * @param value the quests to set + * @return this + */ + public GuideMissionChapter setQuests(final Public.Quests value) { + bitField0_ |= 0x00000008; + quests.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public GuideMissionChapter clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public GuideMissionChapter addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GuideMissionChapter addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GuideMissionChapter setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public GuideMissionChapter copyFrom(final GuideMissionChapter other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unlockTime = other.unlockTime; + id = other.id; + done = other.done; + quests.copyFrom(other.quests); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public GuideMissionChapter mergeFrom(final GuideMissionChapter other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnlockTime()) { + setUnlockTime(other.unlockTime); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasDone()) { + setDone(other.done); + } + if (other.hasQuests()) { + getMutableQuests().mergeFrom(other.quests); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public GuideMissionChapter clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unlockTime = 0L; + id = 0; + done = false; + quests.clear(); + nextPackage.clear(); + return this; + } + + @Override + public GuideMissionChapter clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + quests.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GuideMissionChapter)) { + return false; + } + GuideMissionChapter other = (GuideMissionChapter) o; + return bitField0_ == other.bitField0_ + && (!hasUnlockTime() || unlockTime == other.unlockTime) + && (!hasId() || id == other.id) + && (!hasDone() || done == other.done) + && (!hasQuests() || quests.equals(other.quests)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(unlockTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(done); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(quests); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(unlockTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(quests); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GuideMissionChapter mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // unlockTime + unlockTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // done + done = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // quests + input.readMessage(quests); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.unlockTime, unlockTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.done, done); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.quests, quests); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public GuideMissionChapter mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1134051409: { + if (input.isAtField(FieldNames.unlockTime)) { + if (!input.trySkipNullValue()) { + unlockTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2135970: { + if (input.isAtField(FieldNames.done)) { + if (!input.trySkipNullValue()) { + done = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1864830991: { + if (input.isAtField(FieldNames.quests)) { + if (!input.trySkipNullValue()) { + input.readMessage(quests); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GuideMissionChapter clone() { + return new GuideMissionChapter().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GuideMissionChapter parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GuideMissionChapter(), data).checkInitialized(); + } + + public static GuideMissionChapter parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GuideMissionChapter(), input).checkInitialized(); + } + + public static GuideMissionChapter parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GuideMissionChapter(), input).checkInitialized(); + } + + /** + * @return factory for creating GuideMissionChapter messages + */ + public static MessageFactory getFactory() { + return GuideMissionChapterFactory.INSTANCE; + } + + private enum GuideMissionChapterFactory implements MessageFactory { + INSTANCE; + + @Override + public GuideMissionChapter create() { + return GuideMissionChapter.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unlockTime = FieldName.forField("UnlockTime"); + + static final FieldName id = FieldName.forField("Id"); + + static final FieldName done = FieldName.forField("Done"); + + static final FieldName quests = FieldName.forField("Quests"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/GuideMissionQuestRewardReceive.java b/src/generated/main/emu/nebula/proto/GuideMissionQuestRewardReceive.java new file mode 100644 index 0000000..8fd80ca --- /dev/null +++ b/src/generated/main/emu/nebula/proto/GuideMissionQuestRewardReceive.java @@ -0,0 +1,467 @@ +// 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 GuideMissionQuestRewardReceive { + /** + * Protobuf type {@code GuideMissionQuestRewardReceiveReq} + */ + public static final class GuideMissionQuestRewardReceiveReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 QuestId = 1; + */ + private int questId; + + /** + * optional bool Group = 2; + */ + private boolean group; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private GuideMissionQuestRewardReceiveReq() { + } + + /** + * @return a new empty instance of {@code GuideMissionQuestRewardReceiveReq} + */ + public static GuideMissionQuestRewardReceiveReq newInstance() { + return new GuideMissionQuestRewardReceiveReq(); + } + + /** + * optional uint32 QuestId = 1; + * @return whether the questId field is set + */ + public boolean hasQuestId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 QuestId = 1; + * @return this + */ + public GuideMissionQuestRewardReceiveReq clearQuestId() { + bitField0_ &= ~0x00000001; + questId = 0; + return this; + } + + /** + * optional uint32 QuestId = 1; + * @return the questId + */ + public int getQuestId() { + return questId; + } + + /** + * optional uint32 QuestId = 1; + * @param value the questId to set + * @return this + */ + public GuideMissionQuestRewardReceiveReq setQuestId(final int value) { + bitField0_ |= 0x00000001; + questId = value; + return this; + } + + /** + * optional bool Group = 2; + * @return whether the group field is set + */ + public boolean hasGroup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Group = 2; + * @return this + */ + public GuideMissionQuestRewardReceiveReq clearGroup() { + bitField0_ &= ~0x00000002; + group = false; + return this; + } + + /** + * optional bool Group = 2; + * @return the group + */ + public boolean getGroup() { + return group; + } + + /** + * optional bool Group = 2; + * @param value the group to set + * @return this + */ + public GuideMissionQuestRewardReceiveReq setGroup(final boolean value) { + bitField0_ |= 0x00000002; + group = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public GuideMissionQuestRewardReceiveReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public GuideMissionQuestRewardReceiveReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GuideMissionQuestRewardReceiveReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GuideMissionQuestRewardReceiveReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public GuideMissionQuestRewardReceiveReq copyFrom( + final GuideMissionQuestRewardReceiveReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + questId = other.questId; + group = other.group; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public GuideMissionQuestRewardReceiveReq mergeFrom( + final GuideMissionQuestRewardReceiveReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQuestId()) { + setQuestId(other.questId); + } + if (other.hasGroup()) { + setGroup(other.group); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public GuideMissionQuestRewardReceiveReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + questId = 0; + group = false; + nextPackage.clear(); + return this; + } + + @Override + public GuideMissionQuestRewardReceiveReq 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 GuideMissionQuestRewardReceiveReq)) { + return false; + } + GuideMissionQuestRewardReceiveReq other = (GuideMissionQuestRewardReceiveReq) o; + return bitField0_ == other.bitField0_ + && (!hasQuestId() || questId == other.questId) + && (!hasGroup() || group == other.group) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(questId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(group); + } + 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(questId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GuideMissionQuestRewardReceiveReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // questId + questId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // group + group = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.questId, questId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.group, group); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public GuideMissionQuestRewardReceiveReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1975187075: { + if (input.isAtField(FieldNames.questId)) { + if (!input.trySkipNullValue()) { + questId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 69076575: { + if (input.isAtField(FieldNames.group)) { + if (!input.trySkipNullValue()) { + group = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GuideMissionQuestRewardReceiveReq clone() { + return new GuideMissionQuestRewardReceiveReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GuideMissionQuestRewardReceiveReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GuideMissionQuestRewardReceiveReq(), data).checkInitialized(); + } + + public static GuideMissionQuestRewardReceiveReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GuideMissionQuestRewardReceiveReq(), input).checkInitialized(); + } + + public static GuideMissionQuestRewardReceiveReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GuideMissionQuestRewardReceiveReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GuideMissionQuestRewardReceiveReq messages + */ + public static MessageFactory getFactory() { + return GuideMissionQuestRewardReceiveReqFactory.INSTANCE; + } + + private enum GuideMissionQuestRewardReceiveReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GuideMissionQuestRewardReceiveReq create() { + return GuideMissionQuestRewardReceiveReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName questId = FieldName.forField("QuestId"); + + static final FieldName group = FieldName.forField("Group"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/InfinityTowerApply.java b/src/generated/main/emu/nebula/proto/InfinityTowerApply.java index a4416b6..8cfceee 100644 --- a/src/generated/main/emu/nebula/proto/InfinityTowerApply.java +++ b/src/generated/main/emu/nebula/proto/InfinityTowerApply.java @@ -19,16 +19,16 @@ public final class InfinityTowerApply { public static final class InfinityTowerApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 LevelId = 1; */ private int levelId; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -44,49 +44,12 @@ public final class InfinityTowerApply { return new InfinityTowerApplyReq(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public InfinityTowerApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public InfinityTowerApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 LevelId = 1; * @return whether the levelId field is set */ public boolean hasLevelId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -94,7 +57,7 @@ public final class InfinityTowerApply { * @return this */ public InfinityTowerApplyReq clearLevelId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; levelId = 0; return this; } @@ -113,11 +76,68 @@ public final class InfinityTowerApply { * @return this */ public InfinityTowerApplyReq setLevelId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; levelId = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public InfinityTowerApplyReq clearBuild() { + bitField0_ &= ~0x00000002; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000002; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public InfinityTowerApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000002; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -202,8 +222,8 @@ public final class InfinityTowerApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; levelId = other.levelId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -215,12 +235,12 @@ public final class InfinityTowerApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasLevelId()) { setLevelId(other.levelId); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -234,8 +254,8 @@ public final class InfinityTowerApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; levelId = 0; + build.clear(); nextPackage.clear(); return this; } @@ -247,6 +267,7 @@ public final class InfinityTowerApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -261,21 +282,21 @@ public final class InfinityTowerApply { } InfinityTowerApplyReq other = (InfinityTowerApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasLevelId() || levelId == other.levelId) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(levelId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -286,10 +307,10 @@ public final class InfinityTowerApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -304,18 +325,18 @@ public final class InfinityTowerApply { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // levelId levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { @@ -349,10 +370,10 @@ public final class InfinityTowerApply { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeUInt32(FieldNames.levelId, levelId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.levelId, levelId); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -367,10 +388,10 @@ public final class InfinityTowerApply { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + levelId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -378,10 +399,10 @@ public final class InfinityTowerApply { } break; } - case 1734437791: { - if (input.isAtField(FieldNames.levelId)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - levelId = input.readUInt32(); + input.readMessage(build); bitField0_ |= 0x00000002; } } else { @@ -453,10 +474,10 @@ public final class InfinityTowerApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName levelId = FieldName.forField("LevelId"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/MallActivityListOuterClass.java b/src/generated/main/emu/nebula/proto/MallActivityListOuterClass.java new file mode 100644 index 0000000..5c9158b --- /dev/null +++ b/src/generated/main/emu/nebula/proto/MallActivityListOuterClass.java @@ -0,0 +1,895 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class MallActivityListOuterClass { + /** + * Protobuf type {@code MallActivityInfo} + */ + public static final class MallActivityInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool Purchased = 2; + */ + private boolean purchased; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string Id = 1; + */ + private final Utf8String id = Utf8String.newEmptyInstance(); + + private MallActivityInfo() { + } + + /** + * @return a new empty instance of {@code MallActivityInfo} + */ + public static MallActivityInfo newInstance() { + return new MallActivityInfo(); + } + + /** + * optional bool Purchased = 2; + * @return whether the purchased field is set + */ + public boolean hasPurchased() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool Purchased = 2; + * @return this + */ + public MallActivityInfo clearPurchased() { + bitField0_ &= ~0x00000001; + purchased = false; + return this; + } + + /** + * optional bool Purchased = 2; + * @return the purchased + */ + public boolean getPurchased() { + return purchased; + } + + /** + * optional bool Purchased = 2; + * @param value the purchased to set + * @return this + */ + public MallActivityInfo setPurchased(final boolean value) { + bitField0_ |= 0x00000001; + purchased = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MallActivityInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MallActivityInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MallActivityInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MallActivityInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string Id = 1; + * @return this + */ + public MallActivityInfo clearId() { + bitField0_ &= ~0x00000004; + id.clear(); + return this; + } + + /** + * optional string Id = 1; + * @return the id + */ + public String getId() { + return id.getString(); + } + + /** + * optional string Id = 1; + * @return internal {@code Utf8String} representation of id for reading + */ + public Utf8String getIdBytes() { + return this.id; + } + + /** + * optional string Id = 1; + * @return internal {@code Utf8String} representation of id for modifications + */ + public Utf8String getMutableIdBytes() { + bitField0_ |= 0x00000004; + return this.id; + } + + /** + * optional string Id = 1; + * @param value the id to set + * @return this + */ + public MallActivityInfo setId(final CharSequence value) { + bitField0_ |= 0x00000004; + id.copyFrom(value); + return this; + } + + /** + * optional string Id = 1; + * @param value the id to set + * @return this + */ + public MallActivityInfo setId(final Utf8String value) { + bitField0_ |= 0x00000004; + id.copyFrom(value); + return this; + } + + @Override + public MallActivityInfo copyFrom(final MallActivityInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + purchased = other.purchased; + nextPackage.copyFrom(other.nextPackage); + id.copyFrom(other.id); + } + return this; + } + + @Override + public MallActivityInfo mergeFrom(final MallActivityInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPurchased()) { + setPurchased(other.purchased); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasId()) { + getMutableIdBytes().copyFrom(other.id); + } + return this; + } + + @Override + public MallActivityInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + purchased = false; + nextPackage.clear(); + id.clear(); + return this; + } + + @Override + public MallActivityInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + id.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MallActivityInfo)) { + return false; + } + MallActivityInfo other = (MallActivityInfo) o; + return bitField0_ == other.bitField0_ + && (!hasPurchased() || purchased == other.purchased) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasId() || id.equals(other.id)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(purchased); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MallActivityInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // purchased + purchased = input.readBool(); + 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: { + // id + input.readString(id); + 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.writeBool(FieldNames.purchased, purchased); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.id, id); + } + output.endObject(); + } + + @Override + public MallActivityInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 212450147: { + if (input.isAtField(FieldNames.purchased)) { + if (!input.trySkipNullValue()) { + purchased = input.readBool(); + 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 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + input.readString(id); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MallActivityInfo clone() { + return new MallActivityInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MallActivityInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MallActivityInfo(), data).checkInitialized(); + } + + public static MallActivityInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MallActivityInfo(), input).checkInitialized(); + } + + public static MallActivityInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MallActivityInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MallActivityInfo messages + */ + public static MessageFactory getFactory() { + return MallActivityInfoFactory.INSTANCE; + } + + private enum MallActivityInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MallActivityInfo create() { + return MallActivityInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName purchased = FieldName.forField("Purchased"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName id = FieldName.forField("Id"); + } + } + + /** + * Protobuf type {@code MallActivityList} + */ + public static final class MallActivityList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .MallActivityInfo List = 1; + */ + private final RepeatedMessage list = RepeatedMessage.newEmptyInstance(MallActivityInfo.getFactory()); + + private MallActivityList() { + } + + /** + * @return a new empty instance of {@code MallActivityList} + */ + public static MallActivityList newInstance() { + return new MallActivityList(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MallActivityList clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MallActivityList addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MallActivityList addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MallActivityList setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .MallActivityInfo List = 1; + * @return whether the list field is set + */ + public boolean hasList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .MallActivityInfo List = 1; + * @return this + */ + public MallActivityList clearList() { + bitField0_ &= ~0x00000002; + list.clear(); + return this; + } + + /** + * repeated .MallActivityInfo List = 1; + * + * 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 #getMutableList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getList() { + return list; + } + + /** + * repeated .MallActivityInfo List = 1; + * + * 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 getMutableList() { + bitField0_ |= 0x00000002; + return list; + } + + /** + * repeated .MallActivityInfo List = 1; + * @param value the list to add + * @return this + */ + public MallActivityList addList(final MallActivityInfo value) { + bitField0_ |= 0x00000002; + list.add(value); + return this; + } + + /** + * repeated .MallActivityInfo List = 1; + * @param values the list to add + * @return this + */ + public MallActivityList addAllList(final MallActivityInfo... values) { + bitField0_ |= 0x00000002; + list.addAll(values); + return this; + } + + @Override + public MallActivityList copyFrom(final MallActivityList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + list.copyFrom(other.list); + } + return this; + } + + @Override + public MallActivityList mergeFrom(final MallActivityList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasList()) { + getMutableList().addAll(other.list); + } + return this; + } + + @Override + public MallActivityList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + list.clear(); + return this; + } + + @Override + public MallActivityList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + list.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MallActivityList)) { + return false; + } + MallActivityList other = (MallActivityList) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasList() || list.equals(other.list)); + } + + @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 < list.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(list.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * list.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(list); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MallActivityList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // list + tag = input.readRepeatedMessage(list, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.list, list); + } + output.endObject(); + } + + @Override + public MallActivityList 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 2368702: { + if (input.isAtField(FieldNames.list)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(list); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MallActivityList clone() { + return new MallActivityList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MallActivityList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MallActivityList(), data).checkInitialized(); + } + + public static MallActivityList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MallActivityList(), input).checkInitialized(); + } + + public static MallActivityList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MallActivityList(), input).checkInitialized(); + } + + /** + * @return factory for creating MallActivityList messages + */ + public static MessageFactory getFactory() { + return MallActivityListFactory.INSTANCE; + } + + private enum MallActivityListFactory implements MessageFactory { + INSTANCE; + + @Override + public MallActivityList create() { + return MallActivityList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName list = FieldName.forField("List"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/MallActivityOrder.java b/src/generated/main/emu/nebula/proto/MallActivityOrder.java new file mode 100644 index 0000000..525a40f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/MallActivityOrder.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class MallActivityOrder { +} diff --git a/src/generated/main/emu/nebula/proto/Notify.java b/src/generated/main/emu/nebula/proto/Notify.java index 95a9dd0..1b288bf 100644 --- a/src/generated/main/emu/nebula/proto/Notify.java +++ b/src/generated/main/emu/nebula/proto/Notify.java @@ -8527,6 +8527,11 @@ public final class Notify { */ private int useTimes; + /** + * optional uint32 ReturneeTimes = 3; + */ + private int returneeTimes; + /** * optional bytes NextPackage = 2047; */ @@ -8616,12 +8621,49 @@ public final class Notify { return this; } + /** + * optional uint32 ReturneeTimes = 3; + * @return whether the returneeTimes field is set + */ + public boolean hasReturneeTimes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ReturneeTimes = 3; + * @return this + */ + public ActivityDoubleRewardTimesNotify clearReturneeTimes() { + bitField0_ &= ~0x00000004; + returneeTimes = 0; + return this; + } + + /** + * optional uint32 ReturneeTimes = 3; + * @return the returneeTimes + */ + public int getReturneeTimes() { + return returneeTimes; + } + + /** + * optional uint32 ReturneeTimes = 3; + * @param value the returneeTimes to set + * @return this + */ + public ActivityDoubleRewardTimesNotify setReturneeTimes(final int value) { + bitField0_ |= 0x00000004; + returneeTimes = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -8629,7 +8671,7 @@ public final class Notify { * @return this */ public ActivityDoubleRewardTimesNotify clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -8658,7 +8700,7 @@ public final class Notify { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -8668,7 +8710,7 @@ public final class Notify { * @return this */ public ActivityDoubleRewardTimesNotify addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -8679,7 +8721,7 @@ public final class Notify { * @return this */ public ActivityDoubleRewardTimesNotify addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -8690,7 +8732,7 @@ public final class Notify { * @return this */ public ActivityDoubleRewardTimesNotify setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -8702,6 +8744,7 @@ public final class Notify { bitField0_ = other.bitField0_; activityId = other.activityId; useTimes = other.useTimes; + returneeTimes = other.returneeTimes; nextPackage.copyFrom(other.nextPackage); } return this; @@ -8719,6 +8762,9 @@ public final class Notify { if (other.hasUseTimes()) { setUseTimes(other.useTimes); } + if (other.hasReturneeTimes()) { + setReturneeTimes(other.returneeTimes); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -8734,6 +8780,7 @@ public final class Notify { bitField0_ = 0; activityId = 0; useTimes = 0; + returneeTimes = 0; nextPackage.clear(); return this; } @@ -8761,6 +8808,7 @@ public final class Notify { return bitField0_ == other.bitField0_ && (!hasActivityId() || activityId == other.activityId) && (!hasUseTimes() || useTimes == other.useTimes) + && (!hasReturneeTimes() || returneeTimes == other.returneeTimes) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -8775,6 +8823,10 @@ public final class Notify { output.writeUInt32NoTag(useTimes); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(returneeTimes); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -8790,6 +8842,9 @@ public final class Notify { size += 1 + ProtoSink.computeUInt32SizeNoTag(useTimes); } if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(returneeTimes); + } + if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -8816,6 +8871,15 @@ public final class Notify { useTimes = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // returneeTimes + returneeTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -8823,7 +8887,7 @@ public final class Notify { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -8853,6 +8917,9 @@ public final class Notify { output.writeUInt32(FieldNames.useTimes, useTimes); } if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.returneeTimes, returneeTimes); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -8887,11 +8954,22 @@ public final class Notify { } break; } + case -981816522: { + if (input.isAtField(FieldNames.returneeTimes)) { + if (!input.trySkipNullValue()) { + returneeTimes = 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(); @@ -8957,6 +9035,8 @@ public final class Notify { static final FieldName useTimes = FieldName.forField("UseTimes"); + static final FieldName returneeTimes = FieldName.forField("ReturneeTimes"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/NotifyGm.java b/src/generated/main/emu/nebula/proto/NotifyGm.java index d826ba0..a6d5c29 100644 --- a/src/generated/main/emu/nebula/proto/NotifyGm.java +++ b/src/generated/main/emu/nebula/proto/NotifyGm.java @@ -12361,4 +12361,814 @@ public final class NotifyGm { static final FieldName levels = FieldName.forField("levels"); } } + + /** + * Protobuf type {@code GmClearAllActivityMathParkourLevelsNotify} + */ + public static final class GmClearAllActivityMathParkourLevelsNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityMathParkourLevel levels = 1; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(Public.ActivityMathParkourLevel.getFactory()); + + private GmClearAllActivityMathParkourLevelsNotify() { + } + + /** + * @return a new empty instance of {@code GmClearAllActivityMathParkourLevelsNotify} + */ + public static GmClearAllActivityMathParkourLevelsNotify newInstance() { + return new GmClearAllActivityMathParkourLevelsNotify(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityMathParkourLevel levels = 1; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ActivityMathParkourLevel levels = 1; + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify clearLevels() { + bitField0_ &= ~0x00000002; + levels.clear(); + return this; + } + + /** + * repeated .ActivityMathParkourLevel levels = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableLevels()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLevels() { + return levels; + } + + /** + * repeated .ActivityMathParkourLevel levels = 1; + * + * 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 getMutableLevels() { + bitField0_ |= 0x00000002; + return levels; + } + + /** + * repeated .ActivityMathParkourLevel levels = 1; + * @param value the levels to add + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify addLevels( + final Public.ActivityMathParkourLevel value) { + bitField0_ |= 0x00000002; + levels.add(value); + return this; + } + + /** + * repeated .ActivityMathParkourLevel levels = 1; + * @param values the levels to add + * @return this + */ + public GmClearAllActivityMathParkourLevelsNotify addAllLevels( + final Public.ActivityMathParkourLevel... values) { + bitField0_ |= 0x00000002; + levels.addAll(values); + return this; + } + + @Override + public GmClearAllActivityMathParkourLevelsNotify copyFrom( + final GmClearAllActivityMathParkourLevelsNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + levels.copyFrom(other.levels); + } + return this; + } + + @Override + public GmClearAllActivityMathParkourLevelsNotify mergeFrom( + final GmClearAllActivityMathParkourLevelsNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLevels()) { + getMutableLevels().addAll(other.levels); + } + return this; + } + + @Override + public GmClearAllActivityMathParkourLevelsNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clear(); + return this; + } + + @Override + public GmClearAllActivityMathParkourLevelsNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GmClearAllActivityMathParkourLevelsNotify)) { + return false; + } + GmClearAllActivityMathParkourLevelsNotify other = (GmClearAllActivityMathParkourLevelsNotify) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLevels() || levels.equals(other.levels)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < levels.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(levels.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * levels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(levels); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GmClearAllActivityMathParkourLevelsNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // levels + tag = input.readRepeatedMessage(levels, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.levels, levels); + } + output.endObject(); + } + + @Override + public GmClearAllActivityMathParkourLevelsNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1106127505: { + if (input.isAtField(FieldNames.levels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(levels); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GmClearAllActivityMathParkourLevelsNotify clone() { + return new GmClearAllActivityMathParkourLevelsNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GmClearAllActivityMathParkourLevelsNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GmClearAllActivityMathParkourLevelsNotify(), data).checkInitialized(); + } + + public static GmClearAllActivityMathParkourLevelsNotify parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new GmClearAllActivityMathParkourLevelsNotify(), input).checkInitialized(); + } + + public static GmClearAllActivityMathParkourLevelsNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GmClearAllActivityMathParkourLevelsNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating GmClearAllActivityMathParkourLevelsNotify messages + */ + public static MessageFactory getFactory() { + return GmClearAllActivityMathParkourLevelsNotifyFactory.INSTANCE; + } + + private enum GmClearAllActivityMathParkourLevelsNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public GmClearAllActivityMathParkourLevelsNotify create() { + return GmClearAllActivityMathParkourLevelsNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName levels = FieldName.forField("levels"); + } + } + + /** + * Protobuf type {@code GmHandbookCompleteNotify} + */ + public static final class GmHandbookCompleteNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .HandbookInfo Handbook = 1; + */ + private final RepeatedMessage handbook = RepeatedMessage.newEmptyInstance(Public.HandbookInfo.getFactory()); + + private GmHandbookCompleteNotify() { + } + + /** + * @return a new empty instance of {@code GmHandbookCompleteNotify} + */ + public static GmHandbookCompleteNotify newInstance() { + return new GmHandbookCompleteNotify(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public GmHandbookCompleteNotify clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public GmHandbookCompleteNotify addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GmHandbookCompleteNotify addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GmHandbookCompleteNotify setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .HandbookInfo Handbook = 1; + * @return whether the handbook field is set + */ + public boolean hasHandbook() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .HandbookInfo Handbook = 1; + * @return this + */ + public GmHandbookCompleteNotify clearHandbook() { + bitField0_ &= ~0x00000002; + handbook.clear(); + return this; + } + + /** + * repeated .HandbookInfo Handbook = 1; + * + * 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 #getMutableHandbook()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getHandbook() { + return handbook; + } + + /** + * repeated .HandbookInfo Handbook = 1; + * + * 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 getMutableHandbook() { + bitField0_ |= 0x00000002; + return handbook; + } + + /** + * repeated .HandbookInfo Handbook = 1; + * @param value the handbook to add + * @return this + */ + public GmHandbookCompleteNotify addHandbook(final Public.HandbookInfo value) { + bitField0_ |= 0x00000002; + handbook.add(value); + return this; + } + + /** + * repeated .HandbookInfo Handbook = 1; + * @param values the handbook to add + * @return this + */ + public GmHandbookCompleteNotify addAllHandbook(final Public.HandbookInfo... values) { + bitField0_ |= 0x00000002; + handbook.addAll(values); + return this; + } + + @Override + public GmHandbookCompleteNotify copyFrom(final GmHandbookCompleteNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + handbook.copyFrom(other.handbook); + } + return this; + } + + @Override + public GmHandbookCompleteNotify mergeFrom(final GmHandbookCompleteNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasHandbook()) { + getMutableHandbook().addAll(other.handbook); + } + return this; + } + + @Override + public GmHandbookCompleteNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + handbook.clear(); + return this; + } + + @Override + public GmHandbookCompleteNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + handbook.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GmHandbookCompleteNotify)) { + return false; + } + GmHandbookCompleteNotify other = (GmHandbookCompleteNotify) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasHandbook() || handbook.equals(other.handbook)); + } + + @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 < handbook.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(handbook.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GmHandbookCompleteNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // handbook + tag = input.readRepeatedMessage(handbook, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.handbook, handbook); + } + output.endObject(); + } + + @Override + public GmHandbookCompleteNotify 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 66424824: { + if (input.isAtField(FieldNames.handbook)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(handbook); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GmHandbookCompleteNotify clone() { + return new GmHandbookCompleteNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GmHandbookCompleteNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GmHandbookCompleteNotify(), data).checkInitialized(); + } + + public static GmHandbookCompleteNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GmHandbookCompleteNotify(), input).checkInitialized(); + } + + public static GmHandbookCompleteNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GmHandbookCompleteNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating GmHandbookCompleteNotify messages + */ + public static MessageFactory getFactory() { + return GmHandbookCompleteNotifyFactory.INSTANCE; + } + + private enum GmHandbookCompleteNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public GmHandbookCompleteNotify create() { + return GmHandbookCompleteNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName handbook = FieldName.forField("Handbook"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PlayerData.java b/src/generated/main/emu/nebula/proto/PlayerData.java index f47105a..3dbec13 100644 --- a/src/generated/main/emu/nebula/proto/PlayerData.java +++ b/src/generated/main/emu/nebula/proto/PlayerData.java @@ -133,6 +133,16 @@ public final class PlayerData { */ private final Public.VampireSurvivorRecordInfo vampireSurvivorRecord = Public.VampireSurvivorRecordInfo.newInstance(); + /** + * optional .DormHot Dorm = 42; + */ + private final PublicDorm.DormHot dorm = PublicDorm.DormHot.newInstance(); + + /** + * optional .ActivityReturneeInfo ActivityReturnee = 115; + */ + private final ActivityReturneeInfo activityReturnee = ActivityReturneeInfo.newInstance(); + /** * optional .LastRead LastRead = 117; */ @@ -1312,12 +1322,126 @@ public final class PlayerData { return this; } + /** + * optional .DormHot Dorm = 42; + * @return whether the dorm field is set + */ + public boolean hasDorm() { + return (bitField0_ & 0x00400000) != 0; + } + + /** + * optional .DormHot Dorm = 42; + * @return this + */ + public PlayerInfo clearDorm() { + bitField0_ &= ~0x00400000; + dorm.clear(); + return this; + } + + /** + * optional .DormHot Dorm = 42; + * + * 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 #getMutableDorm()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicDorm.DormHot getDorm() { + return dorm; + } + + /** + * optional .DormHot Dorm = 42; + * + * 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 PublicDorm.DormHot getMutableDorm() { + bitField0_ |= 0x00400000; + return dorm; + } + + /** + * optional .DormHot Dorm = 42; + * @param value the dorm to set + * @return this + */ + public PlayerInfo setDorm(final PublicDorm.DormHot value) { + bitField0_ |= 0x00400000; + dorm.copyFrom(value); + return this; + } + + /** + * optional .ActivityReturneeInfo ActivityReturnee = 115; + * @return whether the activityReturnee field is set + */ + public boolean hasActivityReturnee() { + return (bitField0_ & 0x00800000) != 0; + } + + /** + * optional .ActivityReturneeInfo ActivityReturnee = 115; + * @return this + */ + public PlayerInfo clearActivityReturnee() { + bitField0_ &= ~0x00800000; + activityReturnee.clear(); + return this; + } + + /** + * optional .ActivityReturneeInfo ActivityReturnee = 115; + * + * 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 #getMutableActivityReturnee()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ActivityReturneeInfo getActivityReturnee() { + return activityReturnee; + } + + /** + * optional .ActivityReturneeInfo ActivityReturnee = 115; + * + * 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 ActivityReturneeInfo getMutableActivityReturnee() { + bitField0_ |= 0x00800000; + return activityReturnee; + } + + /** + * optional .ActivityReturneeInfo ActivityReturnee = 115; + * @param value the activityReturnee to set + * @return this + */ + public PlayerInfo setActivityReturnee(final ActivityReturneeInfo value) { + bitField0_ |= 0x00800000; + activityReturnee.copyFrom(value); + return this; + } + /** * optional .LastRead LastRead = 117; * @return whether the lastRead field is set */ public boolean hasLastRead() { - return (bitField0_ & 0x00400000) != 0; + return (bitField0_ & 0x01000000) != 0; } /** @@ -1325,7 +1449,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearLastRead() { - bitField0_ &= ~0x00400000; + bitField0_ &= ~0x01000000; lastRead.clear(); return this; } @@ -1354,7 +1478,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.LastRead getMutableLastRead() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return lastRead; } @@ -1364,7 +1488,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setLastRead(final Public.LastRead value) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; lastRead.copyFrom(value); return this; } @@ -1374,7 +1498,7 @@ public final class PlayerData { * @return whether the huntPermit field is set */ public boolean hasHuntPermit() { - return (bitField0_ & 0x00800000) != 0; + return (bitField0_ & 0x02000000) != 0; } /** @@ -1382,7 +1506,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHuntPermit() { - bitField0_ &= ~0x00800000; + bitField0_ &= ~0x02000000; huntPermit.clear(); return this; } @@ -1411,7 +1535,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.TraceHuntItemInfo getMutableHuntPermit() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; return huntPermit; } @@ -1421,7 +1545,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setHuntPermit(final Public.TraceHuntItemInfo value) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; huntPermit.copyFrom(value); return this; } @@ -1431,7 +1555,7 @@ public final class PlayerData { * @return whether the traceRequest field is set */ public boolean hasTraceRequest() { - return (bitField0_ & 0x01000000) != 0; + return (bitField0_ & 0x04000000) != 0; } /** @@ -1439,7 +1563,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTraceRequest() { - bitField0_ &= ~0x01000000; + bitField0_ &= ~0x04000000; traceRequest.clear(); return this; } @@ -1468,7 +1592,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public Public.TraceHuntItemInfo getMutableTraceRequest() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; return traceRequest; } @@ -1478,7 +1602,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setTraceRequest(final Public.TraceHuntItemInfo value) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; traceRequest.copyFrom(value); return this; } @@ -1488,7 +1612,7 @@ public final class PlayerData { * @return whether the achievements field is set */ public boolean hasAchievements() { - return (bitField0_ & 0x02000000) != 0; + return (bitField0_ & 0x08000000) != 0; } /** @@ -1496,7 +1620,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAchievements() { - bitField0_ &= ~0x02000000; + bitField0_ &= ~0x08000000; achievements.clear(); return this; } @@ -1525,7 +1649,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableAchievements() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; return achievements; } @@ -1535,7 +1659,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAchievements(final byte value) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; achievements.add(value); return this; } @@ -1546,7 +1670,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAchievements(final byte... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; achievements.addAll(values); return this; } @@ -1557,7 +1681,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setAchievements(final byte... values) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; achievements.copyFrom(values); return this; } @@ -1567,7 +1691,7 @@ public final class PlayerData { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x04000000) != 0; + return (bitField0_ & 0x10000000) != 0; } /** @@ -1575,7 +1699,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearNextPackage() { - bitField0_ &= ~0x04000000; + bitField0_ &= ~0x10000000; nextPackage.clear(); return this; } @@ -1604,7 +1728,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; return nextPackage; } @@ -1614,7 +1738,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addNextPackage(final byte value) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; nextPackage.add(value); return this; } @@ -1625,7 +1749,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; nextPackage.addAll(values); return this; } @@ -1636,7 +1760,7 @@ public final class PlayerData { * @return this */ public PlayerInfo setNextPackage(final byte... values) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; nextPackage.copyFrom(values); return this; } @@ -1646,7 +1770,7 @@ public final class PlayerData { * @return whether the rglPassedIds field is set */ public boolean hasRglPassedIds() { - return (bitField0_ & 0x08000000) != 0; + return (bitField0_ & 0x20000000) != 0; } /** @@ -1654,7 +1778,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRglPassedIds() { - bitField0_ &= ~0x08000000; + bitField0_ &= ~0x20000000; rglPassedIds.clear(); return this; } @@ -1683,7 +1807,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableRglPassedIds() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; return rglPassedIds; } @@ -1693,7 +1817,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRglPassedIds(final int value) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; rglPassedIds.add(value); return this; } @@ -1704,7 +1828,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRglPassedIds(final int... values) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; rglPassedIds.addAll(values); return this; } @@ -1714,7 +1838,7 @@ public final class PlayerData { * @return whether the board field is set */ public boolean hasBoard() { - return (bitField0_ & 0x10000000) != 0; + return (bitField0_ & 0x40000000) != 0; } /** @@ -1722,7 +1846,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearBoard() { - bitField0_ &= ~0x10000000; + bitField0_ &= ~0x40000000; board.clear(); return this; } @@ -1751,7 +1875,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableBoard() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; return board; } @@ -1761,7 +1885,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addBoard(final int value) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; board.add(value); return this; } @@ -1772,7 +1896,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllBoard(final int... values) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; board.addAll(values); return this; } @@ -1782,7 +1906,7 @@ public final class PlayerData { * @return whether the datingCharIds field is set */ public boolean hasDatingCharIds() { - return (bitField0_ & 0x20000000) != 0; + return (bitField0_ & 0x80000000) != 0; } /** @@ -1790,7 +1914,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDatingCharIds() { - bitField0_ &= ~0x20000000; + bitField0_ &= ~0x80000000; datingCharIds.clear(); return this; } @@ -1819,7 +1943,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDatingCharIds() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; return datingCharIds; } @@ -1829,7 +1953,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDatingCharIds(final int value) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; datingCharIds.add(value); return this; } @@ -1840,7 +1964,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDatingCharIds(final int... values) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; datingCharIds.addAll(values); return this; } @@ -1850,7 +1974,7 @@ public final class PlayerData { * @return whether the dailyActiveIds field is set */ public boolean hasDailyActiveIds() { - return (bitField0_ & 0x40000000) != 0; + return (bitField1_ & 0x00000001) != 0; } /** @@ -1858,7 +1982,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyActiveIds() { - bitField0_ &= ~0x40000000; + bitField1_ &= ~0x00000001; dailyActiveIds.clear(); return this; } @@ -1887,7 +2011,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableDailyActiveIds() { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; return dailyActiveIds; } @@ -1897,7 +2021,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyActiveIds(final int value) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; dailyActiveIds.add(value); return this; } @@ -1908,7 +2032,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyActiveIds(final int... values) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; dailyActiveIds.addAll(values); return this; } @@ -1918,7 +2042,7 @@ public final class PlayerData { * @return whether the weeklyActiveIds field is set */ public boolean hasWeeklyActiveIds() { - return (bitField0_ & 0x80000000) != 0; + return (bitField1_ & 0x00000002) != 0; } /** @@ -1926,7 +2050,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeeklyActiveIds() { - bitField0_ &= ~0x80000000; + bitField1_ &= ~0x00000002; weeklyActiveIds.clear(); return this; } @@ -1955,7 +2079,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableWeeklyActiveIds() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; return weeklyActiveIds; } @@ -1965,7 +2089,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeeklyActiveIds(final int value) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; weeklyActiveIds.add(value); return this; } @@ -1976,7 +2100,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeeklyActiveIds(final int... values) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; weeklyActiveIds.addAll(values); return this; } @@ -1986,7 +2110,7 @@ public final class PlayerData { * @return whether the honorList field is set */ public boolean hasHonorList() { - return (bitField1_ & 0x00000001) != 0; + return (bitField1_ & 0x00000004) != 0; } /** @@ -1994,7 +2118,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonorList() { - bitField1_ &= ~0x00000001; + bitField1_ &= ~0x00000004; honorList.clear(); return this; } @@ -2023,7 +2147,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedInt getMutableHonorList() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; return honorList; } @@ -2033,7 +2157,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonorList(final int value) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; honorList.add(value); return this; } @@ -2044,7 +2168,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonorList(final int... values) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; honorList.addAll(values); return this; } @@ -2054,7 +2178,7 @@ public final class PlayerData { * @return whether the res field is set */ public boolean hasRes() { - return (bitField1_ & 0x00000002) != 0; + return (bitField1_ & 0x00000008) != 0; } /** @@ -2062,7 +2186,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRes() { - bitField1_ &= ~0x00000002; + bitField1_ &= ~0x00000008; res.clear(); return this; } @@ -2091,7 +2215,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRes() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; return res; } @@ -2101,7 +2225,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRes(final Public.Res value) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; res.add(value); return this; } @@ -2112,7 +2236,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRes(final Public.Res... values) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; res.addAll(values); return this; } @@ -2122,7 +2246,7 @@ public final class PlayerData { * @return whether the items field is set */ public boolean hasItems() { - return (bitField1_ & 0x00000004) != 0; + return (bitField1_ & 0x00000010) != 0; } /** @@ -2130,7 +2254,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearItems() { - bitField1_ &= ~0x00000004; + bitField1_ &= ~0x00000010; items.clear(); return this; } @@ -2159,7 +2283,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableItems() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; return items; } @@ -2169,7 +2293,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addItems(final Public.Item value) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; items.add(value); return this; } @@ -2180,7 +2304,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllItems(final Public.Item... values) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; items.addAll(values); return this; } @@ -2190,7 +2314,7 @@ public final class PlayerData { * @return whether the chars field is set */ public boolean hasChars() { - return (bitField1_ & 0x00000008) != 0; + return (bitField1_ & 0x00000020) != 0; } /** @@ -2198,7 +2322,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearChars() { - bitField1_ &= ~0x00000008; + bitField1_ &= ~0x00000020; chars.clear(); return this; } @@ -2227,7 +2351,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableChars() { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; return chars; } @@ -2237,7 +2361,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addChars(final Public.Char value) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; chars.add(value); return this; } @@ -2248,7 +2372,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllChars(final Public.Char... values) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; chars.addAll(values); return this; } @@ -2258,7 +2382,7 @@ public final class PlayerData { * @return whether the equipments field is set */ public boolean hasEquipments() { - return (bitField1_ & 0x00000010) != 0; + return (bitField1_ & 0x00000040) != 0; } /** @@ -2266,7 +2390,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipments() { - bitField1_ &= ~0x00000010; + bitField1_ &= ~0x00000040; equipments.clear(); return this; } @@ -2295,7 +2419,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipments() { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; return equipments; } @@ -2305,7 +2429,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipments(final Public.EquipmentInfo value) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; equipments.add(value); return this; } @@ -2316,7 +2440,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipments(final Public.EquipmentInfo... values) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; equipments.addAll(values); return this; } @@ -2326,7 +2450,7 @@ public final class PlayerData { * @return whether the regionBossLevels field is set */ public boolean hasRegionBossLevels() { - return (bitField1_ & 0x00000020) != 0; + return (bitField1_ & 0x00000080) != 0; } /** @@ -2334,7 +2458,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearRegionBossLevels() { - bitField1_ &= ~0x00000020; + bitField1_ &= ~0x00000080; regionBossLevels.clear(); return this; } @@ -2363,7 +2487,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableRegionBossLevels() { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; return regionBossLevels; } @@ -2373,7 +2497,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addRegionBossLevels(final Public.RegionBossLevel value) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; regionBossLevels.add(value); return this; } @@ -2384,7 +2508,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllRegionBossLevels(final Public.RegionBossLevel... values) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; regionBossLevels.addAll(values); return this; } @@ -2394,7 +2518,7 @@ public final class PlayerData { * @return whether the handbook field is set */ public boolean hasHandbook() { - return (bitField1_ & 0x00000040) != 0; + return (bitField1_ & 0x00000100) != 0; } /** @@ -2402,7 +2526,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHandbook() { - bitField1_ &= ~0x00000040; + bitField1_ &= ~0x00000100; handbook.clear(); return this; } @@ -2431,7 +2555,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHandbook() { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; return handbook; } @@ -2441,7 +2565,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHandbook(final Public.HandbookInfo value) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; handbook.add(value); return this; } @@ -2452,7 +2576,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHandbook(final Public.HandbookInfo... values) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; handbook.addAll(values); return this; } @@ -2462,7 +2586,7 @@ public final class PlayerData { * @return whether the titles field is set */ public boolean hasTitles() { - return (bitField1_ & 0x00000080) != 0; + return (bitField1_ & 0x00000200) != 0; } /** @@ -2470,7 +2594,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTitles() { - bitField1_ &= ~0x00000080; + bitField1_ &= ~0x00000200; titles.clear(); return this; } @@ -2499,7 +2623,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTitles() { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; return titles; } @@ -2509,7 +2633,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTitles(final Public.Title value) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; titles.add(value); return this; } @@ -2520,7 +2644,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTitles(final Public.Title... values) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; titles.addAll(values); return this; } @@ -2530,7 +2654,7 @@ public final class PlayerData { * @return whether the dailyInstances field is set */ public boolean hasDailyInstances() { - return (bitField1_ & 0x00000100) != 0; + return (bitField1_ & 0x00000400) != 0; } /** @@ -2538,7 +2662,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDailyInstances() { - bitField1_ &= ~0x00000100; + bitField1_ &= ~0x00000400; dailyInstances.clear(); return this; } @@ -2567,7 +2691,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDailyInstances() { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; return dailyInstances; } @@ -2577,7 +2701,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDailyInstances(final Public.DailyInstance value) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; dailyInstances.add(value); return this; } @@ -2588,7 +2712,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDailyInstances(final Public.DailyInstance... values) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; dailyInstances.addAll(values); return this; } @@ -2598,7 +2722,7 @@ public final class PlayerData { * @return whether the dictionaries field is set */ public boolean hasDictionaries() { - return (bitField1_ & 0x00000200) != 0; + return (bitField1_ & 0x00000800) != 0; } /** @@ -2606,7 +2730,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDictionaries() { - bitField1_ &= ~0x00000200; + bitField1_ &= ~0x00000800; dictionaries.clear(); return this; } @@ -2635,7 +2759,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDictionaries() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; return dictionaries; } @@ -2645,7 +2769,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDictionaries(final DictionaryTab value) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; dictionaries.add(value); return this; } @@ -2656,7 +2780,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDictionaries(final DictionaryTab... values) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; dictionaries.addAll(values); return this; } @@ -2666,7 +2790,7 @@ public final class PlayerData { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField1_ & 0x00000400) != 0; + return (bitField1_ & 0x00001000) != 0; } /** @@ -2674,7 +2798,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearActivities() { - bitField1_ &= ~0x00000400; + bitField1_ &= ~0x00001000; activities.clear(); return this; } @@ -2703,7 +2827,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; return activities; } @@ -2713,7 +2837,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addActivities(final Public.Activity value) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; activities.add(value); return this; } @@ -2724,7 +2848,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllActivities(final Public.Activity... values) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; activities.addAll(values); return this; } @@ -2734,7 +2858,7 @@ public final class PlayerData { * @return whether the discs field is set */ public boolean hasDiscs() { - return (bitField1_ & 0x00000800) != 0; + return (bitField1_ & 0x00002000) != 0; } /** @@ -2742,7 +2866,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearDiscs() { - bitField1_ &= ~0x00000800; + bitField1_ &= ~0x00002000; discs.clear(); return this; } @@ -2771,7 +2895,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableDiscs() { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; return discs; } @@ -2781,7 +2905,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addDiscs(final Public.Disc value) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; discs.add(value); return this; } @@ -2792,7 +2916,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllDiscs(final Public.Disc... values) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; discs.addAll(values); return this; } @@ -2802,7 +2926,7 @@ public final class PlayerData { * @return whether the equipmentInstances field is set */ public boolean hasEquipmentInstances() { - return (bitField1_ & 0x00001000) != 0; + return (bitField1_ & 0x00004000) != 0; } /** @@ -2810,7 +2934,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearEquipmentInstances() { - bitField1_ &= ~0x00001000; + bitField1_ &= ~0x00004000; equipmentInstances.clear(); return this; } @@ -2839,7 +2963,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipmentInstances() { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; return equipmentInstances; } @@ -2849,7 +2973,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addEquipmentInstances(final Public.EquipmentInstance value) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; equipmentInstances.add(value); return this; } @@ -2860,7 +2984,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllEquipmentInstances(final Public.EquipmentInstance... values) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; equipmentInstances.addAll(values); return this; } @@ -2870,7 +2994,7 @@ public final class PlayerData { * @return whether the skillInstances field is set */ public boolean hasSkillInstances() { - return (bitField1_ & 0x00002000) != 0; + return (bitField1_ & 0x00008000) != 0; } /** @@ -2878,7 +3002,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearSkillInstances() { - bitField1_ &= ~0x00002000; + bitField1_ &= ~0x00008000; skillInstances.clear(); return this; } @@ -2907,7 +3031,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableSkillInstances() { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; return skillInstances; } @@ -2917,7 +3041,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addSkillInstances(final Public.SkillInstance value) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; skillInstances.add(value); return this; } @@ -2928,7 +3052,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllSkillInstances(final Public.SkillInstance... values) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; skillInstances.addAll(values); return this; } @@ -2938,7 +3062,7 @@ public final class PlayerData { * @return whether the weekBossLevels field is set */ public boolean hasWeekBossLevels() { - return (bitField1_ & 0x00004000) != 0; + return (bitField1_ & 0x00010000) != 0; } /** @@ -2946,7 +3070,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearWeekBossLevels() { - bitField1_ &= ~0x00004000; + bitField1_ &= ~0x00010000; weekBossLevels.clear(); return this; } @@ -2975,7 +3099,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableWeekBossLevels() { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; return weekBossLevels; } @@ -2985,7 +3109,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addWeekBossLevels(final Public.WeekBossLevel value) { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; weekBossLevels.add(value); return this; } @@ -2996,7 +3120,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllWeekBossLevels(final Public.WeekBossLevel... values) { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; weekBossLevels.addAll(values); return this; } @@ -3006,7 +3130,7 @@ public final class PlayerData { * @return whether the charGemInstances field is set */ public boolean hasCharGemInstances() { - return (bitField1_ & 0x00008000) != 0; + return (bitField1_ & 0x00020000) != 0; } /** @@ -3014,7 +3138,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearCharGemInstances() { - bitField1_ &= ~0x00008000; + bitField1_ &= ~0x00020000; charGemInstances.clear(); return this; } @@ -3043,7 +3167,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharGemInstances() { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; return charGemInstances; } @@ -3053,7 +3177,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addCharGemInstances(final Public.CharGemInstance value) { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; charGemInstances.add(value); return this; } @@ -3064,7 +3188,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllCharGemInstances(final Public.CharGemInstance... values) { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; charGemInstances.addAll(values); return this; } @@ -3074,7 +3198,7 @@ public final class PlayerData { * @return whether the tutorialLevels field is set */ public boolean hasTutorialLevels() { - return (bitField1_ & 0x00010000) != 0; + return (bitField1_ & 0x00040000) != 0; } /** @@ -3082,7 +3206,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearTutorialLevels() { - bitField1_ &= ~0x00010000; + bitField1_ &= ~0x00040000; tutorialLevels.clear(); return this; } @@ -3111,7 +3235,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableTutorialLevels() { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; return tutorialLevels; } @@ -3121,7 +3245,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addTutorialLevels(final Public.TutorialLevel value) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; tutorialLevels.add(value); return this; } @@ -3132,7 +3256,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllTutorialLevels(final Public.TutorialLevel... values) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; tutorialLevels.addAll(values); return this; } @@ -3142,7 +3266,7 @@ public final class PlayerData { * @return whether the assists field is set */ public boolean hasAssists() { - return (bitField1_ & 0x00020000) != 0; + return (bitField1_ & 0x00080000) != 0; } /** @@ -3150,7 +3274,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearAssists() { - bitField1_ &= ~0x00020000; + bitField1_ &= ~0x00080000; assists.clear(); return this; } @@ -3179,7 +3303,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableAssists() { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; return assists; } @@ -3189,7 +3313,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAssists(final AssistInfo value) { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; assists.add(value); return this; } @@ -3200,7 +3324,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllAssists(final AssistInfo... values) { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; assists.addAll(values); return this; } @@ -3210,7 +3334,7 @@ public final class PlayerData { * @return whether the activityHonors field is set */ public boolean hasActivityHonors() { - return (bitField1_ & 0x00040000) != 0; + return (bitField1_ & 0x00100000) != 0; } /** @@ -3218,7 +3342,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearActivityHonors() { - bitField1_ &= ~0x00040000; + bitField1_ &= ~0x00100000; activityHonors.clear(); return this; } @@ -3247,7 +3371,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivityHonors() { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; return activityHonors; } @@ -3257,7 +3381,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addActivityHonors(final Public.ActivityHonor value) { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; activityHonors.add(value); return this; } @@ -3268,7 +3392,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllActivityHonors(final Public.ActivityHonor... values) { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; activityHonors.addAll(values); return this; } @@ -3278,7 +3402,7 @@ public final class PlayerData { * @return whether the personalityModels field is set */ public boolean hasPersonalityModels() { - return (bitField1_ & 0x00080000) != 0; + return (bitField1_ & 0x00200000) != 0; } /** @@ -3286,7 +3410,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearPersonalityModels() { - bitField1_ &= ~0x00080000; + bitField1_ &= ~0x00200000; personalityModels.clear(); return this; } @@ -3315,7 +3439,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutablePersonalityModels() { - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; return personalityModels; } @@ -3325,7 +3449,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addPersonalityModels(final Public.ActivityPersonalityModel value) { - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; personalityModels.add(value); return this; } @@ -3336,7 +3460,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllPersonalityModels(final Public.ActivityPersonalityModel... values) { - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; personalityModels.addAll(values); return this; } @@ -3346,7 +3470,7 @@ public final class PlayerData { * @return whether the honors field is set */ public boolean hasHonors() { - return (bitField1_ & 0x00100000) != 0; + return (bitField1_ & 0x00400000) != 0; } /** @@ -3354,7 +3478,7 @@ public final class PlayerData { * @return this */ public PlayerInfo clearHonors() { - bitField1_ &= ~0x00100000; + bitField1_ &= ~0x00400000; honors.clear(); return this; } @@ -3383,7 +3507,7 @@ public final class PlayerData { * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; return honors; } @@ -3393,7 +3517,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addHonors(final Public.HonorInfo value) { - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; honors.add(value); return this; } @@ -3404,7 +3528,7 @@ public final class PlayerData { * @return this */ public PlayerInfo addAllHonors(final Public.HonorInfo... values) { - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; honors.addAll(values); return this; } @@ -3436,6 +3560,8 @@ public final class PlayerData { phone.copyFrom(other.phone); story.copyFrom(other.story); vampireSurvivorRecord.copyFrom(other.vampireSurvivorRecord); + dorm.copyFrom(other.dorm); + activityReturnee.copyFrom(other.activityReturnee); lastRead.copyFrom(other.lastRead); huntPermit.copyFrom(other.huntPermit); traceRequest.copyFrom(other.traceRequest); @@ -3444,11 +3570,11 @@ public final class PlayerData { rglPassedIds.copyFrom(other.rglPassedIds); board.copyFrom(other.board); datingCharIds.copyFrom(other.datingCharIds); - dailyActiveIds.copyFrom(other.dailyActiveIds); - weeklyActiveIds.copyFrom(other.weeklyActiveIds); } if ((bitField1_ | other.bitField1_) != 0) { bitField1_ = other.bitField1_; + dailyActiveIds.copyFrom(other.dailyActiveIds); + weeklyActiveIds.copyFrom(other.weeklyActiveIds); honorList.copyFrom(other.honorList); res.copyFrom(other.res); items.copyFrom(other.items); @@ -3546,6 +3672,12 @@ public final class PlayerData { if (other.hasVampireSurvivorRecord()) { getMutableVampireSurvivorRecord().mergeFrom(other.vampireSurvivorRecord); } + if (other.hasDorm()) { + getMutableDorm().mergeFrom(other.dorm); + } + if (other.hasActivityReturnee()) { + getMutableActivityReturnee().mergeFrom(other.activityReturnee); + } if (other.hasLastRead()) { getMutableLastRead().mergeFrom(other.lastRead); } @@ -3672,6 +3804,8 @@ public final class PlayerData { phone.clear(); story.clear(); vampireSurvivorRecord.clear(); + dorm.clear(); + activityReturnee.clear(); lastRead.clear(); huntPermit.clear(); traceRequest.clear(); @@ -3724,6 +3858,8 @@ public final class PlayerData { phone.clearQuick(); story.clearQuick(); vampireSurvivorRecord.clearQuick(); + dorm.clearQuick(); + activityReturnee.clearQuick(); lastRead.clearQuick(); huntPermit.clearQuick(); traceRequest.clearQuick(); @@ -3791,6 +3927,8 @@ public final class PlayerData { && (!hasPhone() || phone.equals(other.phone)) && (!hasStory() || story.equals(other.story)) && (!hasVampireSurvivorRecord() || vampireSurvivorRecord.equals(other.vampireSurvivorRecord)) + && (!hasDorm() || dorm.equals(other.dorm)) + && (!hasActivityReturnee() || activityReturnee.equals(other.activityReturnee)) && (!hasLastRead() || lastRead.equals(other.lastRead)) && (!hasHuntPermit() || huntPermit.equals(other.huntPermit)) && (!hasTraceRequest() || traceRequest.equals(other.traceRequest)) @@ -3915,176 +4053,184 @@ public final class PlayerData { output.writeMessageNoTag(vampireSurvivorRecord); } if ((bitField0_ & 0x00400000) != 0) { + output.writeRawLittleEndian16((short) 722); + output.writeMessageNoTag(dorm); + } + if ((bitField0_ & 0x00800000) != 0) { + output.writeRawLittleEndian16((short) 1946); + output.writeMessageNoTag(activityReturnee); + } + if ((bitField0_ & 0x01000000) != 0) { output.writeRawLittleEndian16((short) 1962); output.writeMessageNoTag(lastRead); } - if ((bitField0_ & 0x00800000) != 0) { + if ((bitField0_ & 0x02000000) != 0) { output.writeRawLittleEndian16((short) 1970); output.writeMessageNoTag(huntPermit); } - if ((bitField0_ & 0x01000000) != 0) { + if ((bitField0_ & 0x04000000) != 0) { output.writeRawLittleEndian16((short) 1978); output.writeMessageNoTag(traceRequest); } - if ((bitField0_ & 0x02000000) != 0) { + if ((bitField0_ & 0x08000000) != 0) { output.writeRawLittleEndian16((short) 402); output.writeBytesNoTag(achievements); } - if ((bitField0_ & 0x04000000) != 0) { + if ((bitField0_ & 0x10000000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x08000000) != 0) { + if ((bitField0_ & 0x20000000) != 0) { for (int i = 0; i < rglPassedIds.length(); i++) { output.writeRawByte((byte) 80); output.writeUInt32NoTag(rglPassedIds.array()[i]); } } - if ((bitField0_ & 0x10000000) != 0) { + if ((bitField0_ & 0x40000000) != 0) { for (int i = 0; i < board.length(); i++) { output.writeRawLittleEndian16((short) 384); output.writeUInt32NoTag(board.array()[i]); } } - if ((bitField0_ & 0x20000000) != 0) { + if ((bitField0_ & 0x80000000) != 0) { for (int i = 0; i < datingCharIds.length(); i++) { output.writeRawLittleEndian16((short) 392); output.writeUInt32NoTag(datingCharIds.array()[i]); } } - if ((bitField0_ & 0x40000000) != 0) { + if ((bitField1_ & 0x00000001) != 0) { for (int i = 0; i < dailyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 640); output.writeUInt32NoTag(dailyActiveIds.array()[i]); } } - if ((bitField0_ & 0x80000000) != 0) { + if ((bitField1_ & 0x00000002) != 0) { for (int i = 0; i < weeklyActiveIds.length(); i++) { output.writeRawLittleEndian16((short) 688); output.writeUInt32NoTag(weeklyActiveIds.array()[i]); } } - if ((bitField1_ & 0x00000001) != 0) { + if ((bitField1_ & 0x00000004) != 0) { for (int i = 0; i < honorList.length(); i++) { output.writeRawLittleEndian16((short) 2008); output.writeUInt32NoTag(honorList.array()[i]); } } - if ((bitField1_ & 0x00000002) != 0) { + if ((bitField1_ & 0x00000008) != 0) { for (int i = 0; i < res.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(res.get(i)); } } - if ((bitField1_ & 0x00000004) != 0) { + if ((bitField1_ & 0x00000010) != 0) { for (int i = 0; i < items.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(items.get(i)); } } - if ((bitField1_ & 0x00000008) != 0) { + if ((bitField1_ & 0x00000020) != 0) { for (int i = 0; i < chars.length(); i++) { output.writeRawByte((byte) 34); output.writeMessageNoTag(chars.get(i)); } } - if ((bitField1_ & 0x00000010) != 0) { + if ((bitField1_ & 0x00000040) != 0) { for (int i = 0; i < equipments.length(); i++) { output.writeRawByte((byte) 90); output.writeMessageNoTag(equipments.get(i)); } } - if ((bitField1_ & 0x00000020) != 0) { + if ((bitField1_ & 0x00000080) != 0) { for (int i = 0; i < regionBossLevels.length(); i++) { output.writeRawByte((byte) 98); output.writeMessageNoTag(regionBossLevels.get(i)); } } - if ((bitField1_ & 0x00000040) != 0) { + if ((bitField1_ & 0x00000100) != 0) { for (int i = 0; i < handbook.length(); i++) { output.writeRawLittleEndian16((short) 410); output.writeMessageNoTag(handbook.get(i)); } } - if ((bitField1_ & 0x00000080) != 0) { + if ((bitField1_ & 0x00000200) != 0) { for (int i = 0; i < titles.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(titles.get(i)); } } - if ((bitField1_ & 0x00000100) != 0) { + if ((bitField1_ & 0x00000400) != 0) { for (int i = 0; i < dailyInstances.length(); i++) { output.writeRawLittleEndian16((short) 434); output.writeMessageNoTag(dailyInstances.get(i)); } } - if ((bitField1_ & 0x00000200) != 0) { + if ((bitField1_ & 0x00000800) != 0) { for (int i = 0; i < dictionaries.length(); i++) { output.writeRawLittleEndian16((short) 442); output.writeMessageNoTag(dictionaries.get(i)); } } - if ((bitField1_ & 0x00000400) != 0) { + if ((bitField1_ & 0x00001000) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 450); output.writeMessageNoTag(activities.get(i)); } } - if ((bitField1_ & 0x00000800) != 0) { + if ((bitField1_ & 0x00002000) != 0) { for (int i = 0; i < discs.length(); i++) { output.writeRawLittleEndian16((short) 482); output.writeMessageNoTag(discs.get(i)); } } - if ((bitField1_ & 0x00001000) != 0) { + if ((bitField1_ & 0x00004000) != 0) { for (int i = 0; i < equipmentInstances.length(); i++) { output.writeRawLittleEndian16((short) 490); output.writeMessageNoTag(equipmentInstances.get(i)); } } - if ((bitField1_ & 0x00002000) != 0) { + if ((bitField1_ & 0x00008000) != 0) { for (int i = 0; i < skillInstances.length(); i++) { output.writeRawLittleEndian16((short) 658); output.writeMessageNoTag(skillInstances.get(i)); } } - if ((bitField1_ & 0x00004000) != 0) { + if ((bitField1_ & 0x00010000) != 0) { for (int i = 0; i < weekBossLevels.length(); i++) { output.writeRawLittleEndian16((short) 666); output.writeMessageNoTag(weekBossLevels.get(i)); } } - if ((bitField1_ & 0x00008000) != 0) { + if ((bitField1_ & 0x00020000) != 0) { for (int i = 0; i < charGemInstances.length(); i++) { output.writeRawLittleEndian16((short) 674); output.writeMessageNoTag(charGemInstances.get(i)); } } - if ((bitField1_ & 0x00010000) != 0) { + if ((bitField1_ & 0x00040000) != 0) { for (int i = 0; i < tutorialLevels.length(); i++) { output.writeRawLittleEndian16((short) 682); output.writeMessageNoTag(tutorialLevels.get(i)); } } - if ((bitField1_ & 0x00020000) != 0) { + if ((bitField1_ & 0x00080000) != 0) { for (int i = 0; i < assists.length(); i++) { output.writeRawLittleEndian16((short) 698); output.writeMessageNoTag(assists.get(i)); } } - if ((bitField1_ & 0x00040000) != 0) { + if ((bitField1_ & 0x00100000) != 0) { for (int i = 0; i < activityHonors.length(); i++) { output.writeRawLittleEndian16((short) 714); output.writeMessageNoTag(activityHonors.get(i)); } } - if ((bitField1_ & 0x00080000) != 0) { + if ((bitField1_ & 0x00200000) != 0) { for (int i = 0; i < personalityModels.length(); i++) { output.writeRawLittleEndian16((short) 1986); output.writeMessageNoTag(personalityModels.get(i)); } } - if ((bitField1_ & 0x00100000) != 0) { + if ((bitField1_ & 0x00400000) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawLittleEndian16((short) 2018); output.writeMessageNoTag(honors.get(i)); @@ -4162,96 +4308,102 @@ public final class PlayerData { size += 2 + ProtoSink.computeMessageSizeNoTag(vampireSurvivorRecord); } if ((bitField0_ & 0x00400000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(lastRead); + size += 2 + ProtoSink.computeMessageSizeNoTag(dorm); } if ((bitField0_ & 0x00800000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(huntPermit); + size += 2 + ProtoSink.computeMessageSizeNoTag(activityReturnee); } if ((bitField0_ & 0x01000000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(traceRequest); + size += 2 + ProtoSink.computeMessageSizeNoTag(lastRead); } if ((bitField0_ & 0x02000000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); + size += 2 + ProtoSink.computeMessageSizeNoTag(huntPermit); } if ((bitField0_ & 0x04000000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeMessageSizeNoTag(traceRequest); } if ((bitField0_ & 0x08000000) != 0) { - size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); + size += 2 + ProtoSink.computeBytesSizeNoTag(achievements); } if ((bitField0_ & 0x10000000) != 0) { - size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x20000000) != 0) { - size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); + size += (1 * rglPassedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rglPassedIds); } if ((bitField0_ & 0x40000000) != 0) { - size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); + size += (2 * board.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(board); } if ((bitField0_ & 0x80000000) != 0) { - size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds); + size += (2 * datingCharIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(datingCharIds); } if ((bitField1_ & 0x00000001) != 0) { - size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); + size += (2 * dailyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveIds); } if ((bitField1_ & 0x00000002) != 0) { - size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); + size += (2 * weeklyActiveIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(weeklyActiveIds); } if ((bitField1_ & 0x00000004) != 0) { - size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); + size += (2 * honorList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(honorList); } if ((bitField1_ & 0x00000008) != 0) { - size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); + size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); } if ((bitField1_ & 0x00000010) != 0) { - size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); + size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); } if ((bitField1_ & 0x00000020) != 0) { - size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); + size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); } if ((bitField1_ & 0x00000040) != 0) { - size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); + size += (1 * equipments.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipments); } if ((bitField1_ & 0x00000080) != 0) { - size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); + size += (1 * regionBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionBossLevels); } if ((bitField1_ & 0x00000100) != 0) { - size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); + size += (2 * handbook.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(handbook); } if ((bitField1_ & 0x00000200) != 0) { - size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); + size += (2 * titles.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(titles); } if ((bitField1_ & 0x00000400) != 0) { - size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); + size += (2 * dailyInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyInstances); } if ((bitField1_ & 0x00000800) != 0) { - size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); + size += (2 * dictionaries.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dictionaries); } if ((bitField1_ & 0x00001000) != 0) { - size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); + size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } if ((bitField1_ & 0x00002000) != 0) { - size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); + size += (2 * discs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(discs); } if ((bitField1_ & 0x00004000) != 0) { - size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); + size += (2 * equipmentInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentInstances); } if ((bitField1_ & 0x00008000) != 0) { - size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); + size += (2 * skillInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillInstances); } if ((bitField1_ & 0x00010000) != 0) { - size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); + size += (2 * weekBossLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(weekBossLevels); } if ((bitField1_ & 0x00020000) != 0) { - size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); + size += (2 * charGemInstances.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charGemInstances); } if ((bitField1_ & 0x00040000) != 0) { - size += (2 * activityHonors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityHonors); + size += (2 * tutorialLevels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialLevels); } if ((bitField1_ & 0x00080000) != 0) { - size += (2 * personalityModels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personalityModels); + size += (2 * assists.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assists); } if ((bitField1_ & 0x00100000) != 0) { + size += (2 * activityHonors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityHonors); + } + if ((bitField1_ & 0x00200000) != 0) { + size += (2 * personalityModels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(personalityModels); + } + if ((bitField1_ & 0x00400000) != 0) { size += (2 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } return size; @@ -4458,6 +4610,24 @@ public final class PlayerData { input.readMessage(vampireSurvivorRecord); bitField0_ |= 0x00200000; tag = input.readTag(); + if (tag != 338) { + break; + } + } + case 338: { + // dorm + input.readMessage(dorm); + bitField0_ |= 0x00400000; + tag = input.readTag(); + if (tag != 922) { + break; + } + } + case 922: { + // activityReturnee + input.readMessage(activityReturnee); + bitField0_ |= 0x00800000; + tag = input.readTag(); if (tag != 938) { break; } @@ -4465,7 +4635,7 @@ public final class PlayerData { case 938: { // lastRead input.readMessage(lastRead); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; tag = input.readTag(); if (tag != 946) { break; @@ -4474,7 +4644,7 @@ public final class PlayerData { case 946: { // huntPermit input.readMessage(huntPermit); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; tag = input.readTag(); if (tag != 954) { break; @@ -4483,7 +4653,7 @@ public final class PlayerData { case 954: { // traceRequest input.readMessage(traceRequest); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; tag = input.readTag(); if (tag != 146) { break; @@ -4492,7 +4662,7 @@ public final class PlayerData { case 146: { // achievements input.readBytes(achievements); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; tag = input.readTag(); if (tag != 16378) { break; @@ -4501,7 +4671,7 @@ public final class PlayerData { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; tag = input.readTag(); if (tag != 82) { break; @@ -4510,7 +4680,7 @@ public final class PlayerData { case 82: { // rglPassedIds [packed=true] input.readPackedUInt32(rglPassedIds, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; tag = input.readTag(); if (tag != 130) { break; @@ -4519,7 +4689,7 @@ public final class PlayerData { case 130: { // board [packed=true] input.readPackedUInt32(board, tag); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; tag = input.readTag(); if (tag != 138) { break; @@ -4528,7 +4698,7 @@ public final class PlayerData { case 138: { // datingCharIds [packed=true] input.readPackedUInt32(datingCharIds, tag); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; tag = input.readTag(); if (tag != 258) { break; @@ -4537,7 +4707,7 @@ public final class PlayerData { case 258: { // dailyActiveIds [packed=true] input.readPackedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; tag = input.readTag(); if (tag != 306) { break; @@ -4546,7 +4716,7 @@ public final class PlayerData { case 306: { // weeklyActiveIds [packed=true] input.readPackedUInt32(weeklyActiveIds, tag); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; tag = input.readTag(); if (tag != 986) { break; @@ -4555,7 +4725,7 @@ public final class PlayerData { case 986: { // honorList [packed=true] input.readPackedUInt32(honorList, tag); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; tag = input.readTag(); if (tag != 18) { break; @@ -4564,7 +4734,7 @@ public final class PlayerData { case 18: { // res tag = input.readRepeatedMessage(res, tag); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; if (tag != 26) { break; } @@ -4572,7 +4742,7 @@ public final class PlayerData { case 26: { // items tag = input.readRepeatedMessage(items, tag); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; if (tag != 34) { break; } @@ -4580,7 +4750,7 @@ public final class PlayerData { case 34: { // chars tag = input.readRepeatedMessage(chars, tag); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; if (tag != 90) { break; } @@ -4588,7 +4758,7 @@ public final class PlayerData { case 90: { // equipments tag = input.readRepeatedMessage(equipments, tag); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; if (tag != 98) { break; } @@ -4596,7 +4766,7 @@ public final class PlayerData { case 98: { // regionBossLevels tag = input.readRepeatedMessage(regionBossLevels, tag); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; if (tag != 154) { break; } @@ -4604,7 +4774,7 @@ public final class PlayerData { case 154: { // handbook tag = input.readRepeatedMessage(handbook, tag); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; if (tag != 170) { break; } @@ -4612,7 +4782,7 @@ public final class PlayerData { case 170: { // titles tag = input.readRepeatedMessage(titles, tag); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; if (tag != 178) { break; } @@ -4620,7 +4790,7 @@ public final class PlayerData { case 178: { // dailyInstances tag = input.readRepeatedMessage(dailyInstances, tag); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; if (tag != 186) { break; } @@ -4628,7 +4798,7 @@ public final class PlayerData { case 186: { // dictionaries tag = input.readRepeatedMessage(dictionaries, tag); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; if (tag != 194) { break; } @@ -4636,7 +4806,7 @@ public final class PlayerData { case 194: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; if (tag != 226) { break; } @@ -4644,7 +4814,7 @@ public final class PlayerData { case 226: { // discs tag = input.readRepeatedMessage(discs, tag); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; if (tag != 234) { break; } @@ -4652,7 +4822,7 @@ public final class PlayerData { case 234: { // equipmentInstances tag = input.readRepeatedMessage(equipmentInstances, tag); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; if (tag != 274) { break; } @@ -4660,7 +4830,7 @@ public final class PlayerData { case 274: { // skillInstances tag = input.readRepeatedMessage(skillInstances, tag); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; if (tag != 282) { break; } @@ -4668,7 +4838,7 @@ public final class PlayerData { case 282: { // weekBossLevels tag = input.readRepeatedMessage(weekBossLevels, tag); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; if (tag != 290) { break; } @@ -4676,7 +4846,7 @@ public final class PlayerData { case 290: { // charGemInstances tag = input.readRepeatedMessage(charGemInstances, tag); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; if (tag != 298) { break; } @@ -4684,7 +4854,7 @@ public final class PlayerData { case 298: { // tutorialLevels tag = input.readRepeatedMessage(tutorialLevels, tag); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; if (tag != 314) { break; } @@ -4692,7 +4862,7 @@ public final class PlayerData { case 314: { // assists tag = input.readRepeatedMessage(assists, tag); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; if (tag != 330) { break; } @@ -4700,7 +4870,7 @@ public final class PlayerData { case 330: { // activityHonors tag = input.readRepeatedMessage(activityHonors, tag); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; if (tag != 962) { break; } @@ -4708,7 +4878,7 @@ public final class PlayerData { case 962: { // personalityModels tag = input.readRepeatedMessage(personalityModels, tag); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; if (tag != 994) { break; } @@ -4716,7 +4886,7 @@ public final class PlayerData { case 994: { // honors tag = input.readRepeatedMessage(honors, tag); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; if (tag != 0) { break; } @@ -4734,37 +4904,37 @@ public final class PlayerData { case 80: { // rglPassedIds [packed=false] tag = input.readRepeatedUInt32(rglPassedIds, tag); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } case 128: { // board [packed=false] tag = input.readRepeatedUInt32(board, tag); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } case 136: { // datingCharIds [packed=false] tag = input.readRepeatedUInt32(datingCharIds, tag); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; break; } case 256: { // dailyActiveIds [packed=false] tag = input.readRepeatedUInt32(dailyActiveIds, tag); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; break; } case 304: { // weeklyActiveIds [packed=false] tag = input.readRepeatedUInt32(weeklyActiveIds, tag); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; break; } case 984: { // honorList [packed=false] tag = input.readRepeatedUInt32(honorList, tag); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; break; } } @@ -4841,96 +5011,102 @@ public final class PlayerData { output.writeMessage(FieldNames.vampireSurvivorRecord, vampireSurvivorRecord); } if ((bitField0_ & 0x00400000) != 0) { - output.writeMessage(FieldNames.lastRead, lastRead); + output.writeMessage(FieldNames.dorm, dorm); } if ((bitField0_ & 0x00800000) != 0) { - output.writeMessage(FieldNames.huntPermit, huntPermit); + output.writeMessage(FieldNames.activityReturnee, activityReturnee); } if ((bitField0_ & 0x01000000) != 0) { - output.writeMessage(FieldNames.traceRequest, traceRequest); + output.writeMessage(FieldNames.lastRead, lastRead); } if ((bitField0_ & 0x02000000) != 0) { - output.writeBytes(FieldNames.achievements, achievements); + output.writeMessage(FieldNames.huntPermit, huntPermit); } if ((bitField0_ & 0x04000000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.traceRequest, traceRequest); } if ((bitField0_ & 0x08000000) != 0) { - output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); + output.writeBytes(FieldNames.achievements, achievements); } if ((bitField0_ & 0x10000000) != 0) { - output.writeRepeatedUInt32(FieldNames.board, board); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x20000000) != 0) { - output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); + output.writeRepeatedUInt32(FieldNames.rglPassedIds, rglPassedIds); } if ((bitField0_ & 0x40000000) != 0) { - output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); + output.writeRepeatedUInt32(FieldNames.board, board); } if ((bitField0_ & 0x80000000) != 0) { - output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds); + output.writeRepeatedUInt32(FieldNames.datingCharIds, datingCharIds); } if ((bitField1_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.honorList, honorList); + output.writeRepeatedUInt32(FieldNames.dailyActiveIds, dailyActiveIds); } if ((bitField1_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.res, res); + output.writeRepeatedUInt32(FieldNames.weeklyActiveIds, weeklyActiveIds); } if ((bitField1_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.items, items); + output.writeRepeatedUInt32(FieldNames.honorList, honorList); } if ((bitField1_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.chars, chars); + output.writeRepeatedMessage(FieldNames.res, res); } if ((bitField1_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.equipments, equipments); + output.writeRepeatedMessage(FieldNames.items, items); } if ((bitField1_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); + output.writeRepeatedMessage(FieldNames.chars, chars); } if ((bitField1_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.handbook, handbook); + output.writeRepeatedMessage(FieldNames.equipments, equipments); } if ((bitField1_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.titles, titles); + output.writeRepeatedMessage(FieldNames.regionBossLevels, regionBossLevels); } if ((bitField1_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); + output.writeRepeatedMessage(FieldNames.handbook, handbook); } if ((bitField1_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); + output.writeRepeatedMessage(FieldNames.titles, titles); } if ((bitField1_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.activities, activities); + output.writeRepeatedMessage(FieldNames.dailyInstances, dailyInstances); } if ((bitField1_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.discs, discs); + output.writeRepeatedMessage(FieldNames.dictionaries, dictionaries); } if ((bitField1_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); + output.writeRepeatedMessage(FieldNames.activities, activities); } if ((bitField1_ & 0x00002000) != 0) { - output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); + output.writeRepeatedMessage(FieldNames.discs, discs); } if ((bitField1_ & 0x00004000) != 0) { - output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); + output.writeRepeatedMessage(FieldNames.equipmentInstances, equipmentInstances); } if ((bitField1_ & 0x00008000) != 0) { - output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); + output.writeRepeatedMessage(FieldNames.skillInstances, skillInstances); } if ((bitField1_ & 0x00010000) != 0) { - output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); + output.writeRepeatedMessage(FieldNames.weekBossLevels, weekBossLevels); } if ((bitField1_ & 0x00020000) != 0) { - output.writeRepeatedMessage(FieldNames.assists, assists); + output.writeRepeatedMessage(FieldNames.charGemInstances, charGemInstances); } if ((bitField1_ & 0x00040000) != 0) { - output.writeRepeatedMessage(FieldNames.activityHonors, activityHonors); + output.writeRepeatedMessage(FieldNames.tutorialLevels, tutorialLevels); } if ((bitField1_ & 0x00080000) != 0) { - output.writeRepeatedMessage(FieldNames.personalityModels, personalityModels); + output.writeRepeatedMessage(FieldNames.assists, assists); } if ((bitField1_ & 0x00100000) != 0) { + output.writeRepeatedMessage(FieldNames.activityHonors, activityHonors); + } + if ((bitField1_ & 0x00200000) != 0) { + output.writeRepeatedMessage(FieldNames.personalityModels, personalityModels); + } + if ((bitField1_ & 0x00400000) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } output.endObject(); @@ -5185,11 +5361,33 @@ public final class PlayerData { } break; } + case 2136102: { + if (input.isAtField(FieldNames.dorm)) { + if (!input.trySkipNullValue()) { + input.readMessage(dorm); + bitField0_ |= 0x00400000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2030183905: { + if (input.isAtField(FieldNames.activityReturnee)) { + if (!input.trySkipNullValue()) { + input.readMessage(activityReturnee); + bitField0_ |= 0x00800000; + } + } else { + input.skipUnknownField(); + } + break; + } case -1394833044: { if (input.isAtField(FieldNames.lastRead)) { if (!input.trySkipNullValue()) { input.readMessage(lastRead); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; } } else { input.skipUnknownField(); @@ -5200,7 +5398,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.huntPermit)) { if (!input.trySkipNullValue()) { input.readMessage(huntPermit); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; } } else { input.skipUnknownField(); @@ -5211,7 +5409,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.traceRequest)) { if (!input.trySkipNullValue()) { input.readMessage(traceRequest); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; } } else { input.skipUnknownField(); @@ -5222,7 +5420,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.achievements)) { if (!input.trySkipNullValue()) { input.readBytes(achievements); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; } } else { input.skipUnknownField(); @@ -5233,7 +5431,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; } } else { input.skipUnknownField(); @@ -5244,7 +5442,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.rglPassedIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(rglPassedIds); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; } } else { input.skipUnknownField(); @@ -5255,7 +5453,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.board)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(board); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; } } else { input.skipUnknownField(); @@ -5266,7 +5464,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.datingCharIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(datingCharIds); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; } } else { input.skipUnknownField(); @@ -5277,7 +5475,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(dailyActiveIds); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -5288,7 +5486,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weeklyActiveIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(weeklyActiveIds); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -5299,7 +5497,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honorList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(honorList); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -5310,7 +5508,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.res)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(res); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -5321,7 +5519,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.items)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(items); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -5332,7 +5530,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.chars)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chars); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -5343,7 +5541,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipments)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipments); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -5354,7 +5552,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.regionBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(regionBossLevels); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -5365,7 +5563,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.handbook)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(handbook); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -5376,7 +5574,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.titles)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(titles); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -5387,7 +5585,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dailyInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dailyInstances); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -5398,7 +5596,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.dictionaries)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(dictionaries); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -5409,7 +5607,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -5420,7 +5618,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.discs)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(discs); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -5431,7 +5629,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.equipmentInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentInstances); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -5442,7 +5640,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.skillInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(skillInstances); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -5453,7 +5651,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.weekBossLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(weekBossLevels); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -5464,7 +5662,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.charGemInstances)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charGemInstances); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -5475,7 +5673,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.tutorialLevels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(tutorialLevels); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; } } else { input.skipUnknownField(); @@ -5486,7 +5684,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.assists)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(assists); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -5497,7 +5695,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.activityHonors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activityHonors); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; } } else { input.skipUnknownField(); @@ -5508,7 +5706,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.personalityModels)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(personalityModels); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; } } else { input.skipUnknownField(); @@ -5519,7 +5717,7 @@ public final class PlayerData { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; } } else { input.skipUnknownField(); @@ -5622,6 +5820,10 @@ public final class PlayerData { static final FieldName vampireSurvivorRecord = FieldName.forField("VampireSurvivorRecord"); + static final FieldName dorm = FieldName.forField("Dorm"); + + static final FieldName activityReturnee = FieldName.forField("ActivityReturnee"); + static final FieldName lastRead = FieldName.forField("LastRead"); static final FieldName huntPermit = FieldName.forField("HuntPermit"); @@ -8503,4 +8705,692 @@ public final class PlayerData { static final FieldName nextPackage = FieldName.forField("NextPackage"); } } + + /** + * Protobuf type {@code ActivityReturneeInfo} + */ + public static final class ActivityReturneeInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 OpenTime = 2; + */ + private long openTime; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 DoubleCount = 3; + */ + private int doubleCount; + + /** + * optional bool ReunionReward = 4; + */ + private boolean reunionReward; + + /** + * optional bool Avg = 5; + */ + private boolean avg; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeInfo() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeInfo} + */ + public static ActivityReturneeInfo newInstance() { + return new ActivityReturneeInfo(); + } + + /** + * optional int64 OpenTime = 2; + * @return whether the openTime field is set + */ + public boolean hasOpenTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 OpenTime = 2; + * @return this + */ + public ActivityReturneeInfo clearOpenTime() { + bitField0_ &= ~0x00000001; + openTime = 0L; + return this; + } + + /** + * optional int64 OpenTime = 2; + * @return the openTime + */ + public long getOpenTime() { + return openTime; + } + + /** + * optional int64 OpenTime = 2; + * @param value the openTime to set + * @return this + */ + public ActivityReturneeInfo setOpenTime(final long value) { + bitField0_ |= 0x00000001; + openTime = value; + return this; + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public ActivityReturneeInfo clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public ActivityReturneeInfo setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional uint32 DoubleCount = 3; + * @return whether the doubleCount field is set + */ + public boolean hasDoubleCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 DoubleCount = 3; + * @return this + */ + public ActivityReturneeInfo clearDoubleCount() { + bitField0_ &= ~0x00000004; + doubleCount = 0; + return this; + } + + /** + * optional uint32 DoubleCount = 3; + * @return the doubleCount + */ + public int getDoubleCount() { + return doubleCount; + } + + /** + * optional uint32 DoubleCount = 3; + * @param value the doubleCount to set + * @return this + */ + public ActivityReturneeInfo setDoubleCount(final int value) { + bitField0_ |= 0x00000004; + doubleCount = value; + return this; + } + + /** + * optional bool ReunionReward = 4; + * @return whether the reunionReward field is set + */ + public boolean hasReunionReward() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool ReunionReward = 4; + * @return this + */ + public ActivityReturneeInfo clearReunionReward() { + bitField0_ &= ~0x00000008; + reunionReward = false; + return this; + } + + /** + * optional bool ReunionReward = 4; + * @return the reunionReward + */ + public boolean getReunionReward() { + return reunionReward; + } + + /** + * optional bool ReunionReward = 4; + * @param value the reunionReward to set + * @return this + */ + public ActivityReturneeInfo setReunionReward(final boolean value) { + bitField0_ |= 0x00000008; + reunionReward = value; + return this; + } + + /** + * optional bool Avg = 5; + * @return whether the avg field is set + */ + public boolean hasAvg() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool Avg = 5; + * @return this + */ + public ActivityReturneeInfo clearAvg() { + bitField0_ &= ~0x00000010; + avg = false; + return this; + } + + /** + * optional bool Avg = 5; + * @return the avg + */ + public boolean getAvg() { + return avg; + } + + /** + * optional bool Avg = 5; + * @param value the avg to set + * @return this + */ + public ActivityReturneeInfo setAvg(final boolean value) { + bitField0_ |= 0x00000010; + avg = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeInfo clearNextPackage() { + bitField0_ &= ~0x00000020; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000020; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeInfo copyFrom(final ActivityReturneeInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + openTime = other.openTime; + id = other.id; + doubleCount = other.doubleCount; + reunionReward = other.reunionReward; + avg = other.avg; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeInfo mergeFrom(final ActivityReturneeInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOpenTime()) { + setOpenTime(other.openTime); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasDoubleCount()) { + setDoubleCount(other.doubleCount); + } + if (other.hasReunionReward()) { + setReunionReward(other.reunionReward); + } + if (other.hasAvg()) { + setAvg(other.avg); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + openTime = 0L; + id = 0; + doubleCount = 0; + reunionReward = false; + avg = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeInfo 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 ActivityReturneeInfo)) { + return false; + } + ActivityReturneeInfo other = (ActivityReturneeInfo) o; + return bitField0_ == other.bitField0_ + && (!hasOpenTime() || openTime == other.openTime) + && (!hasId() || id == other.id) + && (!hasDoubleCount() || doubleCount == other.doubleCount) + && (!hasReunionReward() || reunionReward == other.reunionReward) + && (!hasAvg() || avg == other.avg) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(openTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(doubleCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(reunionReward); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(avg); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(openTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(doubleCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // openTime + openTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // doubleCount + doubleCount = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // reunionReward + reunionReward = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // avg + avg = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.openTime, openTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.doubleCount, doubleCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.reunionReward, reunionReward); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.avg, avg); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -440001449: { + if (input.isAtField(FieldNames.openTime)) { + if (!input.trySkipNullValue()) { + openTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 24135582: { + if (input.isAtField(FieldNames.doubleCount)) { + if (!input.trySkipNullValue()) { + doubleCount = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1703391573: { + if (input.isAtField(FieldNames.reunionReward)) { + if (!input.trySkipNullValue()) { + reunionReward = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 66226: { + if (input.isAtField(FieldNames.avg)) { + if (!input.trySkipNullValue()) { + avg = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeInfo clone() { + return new ActivityReturneeInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeInfo(), data).checkInitialized(); + } + + public static ActivityReturneeInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeInfo(), input).checkInitialized(); + } + + public static ActivityReturneeInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeInfo messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeInfoFactory.INSTANCE; + } + + private enum ActivityReturneeInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeInfo create() { + return ActivityReturneeInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName openTime = FieldName.forField("OpenTime"); + + static final FieldName id = FieldName.forField("Id"); + + static final FieldName doubleCount = FieldName.forField("DoubleCount"); + + static final FieldName reunionReward = FieldName.forField("ReunionReward"); + + static final FieldName avg = FieldName.forField("Avg"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/Public.java b/src/generated/main/emu/nebula/proto/Public.java index 37cc37e..d758894 100644 --- a/src/generated/main/emu/nebula/proto/Public.java +++ b/src/generated/main/emu/nebula/proto/Public.java @@ -97,7 +97,17 @@ public final class Public { /** * Assist = 14; */ - Assist("Assist", 14); + Assist("Assist", 14), + + /** + * Dorm = 15; + */ + Dorm("Dorm", 15), + + /** + * GuideMission = 16; + */ + GuideMission("GuideMission", 16); /** * UnknownQuest = 0; @@ -174,6 +184,16 @@ public final class Public { */ public static final int Assist_VALUE = 14; + /** + * Dorm = 15; + */ + public static final int Dorm_VALUE = 15; + + /** + * GuideMission = 16; + */ + public static final int GuideMission_VALUE = 16; + private final java.lang.String name; private final int number; @@ -227,7 +247,7 @@ public final class Public { enum QuestTypeConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final QuestType[] lookup = new QuestType[15]; + private static final QuestType[] lookup = new QuestType[17]; static { lookup[0] = UnknownQuest; @@ -245,6 +265,8 @@ public final class Public { lookup[12] = TowerEvent; lookup[13] = Weekly; lookup[14] = Assist; + lookup[15] = Dorm; + lookup[16] = GuideMission; } @Override @@ -258,6 +280,12 @@ public final class Public { @Override public final QuestType forName(final CharSequence value) { switch (value.length()) { + case 4: { + if (ProtoUtil.isEqual("Dorm", value)) { + return Dorm; + } + break; + } case 5: { if (ProtoUtil.isEqual("Daily", value)) { return Daily; @@ -304,6 +332,9 @@ public final class Public { if (ProtoUtil.isEqual("TravelerDuel", value)) { return TravelerDuel; } + if (ProtoUtil.isEqual("GuideMission", value)) { + return GuideMission; + } break; } case 15: { @@ -336,6 +367,357 @@ public final class Public { } } + /** + * Protobuf enum {@code ActivityReturneeType} + */ + public enum ActivityReturneeType implements ProtoEnum { + /** + * ActivityReturneeAllType = 0; + */ + ActivityReturneeAllType("ActivityReturneeAllType", 0), + + /** + * ActivityReturneeReunionType = 1; + */ + ActivityReturneeReunionType("ActivityReturneeReunionType", 1), + + /** + * ActivityReturnLoginType = 2; + */ + ActivityReturnLoginType("ActivityReturnLoginType", 2), + + /** + * ActivityReturneeQuestType = 3; + */ + ActivityReturneeQuestType("ActivityReturneeQuestType", 3), + + /** + * ActivityReturneeDoubleType = 4; + */ + ActivityReturneeDoubleType("ActivityReturneeDoubleType", 4), + + /** + * ActivityReturneeMallType = 5; + */ + ActivityReturneeMallType("ActivityReturneeMallType", 5), + + /** + * ActivityReturneeBDType = 6; + */ + ActivityReturneeBDType("ActivityReturneeBDType", 6), + + /** + * ActivityReturneeAvgType = 7; + */ + ActivityReturneeAvgType("ActivityReturneeAvgType", 7), + + /** + * ActivityReturneeQuestPointType = 8; + */ + ActivityReturneeQuestPointType("ActivityReturneeQuestPointType", 8); + + /** + * ActivityReturneeAllType = 0; + */ + public static final int ActivityReturneeAllType_VALUE = 0; + + /** + * ActivityReturneeReunionType = 1; + */ + public static final int ActivityReturneeReunionType_VALUE = 1; + + /** + * ActivityReturnLoginType = 2; + */ + public static final int ActivityReturnLoginType_VALUE = 2; + + /** + * ActivityReturneeQuestType = 3; + */ + public static final int ActivityReturneeQuestType_VALUE = 3; + + /** + * ActivityReturneeDoubleType = 4; + */ + public static final int ActivityReturneeDoubleType_VALUE = 4; + + /** + * ActivityReturneeMallType = 5; + */ + public static final int ActivityReturneeMallType_VALUE = 5; + + /** + * ActivityReturneeBDType = 6; + */ + public static final int ActivityReturneeBDType_VALUE = 6; + + /** + * ActivityReturneeAvgType = 7; + */ + public static final int ActivityReturneeAvgType_VALUE = 7; + + /** + * ActivityReturneeQuestPointType = 8; + */ + public static final int ActivityReturneeQuestPointType_VALUE = 8; + + private final java.lang.String name; + + private final int number; + + private ActivityReturneeType(java.lang.String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public java.lang.String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return ActivityReturneeTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static ActivityReturneeType forNumber(int value) { + return ActivityReturneeTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static ActivityReturneeType forNumberOr(int number, ActivityReturneeType other) { + ActivityReturneeType value = forNumber(number); + return value == null ? other : value; + } + + enum ActivityReturneeTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ActivityReturneeType[] lookup = new ActivityReturneeType[9]; + + static { + lookup[0] = ActivityReturneeAllType; + lookup[1] = ActivityReturneeReunionType; + lookup[2] = ActivityReturnLoginType; + lookup[3] = ActivityReturneeQuestType; + lookup[4] = ActivityReturneeDoubleType; + lookup[5] = ActivityReturneeMallType; + lookup[6] = ActivityReturneeBDType; + lookup[7] = ActivityReturneeAvgType; + lookup[8] = ActivityReturneeQuestPointType; + } + + @Override + public final ActivityReturneeType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ActivityReturneeType forName(final CharSequence value) { + switch (value.length()) { + case 22: { + if (ProtoUtil.isEqual("ActivityReturneeBDType", value)) { + return ActivityReturneeBDType; + } + break; + } + case 23: { + if (ProtoUtil.isEqual("ActivityReturneeAllType", value)) { + return ActivityReturneeAllType; + } + if (ProtoUtil.isEqual("ActivityReturnLoginType", value)) { + return ActivityReturnLoginType; + } + if (ProtoUtil.isEqual("ActivityReturneeAvgType", value)) { + return ActivityReturneeAvgType; + } + break; + } + case 24: { + if (ProtoUtil.isEqual("ActivityReturneeMallType", value)) { + return ActivityReturneeMallType; + } + break; + } + case 25: { + if (ProtoUtil.isEqual("ActivityReturneeQuestType", value)) { + return ActivityReturneeQuestType; + } + break; + } + case 26: { + if (ProtoUtil.isEqual("ActivityReturneeDoubleType", value)) { + return ActivityReturneeDoubleType; + } + break; + } + case 27: { + if (ProtoUtil.isEqual("ActivityReturneeReunionType", value)) { + return ActivityReturneeReunionType; + } + break; + } + case 30: { + if (ProtoUtil.isEqual("ActivityReturneeQuestPointType", value)) { + return ActivityReturneeQuestPointType; + } + break; + } + } + return null; + } + } + } + + /** + * Protobuf enum {@code BuildType} + */ + public enum BuildType implements ProtoEnum { + /** + * Default = 0; + */ + Default("Default", 0), + + /** + * Formal = 1; + */ + Formal("Formal", 1), + + /** + * Trial = 2; + */ + Trial("Trial", 2); + + /** + * Default = 0; + */ + public static final int Default_VALUE = 0; + + /** + * Formal = 1; + */ + public static final int Formal_VALUE = 1; + + /** + * Trial = 2; + */ + public static final int Trial_VALUE = 2; + + private final java.lang.String name; + + private final int number; + + private BuildType(java.lang.String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public java.lang.String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return BuildTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static BuildType forNumber(int value) { + return BuildTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static BuildType forNumberOr(int number, BuildType other) { + BuildType value = forNumber(number); + return value == null ? other : value; + } + + enum BuildTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final BuildType[] lookup = new BuildType[3]; + + static { + lookup[0] = Default; + lookup[1] = Formal; + lookup[2] = Trial; + } + + @Override + public final BuildType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final BuildType forName(final CharSequence value) { + if (value.length() == 5) { + if (ProtoUtil.isEqual("Trial", value)) { + return Trial; + } + } + if (value.length() == 6) { + if (ProtoUtil.isEqual("Formal", value)) { + return Formal; + } + } + if (value.length() == 7) { + if (ProtoUtil.isEqual("Default", value)) { + return Default; + } + } + return null; + } + } + } + /** * Protobuf type {@code Nil} */ @@ -1724,6 +2106,413 @@ public final class Public { } } + /** + * Protobuf type {@code UI32s} + */ + public static final class UI32s extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 Values = 1; + */ + private final RepeatedInt values_ = RepeatedInt.newEmptyInstance(); + + private UI32s() { + } + + /** + * @return a new empty instance of {@code UI32s} + */ + public static UI32s newInstance() { + return new UI32s(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public UI32s clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public UI32s addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public UI32s addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public UI32s setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Values = 1; + * @return whether the values_ field is set + */ + public boolean hasValues() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 Values = 1; + * @return this + */ + public UI32s clearValues() { + bitField0_ &= ~0x00000002; + values_.clear(); + return this; + } + + /** + * repeated uint32 Values = 1; + * + * 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 #getMutableValues()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getValues() { + return values_; + } + + /** + * repeated uint32 Values = 1; + * + * 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 getMutableValues() { + bitField0_ |= 0x00000002; + return values_; + } + + /** + * repeated uint32 Values = 1; + * @param value the values_ to add + * @return this + */ + public UI32s addValues(final int value) { + bitField0_ |= 0x00000002; + values_.add(value); + return this; + } + + /** + * repeated uint32 Values = 1; + * @param values the values_ to add + * @return this + */ + public UI32s addAllValues(final int... values) { + bitField0_ |= 0x00000002; + values_.addAll(values); + return this; + } + + @Override + public UI32s copyFrom(final UI32s other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + values_.copyFrom(other.values_); + } + return this; + } + + @Override + public UI32s mergeFrom(final UI32s other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasValues()) { + getMutableValues().addAll(other.values_); + } + return this; + } + + @Override + public UI32s clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + values_.clear(); + return this; + } + + @Override + public UI32s clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + values_.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UI32s)) { + return false; + } + UI32s other = (UI32s) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasValues() || values_.equals(other.values_)); + } + + @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 < values_.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(values_.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * values_.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(values_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UI32s mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // values_ [packed=true] + input.readPackedUInt32(values_, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // values_ [packed=false] + tag = input.readRepeatedUInt32(values_, tag); + bitField0_ |= 0x00000002; + 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.writeRepeatedUInt32(FieldNames.values_, values_); + } + output.endObject(); + } + + @Override + public UI32s 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 -1739945662: { + if (input.isAtField(FieldNames.values_)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(values_); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UI32s clone() { + return new UI32s().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UI32s parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UI32s(), data).checkInitialized(); + } + + public static UI32s parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UI32s(), input).checkInitialized(); + } + + public static UI32s parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UI32s(), input).checkInitialized(); + } + + /** + * @return factory for creating UI32s messages + */ + public static MessageFactory getFactory() { + return UI32sFactory.INSTANCE; + } + + private enum UI32sFactory implements MessageFactory { + INSTANCE; + + @Override + public UI32s create() { + return UI32s.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName values_ = FieldName.forField("Values"); + } + } + /** * Protobuf type {@code UI64} */ @@ -19847,6 +20636,1094 @@ public final class Public { } } + /** + * Protobuf type {@code ActivityReturneeState} + */ + public static final class ActivityReturneeState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ActivityReturneeType Type = 1; + */ + private int type; + + /** + * optional bool State = 2; + */ + private boolean state; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityReturneeState() { + } + + /** + * @return a new empty instance of {@code ActivityReturneeState} + */ + public static ActivityReturneeState newInstance() { + return new ActivityReturneeState(); + } + + /** + * optional .ActivityReturneeType Type = 1; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ActivityReturneeType Type = 1; + * @return this + */ + public ActivityReturneeState clearType() { + bitField0_ &= ~0x00000001; + type = 0; + return this; + } + + /** + * optional .ActivityReturneeType Type = 1; + * @return the type + */ + public ActivityReturneeType getType() { + return ActivityReturneeType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ActivityReturneeState#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ActivityReturneeType}. Setting an invalid value + * can cause {@link ActivityReturneeState#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ActivityReturneeState setTypeValue(final int value) { + bitField0_ |= 0x00000001; + type = value; + return this; + } + + /** + * optional .ActivityReturneeType Type = 1; + * @param value the type to set + * @return this + */ + public ActivityReturneeState setType(final ActivityReturneeType value) { + bitField0_ |= 0x00000001; + type = value.getNumber(); + return this; + } + + /** + * optional bool State = 2; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool State = 2; + * @return this + */ + public ActivityReturneeState clearState() { + bitField0_ &= ~0x00000002; + state = false; + return this; + } + + /** + * optional bool State = 2; + * @return the state + */ + public boolean getState() { + return state; + } + + /** + * optional bool State = 2; + * @param value the state to set + * @return this + */ + public ActivityReturneeState setState(final boolean value) { + bitField0_ |= 0x00000002; + state = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityReturneeState clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityReturneeState addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityReturneeState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityReturneeState setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityReturneeState copyFrom(final ActivityReturneeState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + type = other.type; + state = other.state; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeState mergeFrom(final ActivityReturneeState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasType()) { + setTypeValue(other.type); + } + if (other.hasState()) { + setState(other.state); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityReturneeState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + type = 0; + state = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityReturneeState 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 ActivityReturneeState)) { + return false; + } + ActivityReturneeState other = (ActivityReturneeState) o; + return bitField0_ == other.bitField0_ + && (!hasType() || type == other.type) + && (!hasState() || state == other.state) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(type); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(state); + } + 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.computeEnumSizeNoTag(type); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityReturneeState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // type + final int value = input.readInt32(); + if (ActivityReturneeType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // state + state = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.type, type, ActivityReturneeType.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.state, state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityReturneeState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final ActivityReturneeType value = input.readEnum(ActivityReturneeType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 80204913: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityReturneeState clone() { + return new ActivityReturneeState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityReturneeState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityReturneeState(), data).checkInitialized(); + } + + public static ActivityReturneeState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeState(), input).checkInitialized(); + } + + public static ActivityReturneeState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityReturneeState(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityReturneeState messages + */ + public static MessageFactory getFactory() { + return ActivityReturneeStateFactory.INSTANCE; + } + + private enum ActivityReturneeStateFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityReturneeState create() { + return ActivityReturneeState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName type = FieldName.forField("Type"); + + static final FieldName state = FieldName.forField("State"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierState} + */ + public static final class SoldierState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CurGradeChallengeId = 1; + */ + private int curGradeChallengeId; + + /** + * optional uint32 Stage = 2; + */ + private int stage; + + /** + * optional uint32 NodeIndex = 3; + */ + private int nodeIndex; + + /** + * optional uint32 CurSeasonId = 4; + */ + private int curSeasonId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierState() { + } + + /** + * @return a new empty instance of {@code SoldierState} + */ + public static SoldierState newInstance() { + return new SoldierState(); + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @return whether the curGradeChallengeId field is set + */ + public boolean hasCurGradeChallengeId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @return this + */ + public SoldierState clearCurGradeChallengeId() { + bitField0_ &= ~0x00000001; + curGradeChallengeId = 0; + return this; + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @return the curGradeChallengeId + */ + public int getCurGradeChallengeId() { + return curGradeChallengeId; + } + + /** + * optional uint32 CurGradeChallengeId = 1; + * @param value the curGradeChallengeId to set + * @return this + */ + public SoldierState setCurGradeChallengeId(final int value) { + bitField0_ |= 0x00000001; + curGradeChallengeId = value; + return this; + } + + /** + * optional uint32 Stage = 2; + * @return whether the stage field is set + */ + public boolean hasStage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Stage = 2; + * @return this + */ + public SoldierState clearStage() { + bitField0_ &= ~0x00000002; + stage = 0; + return this; + } + + /** + * optional uint32 Stage = 2; + * @return the stage + */ + public int getStage() { + return stage; + } + + /** + * optional uint32 Stage = 2; + * @param value the stage to set + * @return this + */ + public SoldierState setStage(final int value) { + bitField0_ |= 0x00000002; + stage = value; + return this; + } + + /** + * optional uint32 NodeIndex = 3; + * @return whether the nodeIndex field is set + */ + public boolean hasNodeIndex() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 NodeIndex = 3; + * @return this + */ + public SoldierState clearNodeIndex() { + bitField0_ &= ~0x00000004; + nodeIndex = 0; + return this; + } + + /** + * optional uint32 NodeIndex = 3; + * @return the nodeIndex + */ + public int getNodeIndex() { + return nodeIndex; + } + + /** + * optional uint32 NodeIndex = 3; + * @param value the nodeIndex to set + * @return this + */ + public SoldierState setNodeIndex(final int value) { + bitField0_ |= 0x00000004; + nodeIndex = value; + return this; + } + + /** + * optional uint32 CurSeasonId = 4; + * @return whether the curSeasonId field is set + */ + public boolean hasCurSeasonId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 CurSeasonId = 4; + * @return this + */ + public SoldierState clearCurSeasonId() { + bitField0_ &= ~0x00000008; + curSeasonId = 0; + return this; + } + + /** + * optional uint32 CurSeasonId = 4; + * @return the curSeasonId + */ + public int getCurSeasonId() { + return curSeasonId; + } + + /** + * optional uint32 CurSeasonId = 4; + * @param value the curSeasonId to set + * @return this + */ + public SoldierState setCurSeasonId(final int value) { + bitField0_ |= 0x00000008; + curSeasonId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierState clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierState addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierState setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierState copyFrom(final SoldierState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curGradeChallengeId = other.curGradeChallengeId; + stage = other.stage; + nodeIndex = other.nodeIndex; + curSeasonId = other.curSeasonId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierState mergeFrom(final SoldierState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurGradeChallengeId()) { + setCurGradeChallengeId(other.curGradeChallengeId); + } + if (other.hasStage()) { + setStage(other.stage); + } + if (other.hasNodeIndex()) { + setNodeIndex(other.nodeIndex); + } + if (other.hasCurSeasonId()) { + setCurSeasonId(other.curSeasonId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curGradeChallengeId = 0; + stage = 0; + nodeIndex = 0; + curSeasonId = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierState 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 SoldierState)) { + return false; + } + SoldierState other = (SoldierState) o; + return bitField0_ == other.bitField0_ + && (!hasCurGradeChallengeId() || curGradeChallengeId == other.curGradeChallengeId) + && (!hasStage() || stage == other.stage) + && (!hasNodeIndex() || nodeIndex == other.nodeIndex) + && (!hasCurSeasonId() || curSeasonId == other.curSeasonId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(stage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(nodeIndex); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(curSeasonId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nodeIndex); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curSeasonId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // curGradeChallengeId + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // stage + stage = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // nodeIndex + nodeIndex = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // curSeasonId + curSeasonId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.curGradeChallengeId, curGradeChallengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.stage, stage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.nodeIndex, nodeIndex); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.curSeasonId, curSeasonId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 750219975: { + if (input.isAtField(FieldNames.curGradeChallengeId)) { + if (!input.trySkipNullValue()) { + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 80204510: { + if (input.isAtField(FieldNames.stage)) { + if (!input.trySkipNullValue()) { + stage = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1845683248: { + if (input.isAtField(FieldNames.nodeIndex)) { + if (!input.trySkipNullValue()) { + nodeIndex = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -590703202: { + if (input.isAtField(FieldNames.curSeasonId)) { + if (!input.trySkipNullValue()) { + curSeasonId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierState clone() { + return new SoldierState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierState parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierState(), data).checkInitialized(); + } + + public static SoldierState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierState(), input).checkInitialized(); + } + + public static SoldierState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierState(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierState messages + */ + public static MessageFactory getFactory() { + return SoldierStateFactory.INSTANCE; + } + + private enum SoldierStateFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierState create() { + return SoldierState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curGradeChallengeId = FieldName.forField("CurGradeChallengeId"); + + static final FieldName stage = FieldName.forField("Stage"); + + static final FieldName nodeIndex = FieldName.forField("NodeIndex"); + + static final FieldName curSeasonId = FieldName.forField("CurSeasonId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code StateInfo} */ @@ -19868,6 +21745,11 @@ public final class Public { */ private int vampireSurvivorId; + /** + * optional uint32 DormStateFlag = 25; + */ + private int dormStateFlag; + /** * optional bool Friend = 3; */ @@ -19908,6 +21790,11 @@ public final class Public { */ private final MallPackageState mallPackage = MallPackageState.newInstance(); + /** + * optional .SoldierState Soldier = 12; + */ + private final SoldierState soldier = SoldierState.newInstance(); + /** * optional .AchievementState Achievement = 15; */ @@ -19938,6 +21825,11 @@ public final class Public { */ private final TraceHuntState traceHunt = TraceHuntState.newInstance(); + /** + * optional .GuideMissionState GuideMission = 26; + */ + private final GuideMissionState guideMission = GuideMissionState.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -19958,6 +21850,11 @@ public final class Public { */ private final RepeatedMessage activities = RepeatedMessage.newEmptyInstance(ActivityState.getFactory()); + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + */ + private final RepeatedMessage activityReturnees = RepeatedMessage.newEmptyInstance(ActivityReturneeState.getFactory()); + private StateInfo() { } @@ -20079,12 +21976,49 @@ public final class Public { return this; } + /** + * optional uint32 DormStateFlag = 25; + * @return whether the dormStateFlag field is set + */ + public boolean hasDormStateFlag() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 DormStateFlag = 25; + * @return this + */ + public StateInfo clearDormStateFlag() { + bitField0_ &= ~0x00000008; + dormStateFlag = 0; + return this; + } + + /** + * optional uint32 DormStateFlag = 25; + * @return the dormStateFlag + */ + public int getDormStateFlag() { + return dormStateFlag; + } + + /** + * optional uint32 DormStateFlag = 25; + * @param value the dormStateFlag to set + * @return this + */ + public StateInfo setDormStateFlag(final int value) { + bitField0_ |= 0x00000008; + dormStateFlag = value; + return this; + } + /** * optional bool Friend = 3; * @return whether the friend field is set */ public boolean hasFriend() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -20092,7 +22026,7 @@ public final class Public { * @return this */ public StateInfo clearFriend() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; friend = false; return this; } @@ -20111,7 +22045,7 @@ public final class Public { * @return this */ public StateInfo setFriend(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; friend = value; return this; } @@ -20121,7 +22055,7 @@ public final class Public { * @return whether the npcAffinityReward field is set */ public boolean hasNpcAffinityReward() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -20129,7 +22063,7 @@ public final class Public { * @return this */ public StateInfo clearNpcAffinityReward() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; npcAffinityReward = false; return this; } @@ -20148,7 +22082,7 @@ public final class Public { * @return this */ public StateInfo setNpcAffinityReward(final boolean value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; npcAffinityReward = value; return this; } @@ -20158,7 +22092,7 @@ public final class Public { * @return whether the storySet field is set */ public boolean hasStorySet() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -20166,7 +22100,7 @@ public final class Public { * @return this */ public StateInfo clearStorySet() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; storySet = false; return this; } @@ -20185,7 +22119,7 @@ public final class Public { * @return this */ public StateInfo setStorySet(final boolean value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; storySet = value; return this; } @@ -20195,7 +22129,7 @@ public final class Public { * @return whether the mail field is set */ public boolean hasMail() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -20203,7 +22137,7 @@ public final class Public { * @return this */ public StateInfo clearMail() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; mail.clear(); return this; } @@ -20232,7 +22166,7 @@ public final class Public { * @return internal storage object for modifications */ public MailState getMutableMail() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return mail; } @@ -20242,7 +22176,7 @@ public final class Public { * @return this */ public StateInfo setMail(final MailState value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; mail.copyFrom(value); return this; } @@ -20252,7 +22186,7 @@ public final class Public { * @return whether the battlePass field is set */ public boolean hasBattlePass() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -20260,7 +22194,7 @@ public final class Public { * @return this */ public StateInfo clearBattlePass() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; battlePass.clear(); return this; } @@ -20289,7 +22223,7 @@ public final class Public { * @return internal storage object for modifications */ public BattlePassState getMutableBattlePass() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return battlePass; } @@ -20299,7 +22233,7 @@ public final class Public { * @return this */ public StateInfo setBattlePass(final BattlePassState value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; battlePass.copyFrom(value); return this; } @@ -20309,7 +22243,7 @@ public final class Public { * @return whether the worldClassReward field is set */ public boolean hasWorldClassReward() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -20317,7 +22251,7 @@ public final class Public { * @return this */ public StateInfo clearWorldClassReward() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; worldClassReward.clear(); return this; } @@ -20346,7 +22280,7 @@ public final class Public { * @return internal storage object for modifications */ public WorldClassRewardState getMutableWorldClassReward() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return worldClassReward; } @@ -20356,7 +22290,7 @@ public final class Public { * @return this */ public StateInfo setWorldClassReward(final WorldClassRewardState value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; worldClassReward.copyFrom(value); return this; } @@ -20366,7 +22300,7 @@ public final class Public { * @return whether the friendEnergy field is set */ public boolean hasFriendEnergy() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -20374,7 +22308,7 @@ public final class Public { * @return this */ public StateInfo clearFriendEnergy() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; friendEnergy.clear(); return this; } @@ -20403,7 +22337,7 @@ public final class Public { * @return internal storage object for modifications */ public FriendEnergyState getMutableFriendEnergy() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return friendEnergy; } @@ -20413,7 +22347,7 @@ public final class Public { * @return this */ public StateInfo setFriendEnergy(final FriendEnergyState value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; friendEnergy.copyFrom(value); return this; } @@ -20423,7 +22357,7 @@ public final class Public { * @return whether the mallPackage field is set */ public boolean hasMallPackage() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -20431,7 +22365,7 @@ public final class Public { * @return this */ public StateInfo clearMallPackage() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; mallPackage.clear(); return this; } @@ -20460,7 +22394,7 @@ public final class Public { * @return internal storage object for modifications */ public MallPackageState getMutableMallPackage() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return mallPackage; } @@ -20470,17 +22404,74 @@ public final class Public { * @return this */ public StateInfo setMallPackage(final MallPackageState value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; mallPackage.copyFrom(value); return this; } + /** + * optional .SoldierState Soldier = 12; + * @return whether the soldier field is set + */ + public boolean hasSoldier() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional .SoldierState Soldier = 12; + * @return this + */ + public StateInfo clearSoldier() { + bitField0_ &= ~0x00001000; + soldier.clear(); + return this; + } + + /** + * optional .SoldierState Soldier = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSoldier()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierState getSoldier() { + return soldier; + } + + /** + * optional .SoldierState Soldier = 12; + * + * 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 SoldierState getMutableSoldier() { + bitField0_ |= 0x00001000; + return soldier; + } + + /** + * optional .SoldierState Soldier = 12; + * @param value the soldier to set + * @return this + */ + public StateInfo setSoldier(final SoldierState value) { + bitField0_ |= 0x00001000; + soldier.copyFrom(value); + return this; + } + /** * optional .AchievementState Achievement = 15; * @return whether the achievement field is set */ public boolean hasAchievement() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -20488,7 +22479,7 @@ public final class Public { * @return this */ public StateInfo clearAchievement() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00002000; achievement.clear(); return this; } @@ -20517,7 +22508,7 @@ public final class Public { * @return internal storage object for modifications */ public AchievementState getMutableAchievement() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; return achievement; } @@ -20527,7 +22518,7 @@ public final class Public { * @return this */ public StateInfo setAchievement(final AchievementState value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; achievement.copyFrom(value); return this; } @@ -20537,7 +22528,7 @@ public final class Public { * @return whether the travelerDuelQuest field is set */ public boolean hasTravelerDuelQuest() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -20545,7 +22536,7 @@ public final class Public { * @return this */ public StateInfo clearTravelerDuelQuest() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00004000; travelerDuelQuest.clear(); return this; } @@ -20574,7 +22565,7 @@ public final class Public { * @return internal storage object for modifications */ public QuestState getMutableTravelerDuelQuest() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; return travelerDuelQuest; } @@ -20584,7 +22575,7 @@ public final class Public { * @return this */ public StateInfo setTravelerDuelQuest(final QuestState value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; travelerDuelQuest.copyFrom(value); return this; } @@ -20594,7 +22585,7 @@ public final class Public { * @return whether the starTower field is set */ public boolean hasStarTower() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** @@ -20602,7 +22593,7 @@ public final class Public { * @return this */ public StateInfo clearStarTower() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00008000; starTower.clear(); return this; } @@ -20631,7 +22622,7 @@ public final class Public { * @return internal storage object for modifications */ public StarTowerState getMutableStarTower() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; return starTower; } @@ -20641,7 +22632,7 @@ public final class Public { * @return this */ public StateInfo setStarTower(final StarTowerState value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; starTower.copyFrom(value); return this; } @@ -20651,7 +22642,7 @@ public final class Public { * @return whether the starTowerBook field is set */ public boolean hasStarTowerBook() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** @@ -20659,7 +22650,7 @@ public final class Public { * @return this */ public StateInfo clearStarTowerBook() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00010000; starTowerBook.clear(); return this; } @@ -20688,7 +22679,7 @@ public final class Public { * @return internal storage object for modifications */ public StarTowerBookState getMutableStarTowerBook() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; return starTowerBook; } @@ -20698,7 +22689,7 @@ public final class Public { * @return this */ public StateInfo setStarTowerBook(final StarTowerBookState value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; starTowerBook.copyFrom(value); return this; } @@ -20708,7 +22699,7 @@ public final class Public { * @return whether the scoreBoss field is set */ public boolean hasScoreBoss() { - return (bitField0_ & 0x00008000) != 0; + return (bitField0_ & 0x00020000) != 0; } /** @@ -20716,7 +22707,7 @@ public final class Public { * @return this */ public StateInfo clearScoreBoss() { - bitField0_ &= ~0x00008000; + bitField0_ &= ~0x00020000; scoreBoss.clear(); return this; } @@ -20745,7 +22736,7 @@ public final class Public { * @return internal storage object for modifications */ public ScoreBossState getMutableScoreBoss() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return scoreBoss; } @@ -20755,7 +22746,7 @@ public final class Public { * @return this */ public StateInfo setScoreBoss(final ScoreBossState value) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; scoreBoss.copyFrom(value); return this; } @@ -20765,7 +22756,7 @@ public final class Public { * @return whether the traceHunt field is set */ public boolean hasTraceHunt() { - return (bitField0_ & 0x00010000) != 0; + return (bitField0_ & 0x00040000) != 0; } /** @@ -20773,7 +22764,7 @@ public final class Public { * @return this */ public StateInfo clearTraceHunt() { - bitField0_ &= ~0x00010000; + bitField0_ &= ~0x00040000; traceHunt.clear(); return this; } @@ -20802,7 +22793,7 @@ public final class Public { * @return internal storage object for modifications */ public TraceHuntState getMutableTraceHunt() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; return traceHunt; } @@ -20812,17 +22803,74 @@ public final class Public { * @return this */ public StateInfo setTraceHunt(final TraceHuntState value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; traceHunt.copyFrom(value); return this; } + /** + * optional .GuideMissionState GuideMission = 26; + * @return whether the guideMission field is set + */ + public boolean hasGuideMission() { + return (bitField0_ & 0x00080000) != 0; + } + + /** + * optional .GuideMissionState GuideMission = 26; + * @return this + */ + public StateInfo clearGuideMission() { + bitField0_ &= ~0x00080000; + guideMission.clear(); + return this; + } + + /** + * optional .GuideMissionState GuideMission = 26; + * + * 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 #getMutableGuideMission()} if you want to modify it. + * + * @return internal storage object for reading + */ + public GuideMissionState getGuideMission() { + return guideMission; + } + + /** + * optional .GuideMissionState GuideMission = 26; + * + * 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 GuideMissionState getMutableGuideMission() { + bitField0_ |= 0x00080000; + return guideMission; + } + + /** + * optional .GuideMissionState GuideMission = 26; + * @param value the guideMission to set + * @return this + */ + public StateInfo setGuideMission(final GuideMissionState value) { + bitField0_ |= 0x00080000; + guideMission.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00020000) != 0; + return (bitField0_ & 0x00100000) != 0; } /** @@ -20830,7 +22878,7 @@ public final class Public { * @return this */ public StateInfo clearNextPackage() { - bitField0_ &= ~0x00020000; + bitField0_ &= ~0x00100000; nextPackage.clear(); return this; } @@ -20859,7 +22907,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; return nextPackage; } @@ -20869,7 +22917,7 @@ public final class Public { * @return this */ public StateInfo addNextPackage(final byte value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; nextPackage.add(value); return this; } @@ -20880,7 +22928,7 @@ public final class Public { * @return this */ public StateInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; nextPackage.addAll(values); return this; } @@ -20891,7 +22939,7 @@ public final class Public { * @return this */ public StateInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; nextPackage.copyFrom(values); return this; } @@ -20901,7 +22949,7 @@ public final class Public { * @return whether the charAdvanceRewards field is set */ public boolean hasCharAdvanceRewards() { - return (bitField0_ & 0x00040000) != 0; + return (bitField0_ & 0x00200000) != 0; } /** @@ -20909,7 +22957,7 @@ public final class Public { * @return this */ public StateInfo clearCharAdvanceRewards() { - bitField0_ &= ~0x00040000; + bitField0_ &= ~0x00200000; charAdvanceRewards.clear(); return this; } @@ -20938,7 +22986,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharAdvanceRewards() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; return charAdvanceRewards; } @@ -20948,7 +22996,7 @@ public final class Public { * @return this */ public StateInfo addCharAdvanceRewards(final CharAdvanceRewardState value) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; charAdvanceRewards.add(value); return this; } @@ -20959,7 +23007,7 @@ public final class Public { * @return this */ public StateInfo addAllCharAdvanceRewards(final CharAdvanceRewardState... values) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; charAdvanceRewards.addAll(values); return this; } @@ -20969,7 +23017,7 @@ public final class Public { * @return whether the charAffinityRewards field is set */ public boolean hasCharAffinityRewards() { - return (bitField0_ & 0x00080000) != 0; + return (bitField0_ & 0x00400000) != 0; } /** @@ -20977,7 +23025,7 @@ public final class Public { * @return this */ public StateInfo clearCharAffinityRewards() { - bitField0_ &= ~0x00080000; + bitField0_ &= ~0x00400000; charAffinityRewards.clear(); return this; } @@ -21006,7 +23054,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharAffinityRewards() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; return charAffinityRewards; } @@ -21016,7 +23064,7 @@ public final class Public { * @return this */ public StateInfo addCharAffinityRewards(final CharAffinityRewardState value) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; charAffinityRewards.add(value); return this; } @@ -21027,7 +23075,7 @@ public final class Public { * @return this */ public StateInfo addAllCharAffinityRewards(final CharAffinityRewardState... values) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; charAffinityRewards.addAll(values); return this; } @@ -21037,7 +23085,7 @@ public final class Public { * @return whether the activities field is set */ public boolean hasActivities() { - return (bitField0_ & 0x00100000) != 0; + return (bitField0_ & 0x00800000) != 0; } /** @@ -21045,7 +23093,7 @@ public final class Public { * @return this */ public StateInfo clearActivities() { - bitField0_ &= ~0x00100000; + bitField0_ &= ~0x00800000; activities.clear(); return this; } @@ -21074,7 +23122,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableActivities() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; return activities; } @@ -21084,7 +23132,7 @@ public final class Public { * @return this */ public StateInfo addActivities(final ActivityState value) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; activities.add(value); return this; } @@ -21095,11 +23143,79 @@ public final class Public { * @return this */ public StateInfo addAllActivities(final ActivityState... values) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; activities.addAll(values); return this; } + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + * @return whether the activityReturnees field is set + */ + public boolean hasActivityReturnees() { + return (bitField0_ & 0x01000000) != 0; + } + + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + * @return this + */ + public StateInfo clearActivityReturnees() { + bitField0_ &= ~0x01000000; + activityReturnees.clear(); + return this; + } + + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + * + * 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 #getMutableActivityReturnees()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getActivityReturnees() { + return activityReturnees; + } + + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + * + * 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 getMutableActivityReturnees() { + bitField0_ |= 0x01000000; + return activityReturnees; + } + + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + * @param value the activityReturnees to add + * @return this + */ + public StateInfo addActivityReturnees(final ActivityReturneeState value) { + bitField0_ |= 0x01000000; + activityReturnees.add(value); + return this; + } + + /** + * repeated .ActivityReturneeState ActivityReturnees = 24; + * @param values the activityReturnees to add + * @return this + */ + public StateInfo addAllActivityReturnees(final ActivityReturneeState... values) { + bitField0_ |= 0x01000000; + activityReturnees.addAll(values); + return this; + } + @Override public StateInfo copyFrom(final StateInfo other) { cachedSize = other.cachedSize; @@ -21108,6 +23224,7 @@ public final class Public { travelerDuelIdleReward = other.travelerDuelIdleReward; infinityTower = other.infinityTower; vampireSurvivorId = other.vampireSurvivorId; + dormStateFlag = other.dormStateFlag; friend = other.friend; npcAffinityReward = other.npcAffinityReward; storySet = other.storySet; @@ -21116,16 +23233,19 @@ public final class Public { worldClassReward.copyFrom(other.worldClassReward); friendEnergy.copyFrom(other.friendEnergy); mallPackage.copyFrom(other.mallPackage); + soldier.copyFrom(other.soldier); achievement.copyFrom(other.achievement); travelerDuelQuest.copyFrom(other.travelerDuelQuest); starTower.copyFrom(other.starTower); starTowerBook.copyFrom(other.starTowerBook); scoreBoss.copyFrom(other.scoreBoss); traceHunt.copyFrom(other.traceHunt); + guideMission.copyFrom(other.guideMission); nextPackage.copyFrom(other.nextPackage); charAdvanceRewards.copyFrom(other.charAdvanceRewards); charAffinityRewards.copyFrom(other.charAffinityRewards); activities.copyFrom(other.activities); + activityReturnees.copyFrom(other.activityReturnees); } return this; } @@ -21145,6 +23265,9 @@ public final class Public { if (other.hasVampireSurvivorId()) { setVampireSurvivorId(other.vampireSurvivorId); } + if (other.hasDormStateFlag()) { + setDormStateFlag(other.dormStateFlag); + } if (other.hasFriend()) { setFriend(other.friend); } @@ -21169,6 +23292,9 @@ public final class Public { if (other.hasMallPackage()) { getMutableMallPackage().mergeFrom(other.mallPackage); } + if (other.hasSoldier()) { + getMutableSoldier().mergeFrom(other.soldier); + } if (other.hasAchievement()) { getMutableAchievement().mergeFrom(other.achievement); } @@ -21187,6 +23313,9 @@ public final class Public { if (other.hasTraceHunt()) { getMutableTraceHunt().mergeFrom(other.traceHunt); } + if (other.hasGuideMission()) { + getMutableGuideMission().mergeFrom(other.guideMission); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -21199,6 +23328,9 @@ public final class Public { if (other.hasActivities()) { getMutableActivities().addAll(other.activities); } + if (other.hasActivityReturnees()) { + getMutableActivityReturnees().addAll(other.activityReturnees); + } return this; } @@ -21212,6 +23344,7 @@ public final class Public { travelerDuelIdleReward = 0L; infinityTower = 0; vampireSurvivorId = 0; + dormStateFlag = 0; friend = false; npcAffinityReward = false; storySet = false; @@ -21220,16 +23353,19 @@ public final class Public { worldClassReward.clear(); friendEnergy.clear(); mallPackage.clear(); + soldier.clear(); achievement.clear(); travelerDuelQuest.clear(); starTower.clear(); starTowerBook.clear(); scoreBoss.clear(); traceHunt.clear(); + guideMission.clear(); nextPackage.clear(); charAdvanceRewards.clear(); charAffinityRewards.clear(); activities.clear(); + activityReturnees.clear(); return this; } @@ -21245,16 +23381,19 @@ public final class Public { worldClassReward.clearQuick(); friendEnergy.clearQuick(); mallPackage.clearQuick(); + soldier.clearQuick(); achievement.clearQuick(); travelerDuelQuest.clearQuick(); starTower.clearQuick(); starTowerBook.clearQuick(); scoreBoss.clearQuick(); traceHunt.clearQuick(); + guideMission.clearQuick(); nextPackage.clear(); charAdvanceRewards.clearQuick(); charAffinityRewards.clearQuick(); activities.clearQuick(); + activityReturnees.clearQuick(); return this; } @@ -21271,6 +23410,7 @@ public final class Public { && (!hasTravelerDuelIdleReward() || travelerDuelIdleReward == other.travelerDuelIdleReward) && (!hasInfinityTower() || infinityTower == other.infinityTower) && (!hasVampireSurvivorId() || vampireSurvivorId == other.vampireSurvivorId) + && (!hasDormStateFlag() || dormStateFlag == other.dormStateFlag) && (!hasFriend() || friend == other.friend) && (!hasNpcAffinityReward() || npcAffinityReward == other.npcAffinityReward) && (!hasStorySet() || storySet == other.storySet) @@ -21279,16 +23419,19 @@ public final class Public { && (!hasWorldClassReward() || worldClassReward.equals(other.worldClassReward)) && (!hasFriendEnergy() || friendEnergy.equals(other.friendEnergy)) && (!hasMallPackage() || mallPackage.equals(other.mallPackage)) + && (!hasSoldier() || soldier.equals(other.soldier)) && (!hasAchievement() || achievement.equals(other.achievement)) && (!hasTravelerDuelQuest() || travelerDuelQuest.equals(other.travelerDuelQuest)) && (!hasStarTower() || starTower.equals(other.starTower)) && (!hasStarTowerBook() || starTowerBook.equals(other.starTowerBook)) && (!hasScoreBoss() || scoreBoss.equals(other.scoreBoss)) && (!hasTraceHunt() || traceHunt.equals(other.traceHunt)) + && (!hasGuideMission() || guideMission.equals(other.guideMission)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasCharAdvanceRewards() || charAdvanceRewards.equals(other.charAdvanceRewards)) && (!hasCharAffinityRewards() || charAffinityRewards.equals(other.charAffinityRewards)) - && (!hasActivities() || activities.equals(other.activities)); + && (!hasActivities() || activities.equals(other.activities)) + && (!hasActivityReturnees() || activityReturnees.equals(other.activityReturnees)); } @Override @@ -21306,83 +23449,101 @@ public final class Public { output.writeUInt32NoTag(vampireSurvivorId); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 456); + output.writeUInt32NoTag(dormStateFlag); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 24); output.writeBoolNoTag(friend); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 72); output.writeBoolNoTag(npcAffinityReward); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawLittleEndian16((short) 432); output.writeBoolNoTag(storySet); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 10); output.writeMessageNoTag(mail); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 34); output.writeMessageNoTag(battlePass); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(worldClassReward); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 58); output.writeMessageNoTag(friendEnergy); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 82); output.writeMessageNoTag(mallPackage); } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(soldier); + } + if ((bitField0_ & 0x00002000) != 0) { output.writeRawByte((byte) 122); output.writeMessageNoTag(achievement); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 386); output.writeMessageNoTag(travelerDuelQuest); } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { output.writeRawLittleEndian16((short) 402); output.writeMessageNoTag(starTower); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { output.writeRawLittleEndian16((short) 410); output.writeMessageNoTag(starTowerBook); } - if ((bitField0_ & 0x00008000) != 0) { + if ((bitField0_ & 0x00020000) != 0) { output.writeRawLittleEndian16((short) 418); output.writeMessageNoTag(scoreBoss); } - if ((bitField0_ & 0x00010000) != 0) { + if ((bitField0_ & 0x00040000) != 0) { output.writeRawLittleEndian16((short) 442); output.writeMessageNoTag(traceHunt); } - if ((bitField0_ & 0x00020000) != 0) { + if ((bitField0_ & 0x00080000) != 0) { + output.writeRawLittleEndian16((short) 466); + output.writeMessageNoTag(guideMission); + } + if ((bitField0_ & 0x00100000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00040000) != 0) { + if ((bitField0_ & 0x00200000) != 0) { for (int i = 0; i < charAdvanceRewards.length(); i++) { output.writeRawByte((byte) 50); output.writeMessageNoTag(charAdvanceRewards.get(i)); } } - if ((bitField0_ & 0x00080000) != 0) { + if ((bitField0_ & 0x00400000) != 0) { for (int i = 0; i < charAffinityRewards.length(); i++) { output.writeRawByte((byte) 66); output.writeMessageNoTag(charAffinityRewards.get(i)); } } - if ((bitField0_ & 0x00100000) != 0) { + if ((bitField0_ & 0x00800000) != 0) { for (int i = 0; i < activities.length(); i++) { output.writeRawLittleEndian16((short) 426); output.writeMessageNoTag(activities.get(i)); } } + if ((bitField0_ & 0x01000000) != 0) { + for (int i = 0; i < activityReturnees.length(); i++) { + output.writeRawLittleEndian16((short) 450); + output.writeMessageNoTag(activityReturnees.get(i)); + } + } } @Override @@ -21398,59 +23559,71 @@ public final class Public { size += 1 + ProtoSink.computeUInt32SizeNoTag(vampireSurvivorId); } if ((bitField0_ & 0x00000008) != 0) { - size += 2; + size += 2 + ProtoSink.computeUInt32SizeNoTag(dormStateFlag); } if ((bitField0_ & 0x00000010) != 0) { size += 2; } if ((bitField0_ & 0x00000020) != 0) { - size += 3; + size += 2; } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(mail); + size += 3; } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(battlePass); + size += 1 + ProtoSink.computeMessageSizeNoTag(mail); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(worldClassReward); + size += 1 + ProtoSink.computeMessageSizeNoTag(battlePass); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(friendEnergy); + size += 1 + ProtoSink.computeMessageSizeNoTag(worldClassReward); } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(mallPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(friendEnergy); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(achievement); + size += 1 + ProtoSink.computeMessageSizeNoTag(mallPackage); } if ((bitField0_ & 0x00001000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(travelerDuelQuest); + size += 1 + ProtoSink.computeMessageSizeNoTag(soldier); } if ((bitField0_ & 0x00002000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(starTower); + size += 1 + ProtoSink.computeMessageSizeNoTag(achievement); } if ((bitField0_ & 0x00004000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(starTowerBook); + size += 2 + ProtoSink.computeMessageSizeNoTag(travelerDuelQuest); } if ((bitField0_ & 0x00008000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(scoreBoss); + size += 2 + ProtoSink.computeMessageSizeNoTag(starTower); } if ((bitField0_ & 0x00010000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(traceHunt); + size += 2 + ProtoSink.computeMessageSizeNoTag(starTowerBook); } if ((bitField0_ & 0x00020000) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeMessageSizeNoTag(scoreBoss); } if ((bitField0_ & 0x00040000) != 0) { - size += (1 * charAdvanceRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAdvanceRewards); + size += 2 + ProtoSink.computeMessageSizeNoTag(traceHunt); } if ((bitField0_ & 0x00080000) != 0) { - size += (1 * charAffinityRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAffinityRewards); + size += 2 + ProtoSink.computeMessageSizeNoTag(guideMission); } if ((bitField0_ & 0x00100000) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00200000) != 0) { + size += (1 * charAdvanceRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAdvanceRewards); + } + if ((bitField0_ & 0x00400000) != 0) { + size += (1 * charAffinityRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charAffinityRewards); + } + if ((bitField0_ & 0x00800000) != 0) { size += (2 * activities.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activities); } + if ((bitField0_ & 0x01000000) != 0) { + size += (2 * activityReturnees.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activityReturnees); + } return size; } @@ -21484,6 +23657,15 @@ public final class Public { vampireSurvivorId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 200) { + break; + } + } + case 200: { + // dormStateFlag + dormStateFlag = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 24) { break; } @@ -21491,7 +23673,7 @@ public final class Public { case 24: { // friend friend = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 72) { break; @@ -21500,7 +23682,7 @@ public final class Public { case 72: { // npcAffinityReward npcAffinityReward = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 176) { break; @@ -21509,7 +23691,7 @@ public final class Public { case 176: { // storySet storySet = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 10) { break; @@ -21518,7 +23700,7 @@ public final class Public { case 10: { // mail input.readMessage(mail); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 34) { break; @@ -21527,7 +23709,7 @@ public final class Public { case 34: { // battlePass input.readMessage(battlePass); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 42) { break; @@ -21536,7 +23718,7 @@ public final class Public { case 42: { // worldClassReward input.readMessage(worldClassReward); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 58) { break; @@ -21545,7 +23727,7 @@ public final class Public { case 58: { // friendEnergy input.readMessage(friendEnergy); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 82) { break; @@ -21554,7 +23736,16 @@ public final class Public { case 82: { // mallPackage input.readMessage(mallPackage); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // soldier + input.readMessage(soldier); + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 122) { break; @@ -21563,7 +23754,7 @@ public final class Public { case 122: { // achievement input.readMessage(achievement); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 130) { break; @@ -21572,7 +23763,7 @@ public final class Public { case 130: { // travelerDuelQuest input.readMessage(travelerDuelQuest); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 146) { break; @@ -21581,7 +23772,7 @@ public final class Public { case 146: { // starTower input.readMessage(starTower); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; tag = input.readTag(); if (tag != 154) { break; @@ -21590,7 +23781,7 @@ public final class Public { case 154: { // starTowerBook input.readMessage(starTowerBook); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; tag = input.readTag(); if (tag != 162) { break; @@ -21599,7 +23790,7 @@ public final class Public { case 162: { // scoreBoss input.readMessage(scoreBoss); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; tag = input.readTag(); if (tag != 186) { break; @@ -21608,7 +23799,16 @@ public final class Public { case 186: { // traceHunt input.readMessage(traceHunt); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; + tag = input.readTag(); + if (tag != 210) { + break; + } + } + case 210: { + // guideMission + input.readMessage(guideMission); + bitField0_ |= 0x00080000; tag = input.readTag(); if (tag != 16378) { break; @@ -21617,7 +23817,7 @@ public final class Public { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; tag = input.readTag(); if (tag != 50) { break; @@ -21626,7 +23826,7 @@ public final class Public { case 50: { // charAdvanceRewards tag = input.readRepeatedMessage(charAdvanceRewards, tag); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; if (tag != 66) { break; } @@ -21634,7 +23834,7 @@ public final class Public { case 66: { // charAffinityRewards tag = input.readRepeatedMessage(charAffinityRewards, tag); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; if (tag != 170) { break; } @@ -21642,7 +23842,15 @@ public final class Public { case 170: { // activities tag = input.readRepeatedMessage(activities, tag); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; + if (tag != 194) { + break; + } + } + case 194: { + // activityReturnees + tag = input.readRepeatedMessage(activityReturnees, tag); + bitField0_ |= 0x01000000; if (tag != 0) { break; } @@ -21674,59 +23882,71 @@ public final class Public { output.writeUInt32(FieldNames.vampireSurvivorId, vampireSurvivorId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.friend, friend); + output.writeUInt32(FieldNames.dormStateFlag, dormStateFlag); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.npcAffinityReward, npcAffinityReward); + output.writeBool(FieldNames.friend, friend); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.storySet, storySet); + output.writeBool(FieldNames.npcAffinityReward, npcAffinityReward); } if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.mail, mail); + output.writeBool(FieldNames.storySet, storySet); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.battlePass, battlePass); + output.writeMessage(FieldNames.mail, mail); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.worldClassReward, worldClassReward); + output.writeMessage(FieldNames.battlePass, battlePass); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.friendEnergy, friendEnergy); + output.writeMessage(FieldNames.worldClassReward, worldClassReward); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.mallPackage, mallPackage); + output.writeMessage(FieldNames.friendEnergy, friendEnergy); } if ((bitField0_ & 0x00000800) != 0) { - output.writeMessage(FieldNames.achievement, achievement); + output.writeMessage(FieldNames.mallPackage, mallPackage); } if ((bitField0_ & 0x00001000) != 0) { - output.writeMessage(FieldNames.travelerDuelQuest, travelerDuelQuest); + output.writeMessage(FieldNames.soldier, soldier); } if ((bitField0_ & 0x00002000) != 0) { - output.writeMessage(FieldNames.starTower, starTower); + output.writeMessage(FieldNames.achievement, achievement); } if ((bitField0_ & 0x00004000) != 0) { - output.writeMessage(FieldNames.starTowerBook, starTowerBook); + output.writeMessage(FieldNames.travelerDuelQuest, travelerDuelQuest); } if ((bitField0_ & 0x00008000) != 0) { - output.writeMessage(FieldNames.scoreBoss, scoreBoss); + output.writeMessage(FieldNames.starTower, starTower); } if ((bitField0_ & 0x00010000) != 0) { - output.writeMessage(FieldNames.traceHunt, traceHunt); + output.writeMessage(FieldNames.starTowerBook, starTowerBook); } if ((bitField0_ & 0x00020000) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.scoreBoss, scoreBoss); } if ((bitField0_ & 0x00040000) != 0) { - output.writeRepeatedMessage(FieldNames.charAdvanceRewards, charAdvanceRewards); + output.writeMessage(FieldNames.traceHunt, traceHunt); } if ((bitField0_ & 0x00080000) != 0) { - output.writeRepeatedMessage(FieldNames.charAffinityRewards, charAffinityRewards); + output.writeMessage(FieldNames.guideMission, guideMission); } if ((bitField0_ & 0x00100000) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00200000) != 0) { + output.writeRepeatedMessage(FieldNames.charAdvanceRewards, charAdvanceRewards); + } + if ((bitField0_ & 0x00400000) != 0) { + output.writeRepeatedMessage(FieldNames.charAffinityRewards, charAffinityRewards); + } + if ((bitField0_ & 0x00800000) != 0) { output.writeRepeatedMessage(FieldNames.activities, activities); } + if ((bitField0_ & 0x01000000) != 0) { + output.writeRepeatedMessage(FieldNames.activityReturnees, activityReturnees); + } output.endObject(); } @@ -21770,11 +23990,22 @@ public final class Public { } break; } + case -49751529: { + if (input.isAtField(FieldNames.dormStateFlag)) { + if (!input.trySkipNullValue()) { + dormStateFlag = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case 2112550590: { if (input.isAtField(FieldNames.friend)) { if (!input.trySkipNullValue()) { friend = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -21785,7 +24016,7 @@ public final class Public { if (input.isAtField(FieldNames.npcAffinityReward)) { if (!input.trySkipNullValue()) { npcAffinityReward = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -21796,7 +24027,7 @@ public final class Public { if (input.isAtField(FieldNames.storySet)) { if (!input.trySkipNullValue()) { storySet = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -21807,7 +24038,7 @@ public final class Public { if (input.isAtField(FieldNames.mail)) { if (!input.trySkipNullValue()) { input.readMessage(mail); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -21818,7 +24049,7 @@ public final class Public { if (input.isAtField(FieldNames.battlePass)) { if (!input.trySkipNullValue()) { input.readMessage(battlePass); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -21829,7 +24060,7 @@ public final class Public { if (input.isAtField(FieldNames.worldClassReward)) { if (!input.trySkipNullValue()) { input.readMessage(worldClassReward); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -21840,7 +24071,7 @@ public final class Public { if (input.isAtField(FieldNames.friendEnergy)) { if (!input.trySkipNullValue()) { input.readMessage(friendEnergy); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -21851,7 +24082,18 @@ public final class Public { if (input.isAtField(FieldNames.mallPackage)) { if (!input.trySkipNullValue()) { input.readMessage(mallPackage); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -365946526: { + if (input.isAtField(FieldNames.soldier)) { + if (!input.trySkipNullValue()) { + input.readMessage(soldier); + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -21862,7 +24104,7 @@ public final class Public { if (input.isAtField(FieldNames.achievement)) { if (!input.trySkipNullValue()) { input.readMessage(achievement); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -21873,7 +24115,7 @@ public final class Public { if (input.isAtField(FieldNames.travelerDuelQuest)) { if (!input.trySkipNullValue()) { input.readMessage(travelerDuelQuest); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -21884,7 +24126,7 @@ public final class Public { if (input.isAtField(FieldNames.starTower)) { if (!input.trySkipNullValue()) { input.readMessage(starTower); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -21895,7 +24137,7 @@ public final class Public { if (input.isAtField(FieldNames.starTowerBook)) { if (!input.trySkipNullValue()) { input.readMessage(starTowerBook); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -21906,7 +24148,7 @@ public final class Public { if (input.isAtField(FieldNames.scoreBoss)) { if (!input.trySkipNullValue()) { input.readMessage(scoreBoss); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -21917,7 +24159,18 @@ public final class Public { if (input.isAtField(FieldNames.traceHunt)) { if (!input.trySkipNullValue()) { input.readMessage(traceHunt); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -361554160: { + if (input.isAtField(FieldNames.guideMission)) { + if (!input.trySkipNullValue()) { + input.readMessage(guideMission); + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -21928,7 +24181,7 @@ public final class Public { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; } } else { input.skipUnknownField(); @@ -21939,7 +24192,7 @@ public final class Public { if (input.isAtField(FieldNames.charAdvanceRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charAdvanceRewards); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; } } else { input.skipUnknownField(); @@ -21950,7 +24203,7 @@ public final class Public { if (input.isAtField(FieldNames.charAffinityRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charAffinityRewards); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; } } else { input.skipUnknownField(); @@ -21961,7 +24214,18 @@ public final class Public { if (input.isAtField(FieldNames.activities)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(activities); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1488808500: { + if (input.isAtField(FieldNames.activityReturnees)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(activityReturnees); + bitField0_ |= 0x01000000; } } else { input.skipUnknownField(); @@ -22026,6 +24290,8 @@ public final class Public { static final FieldName vampireSurvivorId = FieldName.forField("VampireSurvivorId"); + static final FieldName dormStateFlag = FieldName.forField("DormStateFlag"); + static final FieldName friend = FieldName.forField("Friend"); static final FieldName npcAffinityReward = FieldName.forField("NpcAffinityReward"); @@ -22042,6 +24308,8 @@ public final class Public { static final FieldName mallPackage = FieldName.forField("MallPackage"); + static final FieldName soldier = FieldName.forField("Soldier"); + static final FieldName achievement = FieldName.forField("Achievement"); static final FieldName travelerDuelQuest = FieldName.forField("TravelerDuelQuest"); @@ -22054,6 +24322,8 @@ public final class Public { static final FieldName traceHunt = FieldName.forField("TraceHunt"); + static final FieldName guideMission = FieldName.forField("GuideMission"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName charAdvanceRewards = FieldName.forField("CharAdvanceRewards"); @@ -22061,6 +24331,8 @@ public final class Public { static final FieldName charAffinityRewards = FieldName.forField("CharAffinityRewards"); static final FieldName activities = FieldName.forField("Activities"); + + static final FieldName activityReturnees = FieldName.forField("ActivityReturnees"); } } @@ -30106,6 +32378,533 @@ public final class Public { } } + /** + * Protobuf type {@code DormItem} + */ + public static final class DormItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 Qty = 2; + */ + private int qty; + + /** + * optional uint32 Tid = 1; + */ + private int tid; + + /** + * optional bool IsFirst = 3; + */ + private boolean isFirst; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormItem() { + } + + /** + * @return a new empty instance of {@code DormItem} + */ + public static DormItem newInstance() { + return new DormItem(); + } + + /** + * optional int32 Qty = 2; + * @return whether the qty field is set + */ + public boolean hasQty() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 Qty = 2; + * @return this + */ + public DormItem clearQty() { + bitField0_ &= ~0x00000001; + qty = 0; + return this; + } + + /** + * optional int32 Qty = 2; + * @return the qty + */ + public int getQty() { + return qty; + } + + /** + * optional int32 Qty = 2; + * @param value the qty to set + * @return this + */ + public DormItem setQty(final int value) { + bitField0_ |= 0x00000001; + qty = value; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Tid = 1; + * @return this + */ + public DormItem clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 1; + * @param value the tid to set + * @return this + */ + public DormItem setTid(final int value) { + bitField0_ |= 0x00000002; + tid = value; + return this; + } + + /** + * optional bool IsFirst = 3; + * @return whether the isFirst field is set + */ + public boolean hasIsFirst() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool IsFirst = 3; + * @return this + */ + public DormItem clearIsFirst() { + bitField0_ &= ~0x00000004; + isFirst = false; + return this; + } + + /** + * optional bool IsFirst = 3; + * @return the isFirst + */ + public boolean getIsFirst() { + return isFirst; + } + + /** + * optional bool IsFirst = 3; + * @param value the isFirst to set + * @return this + */ + public DormItem setIsFirst(final boolean value) { + bitField0_ |= 0x00000004; + isFirst = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormItem clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormItem addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormItem addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormItem setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormItem copyFrom(final DormItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + qty = other.qty; + tid = other.tid; + isFirst = other.isFirst; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormItem mergeFrom(final DormItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQty()) { + setQty(other.qty); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasIsFirst()) { + setIsFirst(other.isFirst); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + qty = 0; + tid = 0; + isFirst = false; + nextPackage.clear(); + return this; + } + + @Override + public DormItem 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 DormItem)) { + return false; + } + DormItem other = (DormItem) o; + return bitField0_ == other.bitField0_ + && (!hasQty() || qty == other.qty) + && (!hasTid() || tid == other.tid) + && (!hasIsFirst() || isFirst == other.isFirst) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(isFirst); + } + 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.computeInt32SizeNoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // qty + qty = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // isFirst + isFirst = input.readBool(); + 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.writeInt32(FieldNames.qty, qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isFirst, isFirst); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 81558: { + if (input.isAtField(FieldNames.qty)) { + if (!input.trySkipNullValue()) { + qty = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -571467898: { + if (input.isAtField(FieldNames.isFirst)) { + if (!input.trySkipNullValue()) { + isFirst = input.readBool(); + 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 DormItem clone() { + return new DormItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormItem parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormItem(), data).checkInitialized(); + } + + public static DormItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormItem(), input).checkInitialized(); + } + + public static DormItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormItem(), input).checkInitialized(); + } + + /** + * @return factory for creating DormItem messages + */ + public static MessageFactory getFactory() { + return DormItemFactory.INSTANCE; + } + + private enum DormItemFactory implements MessageFactory { + INSTANCE; + + @Override + public DormItem create() { + return DormItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName qty = FieldName.forField("Qty"); + + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName isFirst = FieldName.forField("IsFirst"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code AcqInfo} */ @@ -34576,9 +37375,9 @@ public final class Public { private static final long serialVersionUID = 0L; /** - * optional uint64 BuildId = 3; + * optional .UseBuild Build = 3; */ - private long buildId; + private final UseBuild build = UseBuild.newInstance(); /** * optional bytes NextPackage = 2047; @@ -34606,39 +37405,59 @@ public final class Public { } /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set + * optional .UseBuild Build = 3; + * @return whether the build field is set */ - public boolean hasBuildId() { + public boolean hasBuild() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint64 BuildId = 3; + * optional .UseBuild Build = 3; * @return this */ - public StoryInfo clearBuildId() { + public StoryInfo clearBuild() { bitField0_ &= ~0x00000001; - buildId = 0L; + build.clear(); return this; } /** - * optional uint64 BuildId = 3; - * @return the buildId + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading */ - public long getBuildId() { - return buildId; + public UseBuild getBuild() { + return build; } /** - * optional uint64 BuildId = 3; - * @param value the buildId to set + * optional .UseBuild Build = 3; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000001; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set * @return this */ - public StoryInfo setBuildId(final long value) { + public StoryInfo setBuild(final UseBuild value) { bitField0_ |= 0x00000001; - buildId = value; + build.copyFrom(value); return this; } @@ -34862,7 +37681,7 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); evidences.copyFrom(other.evidences); stories.copyFrom(other.stories); @@ -34876,8 +37695,8 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); @@ -34898,7 +37717,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; + build.clear(); nextPackage.clear(); evidences.clear(); stories.clear(); @@ -34912,6 +37731,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); evidences.clear(); stories.clearQuick(); @@ -34928,7 +37748,7 @@ public final class Public { } StoryInfo other = (StoryInfo) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasEvidences() || evidences.equals(other.evidences)) && (!hasStories() || stories.equals(other.stories)); @@ -34937,8 +37757,8 @@ public final class Public { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt64NoTag(buildId); + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawLittleEndian16((short) 32762); @@ -34962,7 +37782,7 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000002) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -34983,9 +37803,9 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // buildId - buildId = input.readUInt64(); + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16378) { @@ -35042,7 +37862,7 @@ public final class Public { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000002) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -35063,10 +37883,10 @@ public final class Public { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + input.readMessage(build); bitField0_ |= 0x00000001; } } else { @@ -35159,7 +37979,7 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); + static final FieldName build = FieldName.forField("Build"); static final FieldName nextPackage = FieldName.forField("NextPackage"); @@ -37519,11 +40339,6 @@ public final class Public { public static final class RegionBossLevel extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 5; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -37544,6 +40359,11 @@ public final class Public { */ private boolean threeStar; + /** + * optional .UseBuild Build = 5; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -37559,49 +40379,12 @@ public final class Public { return new RegionBossLevel(); } - /** - * optional uint64 BuildId = 5; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 5; - * @return this - */ - public RegionBossLevel clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 5; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 5; - * @param value the buildId to set - * @return this - */ - public RegionBossLevel setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -37609,7 +40392,7 @@ public final class Public { * @return this */ public RegionBossLevel clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -37628,7 +40411,7 @@ public final class Public { * @return this */ public RegionBossLevel setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -37638,7 +40421,7 @@ public final class Public { * @return whether the star field is set */ public boolean hasStar() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -37646,7 +40429,7 @@ public final class Public { * @return this */ public RegionBossLevel clearStar() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; star = 0; return this; } @@ -37665,7 +40448,7 @@ public final class Public { * @return this */ public RegionBossLevel setStar(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; star = value; return this; } @@ -37675,7 +40458,7 @@ public final class Public { * @return whether the first field is set */ public boolean hasFirst() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -37683,7 +40466,7 @@ public final class Public { * @return this */ public RegionBossLevel clearFirst() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; first = false; return this; } @@ -37702,7 +40485,7 @@ public final class Public { * @return this */ public RegionBossLevel setFirst(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; first = value; return this; } @@ -37712,7 +40495,7 @@ public final class Public { * @return whether the threeStar field is set */ public boolean hasThreeStar() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -37720,7 +40503,7 @@ public final class Public { * @return this */ public RegionBossLevel clearThreeStar() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; threeStar = false; return this; } @@ -37739,11 +40522,68 @@ public final class Public { * @return this */ public RegionBossLevel setThreeStar(final boolean value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; threeStar = value; return this; } + /** + * optional .UseBuild Build = 5; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .UseBuild Build = 5; + * @return this + */ + public RegionBossLevel clearBuild() { + bitField0_ &= ~0x00000010; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 5; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 5; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000010; + return build; + } + + /** + * optional .UseBuild Build = 5; + * @param value the build to set + * @return this + */ + public RegionBossLevel setBuild(final UseBuild value) { + bitField0_ |= 0x00000010; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -37828,11 +40668,11 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; star = other.star; first = other.first; threeStar = other.threeStar; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -37844,9 +40684,6 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } @@ -37859,6 +40696,9 @@ public final class Public { if (other.hasThreeStar()) { setThreeStar(other.threeStar); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -37872,11 +40712,11 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; star = 0; first = false; threeStar = false; + build.clear(); nextPackage.clear(); return this; } @@ -37888,6 +40728,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -37902,36 +40743,36 @@ public final class Public { } RegionBossLevel other = (RegionBossLevel) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasStar() || star == other.star) && (!hasFirst() || first == other.first) && (!hasThreeStar() || threeStar == other.threeStar) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); output.writeBoolNoTag(first); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 32); output.writeBoolNoTag(threeStar); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -37942,19 +40783,19 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(star); } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } if ((bitField0_ & 0x00000008) != 0) { size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += 2; + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000020) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -37969,19 +40810,10 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -37990,7 +40822,7 @@ public final class Public { case 16: { // star star = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 24) { break; @@ -37999,7 +40831,7 @@ public final class Public { case 24: { // first first = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 32) { break; @@ -38008,6 +40840,15 @@ public final class Public { case 32: { // threeStar threeStar = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // build + input.readMessage(build); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 16378) { @@ -38041,20 +40882,20 @@ public final class Public { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.star, star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.first, first); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeBool(FieldNames.threeStar, threeStar); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000020) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -38068,22 +40909,11 @@ public final class Public { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -38094,7 +40924,7 @@ public final class Public { if (input.isAtField(FieldNames.star)) { if (!input.trySkipNullValue()) { star = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -38105,7 +40935,7 @@ public final class Public { if (input.isAtField(FieldNames.first)) { if (!input.trySkipNullValue()) { first = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -38116,6 +40946,17 @@ public final class Public { if (input.isAtField(FieldNames.threeStar)) { if (!input.trySkipNullValue()) { threeStar = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000010; } } else { @@ -38187,8 +41028,6 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName star = FieldName.forField("Star"); @@ -38197,6 +41036,8 @@ public final class Public { static final FieldName threeStar = FieldName.forField("ThreeStar"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -38242,6 +41083,16 @@ public final class Public { */ private int titleSuffix; + /** + * optional uint32 DormLikeNum = 17; + */ + private int dormLikeNum; + + /** + * optional .DormOutInfo DormOutInfo = 16; + */ + private final DormOutInfo dormOutInfo = DormOutInfo.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -38536,12 +41387,106 @@ public final class Public { return this; } + /** + * optional uint32 DormLikeNum = 17; + * @return whether the dormLikeNum field is set + */ + public boolean hasDormLikeNum() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 DormLikeNum = 17; + * @return this + */ + public Friend clearDormLikeNum() { + bitField0_ &= ~0x00000080; + dormLikeNum = 0; + return this; + } + + /** + * optional uint32 DormLikeNum = 17; + * @return the dormLikeNum + */ + public int getDormLikeNum() { + return dormLikeNum; + } + + /** + * optional uint32 DormLikeNum = 17; + * @param value the dormLikeNum to set + * @return this + */ + public Friend setDormLikeNum(final int value) { + bitField0_ |= 0x00000080; + dormLikeNum = value; + return this; + } + + /** + * optional .DormOutInfo DormOutInfo = 16; + * @return whether the dormOutInfo field is set + */ + public boolean hasDormOutInfo() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .DormOutInfo DormOutInfo = 16; + * @return this + */ + public Friend clearDormOutInfo() { + bitField0_ &= ~0x00000100; + dormOutInfo.clear(); + return this; + } + + /** + * optional .DormOutInfo DormOutInfo = 16; + * + * 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 #getMutableDormOutInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public DormOutInfo getDormOutInfo() { + return dormOutInfo; + } + + /** + * optional .DormOutInfo DormOutInfo = 16; + * + * 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 DormOutInfo getMutableDormOutInfo() { + bitField0_ |= 0x00000100; + return dormOutInfo; + } + + /** + * optional .DormOutInfo DormOutInfo = 16; + * @param value the dormOutInfo to set + * @return this + */ + public Friend setDormOutInfo(final DormOutInfo value) { + bitField0_ |= 0x00000100; + dormOutInfo.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -38549,7 +41494,7 @@ public final class Public { * @return this */ public Friend clearNextPackage() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000200; nextPackage.clear(); return this; } @@ -38578,7 +41523,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; return nextPackage; } @@ -38588,7 +41533,7 @@ public final class Public { * @return this */ public Friend addNextPackage(final byte value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; nextPackage.add(value); return this; } @@ -38599,7 +41544,7 @@ public final class Public { * @return this */ public Friend addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; nextPackage.addAll(values); return this; } @@ -38610,7 +41555,7 @@ public final class Public { * @return this */ public Friend setNextPackage(final byte... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; nextPackage.copyFrom(values); return this; } @@ -38620,7 +41565,7 @@ public final class Public { * @return whether the nickName field is set */ public boolean hasNickName() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -38628,7 +41573,7 @@ public final class Public { * @return this */ public Friend clearNickName() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000400; nickName.clear(); return this; } @@ -38654,7 +41599,7 @@ public final class Public { * @return internal {@code Utf8String} representation of nickName for modifications */ public Utf8String getMutableNickNameBytes() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; return this.nickName; } @@ -38664,7 +41609,7 @@ public final class Public { * @return this */ public Friend setNickName(final CharSequence value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; nickName.copyFrom(value); return this; } @@ -38675,7 +41620,7 @@ public final class Public { * @return this */ public Friend setNickName(final Utf8String value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; nickName.copyFrom(value); return this; } @@ -38685,7 +41630,7 @@ public final class Public { * @return whether the signature field is set */ public boolean hasSignature() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -38693,7 +41638,7 @@ public final class Public { * @return this */ public Friend clearSignature() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000800; signature.clear(); return this; } @@ -38719,7 +41664,7 @@ public final class Public { * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; return this.signature; } @@ -38729,7 +41674,7 @@ public final class Public { * @return this */ public Friend setSignature(final CharSequence value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; signature.copyFrom(value); return this; } @@ -38740,7 +41685,7 @@ public final class Public { * @return this */ public Friend setSignature(final Utf8String value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; signature.copyFrom(value); return this; } @@ -38750,7 +41695,7 @@ public final class Public { * @return whether the charShows field is set */ public boolean hasCharShows() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -38758,7 +41703,7 @@ public final class Public { * @return this */ public Friend clearCharShows() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00001000; charShows.clear(); return this; } @@ -38787,7 +41732,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableCharShows() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; return charShows; } @@ -38797,7 +41742,7 @@ public final class Public { * @return this */ public Friend addCharShows(final CharShow value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; charShows.add(value); return this; } @@ -38808,7 +41753,7 @@ public final class Public { * @return this */ public Friend addAllCharShows(final CharShow... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; charShows.addAll(values); return this; } @@ -38818,7 +41763,7 @@ public final class Public { * @return whether the honors field is set */ public boolean hasHonors() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -38826,7 +41771,7 @@ public final class Public { * @return this */ public Friend clearHonors() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00002000; honors.clear(); return this; } @@ -38855,7 +41800,7 @@ public final class Public { * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; return honors; } @@ -38865,7 +41810,7 @@ public final class Public { * @return this */ public Friend addHonors(final HonorInfo value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; honors.add(value); return this; } @@ -38876,7 +41821,7 @@ public final class Public { * @return this */ public Friend addAllHonors(final HonorInfo... values) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; honors.addAll(values); return this; } @@ -38893,6 +41838,8 @@ public final class Public { worldClass = other.worldClass; titlePrefix = other.titlePrefix; titleSuffix = other.titleSuffix; + dormLikeNum = other.dormLikeNum; + dormOutInfo.copyFrom(other.dormOutInfo); nextPackage.copyFrom(other.nextPackage); nickName.copyFrom(other.nickName); signature.copyFrom(other.signature); @@ -38929,6 +41876,12 @@ public final class Public { if (other.hasTitleSuffix()) { setTitleSuffix(other.titleSuffix); } + if (other.hasDormLikeNum()) { + setDormLikeNum(other.dormLikeNum); + } + if (other.hasDormOutInfo()) { + getMutableDormOutInfo().mergeFrom(other.dormOutInfo); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -38961,6 +41914,8 @@ public final class Public { worldClass = 0; titlePrefix = 0; titleSuffix = 0; + dormLikeNum = 0; + dormOutInfo.clear(); nextPackage.clear(); nickName.clear(); signature.clear(); @@ -38976,6 +41931,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + dormOutInfo.clearQuick(); nextPackage.clear(); nickName.clear(); signature.clear(); @@ -39001,6 +41957,8 @@ public final class Public { && (!hasWorldClass() || worldClass == other.worldClass) && (!hasTitlePrefix() || titlePrefix == other.titlePrefix) && (!hasTitleSuffix() || titleSuffix == other.titleSuffix) + && (!hasDormLikeNum() || dormLikeNum == other.dormLikeNum) + && (!hasDormOutInfo() || dormOutInfo.equals(other.dormOutInfo)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasNickName() || nickName.equals(other.nickName)) && (!hasSignature() || signature.equals(other.signature)) @@ -39039,24 +41997,32 @@ public final class Public { output.writeUInt32NoTag(titleSuffix); } if ((bitField0_ & 0x00000080) != 0) { + output.writeRawLittleEndian16((short) 392); + output.writeUInt32NoTag(dormLikeNum); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawLittleEndian16((short) 386); + output.writeMessageNoTag(dormOutInfo); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 18); output.writeStringNoTag(nickName); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 74); output.writeStringNoTag(signature); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00001000) != 0) { for (int i = 0; i < charShows.length(); i++) { output.writeRawByte((byte) 82); output.writeMessageNoTag(charShows.get(i)); } } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00002000) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawByte((byte) 122); output.writeMessageNoTag(honors.get(i)); @@ -39089,18 +42055,24 @@ public final class Public { size += 1 + ProtoSink.computeUInt32SizeNoTag(titleSuffix); } if ((bitField0_ & 0x00000080) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2 + ProtoSink.computeUInt32SizeNoTag(dormLikeNum); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(nickName); + size += 2 + ProtoSink.computeMessageSizeNoTag(dormOutInfo); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(signature); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000400) != 0) { - size += (1 * charShows.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charShows); + size += 1 + ProtoSink.computeStringSizeNoTag(nickName); } if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * charShows.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(charShows); + } + if ((bitField0_ & 0x00002000) != 0) { size += (1 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } return size; @@ -39172,6 +42144,24 @@ public final class Public { titleSuffix = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 136) { + break; + } + } + case 136: { + // dormLikeNum + dormLikeNum = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 130) { + break; + } + } + case 130: { + // dormOutInfo + input.readMessage(dormOutInfo); + bitField0_ |= 0x00000100; + tag = input.readTag(); if (tag != 16378) { break; } @@ -39179,7 +42169,7 @@ public final class Public { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 18) { break; @@ -39188,7 +42178,7 @@ public final class Public { case 18: { // nickName input.readString(nickName); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 74) { break; @@ -39197,7 +42187,7 @@ public final class Public { case 74: { // signature input.readString(signature); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 82) { break; @@ -39206,7 +42196,7 @@ public final class Public { case 82: { // charShows tag = input.readRepeatedMessage(charShows, tag); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; if (tag != 122) { break; } @@ -39214,7 +42204,7 @@ public final class Public { case 122: { // honors tag = input.readRepeatedMessage(honors, tag); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; if (tag != 0) { break; } @@ -39258,18 +42248,24 @@ public final class Public { output.writeUInt32(FieldNames.titleSuffix, titleSuffix); } if ((bitField0_ & 0x00000080) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeUInt32(FieldNames.dormLikeNum, dormLikeNum); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.nickName, nickName); + output.writeMessage(FieldNames.dormOutInfo, dormOutInfo); } if ((bitField0_ & 0x00000200) != 0) { - output.writeString(FieldNames.signature, signature); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.charShows, charShows); + output.writeString(FieldNames.nickName, nickName); } if ((bitField0_ & 0x00000800) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.charShows, charShows); + } + if ((bitField0_ & 0x00002000) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } output.endObject(); @@ -39359,11 +42355,33 @@ public final class Public { } break; } + case 663384425: { + if (input.isAtField(FieldNames.dormLikeNum)) { + if (!input.trySkipNullValue()) { + dormLikeNum = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -618014186: { + if (input.isAtField(FieldNames.dormOutInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dormOutInfo); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -39374,7 +42392,7 @@ public final class Public { if (input.isAtField(FieldNames.nickName)) { if (!input.trySkipNullValue()) { input.readString(nickName); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -39385,7 +42403,7 @@ public final class Public { if (input.isAtField(FieldNames.signature)) { if (!input.trySkipNullValue()) { input.readString(signature); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -39396,7 +42414,7 @@ public final class Public { if (input.isAtField(FieldNames.charShows)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(charShows); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -39407,7 +42425,7 @@ public final class Public { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -39480,6 +42498,10 @@ public final class Public { static final FieldName titleSuffix = FieldName.forField("TitleSuffix"); + static final FieldName dormLikeNum = FieldName.forField("DormLikeNum"); + + static final FieldName dormOutInfo = FieldName.forField("DormOutInfo"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nickName = FieldName.forField("NickName"); @@ -42998,11 +46020,6 @@ public final class Public { public static final class DailyInstance extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 15; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -43013,6 +46030,11 @@ public final class Public { */ private int star; + /** + * optional .UseBuild Build = 3; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -43028,49 +46050,12 @@ public final class Public { return new DailyInstance(); } - /** - * optional uint64 BuildId = 15; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 15; - * @return this - */ - public DailyInstance clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 15; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 15; - * @param value the buildId to set - * @return this - */ - public DailyInstance setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -43078,7 +46063,7 @@ public final class Public { * @return this */ public DailyInstance clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -43097,7 +46082,7 @@ public final class Public { * @return this */ public DailyInstance setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -43107,7 +46092,7 @@ public final class Public { * @return whether the star field is set */ public boolean hasStar() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -43115,7 +46100,7 @@ public final class Public { * @return this */ public DailyInstance clearStar() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; star = 0; return this; } @@ -43134,11 +46119,68 @@ public final class Public { * @return this */ public DailyInstance setStar(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; star = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public DailyInstance clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public DailyInstance setBuild(final UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -43223,9 +46265,9 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; star = other.star; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -43237,15 +46279,15 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } if (other.hasStar()) { setStar(other.star); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -43259,9 +46301,9 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; star = 0; + build.clear(); nextPackage.clear(); return this; } @@ -43273,6 +46315,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -43287,26 +46330,26 @@ public final class Public { } DailyInstance other = (DailyInstance) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasStar() || star == other.star) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(star); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -43317,14 +46360,14 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(star); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -43338,19 +46381,10 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -43359,6 +46393,15 @@ public final class Public { case 16: { // star star = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -43392,14 +46435,14 @@ public final class Public { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.star, star); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -43413,22 +46456,11 @@ public final class Public { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -43439,6 +46471,17 @@ public final class Public { if (input.isAtField(FieldNames.star)) { if (!input.trySkipNullValue()) { star = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -43509,12 +46552,12 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName star = FieldName.forField("Star"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -50775,11 +53818,6 @@ public final class Public { public static final class ActivityLevel extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 3; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -50790,6 +53828,11 @@ public final class Public { */ private int star; + /** + * optional .UseBuild Build = 3; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -50805,49 +53848,12 @@ public final class Public { return new ActivityLevel(); } - /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 3; - * @return this - */ - public ActivityLevel clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 3; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 3; - * @param value the buildId to set - * @return this - */ - public ActivityLevel setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -50855,7 +53861,7 @@ public final class Public { * @return this */ public ActivityLevel clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -50874,7 +53880,7 @@ public final class Public { * @return this */ public ActivityLevel setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -50884,7 +53890,7 @@ public final class Public { * @return whether the star field is set */ public boolean hasStar() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -50892,7 +53898,7 @@ public final class Public { * @return this */ public ActivityLevel clearStar() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; star = 0; return this; } @@ -50911,11 +53917,68 @@ public final class Public { * @return this */ public ActivityLevel setStar(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; star = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public ActivityLevel clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public ActivityLevel setBuild(final UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -51000,9 +54063,9 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; star = other.star; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -51014,15 +54077,15 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } if (other.hasStar()) { setStar(other.star); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -51036,9 +54099,9 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; star = 0; + build.clear(); nextPackage.clear(); return this; } @@ -51050,6 +54113,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -51064,26 +54128,26 @@ public final class Public { } ActivityLevel other = (ActivityLevel) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasStar() || star == other.star) + && (!hasBuild() || build.equals(other.build)) && (!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(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(star); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -51094,14 +54158,14 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(star); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -51115,19 +54179,10 @@ public final class Public { 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: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -51136,6 +54191,15 @@ public final class Public { case 16: { // star star = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -51169,14 +54233,14 @@ public final class Public { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.star, star); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -51190,22 +54254,11 @@ public final class Public { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -51216,6 +54269,17 @@ public final class Public { if (input.isAtField(FieldNames.star)) { if (!input.trySkipNullValue()) { star = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -51286,12 +54350,12 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName star = FieldName.forField("Star"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -66726,11 +69790,6 @@ public final class Public { public static final class SkillInstance extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 5; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -66751,6 +69810,11 @@ public final class Public { */ private boolean threeStar; + /** + * optional .UseBuild Build = 5; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -66766,49 +69830,12 @@ public final class Public { return new SkillInstance(); } - /** - * optional uint64 BuildId = 5; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 5; - * @return this - */ - public SkillInstance clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 5; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 5; - * @param value the buildId to set - * @return this - */ - public SkillInstance setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -66816,7 +69843,7 @@ public final class Public { * @return this */ public SkillInstance clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -66835,7 +69862,7 @@ public final class Public { * @return this */ public SkillInstance setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -66845,7 +69872,7 @@ public final class Public { * @return whether the star field is set */ public boolean hasStar() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -66853,7 +69880,7 @@ public final class Public { * @return this */ public SkillInstance clearStar() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; star = 0; return this; } @@ -66872,7 +69899,7 @@ public final class Public { * @return this */ public SkillInstance setStar(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; star = value; return this; } @@ -66882,7 +69909,7 @@ public final class Public { * @return whether the first field is set */ public boolean hasFirst() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -66890,7 +69917,7 @@ public final class Public { * @return this */ public SkillInstance clearFirst() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; first = false; return this; } @@ -66909,7 +69936,7 @@ public final class Public { * @return this */ public SkillInstance setFirst(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; first = value; return this; } @@ -66919,7 +69946,7 @@ public final class Public { * @return whether the threeStar field is set */ public boolean hasThreeStar() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -66927,7 +69954,7 @@ public final class Public { * @return this */ public SkillInstance clearThreeStar() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; threeStar = false; return this; } @@ -66946,11 +69973,68 @@ public final class Public { * @return this */ public SkillInstance setThreeStar(final boolean value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; threeStar = value; return this; } + /** + * optional .UseBuild Build = 5; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .UseBuild Build = 5; + * @return this + */ + public SkillInstance clearBuild() { + bitField0_ &= ~0x00000010; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 5; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 5; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000010; + return build; + } + + /** + * optional .UseBuild Build = 5; + * @param value the build to set + * @return this + */ + public SkillInstance setBuild(final UseBuild value) { + bitField0_ |= 0x00000010; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -67035,11 +70119,11 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; star = other.star; first = other.first; threeStar = other.threeStar; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -67051,9 +70135,6 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } @@ -67066,6 +70147,9 @@ public final class Public { if (other.hasThreeStar()) { setThreeStar(other.threeStar); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -67079,11 +70163,11 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; star = 0; first = false; threeStar = false; + build.clear(); nextPackage.clear(); return this; } @@ -67095,6 +70179,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -67109,36 +70194,36 @@ public final class Public { } SkillInstance other = (SkillInstance) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasStar() || star == other.star) && (!hasFirst() || first == other.first) && (!hasThreeStar() || threeStar == other.threeStar) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); output.writeBoolNoTag(first); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 32); output.writeBoolNoTag(threeStar); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -67149,19 +70234,19 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(star); } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } if ((bitField0_ & 0x00000008) != 0) { size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += 2; + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000020) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -67176,19 +70261,10 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -67197,7 +70273,7 @@ public final class Public { case 16: { // star star = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 24) { break; @@ -67206,7 +70282,7 @@ public final class Public { case 24: { // first first = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 32) { break; @@ -67215,6 +70291,15 @@ public final class Public { case 32: { // threeStar threeStar = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // build + input.readMessage(build); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 16378) { @@ -67248,20 +70333,20 @@ public final class Public { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.star, star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.first, first); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeBool(FieldNames.threeStar, threeStar); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000020) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -67275,22 +70360,11 @@ public final class Public { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -67301,7 +70375,7 @@ public final class Public { if (input.isAtField(FieldNames.star)) { if (!input.trySkipNullValue()) { star = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -67312,7 +70386,7 @@ public final class Public { if (input.isAtField(FieldNames.first)) { if (!input.trySkipNullValue()) { first = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -67323,6 +70397,17 @@ public final class Public { if (input.isAtField(FieldNames.threeStar)) { if (!input.trySkipNullValue()) { threeStar = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000010; } } else { @@ -67393,8 +70478,6 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName star = FieldName.forField("Star"); @@ -67403,6 +70486,8 @@ public final class Public { static final FieldName threeStar = FieldName.forField("ThreeStar"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -67413,11 +70498,6 @@ public final class Public { public static final class WeekBossLevel extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 3; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -67433,6 +70513,11 @@ public final class Public { */ private boolean first; + /** + * optional .UseBuild Build = 3; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -67448,49 +70533,12 @@ public final class Public { return new WeekBossLevel(); } - /** - * optional uint64 BuildId = 3; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 3; - * @return this - */ - public WeekBossLevel clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 3; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 3; - * @param value the buildId to set - * @return this - */ - public WeekBossLevel setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -67498,7 +70546,7 @@ public final class Public { * @return this */ public WeekBossLevel clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -67517,7 +70565,7 @@ public final class Public { * @return this */ public WeekBossLevel setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -67527,7 +70575,7 @@ public final class Public { * @return whether the time field is set */ public boolean hasTime() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -67535,7 +70583,7 @@ public final class Public { * @return this */ public WeekBossLevel clearTime() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; time = 0; return this; } @@ -67554,7 +70602,7 @@ public final class Public { * @return this */ public WeekBossLevel setTime(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; time = value; return this; } @@ -67564,7 +70612,7 @@ public final class Public { * @return whether the first field is set */ public boolean hasFirst() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -67572,7 +70620,7 @@ public final class Public { * @return this */ public WeekBossLevel clearFirst() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; first = false; return this; } @@ -67591,11 +70639,68 @@ public final class Public { * @return this */ public WeekBossLevel setFirst(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; first = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public WeekBossLevel clearBuild() { + bitField0_ &= ~0x00000008; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000008; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public WeekBossLevel setBuild(final UseBuild value) { + bitField0_ |= 0x00000008; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -67680,10 +70785,10 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; time = other.time; first = other.first; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -67695,9 +70800,6 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } @@ -67707,6 +70809,9 @@ public final class Public { if (other.hasFirst()) { setFirst(other.first); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -67720,10 +70825,10 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; time = 0; first = false; + build.clear(); nextPackage.clear(); return this; } @@ -67735,6 +70840,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -67749,31 +70855,31 @@ public final class Public { } WeekBossLevel other = (WeekBossLevel) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasTime() || time == other.time) && (!hasFirst() || first == other.first) + && (!hasBuild() || build.equals(other.build)) && (!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(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(time); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 32); output.writeBoolNoTag(first); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -67784,17 +70890,17 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(time); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 2; } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000010) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -67808,19 +70914,10 @@ public final class Public { 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: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -67829,7 +70926,7 @@ public final class Public { case 16: { // time time = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 32) { break; @@ -67838,6 +70935,15 @@ public final class Public { case 32: { // first first = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 16378) { @@ -67871,17 +70977,17 @@ public final class Public { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.time, time); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.first, first); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000010) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -67895,22 +71001,11 @@ public final class Public { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -67921,7 +71016,7 @@ public final class Public { if (input.isAtField(FieldNames.time)) { if (!input.trySkipNullValue()) { time = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -67932,6 +71027,17 @@ public final class Public { if (input.isAtField(FieldNames.first)) { if (!input.trySkipNullValue()) { first = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000008; } } else { @@ -68002,14 +71108,14 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName time = FieldName.forField("Time"); static final FieldName first = FieldName.forField("First"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -68955,11 +72061,6 @@ public final class Public { public static final class CharGemInstance extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 5; - */ - private long buildId; - /** * optional uint32 Id = 1; */ @@ -68985,6 +72086,11 @@ public final class Public { */ private boolean threeStar; + /** + * optional .UseBuild Build = 5; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -69000,49 +72106,12 @@ public final class Public { return new CharGemInstance(); } - /** - * optional uint64 BuildId = 5; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 5; - * @return this - */ - public CharGemInstance clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 5; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 5; - * @param value the buildId to set - * @return this - */ - public CharGemInstance setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -69050,7 +72119,7 @@ public final class Public { * @return this */ public CharGemInstance clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -69069,7 +72138,7 @@ public final class Public { * @return this */ public CharGemInstance setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -69079,7 +72148,7 @@ public final class Public { * @return whether the star field is set */ public boolean hasStar() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -69087,7 +72156,7 @@ public final class Public { * @return this */ public CharGemInstance clearStar() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; star = 0; return this; } @@ -69106,7 +72175,7 @@ public final class Public { * @return this */ public CharGemInstance setStar(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; star = value; return this; } @@ -69116,7 +72185,7 @@ public final class Public { * @return whether the rewardType field is set */ public boolean hasRewardType() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -69124,7 +72193,7 @@ public final class Public { * @return this */ public CharGemInstance clearRewardType() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; rewardType = 0; return this; } @@ -69143,7 +72212,7 @@ public final class Public { * @return this */ public CharGemInstance setRewardType(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; rewardType = value; return this; } @@ -69153,7 +72222,7 @@ public final class Public { * @return whether the first field is set */ public boolean hasFirst() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -69161,7 +72230,7 @@ public final class Public { * @return this */ public CharGemInstance clearFirst() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; first = false; return this; } @@ -69180,7 +72249,7 @@ public final class Public { * @return this */ public CharGemInstance setFirst(final boolean value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; first = value; return this; } @@ -69190,7 +72259,7 @@ public final class Public { * @return whether the threeStar field is set */ public boolean hasThreeStar() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -69198,7 +72267,7 @@ public final class Public { * @return this */ public CharGemInstance clearThreeStar() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; threeStar = false; return this; } @@ -69217,11 +72286,68 @@ public final class Public { * @return this */ public CharGemInstance setThreeStar(final boolean value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; threeStar = value; return this; } + /** + * optional .UseBuild Build = 5; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .UseBuild Build = 5; + * @return this + */ + public CharGemInstance clearBuild() { + bitField0_ &= ~0x00000020; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 5; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 5; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000020; + return build; + } + + /** + * optional .UseBuild Build = 5; + * @param value the build to set + * @return this + */ + public CharGemInstance setBuild(final UseBuild value) { + bitField0_ |= 0x00000020; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -69306,12 +72432,12 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; star = other.star; rewardType = other.rewardType; first = other.first; threeStar = other.threeStar; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -69323,9 +72449,6 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } @@ -69341,6 +72464,9 @@ public final class Public { if (other.hasThreeStar()) { setThreeStar(other.threeStar); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -69354,12 +72480,12 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; star = 0; rewardType = 0; first = false; threeStar = false; + build.clear(); nextPackage.clear(); return this; } @@ -69371,6 +72497,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -69385,41 +72512,41 @@ public final class Public { } CharGemInstance other = (CharGemInstance) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) && (!hasStar() || star == other.star) && (!hasRewardType() || rewardType == other.rewardType) && (!hasFirst() || first == other.first) && (!hasThreeStar() || threeStar == other.threeStar) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 48); output.writeUInt32NoTag(rewardType); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 24); output.writeBoolNoTag(first); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 32); output.writeBoolNoTag(threeStar); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000040) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -69430,22 +72557,22 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardType); } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } if ((bitField0_ & 0x00000010) != 0) { size += 2; } if ((bitField0_ & 0x00000020) != 0) { - size += 2; + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000040) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -69460,19 +72587,10 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -69481,7 +72599,7 @@ public final class Public { case 16: { // star star = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 48) { break; @@ -69490,7 +72608,7 @@ public final class Public { case 48: { // rewardType rewardType = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 24) { break; @@ -69499,7 +72617,7 @@ public final class Public { case 24: { // first first = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 32) { break; @@ -69508,6 +72626,15 @@ public final class Public { case 32: { // threeStar threeStar = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // build + input.readMessage(build); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 16378) { @@ -69541,23 +72668,23 @@ public final class Public { 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.id, id); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.star, star); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.rewardType, rewardType); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeBool(FieldNames.first, first); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeBool(FieldNames.threeStar, threeStar); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000040) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -69571,22 +72698,11 @@ public final class Public { } 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 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -69597,7 +72713,7 @@ public final class Public { if (input.isAtField(FieldNames.star)) { if (!input.trySkipNullValue()) { star = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -69608,7 +72724,7 @@ public final class Public { if (input.isAtField(FieldNames.rewardType)) { if (!input.trySkipNullValue()) { rewardType = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -69619,7 +72735,7 @@ public final class Public { if (input.isAtField(FieldNames.first)) { if (!input.trySkipNullValue()) { first = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -69630,6 +72746,17 @@ public final class Public { if (input.isAtField(FieldNames.threeStar)) { if (!input.trySkipNullValue()) { threeStar = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000020; } } else { @@ -69701,8 +72828,6 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); static final FieldName star = FieldName.forField("Star"); @@ -69713,6 +72838,8 @@ public final class Public { static final FieldName threeStar = FieldName.forField("ThreeStar"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -77219,11 +80346,6 @@ public final class Public { public static final class ActivityTrekkerVersus extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 4; - */ - private long buildId; - /** * optional uint32 DayNum = 1; */ @@ -77239,6 +80361,11 @@ public final class Public { */ private int exp; + /** + * optional .UseBuild Build = 4; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional .TrekkerVersusShow Show = 5; */ @@ -77279,49 +80406,12 @@ public final class Public { return new ActivityTrekkerVersus(); } - /** - * optional uint64 BuildId = 4; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 4; - * @return this - */ - public ActivityTrekkerVersus clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 4; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 4; - * @param value the buildId to set - * @return this - */ - public ActivityTrekkerVersus setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 DayNum = 1; * @return whether the dayNum field is set */ public boolean hasDayNum() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -77329,7 +80419,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus clearDayNum() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; dayNum = 0; return this; } @@ -77348,7 +80438,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus setDayNum(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; dayNum = value; return this; } @@ -77358,7 +80448,7 @@ public final class Public { * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -77366,7 +80456,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus clearLevel() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; level = 0; return this; } @@ -77385,7 +80475,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus setLevel(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; level = value; return this; } @@ -77395,7 +80485,7 @@ public final class Public { * @return whether the exp field is set */ public boolean hasExp() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -77403,7 +80493,7 @@ public final class Public { * @return this */ public ActivityTrekkerVersus clearExp() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; exp = 0; return this; } @@ -77422,11 +80512,68 @@ public final class Public { * @return this */ public ActivityTrekkerVersus setExp(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; exp = value; return this; } + /** + * optional .UseBuild Build = 4; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .UseBuild Build = 4; + * @return this + */ + public ActivityTrekkerVersus clearBuild() { + bitField0_ &= ~0x00000008; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 4; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 4; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000008; + return build; + } + + /** + * optional .UseBuild Build = 4; + * @param value the build to set + * @return this + */ + public ActivityTrekkerVersus setBuild(final UseBuild value) { + bitField0_ |= 0x00000008; + build.copyFrom(value); + return this; + } + /** * optional .TrekkerVersusShow Show = 5; * @return whether the show field is set @@ -77840,10 +80987,10 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; dayNum = other.dayNum; level = other.level; exp = other.exp; + build.copyFrom(other.build); show.copyFrom(other.show); nextPackage.copyFrom(other.nextPackage); hotValueRewardIds.copyFrom(other.hotValueRewardIds); @@ -77860,9 +81007,6 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasDayNum()) { setDayNum(other.dayNum); } @@ -77872,6 +81016,9 @@ public final class Public { if (other.hasExp()) { setExp(other.exp); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasShow()) { getMutableShow().mergeFrom(other.show); } @@ -77900,10 +81047,10 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; dayNum = 0; level = 0; exp = 0; + build.clear(); show.clear(); nextPackage.clear(); hotValueRewardIds.clear(); @@ -77920,6 +81067,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); show.clearQuick(); nextPackage.clear(); hotValueRewardIds.clear(); @@ -77939,10 +81087,10 @@ public final class Public { } ActivityTrekkerVersus other = (ActivityTrekkerVersus) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasDayNum() || dayNum == other.dayNum) && (!hasLevel() || level == other.level) && (!hasExp() || exp == other.exp) + && (!hasBuild() || build.equals(other.build)) && (!hasShow() || show.equals(other.show)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasHotValueRewardIds() || hotValueRewardIds.equals(other.hotValueRewardIds)) @@ -77954,21 +81102,21 @@ public final class Public { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(dayNum); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(level); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(exp); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(show); @@ -78007,17 +81155,17 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(dayNum); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(show); } @@ -78046,19 +81194,10 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // dayNum dayNum = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; @@ -78067,7 +81206,7 @@ public final class Public { case 16: { // level level = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 24) { break; @@ -78076,6 +81215,15 @@ public final class Public { case 24: { // exp exp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // build + input.readMessage(build); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 42) { @@ -78164,17 +81312,17 @@ public final class Public { 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.dayNum, dayNum); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.exp, exp); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.show, show); } @@ -78203,22 +81351,11 @@ public final class Public { } 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 2040047210: { if (input.isAtField(FieldNames.dayNum)) { if (!input.trySkipNullValue()) { dayNum = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -78229,7 +81366,7 @@ public final class Public { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -78240,6 +81377,17 @@ public final class Public { if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { exp = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000008; } } else { @@ -78771,14 +81919,14 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName dayNum = FieldName.forField("DayNum"); static final FieldName level = FieldName.forField("Level"); static final FieldName exp = FieldName.forField("Exp"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName show = FieldName.forField("Show"); static final FieldName nextPackage = FieldName.forField("NextPackage"); @@ -79841,9 +82989,9 @@ public final class Public { private static final long serialVersionUID = 0L; /** - * optional uint64 BuildId = 2; + * optional .UseBuild Build = 2; */ - private long buildId; + private final UseBuild build = UseBuild.newInstance(); /** * optional bytes NextPackage = 2047; @@ -79871,39 +83019,59 @@ public final class Public { } /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set + * optional .UseBuild Build = 2; + * @return whether the build field is set */ - public boolean hasBuildId() { + public boolean hasBuild() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint64 BuildId = 2; + * optional .UseBuild Build = 2; * @return this */ - public ActivityStoryChapter clearBuildId() { + public ActivityStoryChapter clearBuild() { bitField0_ &= ~0x00000001; - buildId = 0L; + build.clear(); return this; } /** - * optional uint64 BuildId = 2; - * @return the buildId + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading */ - public long getBuildId() { - return buildId; + public UseBuild getBuild() { + return build; } /** - * optional uint64 BuildId = 2; - * @param value the buildId to set + * optional .UseBuild Build = 2; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000001; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set * @return this */ - public ActivityStoryChapter setBuildId(final long value) { + public ActivityStoryChapter setBuild(final UseBuild value) { bitField0_ |= 0x00000001; - buildId = value; + build.copyFrom(value); return this; } @@ -80127,7 +83295,7 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); evidences.copyFrom(other.evidences); stories.copyFrom(other.stories); @@ -80141,8 +83309,8 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); @@ -80163,7 +83331,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; + build.clear(); nextPackage.clear(); evidences.clear(); stories.clear(); @@ -80177,6 +83345,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); evidences.clear(); stories.clearQuick(); @@ -80193,7 +83362,7 @@ public final class Public { } ActivityStoryChapter other = (ActivityStoryChapter) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasEvidences() || evidences.equals(other.evidences)) && (!hasStories() || stories.equals(other.stories)); @@ -80202,8 +83371,8 @@ public final class Public { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawLittleEndian16((short) 32762); @@ -80227,7 +83396,7 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000002) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -80248,9 +83417,9 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16378) { @@ -80307,7 +83476,7 @@ public final class Public { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000002) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -80328,10 +83497,10 @@ public final class Public { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + input.readMessage(build); bitField0_ |= 0x00000001; } } else { @@ -80425,7 +83594,7 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); + static final FieldName build = FieldName.forField("Build"); static final FieldName nextPackage = FieldName.forField("NextPackage"); @@ -86521,16 +89690,16 @@ public final class Public { public static final class ActivityHistoryStoryChapter extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 ChapterId = 1; */ private int chapterId; + /** + * optional .UseBuild Build = 2; + */ + private final UseBuild build = UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -86556,49 +89725,12 @@ public final class Public { return new ActivityHistoryStoryChapter(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public ActivityHistoryStoryChapter clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public ActivityHistoryStoryChapter setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 ChapterId = 1; * @return whether the chapterId field is set */ public boolean hasChapterId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -86606,7 +89738,7 @@ public final class Public { * @return this */ public ActivityHistoryStoryChapter clearChapterId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; chapterId = 0; return this; } @@ -86625,11 +89757,68 @@ public final class Public { * @return this */ public ActivityHistoryStoryChapter setChapterId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; chapterId = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public ActivityHistoryStoryChapter clearBuild() { + bitField0_ &= ~0x00000002; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 UseBuild getMutableBuild() { + bitField0_ |= 0x00000002; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public ActivityHistoryStoryChapter setBuild(final UseBuild value) { + bitField0_ |= 0x00000002; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -86850,8 +90039,8 @@ public final class Public { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; chapterId = other.chapterId; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); evidences.copyFrom(other.evidences); stories.copyFrom(other.stories); @@ -86865,12 +90054,12 @@ public final class Public { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasChapterId()) { setChapterId(other.chapterId); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -86890,8 +90079,8 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; chapterId = 0; + build.clear(); nextPackage.clear(); evidences.clear(); stories.clear(); @@ -86905,6 +90094,7 @@ public final class Public { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); evidences.clear(); stories.clearQuick(); @@ -86921,8 +90111,8 @@ public final class Public { } ActivityHistoryStoryChapter other = (ActivityHistoryStoryChapter) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasChapterId() || chapterId == other.chapterId) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasEvidences() || evidences.equals(other.evidences)) && (!hasStories() || stories.equals(other.stories)); @@ -86931,13 +90121,13 @@ public final class Public { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(chapterId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -86960,10 +90150,10 @@ public final class Public { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(chapterId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(chapterId); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -86984,18 +90174,18 @@ public final class Public { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // chapterId chapterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { @@ -87052,10 +90242,10 @@ public final class Public { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeUInt32(FieldNames.chapterId, chapterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.chapterId, chapterId); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -87076,10 +90266,10 @@ public final class Public { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case -766458328: { + if (input.isAtField(FieldNames.chapterId)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + chapterId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -87087,10 +90277,10 @@ public final class Public { } break; } - case -766458328: { - if (input.isAtField(FieldNames.chapterId)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - chapterId = input.readUInt32(); + input.readMessage(build); bitField0_ |= 0x00000002; } } else { @@ -87185,10 +90375,10 @@ public final class Public { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName chapterId = FieldName.forField("ChapterId"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName evidences = FieldName.forField("Evidences"); @@ -92755,4 +95945,6947 @@ public final class Public { static final FieldName quests = FieldName.forField("Quests"); } } + + /** + * Protobuf type {@code ActivityMathParkourLevel} + */ + public static final class ActivityMathParkourLevel extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LevelId = 1; + */ + private int levelId; + + /** + * optional uint32 Score = 2; + */ + private int score; + + /** + * optional uint32 Star = 3; + */ + private int star; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityMathParkourLevel() { + } + + /** + * @return a new empty instance of {@code ActivityMathParkourLevel} + */ + public static ActivityMathParkourLevel newInstance() { + return new ActivityMathParkourLevel(); + } + + /** + * optional uint32 LevelId = 1; + * @return whether the levelId field is set + */ + public boolean hasLevelId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LevelId = 1; + * @return this + */ + public ActivityMathParkourLevel clearLevelId() { + bitField0_ &= ~0x00000001; + levelId = 0; + return this; + } + + /** + * optional uint32 LevelId = 1; + * @return the levelId + */ + public int getLevelId() { + return levelId; + } + + /** + * optional uint32 LevelId = 1; + * @param value the levelId to set + * @return this + */ + public ActivityMathParkourLevel setLevelId(final int value) { + bitField0_ |= 0x00000001; + levelId = value; + return this; + } + + /** + * optional uint32 Score = 2; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Score = 2; + * @return this + */ + public ActivityMathParkourLevel clearScore() { + bitField0_ &= ~0x00000002; + score = 0; + return this; + } + + /** + * optional uint32 Score = 2; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 2; + * @param value the score to set + * @return this + */ + public ActivityMathParkourLevel setScore(final int value) { + bitField0_ |= 0x00000002; + score = value; + return this; + } + + /** + * optional uint32 Star = 3; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Star = 3; + * @return this + */ + public ActivityMathParkourLevel clearStar() { + bitField0_ &= ~0x00000004; + star = 0; + return this; + } + + /** + * optional uint32 Star = 3; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 3; + * @param value the star to set + * @return this + */ + public ActivityMathParkourLevel setStar(final int value) { + bitField0_ |= 0x00000004; + star = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityMathParkourLevel clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityMathParkourLevel addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityMathParkourLevel addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityMathParkourLevel setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityMathParkourLevel copyFrom(final ActivityMathParkourLevel other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + levelId = other.levelId; + score = other.score; + star = other.star; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMathParkourLevel mergeFrom(final ActivityMathParkourLevel other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevelId()) { + setLevelId(other.levelId); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMathParkourLevel clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + levelId = 0; + score = 0; + star = 0; + nextPackage.clear(); + return this; + } + + @Override + public ActivityMathParkourLevel 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 ActivityMathParkourLevel)) { + return false; + } + ActivityMathParkourLevel other = (ActivityMathParkourLevel) o; + return bitField0_ == other.bitField0_ + && (!hasLevelId() || levelId == other.levelId) + && (!hasScore() || score == other.score) + && (!hasStar() || star == other.star) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(star); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityMathParkourLevel mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // levelId + levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // star + star = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.levelId, levelId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityMathParkourLevel mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1734437791: { + if (input.isAtField(FieldNames.levelId)) { + if (!input.trySkipNullValue()) { + levelId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = 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 ActivityMathParkourLevel clone() { + return new ActivityMathParkourLevel().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityMathParkourLevel parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevel(), data).checkInitialized(); + } + + public static ActivityMathParkourLevel parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevel(), input).checkInitialized(); + } + + public static ActivityMathParkourLevel parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevel(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityMathParkourLevel messages + */ + public static MessageFactory getFactory() { + return ActivityMathParkourLevelFactory.INSTANCE; + } + + private enum ActivityMathParkourLevelFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityMathParkourLevel create() { + return ActivityMathParkourLevel.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName levelId = FieldName.forField("LevelId"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityMathParkour} + */ + public static final class ActivityMathParkour extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + */ + private final RepeatedMessage levels = RepeatedMessage.newEmptyInstance(ActivityMathParkourLevel.getFactory()); + + /** + * repeated .ActivityQuest Quests = 3; + */ + private final RepeatedMessage quests = RepeatedMessage.newEmptyInstance(ActivityQuest.getFactory()); + + private ActivityMathParkour() { + } + + /** + * @return a new empty instance of {@code ActivityMathParkour} + */ + public static ActivityMathParkour newInstance() { + return new ActivityMathParkour(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityMathParkour clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityMathParkour setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityMathParkour clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityMathParkour addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityMathParkour addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityMathParkour setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + * @return whether the levels field is set + */ + public boolean hasLevels() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + * @return this + */ + public ActivityMathParkour clearLevels() { + bitField0_ &= ~0x00000004; + levels.clear(); + return this; + } + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableLevels()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLevels() { + return levels; + } + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + * + * 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 getMutableLevels() { + bitField0_ |= 0x00000004; + return levels; + } + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + * @param value the levels to add + * @return this + */ + public ActivityMathParkour addLevels(final ActivityMathParkourLevel value) { + bitField0_ |= 0x00000004; + levels.add(value); + return this; + } + + /** + * repeated .ActivityMathParkourLevel Levels = 2; + * @param values the levels to add + * @return this + */ + public ActivityMathParkour addAllLevels(final ActivityMathParkourLevel... values) { + bitField0_ |= 0x00000004; + levels.addAll(values); + return this; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @return whether the quests field is set + */ + public boolean hasQuests() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @return this + */ + public ActivityMathParkour clearQuests() { + bitField0_ &= ~0x00000008; + quests.clear(); + return this; + } + + /** + * repeated .ActivityQuest Quests = 3; + * + * 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 #getMutableQuests()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getQuests() { + return quests; + } + + /** + * repeated .ActivityQuest Quests = 3; + * + * 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 getMutableQuests() { + bitField0_ |= 0x00000008; + return quests; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @param value the quests to add + * @return this + */ + public ActivityMathParkour addQuests(final ActivityQuest value) { + bitField0_ |= 0x00000008; + quests.add(value); + return this; + } + + /** + * repeated .ActivityQuest Quests = 3; + * @param values the quests to add + * @return this + */ + public ActivityMathParkour addAllQuests(final ActivityQuest... values) { + bitField0_ |= 0x00000008; + quests.addAll(values); + return this; + } + + @Override + public ActivityMathParkour copyFrom(final ActivityMathParkour other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + nextPackage.copyFrom(other.nextPackage); + levels.copyFrom(other.levels); + quests.copyFrom(other.quests); + } + return this; + } + + @Override + public ActivityMathParkour mergeFrom(final ActivityMathParkour other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasLevels()) { + getMutableLevels().addAll(other.levels); + } + if (other.hasQuests()) { + getMutableQuests().addAll(other.quests); + } + return this; + } + + @Override + public ActivityMathParkour clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + nextPackage.clear(); + levels.clear(); + quests.clear(); + return this; + } + + @Override + public ActivityMathParkour clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + levels.clearQuick(); + quests.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityMathParkour)) { + return false; + } + ActivityMathParkour other = (ActivityMathParkour) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasLevels() || levels.equals(other.levels)) + && (!hasQuests() || quests.equals(other.quests)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < levels.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(levels.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < quests.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(quests.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * levels.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(levels); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * quests.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(quests); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityMathParkour mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // levels + tag = input.readRepeatedMessage(levels, tag); + bitField0_ |= 0x00000004; + if (tag != 26) { + break; + } + } + case 26: { + // quests + tag = input.readRepeatedMessage(quests, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.levels, levels); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.quests, quests); + } + output.endObject(); + } + + @Override + public ActivityMathParkour mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2022260337: { + if (input.isAtField(FieldNames.levels)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(levels); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1864830991: { + if (input.isAtField(FieldNames.quests)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(quests); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityMathParkour clone() { + return new ActivityMathParkour().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityMathParkour parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityMathParkour(), data).checkInitialized(); + } + + public static ActivityMathParkour parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkour(), input).checkInitialized(); + } + + public static ActivityMathParkour parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkour(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityMathParkour messages + */ + public static MessageFactory getFactory() { + return ActivityMathParkourFactory.INSTANCE; + } + + private enum ActivityMathParkourFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityMathParkour create() { + return ActivityMathParkour.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName levels = FieldName.forField("Levels"); + + static final FieldName quests = FieldName.forField("Quests"); + } + } + + /** + * Protobuf type {@code ActivityMathParkourLevelSettleSucceed} + */ + public static final class ActivityMathParkourLevelSettleSucceed extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool Passed = 2; + */ + private boolean passed; + + /** + * optional .ChangeInfo Change = 1; + */ + private final ChangeInfo change = ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityMathParkourLevelSettleSucceed() { + } + + /** + * @return a new empty instance of {@code ActivityMathParkourLevelSettleSucceed} + */ + public static ActivityMathParkourLevelSettleSucceed newInstance() { + return new ActivityMathParkourLevelSettleSucceed(); + } + + /** + * optional bool Passed = 2; + * @return whether the passed field is set + */ + public boolean hasPassed() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool Passed = 2; + * @return this + */ + public ActivityMathParkourLevelSettleSucceed clearPassed() { + bitField0_ &= ~0x00000001; + passed = false; + return this; + } + + /** + * optional bool Passed = 2; + * @return the passed + */ + public boolean getPassed() { + return passed; + } + + /** + * optional bool Passed = 2; + * @param value the passed to set + * @return this + */ + public ActivityMathParkourLevelSettleSucceed setPassed(final boolean value) { + bitField0_ |= 0x00000001; + passed = value; + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 1; + * @return this + */ + public ActivityMathParkourLevelSettleSucceed clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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 ChangeInfo getChange() { + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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 ChangeInfo getMutableChange() { + bitField0_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public ActivityMathParkourLevelSettleSucceed setChange(final ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityMathParkourLevelSettleSucceed clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityMathParkourLevelSettleSucceed addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityMathParkourLevelSettleSucceed addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityMathParkourLevelSettleSucceed setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityMathParkourLevelSettleSucceed copyFrom( + final ActivityMathParkourLevelSettleSucceed other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + passed = other.passed; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMathParkourLevelSettleSucceed mergeFrom( + final ActivityMathParkourLevelSettleSucceed other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPassed()) { + setPassed(other.passed); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMathParkourLevelSettleSucceed clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + passed = false; + change.clear(); + nextPackage.clear(); + return this; + } + + @Override + public ActivityMathParkourLevelSettleSucceed clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ActivityMathParkourLevelSettleSucceed)) { + return false; + } + ActivityMathParkourLevelSettleSucceed other = (ActivityMathParkourLevelSettleSucceed) o; + return bitField0_ == other.bitField0_ + && (!hasPassed() || passed == other.passed) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(passed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityMathParkourLevelSettleSucceed mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // passed + passed = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // change + input.readMessage(change); + 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.writeBool(FieldNames.passed, passed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityMathParkourLevelSettleSucceed mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1911513968: { + if (input.isAtField(FieldNames.passed)) { + if (!input.trySkipNullValue()) { + passed = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + 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 ActivityMathParkourLevelSettleSucceed clone() { + return new ActivityMathParkourLevelSettleSucceed().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityMathParkourLevelSettleSucceed parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevelSettleSucceed(), data).checkInitialized(); + } + + public static ActivityMathParkourLevelSettleSucceed parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevelSettleSucceed(), input).checkInitialized(); + } + + public static ActivityMathParkourLevelSettleSucceed parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ActivityMathParkourLevelSettleSucceed(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityMathParkourLevelSettleSucceed messages + */ + public static MessageFactory getFactory() { + return ActivityMathParkourLevelSettleSucceedFactory.INSTANCE; + } + + private enum ActivityMathParkourLevelSettleSucceedFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityMathParkourLevelSettleSucceed create() { + return ActivityMathParkourLevelSettleSucceed.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName passed = FieldName.forField("Passed"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code UseBuild} + */ + public static final class UseBuild extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 2; + */ + private long buildId; + + /** + * optional .BuildType Type = 1; + */ + private int type; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private UseBuild() { + } + + /** + * @return a new empty instance of {@code UseBuild} + */ + public static UseBuild newInstance() { + return new UseBuild(); + } + + /** + * optional uint64 BuildId = 2; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 BuildId = 2; + * @return this + */ + public UseBuild clearBuildId() { + bitField0_ &= ~0x00000001; + buildId = 0L; + return this; + } + + /** + * optional uint64 BuildId = 2; + * @return the buildId + */ + public long getBuildId() { + return buildId; + } + + /** + * optional uint64 BuildId = 2; + * @param value the buildId to set + * @return this + */ + public UseBuild setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional .BuildType Type = 1; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .BuildType Type = 1; + * @return this + */ + public UseBuild clearType() { + bitField0_ &= ~0x00000002; + type = 0; + return this; + } + + /** + * optional .BuildType Type = 1; + * @return the type + */ + public BuildType getType() { + return BuildType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link UseBuild#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BuildType}. Setting an invalid value + * can cause {@link UseBuild#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public UseBuild setTypeValue(final int value) { + bitField0_ |= 0x00000002; + type = value; + return this; + } + + /** + * optional .BuildType Type = 1; + * @param value the type to set + * @return this + */ + public UseBuild setType(final BuildType value) { + bitField0_ |= 0x00000002; + type = value.getNumber(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public UseBuild clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public UseBuild addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public UseBuild addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public UseBuild setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public UseBuild copyFrom(final UseBuild other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + type = other.type; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public UseBuild mergeFrom(final UseBuild other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasType()) { + setTypeValue(other.type); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public UseBuild clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + type = 0; + nextPackage.clear(); + return this; + } + + @Override + public UseBuild 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 UseBuild)) { + return false; + } + UseBuild other = (UseBuild) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasType() || type == other.type) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt64NoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(type); + } + 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.computeUInt64SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(type); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UseBuild mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // type + final int value = input.readInt32(); + if (BuildType.forNumber(value) != null) { + type = value; + 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.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.type, type, BuildType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public UseBuild 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 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final BuildType value = input.readEnum(BuildType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 UseBuild clone() { + return new UseBuild().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UseBuild parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UseBuild(), data).checkInitialized(); + } + + public static UseBuild parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UseBuild(), input).checkInitialized(); + } + + public static UseBuild parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UseBuild(), input).checkInitialized(); + } + + /** + * @return factory for creating UseBuild messages + */ + public static MessageFactory getFactory() { + return UseBuildFactory.INSTANCE; + } + + private enum UseBuildFactory implements MessageFactory { + INSTANCE; + + @Override + public UseBuild create() { + return UseBuild.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName type = FieldName.forField("Type"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code GuideMissionState} + */ + public static final class GuideMissionState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool New = 1; + */ + private boolean new_; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private GuideMissionState() { + } + + /** + * @return a new empty instance of {@code GuideMissionState} + */ + public static GuideMissionState newInstance() { + return new GuideMissionState(); + } + + /** + * optional bool New = 1; + * @return whether the new_ field is set + */ + public boolean hasNew() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool New = 1; + * @return this + */ + public GuideMissionState clearNew() { + bitField0_ &= ~0x00000001; + new_ = false; + return this; + } + + /** + * optional bool New = 1; + * @return the new_ + */ + public boolean getNew() { + return new_; + } + + /** + * optional bool New = 1; + * @param value the new_ to set + * @return this + */ + public GuideMissionState setNew(final boolean value) { + bitField0_ |= 0x00000001; + new_ = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public GuideMissionState clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public GuideMissionState addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public GuideMissionState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public GuideMissionState setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public GuideMissionState copyFrom(final GuideMissionState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + new_ = other.new_; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public GuideMissionState mergeFrom(final GuideMissionState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNew()) { + setNew(other.new_); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public GuideMissionState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + new_ = false; + nextPackage.clear(); + return this; + } + + @Override + public GuideMissionState 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 GuideMissionState)) { + return false; + } + GuideMissionState other = (GuideMissionState) o; + return bitField0_ == other.bitField0_ + && (!hasNew() || new_ == other.new_) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(new_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GuideMissionState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // new_ + new_ = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.new_, new_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public GuideMissionState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 78208: { + if (input.isAtField(FieldNames.new_)) { + if (!input.trySkipNullValue()) { + new_ = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GuideMissionState clone() { + return new GuideMissionState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GuideMissionState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GuideMissionState(), data).checkInitialized(); + } + + public static GuideMissionState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GuideMissionState(), input).checkInitialized(); + } + + public static GuideMissionState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GuideMissionState(), input).checkInitialized(); + } + + /** + * @return factory for creating GuideMissionState messages + */ + public static MessageFactory getFactory() { + return GuideMissionStateFactory.INSTANCE; + } + + private enum GuideMissionStateFactory implements MessageFactory { + INSTANCE; + + @Override + public GuideMissionState create() { + return GuideMissionState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName new_ = FieldName.forField("New"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityMailBind} + */ + public static final class ActivityMailBind extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool Bind = 1; + */ + private boolean bind; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityMailBind() { + } + + /** + * @return a new empty instance of {@code ActivityMailBind} + */ + public static ActivityMailBind newInstance() { + return new ActivityMailBind(); + } + + /** + * optional bool Bind = 1; + * @return whether the bind field is set + */ + public boolean hasBind() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool Bind = 1; + * @return this + */ + public ActivityMailBind clearBind() { + bitField0_ &= ~0x00000001; + bind = false; + return this; + } + + /** + * optional bool Bind = 1; + * @return the bind + */ + public boolean getBind() { + return bind; + } + + /** + * optional bool Bind = 1; + * @param value the bind to set + * @return this + */ + public ActivityMailBind setBind(final boolean value) { + bitField0_ |= 0x00000001; + bind = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityMailBind clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityMailBind addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityMailBind addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityMailBind setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityMailBind copyFrom(final ActivityMailBind other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bind = other.bind; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMailBind mergeFrom(final ActivityMailBind other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBind()) { + setBind(other.bind); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMailBind clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bind = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityMailBind 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 ActivityMailBind)) { + return false; + } + ActivityMailBind other = (ActivityMailBind) o; + return bitField0_ == other.bitField0_ + && (!hasBind() || bind == other.bind) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(bind); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityMailBind mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // bind + bind = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.bind, bind); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityMailBind mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2070621: { + if (input.isAtField(FieldNames.bind)) { + if (!input.trySkipNullValue()) { + bind = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityMailBind clone() { + return new ActivityMailBind().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityMailBind parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityMailBind(), data).checkInitialized(); + } + + public static ActivityMailBind parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMailBind(), input).checkInitialized(); + } + + public static ActivityMailBind parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMailBind(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityMailBind messages + */ + public static MessageFactory getFactory() { + return ActivityMailBindFactory.INSTANCE; + } + + private enum ActivityMailBindFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityMailBind create() { + return ActivityMailBind.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bind = FieldName.forField("Bind"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code ActivityMallLogin} + */ + public static final class ActivityMallLogin extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ActivityId = 1; + */ + private int activityId; + + /** + * optional uint32 Received = 3; + */ + private int received; + + /** + * optional uint32 LoginDays = 4; + */ + private int loginDays; + + /** + * optional bool active = 2; + */ + private boolean active; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private ActivityMallLogin() { + } + + /** + * @return a new empty instance of {@code ActivityMallLogin} + */ + public static ActivityMallLogin newInstance() { + return new ActivityMallLogin(); + } + + /** + * optional uint32 ActivityId = 1; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ActivityId = 1; + * @return this + */ + public ActivityMallLogin clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 ActivityId = 1; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 ActivityId = 1; + * @param value the activityId to set + * @return this + */ + public ActivityMallLogin setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 Received = 3; + * @return whether the received field is set + */ + public boolean hasReceived() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Received = 3; + * @return this + */ + public ActivityMallLogin clearReceived() { + bitField0_ &= ~0x00000002; + received = 0; + return this; + } + + /** + * optional uint32 Received = 3; + * @return the received + */ + public int getReceived() { + return received; + } + + /** + * optional uint32 Received = 3; + * @param value the received to set + * @return this + */ + public ActivityMallLogin setReceived(final int value) { + bitField0_ |= 0x00000002; + received = value; + return this; + } + + /** + * optional uint32 LoginDays = 4; + * @return whether the loginDays field is set + */ + public boolean hasLoginDays() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 LoginDays = 4; + * @return this + */ + public ActivityMallLogin clearLoginDays() { + bitField0_ &= ~0x00000004; + loginDays = 0; + return this; + } + + /** + * optional uint32 LoginDays = 4; + * @return the loginDays + */ + public int getLoginDays() { + return loginDays; + } + + /** + * optional uint32 LoginDays = 4; + * @param value the loginDays to set + * @return this + */ + public ActivityMallLogin setLoginDays(final int value) { + bitField0_ |= 0x00000004; + loginDays = value; + return this; + } + + /** + * optional bool active = 2; + * @return whether the active field is set + */ + public boolean hasActive() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool active = 2; + * @return this + */ + public ActivityMallLogin clearActive() { + bitField0_ &= ~0x00000008; + active = false; + return this; + } + + /** + * optional bool active = 2; + * @return the active + */ + public boolean getActive() { + return active; + } + + /** + * optional bool active = 2; + * @param value the active to set + * @return this + */ + public ActivityMallLogin setActive(final boolean value) { + bitField0_ |= 0x00000008; + active = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public ActivityMallLogin clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public ActivityMallLogin addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public ActivityMallLogin addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public ActivityMallLogin setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public ActivityMallLogin copyFrom(final ActivityMallLogin other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + received = other.received; + loginDays = other.loginDays; + active = other.active; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMallLogin mergeFrom(final ActivityMallLogin other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasReceived()) { + setReceived(other.received); + } + if (other.hasLoginDays()) { + setLoginDays(other.loginDays); + } + if (other.hasActive()) { + setActive(other.active); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public ActivityMallLogin clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + received = 0; + loginDays = 0; + active = false; + nextPackage.clear(); + return this; + } + + @Override + public ActivityMallLogin 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 ActivityMallLogin)) { + return false; + } + ActivityMallLogin other = (ActivityMallLogin) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasReceived() || received == other.received) + && (!hasLoginDays() || loginDays == other.loginDays) + && (!hasActive() || active == other.active) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(received); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(loginDays); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(active); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(received); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(loginDays); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivityMallLogin mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // received + received = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // loginDays + loginDays = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // active + active = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.received, received); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.loginDays, loginDays); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.active, active); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public ActivityMallLogin mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -252882774: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -744075775: { + if (input.isAtField(FieldNames.received)) { + if (!input.trySkipNullValue()) { + received = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 284202816: { + if (input.isAtField(FieldNames.loginDays)) { + if (!input.trySkipNullValue()) { + loginDays = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1422950650: { + if (input.isAtField(FieldNames.active)) { + if (!input.trySkipNullValue()) { + active = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivityMallLogin clone() { + return new ActivityMallLogin().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivityMallLogin parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivityMallLogin(), data).checkInitialized(); + } + + public static ActivityMallLogin parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMallLogin(), input).checkInitialized(); + } + + public static ActivityMallLogin parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivityMallLogin(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivityMallLogin messages + */ + public static MessageFactory getFactory() { + return ActivityMallLoginFactory.INSTANCE; + } + + private enum ActivityMallLoginFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivityMallLogin create() { + return ActivityMallLogin.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("ActivityId"); + + static final FieldName received = FieldName.forField("Received"); + + static final FieldName loginDays = FieldName.forField("LoginDays"); + + static final FieldName active = FieldName.forField("active"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TowerVitaOption} + */ + public static final class TowerVitaOption extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Integer = 3; + */ + private int integer; + + /** + * optional bool Boolean = 2; + */ + private boolean boolean_; + + /** + * optional .UI32s List = 4; + */ + private final UI32s list = UI32s.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TowerVitaOption() { + } + + /** + * @return a new empty instance of {@code TowerVitaOption} + */ + public static TowerVitaOption newInstance() { + return new TowerVitaOption(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public TowerVitaOption clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public TowerVitaOption setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Integer = 3; + * @return whether the integer field is set + */ + public boolean hasInteger() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Integer = 3; + * @return this + */ + public TowerVitaOption clearInteger() { + bitField0_ &= ~0x00000002; + integer = 0; + return this; + } + + /** + * optional uint32 Integer = 3; + * @return the integer + */ + public int getInteger() { + return integer; + } + + /** + * optional uint32 Integer = 3; + * @param value the integer to set + * @return this + */ + public TowerVitaOption setInteger(final int value) { + bitField0_ |= 0x00000002; + integer = value; + return this; + } + + /** + * optional bool Boolean = 2; + * @return whether the boolean_ field is set + */ + public boolean hasBoolean() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool Boolean = 2; + * @return this + */ + public TowerVitaOption clearBoolean() { + bitField0_ &= ~0x00000004; + boolean_ = false; + return this; + } + + /** + * optional bool Boolean = 2; + * @return the boolean_ + */ + public boolean getBoolean() { + return boolean_; + } + + /** + * optional bool Boolean = 2; + * @param value the boolean_ to set + * @return this + */ + public TowerVitaOption setBoolean(final boolean value) { + bitField0_ |= 0x00000004; + boolean_ = value; + return this; + } + + /** + * optional .UI32s List = 4; + * @return whether the list field is set + */ + public boolean hasList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .UI32s List = 4; + * @return this + */ + public TowerVitaOption clearList() { + bitField0_ &= ~0x00000008; + list.clear(); + return this; + } + + /** + * optional .UI32s List = 4; + * + * 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 #getMutableList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public UI32s getList() { + return list; + } + + /** + * optional .UI32s List = 4; + * + * 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 UI32s getMutableList() { + bitField0_ |= 0x00000008; + return list; + } + + /** + * optional .UI32s List = 4; + * @param value the list to set + * @return this + */ + public TowerVitaOption setList(final UI32s value) { + bitField0_ |= 0x00000008; + list.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaOption clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaOption addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaOption addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaOption setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TowerVitaOption copyFrom(final TowerVitaOption other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + integer = other.integer; + boolean_ = other.boolean_; + list.copyFrom(other.list); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaOption mergeFrom(final TowerVitaOption other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasInteger()) { + setInteger(other.integer); + } + if (other.hasBoolean()) { + setBoolean(other.boolean_); + } + if (other.hasList()) { + getMutableList().mergeFrom(other.list); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaOption clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + integer = 0; + boolean_ = false; + list.clear(); + nextPackage.clear(); + return this; + } + + @Override + public TowerVitaOption clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + list.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TowerVitaOption)) { + return false; + } + TowerVitaOption other = (TowerVitaOption) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasInteger() || integer == other.integer) + && (!hasBoolean() || boolean_ == other.boolean_) + && (!hasList() || list.equals(other.list)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(integer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(boolean_); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(list); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(integer); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(list); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaOption mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // integer + integer = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // boolean_ + boolean_ = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // list + input.readMessage(list); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.integer, integer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.boolean_, boolean_); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.list, list); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TowerVitaOption mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -672261858: { + if (input.isAtField(FieldNames.integer)) { + if (!input.trySkipNullValue()) { + integer = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1729365000: { + if (input.isAtField(FieldNames.boolean_)) { + if (!input.trySkipNullValue()) { + boolean_ = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2368702: { + if (input.isAtField(FieldNames.list)) { + if (!input.trySkipNullValue()) { + input.readMessage(list); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TowerVitaOption clone() { + return new TowerVitaOption().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaOption parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaOption(), data).checkInitialized(); + } + + public static TowerVitaOption parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaOption(), input).checkInitialized(); + } + + public static TowerVitaOption parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaOption(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaOption messages + */ + public static MessageFactory getFactory() { + return TowerVitaOptionFactory.INSTANCE; + } + + private enum TowerVitaOptionFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaOption create() { + return TowerVitaOption.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName integer = FieldName.forField("Integer"); + + static final FieldName boolean_ = FieldName.forField("Boolean"); + + static final FieldName list = FieldName.forField("List"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code TowerVitaProject} + */ + public static final class TowerVitaProject extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string Name = 2; + */ + private final Utf8String name = Utf8String.newEmptyInstance(); + + /** + * repeated .TowerVitaOption Options = 3; + */ + private final RepeatedMessage options = RepeatedMessage.newEmptyInstance(TowerVitaOption.getFactory()); + + private TowerVitaProject() { + } + + /** + * @return a new empty instance of {@code TowerVitaProject} + */ + public static TowerVitaProject newInstance() { + return new TowerVitaProject(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public TowerVitaProject clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public TowerVitaProject setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaProject clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaProject addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaProject addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaProject setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string Name = 2; + * @return whether the name field is set + */ + public boolean hasName() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string Name = 2; + * @return this + */ + public TowerVitaProject clearName() { + bitField0_ &= ~0x00000004; + name.clear(); + return this; + } + + /** + * optional string Name = 2; + * @return the name + */ + public java.lang.String getName() { + return name.getString(); + } + + /** + * optional string Name = 2; + * @return internal {@code Utf8String} representation of name for reading + */ + public Utf8String getNameBytes() { + return this.name; + } + + /** + * optional string Name = 2; + * @return internal {@code Utf8String} representation of name for modifications + */ + public Utf8String getMutableNameBytes() { + bitField0_ |= 0x00000004; + return this.name; + } + + /** + * optional string Name = 2; + * @param value the name to set + * @return this + */ + public TowerVitaProject setName(final CharSequence value) { + bitField0_ |= 0x00000004; + name.copyFrom(value); + return this; + } + + /** + * optional string Name = 2; + * @param value the name to set + * @return this + */ + public TowerVitaProject setName(final Utf8String value) { + bitField0_ |= 0x00000004; + name.copyFrom(value); + return this; + } + + /** + * repeated .TowerVitaOption Options = 3; + * @return whether the options field is set + */ + public boolean hasOptions() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .TowerVitaOption Options = 3; + * @return this + */ + public TowerVitaProject clearOptions() { + bitField0_ &= ~0x00000008; + options.clear(); + return this; + } + + /** + * repeated .TowerVitaOption Options = 3; + * + * 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 #getMutableOptions()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOptions() { + return options; + } + + /** + * repeated .TowerVitaOption Options = 3; + * + * 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 getMutableOptions() { + bitField0_ |= 0x00000008; + return options; + } + + /** + * repeated .TowerVitaOption Options = 3; + * @param value the options to add + * @return this + */ + public TowerVitaProject addOptions(final TowerVitaOption value) { + bitField0_ |= 0x00000008; + options.add(value); + return this; + } + + /** + * repeated .TowerVitaOption Options = 3; + * @param values the options to add + * @return this + */ + public TowerVitaProject addAllOptions(final TowerVitaOption... values) { + bitField0_ |= 0x00000008; + options.addAll(values); + return this; + } + + @Override + public TowerVitaProject copyFrom(final TowerVitaProject other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + nextPackage.copyFrom(other.nextPackage); + name.copyFrom(other.name); + options.copyFrom(other.options); + } + return this; + } + + @Override + public TowerVitaProject mergeFrom(final TowerVitaProject other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasName()) { + getMutableNameBytes().copyFrom(other.name); + } + if (other.hasOptions()) { + getMutableOptions().addAll(other.options); + } + return this; + } + + @Override + public TowerVitaProject clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + nextPackage.clear(); + name.clear(); + options.clear(); + return this; + } + + @Override + public TowerVitaProject clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + name.clear(); + options.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TowerVitaProject)) { + return false; + } + TowerVitaProject other = (TowerVitaProject) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasName() || name.equals(other.name)) + && (!hasOptions() || options.equals(other.options)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(name); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < options.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(options.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(name); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * options.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(options); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaProject mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + 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: { + // name + input.readString(name); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // options + tag = input.readRepeatedMessage(options, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.name, name); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.options, options); + } + output.endObject(); + } + + @Override + public TowerVitaProject mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + 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 2420395: { + if (input.isAtField(FieldNames.name)) { + if (!input.trySkipNullValue()) { + input.readString(name); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 415178366: { + if (input.isAtField(FieldNames.options)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(options); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TowerVitaProject clone() { + return new TowerVitaProject().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaProject parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaProject(), data).checkInitialized(); + } + + public static TowerVitaProject parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProject(), input).checkInitialized(); + } + + public static TowerVitaProject parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProject(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaProject messages + */ + public static MessageFactory getFactory() { + return TowerVitaProjectFactory.INSTANCE; + } + + private enum TowerVitaProjectFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaProject create() { + return TowerVitaProject.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName name = FieldName.forField("Name"); + + static final FieldName options = FieldName.forField("Options"); + } + } + + /** + * Protobuf type {@code SoldierBattleReportChess} + */ + public static final class SoldierBattleReportChess extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Star = 2; + */ + private int star; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierBattleReportChess() { + } + + /** + * @return a new empty instance of {@code SoldierBattleReportChess} + */ + public static SoldierBattleReportChess newInstance() { + return new SoldierBattleReportChess(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public SoldierBattleReportChess clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public SoldierBattleReportChess setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Star = 2; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Star = 2; + * @return this + */ + public SoldierBattleReportChess clearStar() { + bitField0_ &= ~0x00000002; + star = 0; + return this; + } + + /** + * optional uint32 Star = 2; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 2; + * @param value the star to set + * @return this + */ + public SoldierBattleReportChess setStar(final int value) { + bitField0_ |= 0x00000002; + star = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierBattleReportChess clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierBattleReportChess addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierBattleReportChess addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierBattleReportChess setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierBattleReportChess copyFrom(final SoldierBattleReportChess other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + star = other.star; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierBattleReportChess mergeFrom(final SoldierBattleReportChess other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierBattleReportChess clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + star = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierBattleReportChess 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 SoldierBattleReportChess)) { + return false; + } + SoldierBattleReportChess other = (SoldierBattleReportChess) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasStar() || star == other.star) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(star); + } + 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(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierBattleReportChess mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // star + star = 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierBattleReportChess mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -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 SoldierBattleReportChess clone() { + return new SoldierBattleReportChess().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierBattleReportChess parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBattleReportChess(), data).checkInitialized(); + } + + public static SoldierBattleReportChess parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReportChess(), input).checkInitialized(); + } + + public static SoldierBattleReportChess parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReportChess(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierBattleReportChess messages + */ + public static MessageFactory getFactory() { + return SoldierBattleReportChessFactory.INSTANCE; + } + + private enum SoldierBattleReportChessFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierBattleReportChess create() { + return SoldierBattleReportChess.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierBattleReport} + */ + public static final class SoldierBattleReport extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 Time = 12; + */ + private long time; + + /** + * optional uint32 GradeChallengeId = 2; + */ + private int gradeChallengeId; + + /** + * optional uint32 BossAbilityId = 3; + */ + private int bossAbilityId; + + /** + * optional uint32 NodeIndex = 4; + */ + private int nodeIndex; + + /** + * optional uint32 RemainingHP = 5; + */ + private int remainingHP; + + /** + * optional uint32 TotalCoin = 6; + */ + private int totalCoin; + + /** + * optional uint32 Score = 10; + */ + private int score; + + /** + * optional bool Result = 9; + */ + private boolean result; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string ReportId = 1; + */ + private final Utf8String reportId = Utf8String.newEmptyInstance(); + + /** + * optional string Version = 11; + */ + private final Utf8String version = Utf8String.newEmptyInstance(); + + /** + * repeated uint32 CardIds = 7; + */ + private final RepeatedInt cardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated .SoldierBattleReportChess Chess = 8; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierBattleReportChess.getFactory()); + + private SoldierBattleReport() { + } + + /** + * @return a new empty instance of {@code SoldierBattleReport} + */ + public static SoldierBattleReport newInstance() { + return new SoldierBattleReport(); + } + + /** + * optional uint64 Time = 12; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 Time = 12; + * @return this + */ + public SoldierBattleReport clearTime() { + bitField0_ &= ~0x00000001; + time = 0L; + return this; + } + + /** + * optional uint64 Time = 12; + * @return the time + */ + public long getTime() { + return time; + } + + /** + * optional uint64 Time = 12; + * @param value the time to set + * @return this + */ + public SoldierBattleReport setTime(final long value) { + bitField0_ |= 0x00000001; + time = value; + return this; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @return whether the gradeChallengeId field is set + */ + public boolean hasGradeChallengeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @return this + */ + public SoldierBattleReport clearGradeChallengeId() { + bitField0_ &= ~0x00000002; + gradeChallengeId = 0; + return this; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @return the gradeChallengeId + */ + public int getGradeChallengeId() { + return gradeChallengeId; + } + + /** + * optional uint32 GradeChallengeId = 2; + * @param value the gradeChallengeId to set + * @return this + */ + public SoldierBattleReport setGradeChallengeId(final int value) { + bitField0_ |= 0x00000002; + gradeChallengeId = value; + return this; + } + + /** + * optional uint32 BossAbilityId = 3; + * @return whether the bossAbilityId field is set + */ + public boolean hasBossAbilityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 BossAbilityId = 3; + * @return this + */ + public SoldierBattleReport clearBossAbilityId() { + bitField0_ &= ~0x00000004; + bossAbilityId = 0; + return this; + } + + /** + * optional uint32 BossAbilityId = 3; + * @return the bossAbilityId + */ + public int getBossAbilityId() { + return bossAbilityId; + } + + /** + * optional uint32 BossAbilityId = 3; + * @param value the bossAbilityId to set + * @return this + */ + public SoldierBattleReport setBossAbilityId(final int value) { + bitField0_ |= 0x00000004; + bossAbilityId = value; + return this; + } + + /** + * optional uint32 NodeIndex = 4; + * @return whether the nodeIndex field is set + */ + public boolean hasNodeIndex() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 NodeIndex = 4; + * @return this + */ + public SoldierBattleReport clearNodeIndex() { + bitField0_ &= ~0x00000008; + nodeIndex = 0; + return this; + } + + /** + * optional uint32 NodeIndex = 4; + * @return the nodeIndex + */ + public int getNodeIndex() { + return nodeIndex; + } + + /** + * optional uint32 NodeIndex = 4; + * @param value the nodeIndex to set + * @return this + */ + public SoldierBattleReport setNodeIndex(final int value) { + bitField0_ |= 0x00000008; + nodeIndex = value; + return this; + } + + /** + * optional uint32 RemainingHP = 5; + * @return whether the remainingHP field is set + */ + public boolean hasRemainingHP() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 RemainingHP = 5; + * @return this + */ + public SoldierBattleReport clearRemainingHP() { + bitField0_ &= ~0x00000010; + remainingHP = 0; + return this; + } + + /** + * optional uint32 RemainingHP = 5; + * @return the remainingHP + */ + public int getRemainingHP() { + return remainingHP; + } + + /** + * optional uint32 RemainingHP = 5; + * @param value the remainingHP to set + * @return this + */ + public SoldierBattleReport setRemainingHP(final int value) { + bitField0_ |= 0x00000010; + remainingHP = value; + return this; + } + + /** + * optional uint32 TotalCoin = 6; + * @return whether the totalCoin field is set + */ + public boolean hasTotalCoin() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 TotalCoin = 6; + * @return this + */ + public SoldierBattleReport clearTotalCoin() { + bitField0_ &= ~0x00000020; + totalCoin = 0; + return this; + } + + /** + * optional uint32 TotalCoin = 6; + * @return the totalCoin + */ + public int getTotalCoin() { + return totalCoin; + } + + /** + * optional uint32 TotalCoin = 6; + * @param value the totalCoin to set + * @return this + */ + public SoldierBattleReport setTotalCoin(final int value) { + bitField0_ |= 0x00000020; + totalCoin = value; + return this; + } + + /** + * optional uint32 Score = 10; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 Score = 10; + * @return this + */ + public SoldierBattleReport clearScore() { + bitField0_ &= ~0x00000040; + score = 0; + return this; + } + + /** + * optional uint32 Score = 10; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 Score = 10; + * @param value the score to set + * @return this + */ + public SoldierBattleReport setScore(final int value) { + bitField0_ |= 0x00000040; + score = value; + return this; + } + + /** + * optional bool Result = 9; + * @return whether the result field is set + */ + public boolean hasResult() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool Result = 9; + * @return this + */ + public SoldierBattleReport clearResult() { + bitField0_ &= ~0x00000080; + result = false; + return this; + } + + /** + * optional bool Result = 9; + * @return the result + */ + public boolean getResult() { + return result; + } + + /** + * optional bool Result = 9; + * @param value the result to set + * @return this + */ + public SoldierBattleReport setResult(final boolean value) { + bitField0_ |= 0x00000080; + result = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierBattleReport clearNextPackage() { + bitField0_ &= ~0x00000100; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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_ |= 0x00000100; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierBattleReport addNextPackage(final byte value) { + bitField0_ |= 0x00000100; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierBattleReport addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000100; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierBattleReport setNextPackage(final byte... values) { + bitField0_ |= 0x00000100; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string ReportId = 1; + * @return whether the reportId field is set + */ + public boolean hasReportId() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string ReportId = 1; + * @return this + */ + public SoldierBattleReport clearReportId() { + bitField0_ &= ~0x00000200; + reportId.clear(); + return this; + } + + /** + * optional string ReportId = 1; + * @return the reportId + */ + public java.lang.String getReportId() { + return reportId.getString(); + } + + /** + * optional string ReportId = 1; + * @return internal {@code Utf8String} representation of reportId for reading + */ + public Utf8String getReportIdBytes() { + return this.reportId; + } + + /** + * optional string ReportId = 1; + * @return internal {@code Utf8String} representation of reportId for modifications + */ + public Utf8String getMutableReportIdBytes() { + bitField0_ |= 0x00000200; + return this.reportId; + } + + /** + * optional string ReportId = 1; + * @param value the reportId to set + * @return this + */ + public SoldierBattleReport setReportId(final CharSequence value) { + bitField0_ |= 0x00000200; + reportId.copyFrom(value); + return this; + } + + /** + * optional string ReportId = 1; + * @param value the reportId to set + * @return this + */ + public SoldierBattleReport setReportId(final Utf8String value) { + bitField0_ |= 0x00000200; + reportId.copyFrom(value); + return this; + } + + /** + * optional string Version = 11; + * @return whether the version field is set + */ + public boolean hasVersion() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional string Version = 11; + * @return this + */ + public SoldierBattleReport clearVersion() { + bitField0_ &= ~0x00000400; + version.clear(); + return this; + } + + /** + * optional string Version = 11; + * @return the version + */ + public java.lang.String getVersion() { + return version.getString(); + } + + /** + * optional string Version = 11; + * @return internal {@code Utf8String} representation of version for reading + */ + public Utf8String getVersionBytes() { + return this.version; + } + + /** + * optional string Version = 11; + * @return internal {@code Utf8String} representation of version for modifications + */ + public Utf8String getMutableVersionBytes() { + bitField0_ |= 0x00000400; + return this.version; + } + + /** + * optional string Version = 11; + * @param value the version to set + * @return this + */ + public SoldierBattleReport setVersion(final CharSequence value) { + bitField0_ |= 0x00000400; + version.copyFrom(value); + return this; + } + + /** + * optional string Version = 11; + * @param value the version to set + * @return this + */ + public SoldierBattleReport setVersion(final Utf8String value) { + bitField0_ |= 0x00000400; + version.copyFrom(value); + return this; + } + + /** + * repeated uint32 CardIds = 7; + * @return whether the cardIds field is set + */ + public boolean hasCardIds() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated uint32 CardIds = 7; + * @return this + */ + public SoldierBattleReport clearCardIds() { + bitField0_ &= ~0x00000800; + cardIds.clear(); + return this; + } + + /** + * repeated uint32 CardIds = 7; + * + * 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 #getMutableCardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getCardIds() { + return cardIds; + } + + /** + * repeated uint32 CardIds = 7; + * + * 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 getMutableCardIds() { + bitField0_ |= 0x00000800; + return cardIds; + } + + /** + * repeated uint32 CardIds = 7; + * @param value the cardIds to add + * @return this + */ + public SoldierBattleReport addCardIds(final int value) { + bitField0_ |= 0x00000800; + cardIds.add(value); + return this; + } + + /** + * repeated uint32 CardIds = 7; + * @param values the cardIds to add + * @return this + */ + public SoldierBattleReport addAllCardIds(final int... values) { + bitField0_ |= 0x00000800; + cardIds.addAll(values); + return this; + } + + /** + * repeated .SoldierBattleReportChess Chess = 8; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * repeated .SoldierBattleReportChess Chess = 8; + * @return this + */ + public SoldierBattleReport clearChess() { + bitField0_ &= ~0x00001000; + chess.clear(); + return this; + } + + /** + * repeated .SoldierBattleReportChess Chess = 8; + * + * 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierBattleReportChess Chess = 8; + * + * 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 getMutableChess() { + bitField0_ |= 0x00001000; + return chess; + } + + /** + * repeated .SoldierBattleReportChess Chess = 8; + * @param value the chess to add + * @return this + */ + public SoldierBattleReport addChess(final SoldierBattleReportChess value) { + bitField0_ |= 0x00001000; + chess.add(value); + return this; + } + + /** + * repeated .SoldierBattleReportChess Chess = 8; + * @param values the chess to add + * @return this + */ + public SoldierBattleReport addAllChess(final SoldierBattleReportChess... values) { + bitField0_ |= 0x00001000; + chess.addAll(values); + return this; + } + + @Override + public SoldierBattleReport copyFrom(final SoldierBattleReport other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + time = other.time; + gradeChallengeId = other.gradeChallengeId; + bossAbilityId = other.bossAbilityId; + nodeIndex = other.nodeIndex; + remainingHP = other.remainingHP; + totalCoin = other.totalCoin; + score = other.score; + result = other.result; + nextPackage.copyFrom(other.nextPackage); + reportId.copyFrom(other.reportId); + version.copyFrom(other.version); + cardIds.copyFrom(other.cardIds); + chess.copyFrom(other.chess); + } + return this; + } + + @Override + public SoldierBattleReport mergeFrom(final SoldierBattleReport other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasGradeChallengeId()) { + setGradeChallengeId(other.gradeChallengeId); + } + if (other.hasBossAbilityId()) { + setBossAbilityId(other.bossAbilityId); + } + if (other.hasNodeIndex()) { + setNodeIndex(other.nodeIndex); + } + if (other.hasRemainingHP()) { + setRemainingHP(other.remainingHP); + } + if (other.hasTotalCoin()) { + setTotalCoin(other.totalCoin); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasResult()) { + setResult(other.result); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasReportId()) { + getMutableReportIdBytes().copyFrom(other.reportId); + } + if (other.hasVersion()) { + getMutableVersionBytes().copyFrom(other.version); + } + if (other.hasCardIds()) { + getMutableCardIds().addAll(other.cardIds); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + return this; + } + + @Override + public SoldierBattleReport clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + time = 0L; + gradeChallengeId = 0; + bossAbilityId = 0; + nodeIndex = 0; + remainingHP = 0; + totalCoin = 0; + score = 0; + result = false; + nextPackage.clear(); + reportId.clear(); + version.clear(); + cardIds.clear(); + chess.clear(); + return this; + } + + @Override + public SoldierBattleReport clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + reportId.clear(); + version.clear(); + cardIds.clear(); + chess.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierBattleReport)) { + return false; + } + SoldierBattleReport other = (SoldierBattleReport) o; + return bitField0_ == other.bitField0_ + && (!hasTime() || time == other.time) + && (!hasGradeChallengeId() || gradeChallengeId == other.gradeChallengeId) + && (!hasBossAbilityId() || bossAbilityId == other.bossAbilityId) + && (!hasNodeIndex() || nodeIndex == other.nodeIndex) + && (!hasRemainingHP() || remainingHP == other.remainingHP) + && (!hasTotalCoin() || totalCoin == other.totalCoin) + && (!hasScore() || score == other.score) + && (!hasResult() || result == other.result) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasReportId() || reportId.equals(other.reportId)) + && (!hasVersion() || version.equals(other.version)) + && (!hasCardIds() || cardIds.equals(other.cardIds)) + && (!hasChess() || chess.equals(other.chess)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt64NoTag(time); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(gradeChallengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(bossAbilityId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(nodeIndex); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(remainingHP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(totalCoin); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(result); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(reportId); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 90); + output.writeStringNoTag(version); + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < cardIds.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(cardIds.array()[i]); + } + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < chess.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(chess.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(time); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gradeChallengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossAbilityId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nodeIndex); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(remainingHP); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalCoin); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(reportId); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(version); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * cardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cardIds); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierBattleReport mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // time + time = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // gradeChallengeId + gradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // bossAbilityId + bossAbilityId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // nodeIndex + nodeIndex = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // remainingHP + remainingHP = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // totalCoin + totalCoin = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // result + result = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // reportId + input.readString(reportId); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // version + input.readString(version); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // cardIds [packed=true] + input.readPackedUInt32(cardIds, tag); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // chess + tag = input.readRepeatedMessage(chess, tag); + bitField0_ |= 0x00001000; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 56: { + // cardIds [packed=false] + tag = input.readRepeatedUInt32(cardIds, tag); + bitField0_ |= 0x00000800; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.time, time); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gradeChallengeId, gradeChallengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.bossAbilityId, bossAbilityId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.nodeIndex, nodeIndex); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.remainingHP, remainingHP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.totalCoin, totalCoin); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.result, result); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeString(FieldNames.reportId, reportId); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeString(FieldNames.version, version); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedUInt32(FieldNames.cardIds, cardIds); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + output.endObject(); + } + + @Override + public SoldierBattleReport mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2606829: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1764841305: { + if (input.isAtField(FieldNames.gradeChallengeId)) { + if (!input.trySkipNullValue()) { + gradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1305721560: { + if (input.isAtField(FieldNames.bossAbilityId)) { + if (!input.trySkipNullValue()) { + bossAbilityId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1845683248: { + if (input.isAtField(FieldNames.nodeIndex)) { + if (!input.trySkipNullValue()) { + nodeIndex = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 63879518: { + if (input.isAtField(FieldNames.remainingHP)) { + if (!input.trySkipNullValue()) { + remainingHP = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1426185173: { + if (input.isAtField(FieldNames.totalCoin)) { + if (!input.trySkipNullValue()) { + totalCoin = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 79711858: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1850559427: { + if (input.isAtField(FieldNames.result)) { + if (!input.trySkipNullValue()) { + result = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -362396273: { + if (input.isAtField(FieldNames.reportId)) { + if (!input.trySkipNullValue()) { + input.readString(reportId); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2016261304: { + if (input.isAtField(FieldNames.version)) { + if (!input.trySkipNullValue()) { + input.readString(version); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2076401304: { + if (input.isAtField(FieldNames.cardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(cardIds); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierBattleReport clone() { + return new SoldierBattleReport().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierBattleReport parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBattleReport(), data).checkInitialized(); + } + + public static SoldierBattleReport parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReport(), input).checkInitialized(); + } + + public static SoldierBattleReport parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReport(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierBattleReport messages + */ + public static MessageFactory getFactory() { + return SoldierBattleReportFactory.INSTANCE; + } + + private enum SoldierBattleReportFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierBattleReport create() { + return SoldierBattleReport.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName time = FieldName.forField("Time"); + + static final FieldName gradeChallengeId = FieldName.forField("GradeChallengeId"); + + static final FieldName bossAbilityId = FieldName.forField("BossAbilityId"); + + static final FieldName nodeIndex = FieldName.forField("NodeIndex"); + + static final FieldName remainingHP = FieldName.forField("RemainingHP"); + + static final FieldName totalCoin = FieldName.forField("TotalCoin"); + + static final FieldName score = FieldName.forField("Score"); + + static final FieldName result = FieldName.forField("Result"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName reportId = FieldName.forField("ReportId"); + + static final FieldName version = FieldName.forField("Version"); + + static final FieldName cardIds = FieldName.forField("CardIds"); + + static final FieldName chess = FieldName.forField("Chess"); + } + } + + /** + * Protobuf type {@code DormOutInfo} + */ + public static final class DormOutInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CollectionValue = 2; + */ + private int collectionValue; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string DormName = 1; + */ + private final Utf8String dormName = Utf8String.newEmptyInstance(); + + private DormOutInfo() { + } + + /** + * @return a new empty instance of {@code DormOutInfo} + */ + public static DormOutInfo newInstance() { + return new DormOutInfo(); + } + + /** + * optional uint32 CollectionValue = 2; + * @return whether the collectionValue field is set + */ + public boolean hasCollectionValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CollectionValue = 2; + * @return this + */ + public DormOutInfo clearCollectionValue() { + bitField0_ &= ~0x00000001; + collectionValue = 0; + return this; + } + + /** + * optional uint32 CollectionValue = 2; + * @return the collectionValue + */ + public int getCollectionValue() { + return collectionValue; + } + + /** + * optional uint32 CollectionValue = 2; + * @param value the collectionValue to set + * @return this + */ + public DormOutInfo setCollectionValue(final int value) { + bitField0_ |= 0x00000001; + collectionValue = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormOutInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormOutInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormOutInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormOutInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string DormName = 1; + * @return whether the dormName field is set + */ + public boolean hasDormName() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string DormName = 1; + * @return this + */ + public DormOutInfo clearDormName() { + bitField0_ &= ~0x00000004; + dormName.clear(); + return this; + } + + /** + * optional string DormName = 1; + * @return the dormName + */ + public java.lang.String getDormName() { + return dormName.getString(); + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for reading + */ + public Utf8String getDormNameBytes() { + return this.dormName; + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for modifications + */ + public Utf8String getMutableDormNameBytes() { + bitField0_ |= 0x00000004; + return this.dormName; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormOutInfo setDormName(final CharSequence value) { + bitField0_ |= 0x00000004; + dormName.copyFrom(value); + return this; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormOutInfo setDormName(final Utf8String value) { + bitField0_ |= 0x00000004; + dormName.copyFrom(value); + return this; + } + + @Override + public DormOutInfo copyFrom(final DormOutInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + collectionValue = other.collectionValue; + nextPackage.copyFrom(other.nextPackage); + dormName.copyFrom(other.dormName); + } + return this; + } + + @Override + public DormOutInfo mergeFrom(final DormOutInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCollectionValue()) { + setCollectionValue(other.collectionValue); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormName()) { + getMutableDormNameBytes().copyFrom(other.dormName); + } + return this; + } + + @Override + public DormOutInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + collectionValue = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public DormOutInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormOutInfo)) { + return false; + } + DormOutInfo other = (DormOutInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCollectionValue() || collectionValue == other.collectionValue) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormName() || dormName.equals(other.dormName)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(collectionValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(dormName); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(collectionValue); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(dormName); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormOutInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // collectionValue + collectionValue = input.readUInt32(); + 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: { + // dormName + input.readString(dormName); + 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.collectionValue, collectionValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.dormName, dormName); + } + output.endObject(); + } + + @Override + public DormOutInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 54598995: { + if (input.isAtField(FieldNames.collectionValue)) { + if (!input.trySkipNullValue()) { + collectionValue = input.readUInt32(); + 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 1347486673: { + if (input.isAtField(FieldNames.dormName)) { + if (!input.trySkipNullValue()) { + input.readString(dormName); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormOutInfo clone() { + return new DormOutInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormOutInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormOutInfo(), data).checkInitialized(); + } + + public static DormOutInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormOutInfo(), input).checkInitialized(); + } + + public static DormOutInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormOutInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormOutInfo messages + */ + public static MessageFactory getFactory() { + return DormOutInfoFactory.INSTANCE; + } + + private enum DormOutInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormOutInfo create() { + return DormOutInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName collectionValue = FieldName.forField("CollectionValue"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormName = FieldName.forField("DormName"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PublicDorm.java b/src/generated/main/emu/nebula/proto/PublicDorm.java new file mode 100644 index 0000000..20cd98b --- /dev/null +++ b/src/generated/main/emu/nebula/proto/PublicDorm.java @@ -0,0 +1,10860 @@ +// 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; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class PublicDorm { + /** + * Protobuf type {@code DormInfo} + */ + public static final class DormInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 SkinList = 1; + */ + private final RepeatedInt skinList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 LayoutList = 2; + */ + private final RepeatedInt layoutList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 SceneList = 3; + */ + private final RepeatedInt sceneList = RepeatedInt.newEmptyInstance(); + + private DormInfo() { + } + + /** + * @return a new empty instance of {@code DormInfo} + */ + public static DormInfo newInstance() { + return new DormInfo(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormInfo clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 SkinList = 1; + * @return whether the skinList field is set + */ + public boolean hasSkinList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 SkinList = 1; + * @return this + */ + public DormInfo clearSkinList() { + bitField0_ &= ~0x00000002; + skinList.clear(); + return this; + } + + /** + * repeated uint32 SkinList = 1; + * + * 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 #getMutableSkinList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSkinList() { + return skinList; + } + + /** + * repeated uint32 SkinList = 1; + * + * 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 getMutableSkinList() { + bitField0_ |= 0x00000002; + return skinList; + } + + /** + * repeated uint32 SkinList = 1; + * @param value the skinList to add + * @return this + */ + public DormInfo addSkinList(final int value) { + bitField0_ |= 0x00000002; + skinList.add(value); + return this; + } + + /** + * repeated uint32 SkinList = 1; + * @param values the skinList to add + * @return this + */ + public DormInfo addAllSkinList(final int... values) { + bitField0_ |= 0x00000002; + skinList.addAll(values); + return this; + } + + /** + * repeated uint32 LayoutList = 2; + * @return whether the layoutList field is set + */ + public boolean hasLayoutList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 LayoutList = 2; + * @return this + */ + public DormInfo clearLayoutList() { + bitField0_ &= ~0x00000004; + layoutList.clear(); + return this; + } + + /** + * repeated uint32 LayoutList = 2; + * + * 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 #getMutableLayoutList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getLayoutList() { + return layoutList; + } + + /** + * repeated uint32 LayoutList = 2; + * + * 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 getMutableLayoutList() { + bitField0_ |= 0x00000004; + return layoutList; + } + + /** + * repeated uint32 LayoutList = 2; + * @param value the layoutList to add + * @return this + */ + public DormInfo addLayoutList(final int value) { + bitField0_ |= 0x00000004; + layoutList.add(value); + return this; + } + + /** + * repeated uint32 LayoutList = 2; + * @param values the layoutList to add + * @return this + */ + public DormInfo addAllLayoutList(final int... values) { + bitField0_ |= 0x00000004; + layoutList.addAll(values); + return this; + } + + /** + * repeated uint32 SceneList = 3; + * @return whether the sceneList field is set + */ + public boolean hasSceneList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 SceneList = 3; + * @return this + */ + public DormInfo clearSceneList() { + bitField0_ &= ~0x00000008; + sceneList.clear(); + return this; + } + + /** + * repeated uint32 SceneList = 3; + * + * 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 #getMutableSceneList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSceneList() { + return sceneList; + } + + /** + * repeated uint32 SceneList = 3; + * + * 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 getMutableSceneList() { + bitField0_ |= 0x00000008; + return sceneList; + } + + /** + * repeated uint32 SceneList = 3; + * @param value the sceneList to add + * @return this + */ + public DormInfo addSceneList(final int value) { + bitField0_ |= 0x00000008; + sceneList.add(value); + return this; + } + + /** + * repeated uint32 SceneList = 3; + * @param values the sceneList to add + * @return this + */ + public DormInfo addAllSceneList(final int... values) { + bitField0_ |= 0x00000008; + sceneList.addAll(values); + return this; + } + + @Override + public DormInfo copyFrom(final DormInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + skinList.copyFrom(other.skinList); + layoutList.copyFrom(other.layoutList); + sceneList.copyFrom(other.sceneList); + } + return this; + } + + @Override + public DormInfo mergeFrom(final DormInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasSkinList()) { + getMutableSkinList().addAll(other.skinList); + } + if (other.hasLayoutList()) { + getMutableLayoutList().addAll(other.layoutList); + } + if (other.hasSceneList()) { + getMutableSceneList().addAll(other.sceneList); + } + return this; + } + + @Override + public DormInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + skinList.clear(); + layoutList.clear(); + sceneList.clear(); + return this; + } + + @Override + public DormInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + skinList.clear(); + layoutList.clear(); + sceneList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormInfo)) { + return false; + } + DormInfo other = (DormInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasSkinList() || skinList.equals(other.skinList)) + && (!hasLayoutList() || layoutList.equals(other.layoutList)) + && (!hasSceneList() || sceneList.equals(other.sceneList)); + } + + @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 < skinList.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(skinList.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < layoutList.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(layoutList.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < sceneList.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(sceneList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * skinList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(skinList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * layoutList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(layoutList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * sceneList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(sceneList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // skinList [packed=true] + input.readPackedUInt32(skinList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // layoutList [packed=true] + input.readPackedUInt32(layoutList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // sceneList [packed=true] + input.readPackedUInt32(sceneList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // skinList [packed=false] + tag = input.readRepeatedUInt32(skinList, tag); + bitField0_ |= 0x00000002; + break; + } + case 16: { + // layoutList [packed=false] + tag = input.readRepeatedUInt32(layoutList, tag); + bitField0_ |= 0x00000004; + break; + } + case 24: { + // sceneList [packed=false] + tag = input.readRepeatedUInt32(sceneList, tag); + bitField0_ |= 0x00000008; + 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.writeRepeatedUInt32(FieldNames.skinList, skinList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.layoutList, layoutList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.sceneList, sceneList); + } + output.endObject(); + } + + @Override + public DormInfo 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 -2086967333: { + if (input.isAtField(FieldNames.skinList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(skinList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1960093944: { + if (input.isAtField(FieldNames.layoutList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(layoutList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -561891542: { + if (input.isAtField(FieldNames.sceneList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(sceneList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormInfo clone() { + return new DormInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormInfo(), data).checkInitialized(); + } + + public static DormInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInfo(), input).checkInitialized(); + } + + public static DormInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormInfo messages + */ + public static MessageFactory getFactory() { + return DormInfoFactory.INSTANCE; + } + + private enum DormInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormInfo create() { + return DormInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName skinList = FieldName.forField("SkinList"); + + static final FieldName layoutList = FieldName.forField("LayoutList"); + + static final FieldName sceneList = FieldName.forField("SceneList"); + } + } + + /** + * Protobuf type {@code DormRoomInfo} + */ + public static final class DormRoomInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 RestNameTime = 7; + */ + private long restNameTime; + + /** + * optional uint32 DormRoomId = 1; + */ + private int dormRoomId; + + /** + * optional uint32 DiscId = 4; + */ + private int discId; + + /** + * optional uint32 RoomScene = 6; + */ + private int roomScene; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string RoomName = 5; + */ + private final Utf8String roomName = Utf8String.newEmptyInstance(); + + /** + * repeated .FurnitureInfo FurnitureList = 2; + */ + private final RepeatedMessage furnitureList = RepeatedMessage.newEmptyInstance(FurnitureInfo.getFactory()); + + /** + * repeated .DormRoleInfo RoleList = 3; + */ + private final RepeatedMessage roleList = RepeatedMessage.newEmptyInstance(DormRoleInfo.getFactory()); + + private DormRoomInfo() { + } + + /** + * @return a new empty instance of {@code DormRoomInfo} + */ + public static DormRoomInfo newInstance() { + return new DormRoomInfo(); + } + + /** + * optional int64 RestNameTime = 7; + * @return whether the restNameTime field is set + */ + public boolean hasRestNameTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 RestNameTime = 7; + * @return this + */ + public DormRoomInfo clearRestNameTime() { + bitField0_ &= ~0x00000001; + restNameTime = 0L; + return this; + } + + /** + * optional int64 RestNameTime = 7; + * @return the restNameTime + */ + public long getRestNameTime() { + return restNameTime; + } + + /** + * optional int64 RestNameTime = 7; + * @param value the restNameTime to set + * @return this + */ + public DormRoomInfo setRestNameTime(final long value) { + bitField0_ |= 0x00000001; + restNameTime = value; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DormRoomId = 1; + * @return this + */ + public DormRoomInfo clearDormRoomId() { + bitField0_ &= ~0x00000002; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 1; + * @param value the dormRoomId to set + * @return this + */ + public DormRoomInfo setDormRoomId(final int value) { + bitField0_ |= 0x00000002; + dormRoomId = value; + return this; + } + + /** + * optional uint32 DiscId = 4; + * @return whether the discId field is set + */ + public boolean hasDiscId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 DiscId = 4; + * @return this + */ + public DormRoomInfo clearDiscId() { + bitField0_ &= ~0x00000004; + discId = 0; + return this; + } + + /** + * optional uint32 DiscId = 4; + * @return the discId + */ + public int getDiscId() { + return discId; + } + + /** + * optional uint32 DiscId = 4; + * @param value the discId to set + * @return this + */ + public DormRoomInfo setDiscId(final int value) { + bitField0_ |= 0x00000004; + discId = value; + return this; + } + + /** + * optional uint32 RoomScene = 6; + * @return whether the roomScene field is set + */ + public boolean hasRoomScene() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 RoomScene = 6; + * @return this + */ + public DormRoomInfo clearRoomScene() { + bitField0_ &= ~0x00000008; + roomScene = 0; + return this; + } + + /** + * optional uint32 RoomScene = 6; + * @return the roomScene + */ + public int getRoomScene() { + return roomScene; + } + + /** + * optional uint32 RoomScene = 6; + * @param value the roomScene to set + * @return this + */ + public DormRoomInfo setRoomScene(final int value) { + bitField0_ |= 0x00000008; + roomScene = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoomInfo clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoomInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoomInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoomInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string RoomName = 5; + * @return whether the roomName field is set + */ + public boolean hasRoomName() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string RoomName = 5; + * @return this + */ + public DormRoomInfo clearRoomName() { + bitField0_ &= ~0x00000020; + roomName.clear(); + return this; + } + + /** + * optional string RoomName = 5; + * @return the roomName + */ + public String getRoomName() { + return roomName.getString(); + } + + /** + * optional string RoomName = 5; + * @return internal {@code Utf8String} representation of roomName for reading + */ + public Utf8String getRoomNameBytes() { + return this.roomName; + } + + /** + * optional string RoomName = 5; + * @return internal {@code Utf8String} representation of roomName for modifications + */ + public Utf8String getMutableRoomNameBytes() { + bitField0_ |= 0x00000020; + return this.roomName; + } + + /** + * optional string RoomName = 5; + * @param value the roomName to set + * @return this + */ + public DormRoomInfo setRoomName(final CharSequence value) { + bitField0_ |= 0x00000020; + roomName.copyFrom(value); + return this; + } + + /** + * optional string RoomName = 5; + * @param value the roomName to set + * @return this + */ + public DormRoomInfo setRoomName(final Utf8String value) { + bitField0_ |= 0x00000020; + roomName.copyFrom(value); + return this; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @return whether the furnitureList field is set + */ + public boolean hasFurnitureList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @return this + */ + public DormRoomInfo clearFurnitureList() { + bitField0_ &= ~0x00000040; + furnitureList.clear(); + return this; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * + * 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 #getMutableFurnitureList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFurnitureList() { + return furnitureList; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * + * 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 getMutableFurnitureList() { + bitField0_ |= 0x00000040; + return furnitureList; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @param value the furnitureList to add + * @return this + */ + public DormRoomInfo addFurnitureList(final FurnitureInfo value) { + bitField0_ |= 0x00000040; + furnitureList.add(value); + return this; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @param values the furnitureList to add + * @return this + */ + public DormRoomInfo addAllFurnitureList(final FurnitureInfo... values) { + bitField0_ |= 0x00000040; + furnitureList.addAll(values); + return this; + } + + /** + * repeated .DormRoleInfo RoleList = 3; + * @return whether the roleList field is set + */ + public boolean hasRoleList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .DormRoleInfo RoleList = 3; + * @return this + */ + public DormRoomInfo clearRoleList() { + bitField0_ &= ~0x00000080; + roleList.clear(); + return this; + } + + /** + * repeated .DormRoleInfo RoleList = 3; + * + * 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 #getMutableRoleList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRoleList() { + return roleList; + } + + /** + * repeated .DormRoleInfo RoleList = 3; + * + * 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 getMutableRoleList() { + bitField0_ |= 0x00000080; + return roleList; + } + + /** + * repeated .DormRoleInfo RoleList = 3; + * @param value the roleList to add + * @return this + */ + public DormRoomInfo addRoleList(final DormRoleInfo value) { + bitField0_ |= 0x00000080; + roleList.add(value); + return this; + } + + /** + * repeated .DormRoleInfo RoleList = 3; + * @param values the roleList to add + * @return this + */ + public DormRoomInfo addAllRoleList(final DormRoleInfo... values) { + bitField0_ |= 0x00000080; + roleList.addAll(values); + return this; + } + + @Override + public DormRoomInfo copyFrom(final DormRoomInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + restNameTime = other.restNameTime; + dormRoomId = other.dormRoomId; + discId = other.discId; + roomScene = other.roomScene; + nextPackage.copyFrom(other.nextPackage); + roomName.copyFrom(other.roomName); + furnitureList.copyFrom(other.furnitureList); + roleList.copyFrom(other.roleList); + } + return this; + } + + @Override + public DormRoomInfo mergeFrom(final DormRoomInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRestNameTime()) { + setRestNameTime(other.restNameTime); + } + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasDiscId()) { + setDiscId(other.discId); + } + if (other.hasRoomScene()) { + setRoomScene(other.roomScene); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRoomName()) { + getMutableRoomNameBytes().copyFrom(other.roomName); + } + if (other.hasFurnitureList()) { + getMutableFurnitureList().addAll(other.furnitureList); + } + if (other.hasRoleList()) { + getMutableRoleList().addAll(other.roleList); + } + return this; + } + + @Override + public DormRoomInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + restNameTime = 0L; + dormRoomId = 0; + discId = 0; + roomScene = 0; + nextPackage.clear(); + roomName.clear(); + furnitureList.clear(); + roleList.clear(); + return this; + } + + @Override + public DormRoomInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + roomName.clear(); + furnitureList.clearQuick(); + roleList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormRoomInfo)) { + return false; + } + DormRoomInfo other = (DormRoomInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRestNameTime() || restNameTime == other.restNameTime) + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasDiscId() || discId == other.discId) + && (!hasRoomScene() || roomScene == other.roomScene) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRoomName() || roomName.equals(other.roomName)) + && (!hasFurnitureList() || furnitureList.equals(other.furnitureList)) + && (!hasRoleList() || roleList.equals(other.roleList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeInt64NoTag(restNameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(discId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(roomScene); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(roomName); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < furnitureList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(furnitureList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < roleList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(roleList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(restNameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dormRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(discId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roomScene); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(roomName); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * furnitureList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(furnitureList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * roleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(roleList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoomInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // restNameTime + restNameTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // dormRoomId + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // discId + discId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // roomScene + roomScene = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // roomName + input.readString(roomName); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // furnitureList + tag = input.readRepeatedMessage(furnitureList, tag); + bitField0_ |= 0x00000040; + if (tag != 26) { + break; + } + } + case 26: { + // roleList + tag = input.readRepeatedMessage(roleList, tag); + bitField0_ |= 0x00000080; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.restNameTime, restNameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.discId, discId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.roomScene, roomScene); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.roomName, roomName); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.furnitureList, furnitureList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.roleList, roleList); + } + output.endObject(); + } + + @Override + public DormRoomInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1833892852: { + if (input.isAtField(FieldNames.restNameTime)) { + if (!input.trySkipNullValue()) { + restNameTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2047275440: { + if (input.isAtField(FieldNames.discId)) { + if (!input.trySkipNullValue()) { + discId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 924981329: { + if (input.isAtField(FieldNames.roomScene)) { + if (!input.trySkipNullValue()) { + roomScene = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -108859866: { + if (input.isAtField(FieldNames.roomName)) { + if (!input.trySkipNullValue()) { + input.readString(roomName); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -654744688: { + if (input.isAtField(FieldNames.furnitureList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(furnitureList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -202187180: { + if (input.isAtField(FieldNames.roleList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(roleList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormRoomInfo clone() { + return new DormRoomInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoomInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoomInfo(), data).checkInitialized(); + } + + public static DormRoomInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomInfo(), input).checkInitialized(); + } + + public static DormRoomInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoomInfo messages + */ + public static MessageFactory getFactory() { + return DormRoomInfoFactory.INSTANCE; + } + + private enum DormRoomInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoomInfo create() { + return DormRoomInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName restNameTime = FieldName.forField("RestNameTime"); + + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName discId = FieldName.forField("DiscId"); + + static final FieldName roomScene = FieldName.forField("RoomScene"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName roomName = FieldName.forField("RoomName"); + + static final FieldName furnitureList = FieldName.forField("FurnitureList"); + + static final FieldName roleList = FieldName.forField("RoleList"); + } + } + + /** + * Protobuf type {@code FurnitureInfo} + */ + public static final class FurnitureInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FurnitureId = 1; + */ + private int furnitureId; + + /** + * optional uint32 X = 2; + */ + private int x; + + /** + * optional uint32 Y = 3; + */ + private int y; + + /** + * optional uint32 Z = 4; + */ + private int z; + + /** + * optional uint32 Rotation = 5; + */ + private int rotation; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private FurnitureInfo() { + } + + /** + * @return a new empty instance of {@code FurnitureInfo} + */ + public static FurnitureInfo newInstance() { + return new FurnitureInfo(); + } + + /** + * optional uint32 FurnitureId = 1; + * @return whether the furnitureId field is set + */ + public boolean hasFurnitureId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FurnitureId = 1; + * @return this + */ + public FurnitureInfo clearFurnitureId() { + bitField0_ &= ~0x00000001; + furnitureId = 0; + return this; + } + + /** + * optional uint32 FurnitureId = 1; + * @return the furnitureId + */ + public int getFurnitureId() { + return furnitureId; + } + + /** + * optional uint32 FurnitureId = 1; + * @param value the furnitureId to set + * @return this + */ + public FurnitureInfo setFurnitureId(final int value) { + bitField0_ |= 0x00000001; + furnitureId = value; + return this; + } + + /** + * optional uint32 X = 2; + * @return whether the x field is set + */ + public boolean hasX() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 X = 2; + * @return this + */ + public FurnitureInfo clearX() { + bitField0_ &= ~0x00000002; + x = 0; + return this; + } + + /** + * optional uint32 X = 2; + * @return the x + */ + public int getX() { + return x; + } + + /** + * optional uint32 X = 2; + * @param value the x to set + * @return this + */ + public FurnitureInfo setX(final int value) { + bitField0_ |= 0x00000002; + x = value; + return this; + } + + /** + * optional uint32 Y = 3; + * @return whether the y field is set + */ + public boolean hasY() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Y = 3; + * @return this + */ + public FurnitureInfo clearY() { + bitField0_ &= ~0x00000004; + y = 0; + return this; + } + + /** + * optional uint32 Y = 3; + * @return the y + */ + public int getY() { + return y; + } + + /** + * optional uint32 Y = 3; + * @param value the y to set + * @return this + */ + public FurnitureInfo setY(final int value) { + bitField0_ |= 0x00000004; + y = value; + return this; + } + + /** + * optional uint32 Z = 4; + * @return whether the z field is set + */ + public boolean hasZ() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Z = 4; + * @return this + */ + public FurnitureInfo clearZ() { + bitField0_ &= ~0x00000008; + z = 0; + return this; + } + + /** + * optional uint32 Z = 4; + * @return the z + */ + public int getZ() { + return z; + } + + /** + * optional uint32 Z = 4; + * @param value the z to set + * @return this + */ + public FurnitureInfo setZ(final int value) { + bitField0_ |= 0x00000008; + z = value; + return this; + } + + /** + * optional uint32 Rotation = 5; + * @return whether the rotation field is set + */ + public boolean hasRotation() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 Rotation = 5; + * @return this + */ + public FurnitureInfo clearRotation() { + bitField0_ &= ~0x00000010; + rotation = 0; + return this; + } + + /** + * optional uint32 Rotation = 5; + * @return the rotation + */ + public int getRotation() { + return rotation; + } + + /** + * optional uint32 Rotation = 5; + * @param value the rotation to set + * @return this + */ + public FurnitureInfo setRotation(final int value) { + bitField0_ |= 0x00000010; + rotation = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public FurnitureInfo clearNextPackage() { + bitField0_ &= ~0x00000020; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000020; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public FurnitureInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public FurnitureInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public FurnitureInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + @Override + public FurnitureInfo copyFrom(final FurnitureInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + furnitureId = other.furnitureId; + x = other.x; + y = other.y; + z = other.z; + rotation = other.rotation; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FurnitureInfo mergeFrom(final FurnitureInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFurnitureId()) { + setFurnitureId(other.furnitureId); + } + if (other.hasX()) { + setX(other.x); + } + if (other.hasY()) { + setY(other.y); + } + if (other.hasZ()) { + setZ(other.z); + } + if (other.hasRotation()) { + setRotation(other.rotation); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public FurnitureInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + furnitureId = 0; + x = 0; + y = 0; + z = 0; + rotation = 0; + nextPackage.clear(); + return this; + } + + @Override + public FurnitureInfo 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 FurnitureInfo)) { + return false; + } + FurnitureInfo other = (FurnitureInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFurnitureId() || furnitureId == other.furnitureId) + && (!hasX() || x == other.x) + && (!hasY() || y == other.y) + && (!hasZ() || z == other.z) + && (!hasRotation() || rotation == other.rotation) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(furnitureId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(x); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(y); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(z); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(rotation); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(furnitureId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(x); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(y); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(z); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rotation); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FurnitureInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // furnitureId + furnitureId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // x + x = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // y + y = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // z + z = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // rotation + rotation = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.furnitureId, furnitureId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.x, x); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.y, y); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.z, z); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.rotation, rotation); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public FurnitureInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2074422131: { + if (input.isAtField(FieldNames.furnitureId)) { + if (!input.trySkipNullValue()) { + furnitureId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 88: { + if (input.isAtField(FieldNames.x)) { + if (!input.trySkipNullValue()) { + x = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 89: { + if (input.isAtField(FieldNames.y)) { + if (!input.trySkipNullValue()) { + y = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 90: { + if (input.isAtField(FieldNames.z)) { + if (!input.trySkipNullValue()) { + z = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 24343454: { + if (input.isAtField(FieldNames.rotation)) { + if (!input.trySkipNullValue()) { + rotation = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FurnitureInfo clone() { + return new FurnitureInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FurnitureInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FurnitureInfo(), data).checkInitialized(); + } + + public static FurnitureInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FurnitureInfo(), input).checkInitialized(); + } + + public static FurnitureInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FurnitureInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FurnitureInfo messages + */ + public static MessageFactory getFactory() { + return FurnitureInfoFactory.INSTANCE; + } + + private enum FurnitureInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FurnitureInfo create() { + return FurnitureInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName furnitureId = FieldName.forField("FurnitureId"); + + static final FieldName x = FieldName.forField("X"); + + static final FieldName y = FieldName.forField("Y"); + + static final FieldName z = FieldName.forField("Z"); + + static final FieldName rotation = FieldName.forField("Rotation"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormRoleInfo} + */ + public static final class DormRoleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 RoleId = 1; + */ + private int roleId; + + /** + * optional bool IsVisit = 2; + */ + private boolean isVisit; + + /** + * optional bool IsInvitationRole = 3; + */ + private boolean isInvitationRole; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormRoleInfo() { + } + + /** + * @return a new empty instance of {@code DormRoleInfo} + */ + public static DormRoleInfo newInstance() { + return new DormRoleInfo(); + } + + /** + * optional uint32 RoleId = 1; + * @return whether the roleId field is set + */ + public boolean hasRoleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 RoleId = 1; + * @return this + */ + public DormRoleInfo clearRoleId() { + bitField0_ &= ~0x00000001; + roleId = 0; + return this; + } + + /** + * optional uint32 RoleId = 1; + * @return the roleId + */ + public int getRoleId() { + return roleId; + } + + /** + * optional uint32 RoleId = 1; + * @param value the roleId to set + * @return this + */ + public DormRoleInfo setRoleId(final int value) { + bitField0_ |= 0x00000001; + roleId = value; + return this; + } + + /** + * optional bool IsVisit = 2; + * @return whether the isVisit field is set + */ + public boolean hasIsVisit() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool IsVisit = 2; + * @return this + */ + public DormRoleInfo clearIsVisit() { + bitField0_ &= ~0x00000002; + isVisit = false; + return this; + } + + /** + * optional bool IsVisit = 2; + * @return the isVisit + */ + public boolean getIsVisit() { + return isVisit; + } + + /** + * optional bool IsVisit = 2; + * @param value the isVisit to set + * @return this + */ + public DormRoleInfo setIsVisit(final boolean value) { + bitField0_ |= 0x00000002; + isVisit = value; + return this; + } + + /** + * optional bool IsInvitationRole = 3; + * @return whether the isInvitationRole field is set + */ + public boolean hasIsInvitationRole() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool IsInvitationRole = 3; + * @return this + */ + public DormRoleInfo clearIsInvitationRole() { + bitField0_ &= ~0x00000004; + isInvitationRole = false; + return this; + } + + /** + * optional bool IsInvitationRole = 3; + * @return the isInvitationRole + */ + public boolean getIsInvitationRole() { + return isInvitationRole; + } + + /** + * optional bool IsInvitationRole = 3; + * @param value the isInvitationRole to set + * @return this + */ + public DormRoleInfo setIsInvitationRole(final boolean value) { + bitField0_ |= 0x00000004; + isInvitationRole = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoleInfo clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoleInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoleInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoleInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormRoleInfo copyFrom(final DormRoleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + roleId = other.roleId; + isVisit = other.isVisit; + isInvitationRole = other.isInvitationRole; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormRoleInfo mergeFrom(final DormRoleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRoleId()) { + setRoleId(other.roleId); + } + if (other.hasIsVisit()) { + setIsVisit(other.isVisit); + } + if (other.hasIsInvitationRole()) { + setIsInvitationRole(other.isInvitationRole); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormRoleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + roleId = 0; + isVisit = false; + isInvitationRole = false; + nextPackage.clear(); + return this; + } + + @Override + public DormRoleInfo 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 DormRoleInfo)) { + return false; + } + DormRoleInfo other = (DormRoleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRoleId() || roleId == other.roleId) + && (!hasIsVisit() || isVisit == other.isVisit) + && (!hasIsInvitationRole() || isInvitationRole == other.isInvitationRole) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(isVisit); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(isInvitationRole); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // roleId + roleId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // isVisit + isVisit = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // isInvitationRole + isInvitationRole = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.roleId, roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isVisit, isVisit); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isInvitationRole, isInvitationRole); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormRoleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1841549231: { + if (input.isAtField(FieldNames.roleId)) { + if (!input.trySkipNullValue()) { + roleId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -556690911: { + if (input.isAtField(FieldNames.isVisit)) { + if (!input.trySkipNullValue()) { + isVisit = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1716599911: { + if (input.isAtField(FieldNames.isInvitationRole)) { + if (!input.trySkipNullValue()) { + isInvitationRole = input.readBool(); + 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 DormRoleInfo clone() { + return new DormRoleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoleInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoleInfo(), data).checkInitialized(); + } + + public static DormRoleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoleInfo(), input).checkInitialized(); + } + + public static DormRoleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoleInfo messages + */ + public static MessageFactory getFactory() { + return DormRoleInfoFactory.INSTANCE; + } + + private enum DormRoleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoleInfo create() { + return DormRoleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName roleId = FieldName.forField("RoleId"); + + static final FieldName isVisit = FieldName.forField("IsVisit"); + + static final FieldName isInvitationRole = FieldName.forField("IsInvitationRole"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code FurniturePresetInfo} + */ + public static final class FurniturePresetInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 CreateTime = 15; + */ + private long createTime; + + /** + * optional uint32 DormType = 1; + */ + private int dormType; + + /** + * optional uint32 BuildId = 3; + */ + private int buildId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string BuildName = 4; + */ + private final Utf8String buildName = Utf8String.newEmptyInstance(); + + /** + * repeated .FurnitureInfo FurnitureList = 2; + */ + private final RepeatedMessage furnitureList = RepeatedMessage.newEmptyInstance(FurnitureInfo.getFactory()); + + private FurniturePresetInfo() { + } + + /** + * @return a new empty instance of {@code FurniturePresetInfo} + */ + public static FurniturePresetInfo newInstance() { + return new FurniturePresetInfo(); + } + + /** + * optional int64 CreateTime = 15; + * @return whether the createTime field is set + */ + public boolean hasCreateTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 CreateTime = 15; + * @return this + */ + public FurniturePresetInfo clearCreateTime() { + bitField0_ &= ~0x00000001; + createTime = 0L; + return this; + } + + /** + * optional int64 CreateTime = 15; + * @return the createTime + */ + public long getCreateTime() { + return createTime; + } + + /** + * optional int64 CreateTime = 15; + * @param value the createTime to set + * @return this + */ + public FurniturePresetInfo setCreateTime(final long value) { + bitField0_ |= 0x00000001; + createTime = value; + return this; + } + + /** + * optional uint32 DormType = 1; + * @return whether the dormType field is set + */ + public boolean hasDormType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DormType = 1; + * @return this + */ + public FurniturePresetInfo clearDormType() { + bitField0_ &= ~0x00000002; + dormType = 0; + return this; + } + + /** + * optional uint32 DormType = 1; + * @return the dormType + */ + public int getDormType() { + return dormType; + } + + /** + * optional uint32 DormType = 1; + * @param value the dormType to set + * @return this + */ + public FurniturePresetInfo setDormType(final int value) { + bitField0_ |= 0x00000002; + dormType = value; + return this; + } + + /** + * optional uint32 BuildId = 3; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 BuildId = 3; + * @return this + */ + public FurniturePresetInfo clearBuildId() { + bitField0_ &= ~0x00000004; + buildId = 0; + return this; + } + + /** + * optional uint32 BuildId = 3; + * @return the buildId + */ + public int getBuildId() { + return buildId; + } + + /** + * optional uint32 BuildId = 3; + * @param value the buildId to set + * @return this + */ + public FurniturePresetInfo setBuildId(final int value) { + bitField0_ |= 0x00000004; + buildId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public FurniturePresetInfo clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public FurniturePresetInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public FurniturePresetInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public FurniturePresetInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string BuildName = 4; + * @return whether the buildName field is set + */ + public boolean hasBuildName() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional string BuildName = 4; + * @return this + */ + public FurniturePresetInfo clearBuildName() { + bitField0_ &= ~0x00000010; + buildName.clear(); + return this; + } + + /** + * optional string BuildName = 4; + * @return the buildName + */ + public String getBuildName() { + return buildName.getString(); + } + + /** + * optional string BuildName = 4; + * @return internal {@code Utf8String} representation of buildName for reading + */ + public Utf8String getBuildNameBytes() { + return this.buildName; + } + + /** + * optional string BuildName = 4; + * @return internal {@code Utf8String} representation of buildName for modifications + */ + public Utf8String getMutableBuildNameBytes() { + bitField0_ |= 0x00000010; + return this.buildName; + } + + /** + * optional string BuildName = 4; + * @param value the buildName to set + * @return this + */ + public FurniturePresetInfo setBuildName(final CharSequence value) { + bitField0_ |= 0x00000010; + buildName.copyFrom(value); + return this; + } + + /** + * optional string BuildName = 4; + * @param value the buildName to set + * @return this + */ + public FurniturePresetInfo setBuildName(final Utf8String value) { + bitField0_ |= 0x00000010; + buildName.copyFrom(value); + return this; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @return whether the furnitureList field is set + */ + public boolean hasFurnitureList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @return this + */ + public FurniturePresetInfo clearFurnitureList() { + bitField0_ &= ~0x00000020; + furnitureList.clear(); + return this; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * + * 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 #getMutableFurnitureList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFurnitureList() { + return furnitureList; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * + * 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 getMutableFurnitureList() { + bitField0_ |= 0x00000020; + return furnitureList; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @param value the furnitureList to add + * @return this + */ + public FurniturePresetInfo addFurnitureList(final FurnitureInfo value) { + bitField0_ |= 0x00000020; + furnitureList.add(value); + return this; + } + + /** + * repeated .FurnitureInfo FurnitureList = 2; + * @param values the furnitureList to add + * @return this + */ + public FurniturePresetInfo addAllFurnitureList(final FurnitureInfo... values) { + bitField0_ |= 0x00000020; + furnitureList.addAll(values); + return this; + } + + @Override + public FurniturePresetInfo copyFrom(final FurniturePresetInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + createTime = other.createTime; + dormType = other.dormType; + buildId = other.buildId; + nextPackage.copyFrom(other.nextPackage); + buildName.copyFrom(other.buildName); + furnitureList.copyFrom(other.furnitureList); + } + return this; + } + + @Override + public FurniturePresetInfo mergeFrom(final FurniturePresetInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCreateTime()) { + setCreateTime(other.createTime); + } + if (other.hasDormType()) { + setDormType(other.dormType); + } + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasBuildName()) { + getMutableBuildNameBytes().copyFrom(other.buildName); + } + if (other.hasFurnitureList()) { + getMutableFurnitureList().addAll(other.furnitureList); + } + return this; + } + + @Override + public FurniturePresetInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + createTime = 0L; + dormType = 0; + buildId = 0; + nextPackage.clear(); + buildName.clear(); + furnitureList.clear(); + return this; + } + + @Override + public FurniturePresetInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + buildName.clear(); + furnitureList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FurniturePresetInfo)) { + return false; + } + FurniturePresetInfo other = (FurniturePresetInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCreateTime() || createTime == other.createTime) + && (!hasDormType() || dormType == other.dormType) + && (!hasBuildId() || buildId == other.buildId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasBuildName() || buildName.equals(other.buildName)) + && (!hasFurnitureList() || furnitureList.equals(other.furnitureList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeInt64NoTag(createTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(buildId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(buildName); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < furnitureList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(furnitureList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(createTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dormType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(buildName); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * furnitureList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(furnitureList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FurniturePresetInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // createTime + createTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // dormType + dormType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // buildId + buildId = 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: { + // buildName + input.readString(buildName); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // furnitureList + tag = input.readRepeatedMessage(furnitureList, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.createTime, createTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dormType, dormType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeString(FieldNames.buildName, buildName); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.furnitureList, furnitureList); + } + output.endObject(); + } + + @Override + public FurniturePresetInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -932289015: { + if (input.isAtField(FieldNames.createTime)) { + if (!input.trySkipNullValue()) { + createTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1347688576: { + if (input.isAtField(FieldNames.dormType)) { + if (!input.trySkipNullValue()) { + dormType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1895597065: { + if (input.isAtField(FieldNames.buildId)) { + if (!input.trySkipNullValue()) { + buildId = 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 602795513: { + if (input.isAtField(FieldNames.buildName)) { + if (!input.trySkipNullValue()) { + input.readString(buildName); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -654744688: { + if (input.isAtField(FieldNames.furnitureList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(furnitureList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FurniturePresetInfo clone() { + return new FurniturePresetInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FurniturePresetInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FurniturePresetInfo(), data).checkInitialized(); + } + + public static FurniturePresetInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FurniturePresetInfo(), input).checkInitialized(); + } + + public static FurniturePresetInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FurniturePresetInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FurniturePresetInfo messages + */ + public static MessageFactory getFactory() { + return FurniturePresetInfoFactory.INSTANCE; + } + + private enum FurniturePresetInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FurniturePresetInfo create() { + return FurniturePresetInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName createTime = FieldName.forField("CreateTime"); + + static final FieldName dormType = FieldName.forField("DormType"); + + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName buildName = FieldName.forField("BuildName"); + + static final FieldName furnitureList = FieldName.forField("FurnitureList"); + } + } + + /** + * Protobuf type {@code DormBagInfo} + */ + public static final class DormBagInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ItemTpl ItemTplInfo = 1; + */ + private final Public.ItemTpl itemTplInfo = Public.ItemTpl.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormBagInfo() { + } + + /** + * @return a new empty instance of {@code DormBagInfo} + */ + public static DormBagInfo newInstance() { + return new DormBagInfo(); + } + + /** + * optional .ItemTpl ItemTplInfo = 1; + * @return whether the itemTplInfo field is set + */ + public boolean hasItemTplInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ItemTpl ItemTplInfo = 1; + * @return this + */ + public DormBagInfo clearItemTplInfo() { + bitField0_ &= ~0x00000001; + itemTplInfo.clear(); + return this; + } + + /** + * optional .ItemTpl ItemTplInfo = 1; + * + * 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 #getMutableItemTplInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ItemTpl getItemTplInfo() { + return itemTplInfo; + } + + /** + * optional .ItemTpl ItemTplInfo = 1; + * + * 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.ItemTpl getMutableItemTplInfo() { + bitField0_ |= 0x00000001; + return itemTplInfo; + } + + /** + * optional .ItemTpl ItemTplInfo = 1; + * @param value the itemTplInfo to set + * @return this + */ + public DormBagInfo setItemTplInfo(final Public.ItemTpl value) { + bitField0_ |= 0x00000001; + itemTplInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormBagInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormBagInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormBagInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormBagInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormBagInfo copyFrom(final DormBagInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemTplInfo.copyFrom(other.itemTplInfo); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormBagInfo mergeFrom(final DormBagInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemTplInfo()) { + getMutableItemTplInfo().mergeFrom(other.itemTplInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormBagInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemTplInfo.clear(); + nextPackage.clear(); + return this; + } + + @Override + public DormBagInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemTplInfo.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormBagInfo)) { + return false; + } + DormBagInfo other = (DormBagInfo) o; + return bitField0_ == other.bitField0_ + && (!hasItemTplInfo() || itemTplInfo.equals(other.itemTplInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(itemTplInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemTplInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormBagInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // itemTplInfo + input.readMessage(itemTplInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.itemTplInfo, itemTplInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormBagInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 18684811: { + if (input.isAtField(FieldNames.itemTplInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemTplInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormBagInfo clone() { + return new DormBagInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormBagInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormBagInfo(), data).checkInitialized(); + } + + public static DormBagInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormBagInfo(), input).checkInitialized(); + } + + public static DormBagInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormBagInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormBagInfo messages + */ + public static MessageFactory getFactory() { + return DormBagInfoFactory.INSTANCE; + } + + private enum DormBagInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormBagInfo create() { + return DormBagInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemTplInfo = FieldName.forField("ItemTplInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InvitationRoleInfo} + */ + public static final class InvitationRoleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 RoleId = 1; + */ + private int roleId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InvitationRoleInfo() { + } + + /** + * @return a new empty instance of {@code InvitationRoleInfo} + */ + public static InvitationRoleInfo newInstance() { + return new InvitationRoleInfo(); + } + + /** + * optional uint32 RoleId = 1; + * @return whether the roleId field is set + */ + public boolean hasRoleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 RoleId = 1; + * @return this + */ + public InvitationRoleInfo clearRoleId() { + bitField0_ &= ~0x00000001; + roleId = 0; + return this; + } + + /** + * optional uint32 RoleId = 1; + * @return the roleId + */ + public int getRoleId() { + return roleId; + } + + /** + * optional uint32 RoleId = 1; + * @param value the roleId to set + * @return this + */ + public InvitationRoleInfo setRoleId(final int value) { + bitField0_ |= 0x00000001; + roleId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InvitationRoleInfo clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InvitationRoleInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InvitationRoleInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InvitationRoleInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InvitationRoleInfo copyFrom(final InvitationRoleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + roleId = other.roleId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InvitationRoleInfo mergeFrom(final InvitationRoleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRoleId()) { + setRoleId(other.roleId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InvitationRoleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + roleId = 0; + nextPackage.clear(); + return this; + } + + @Override + public InvitationRoleInfo 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 InvitationRoleInfo)) { + return false; + } + InvitationRoleInfo other = (InvitationRoleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRoleId() || roleId == other.roleId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InvitationRoleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // roleId + roleId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.roleId, roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InvitationRoleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1841549231: { + if (input.isAtField(FieldNames.roleId)) { + if (!input.trySkipNullValue()) { + roleId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InvitationRoleInfo clone() { + return new InvitationRoleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InvitationRoleInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InvitationRoleInfo(), data).checkInitialized(); + } + + public static InvitationRoleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InvitationRoleInfo(), input).checkInitialized(); + } + + public static InvitationRoleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InvitationRoleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating InvitationRoleInfo messages + */ + public static MessageFactory getFactory() { + return InvitationRoleInfoFactory.INSTANCE; + } + + private enum InvitationRoleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public InvitationRoleInfo create() { + return InvitationRoleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName roleId = FieldName.forField("RoleId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormInfoData} + */ + public static final class DormInfoData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 RestNameTime = 8; + */ + private long restNameTime; + + /** + * optional uint32 LikeNum = 2; + */ + private int likeNum; + + /** + * optional uint32 DayVisitNum = 3; + */ + private int dayVisitNum; + + /** + * optional uint32 VisitTotalNum = 4; + */ + private int visitTotalNum; + + /** + * optional .UI32V TaskGroup = 6; + */ + private final Public.UI32V taskGroup = Public.UI32V.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string DormName = 1; + */ + private final Utf8String dormName = Utf8String.newEmptyInstance(); + + /** + * repeated uint32 rewardIds = 5; + */ + private final RepeatedInt rewardIds = RepeatedInt.newEmptyInstance(); + + /** + * repeated .AchievementInfo AchievementList = 7; + */ + private final RepeatedMessage achievementList = RepeatedMessage.newEmptyInstance(AchievementInfo.getFactory()); + + private DormInfoData() { + } + + /** + * @return a new empty instance of {@code DormInfoData} + */ + public static DormInfoData newInstance() { + return new DormInfoData(); + } + + /** + * optional int64 RestNameTime = 8; + * @return whether the restNameTime field is set + */ + public boolean hasRestNameTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 RestNameTime = 8; + * @return this + */ + public DormInfoData clearRestNameTime() { + bitField0_ &= ~0x00000001; + restNameTime = 0L; + return this; + } + + /** + * optional int64 RestNameTime = 8; + * @return the restNameTime + */ + public long getRestNameTime() { + return restNameTime; + } + + /** + * optional int64 RestNameTime = 8; + * @param value the restNameTime to set + * @return this + */ + public DormInfoData setRestNameTime(final long value) { + bitField0_ |= 0x00000001; + restNameTime = value; + return this; + } + + /** + * optional uint32 LikeNum = 2; + * @return whether the likeNum field is set + */ + public boolean hasLikeNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LikeNum = 2; + * @return this + */ + public DormInfoData clearLikeNum() { + bitField0_ &= ~0x00000002; + likeNum = 0; + return this; + } + + /** + * optional uint32 LikeNum = 2; + * @return the likeNum + */ + public int getLikeNum() { + return likeNum; + } + + /** + * optional uint32 LikeNum = 2; + * @param value the likeNum to set + * @return this + */ + public DormInfoData setLikeNum(final int value) { + bitField0_ |= 0x00000002; + likeNum = value; + return this; + } + + /** + * optional uint32 DayVisitNum = 3; + * @return whether the dayVisitNum field is set + */ + public boolean hasDayVisitNum() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 DayVisitNum = 3; + * @return this + */ + public DormInfoData clearDayVisitNum() { + bitField0_ &= ~0x00000004; + dayVisitNum = 0; + return this; + } + + /** + * optional uint32 DayVisitNum = 3; + * @return the dayVisitNum + */ + public int getDayVisitNum() { + return dayVisitNum; + } + + /** + * optional uint32 DayVisitNum = 3; + * @param value the dayVisitNum to set + * @return this + */ + public DormInfoData setDayVisitNum(final int value) { + bitField0_ |= 0x00000004; + dayVisitNum = value; + return this; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @return whether the visitTotalNum field is set + */ + public boolean hasVisitTotalNum() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @return this + */ + public DormInfoData clearVisitTotalNum() { + bitField0_ &= ~0x00000008; + visitTotalNum = 0; + return this; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @return the visitTotalNum + */ + public int getVisitTotalNum() { + return visitTotalNum; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @param value the visitTotalNum to set + * @return this + */ + public DormInfoData setVisitTotalNum(final int value) { + bitField0_ |= 0x00000008; + visitTotalNum = value; + return this; + } + + /** + * optional .UI32V TaskGroup = 6; + * @return whether the taskGroup field is set + */ + public boolean hasTaskGroup() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .UI32V TaskGroup = 6; + * @return this + */ + public DormInfoData clearTaskGroup() { + bitField0_ &= ~0x00000010; + taskGroup.clear(); + return this; + } + + /** + * optional .UI32V TaskGroup = 6; + * + * 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 #getMutableTaskGroup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UI32V getTaskGroup() { + return taskGroup; + } + + /** + * optional .UI32V TaskGroup = 6; + * + * 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.UI32V getMutableTaskGroup() { + bitField0_ |= 0x00000010; + return taskGroup; + } + + /** + * optional .UI32V TaskGroup = 6; + * @param value the taskGroup to set + * @return this + */ + public DormInfoData setTaskGroup(final Public.UI32V value) { + bitField0_ |= 0x00000010; + taskGroup.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormInfoData clearNextPackage() { + bitField0_ &= ~0x00000020; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000020; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormInfoData addNextPackage(final byte value) { + bitField0_ |= 0x00000020; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormInfoData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormInfoData setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string DormName = 1; + * @return whether the dormName field is set + */ + public boolean hasDormName() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string DormName = 1; + * @return this + */ + public DormInfoData clearDormName() { + bitField0_ &= ~0x00000040; + dormName.clear(); + return this; + } + + /** + * optional string DormName = 1; + * @return the dormName + */ + public String getDormName() { + return dormName.getString(); + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for reading + */ + public Utf8String getDormNameBytes() { + return this.dormName; + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for modifications + */ + public Utf8String getMutableDormNameBytes() { + bitField0_ |= 0x00000040; + return this.dormName; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormInfoData setDormName(final CharSequence value) { + bitField0_ |= 0x00000040; + dormName.copyFrom(value); + return this; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormInfoData setDormName(final Utf8String value) { + bitField0_ |= 0x00000040; + dormName.copyFrom(value); + return this; + } + + /** + * repeated uint32 rewardIds = 5; + * @return whether the rewardIds field is set + */ + public boolean hasRewardIds() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 rewardIds = 5; + * @return this + */ + public DormInfoData clearRewardIds() { + bitField0_ &= ~0x00000080; + rewardIds.clear(); + return this; + } + + /** + * repeated uint32 rewardIds = 5; + * + * 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 #getMutableRewardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getRewardIds() { + return rewardIds; + } + + /** + * repeated uint32 rewardIds = 5; + * + * 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 getMutableRewardIds() { + bitField0_ |= 0x00000080; + return rewardIds; + } + + /** + * repeated uint32 rewardIds = 5; + * @param value the rewardIds to add + * @return this + */ + public DormInfoData addRewardIds(final int value) { + bitField0_ |= 0x00000080; + rewardIds.add(value); + return this; + } + + /** + * repeated uint32 rewardIds = 5; + * @param values the rewardIds to add + * @return this + */ + public DormInfoData addAllRewardIds(final int... values) { + bitField0_ |= 0x00000080; + rewardIds.addAll(values); + return this; + } + + /** + * repeated .AchievementInfo AchievementList = 7; + * @return whether the achievementList field is set + */ + public boolean hasAchievementList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .AchievementInfo AchievementList = 7; + * @return this + */ + public DormInfoData clearAchievementList() { + bitField0_ &= ~0x00000100; + achievementList.clear(); + return this; + } + + /** + * repeated .AchievementInfo AchievementList = 7; + * + * 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 #getMutableAchievementList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAchievementList() { + return achievementList; + } + + /** + * repeated .AchievementInfo AchievementList = 7; + * + * 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 getMutableAchievementList() { + bitField0_ |= 0x00000100; + return achievementList; + } + + /** + * repeated .AchievementInfo AchievementList = 7; + * @param value the achievementList to add + * @return this + */ + public DormInfoData addAchievementList(final AchievementInfo value) { + bitField0_ |= 0x00000100; + achievementList.add(value); + return this; + } + + /** + * repeated .AchievementInfo AchievementList = 7; + * @param values the achievementList to add + * @return this + */ + public DormInfoData addAllAchievementList(final AchievementInfo... values) { + bitField0_ |= 0x00000100; + achievementList.addAll(values); + return this; + } + + @Override + public DormInfoData copyFrom(final DormInfoData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + restNameTime = other.restNameTime; + likeNum = other.likeNum; + dayVisitNum = other.dayVisitNum; + visitTotalNum = other.visitTotalNum; + taskGroup.copyFrom(other.taskGroup); + nextPackage.copyFrom(other.nextPackage); + dormName.copyFrom(other.dormName); + rewardIds.copyFrom(other.rewardIds); + achievementList.copyFrom(other.achievementList); + } + return this; + } + + @Override + public DormInfoData mergeFrom(final DormInfoData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRestNameTime()) { + setRestNameTime(other.restNameTime); + } + if (other.hasLikeNum()) { + setLikeNum(other.likeNum); + } + if (other.hasDayVisitNum()) { + setDayVisitNum(other.dayVisitNum); + } + if (other.hasVisitTotalNum()) { + setVisitTotalNum(other.visitTotalNum); + } + if (other.hasTaskGroup()) { + getMutableTaskGroup().mergeFrom(other.taskGroup); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormName()) { + getMutableDormNameBytes().copyFrom(other.dormName); + } + if (other.hasRewardIds()) { + getMutableRewardIds().addAll(other.rewardIds); + } + if (other.hasAchievementList()) { + getMutableAchievementList().addAll(other.achievementList); + } + return this; + } + + @Override + public DormInfoData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + restNameTime = 0L; + likeNum = 0; + dayVisitNum = 0; + visitTotalNum = 0; + taskGroup.clear(); + nextPackage.clear(); + dormName.clear(); + rewardIds.clear(); + achievementList.clear(); + return this; + } + + @Override + public DormInfoData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + taskGroup.clearQuick(); + nextPackage.clear(); + dormName.clear(); + rewardIds.clear(); + achievementList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormInfoData)) { + return false; + } + DormInfoData other = (DormInfoData) o; + return bitField0_ == other.bitField0_ + && (!hasRestNameTime() || restNameTime == other.restNameTime) + && (!hasLikeNum() || likeNum == other.likeNum) + && (!hasDayVisitNum() || dayVisitNum == other.dayVisitNum) + && (!hasVisitTotalNum() || visitTotalNum == other.visitTotalNum) + && (!hasTaskGroup() || taskGroup.equals(other.taskGroup)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormName() || dormName.equals(other.dormName)) + && (!hasRewardIds() || rewardIds.equals(other.rewardIds)) + && (!hasAchievementList() || achievementList.equals(other.achievementList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeInt64NoTag(restNameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(likeNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dayVisitNum); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(visitTotalNum); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(taskGroup); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(dormName); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < rewardIds.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(rewardIds.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < achievementList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(achievementList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(restNameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(likeNum); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dayVisitNum); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(visitTotalNum); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(taskGroup); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(dormName); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * rewardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rewardIds); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * achievementList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(achievementList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormInfoData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // restNameTime + restNameTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // likeNum + likeNum = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dayVisitNum + dayVisitNum = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // visitTotalNum + visitTotalNum = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // taskGroup + input.readMessage(taskGroup); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dormName + input.readString(dormName); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // rewardIds [packed=true] + input.readPackedUInt32(rewardIds, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // achievementList + tag = input.readRepeatedMessage(achievementList, tag); + bitField0_ |= 0x00000100; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // rewardIds [packed=false] + tag = input.readRepeatedUInt32(rewardIds, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.restNameTime, restNameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.likeNum, likeNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.dayVisitNum, dayVisitNum); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.visitTotalNum, visitTotalNum); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.taskGroup, taskGroup); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.dormName, dormName); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.rewardIds, rewardIds); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.achievementList, achievementList); + } + output.endObject(); + } + + @Override + public DormInfoData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1833892852: { + if (input.isAtField(FieldNames.restNameTime)) { + if (!input.trySkipNullValue()) { + restNameTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1838768207: { + if (input.isAtField(FieldNames.likeNum)) { + if (!input.trySkipNullValue()) { + likeNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1824910889: { + if (input.isAtField(FieldNames.dayVisitNum)) { + if (!input.trySkipNullValue()) { + dayVisitNum = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1559283693: { + if (input.isAtField(FieldNames.visitTotalNum)) { + if (!input.trySkipNullValue()) { + visitTotalNum = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2132304934: { + if (input.isAtField(FieldNames.taskGroup)) { + if (!input.trySkipNullValue()) { + input.readMessage(taskGroup); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1347486673: { + if (input.isAtField(FieldNames.dormName)) { + if (!input.trySkipNullValue()) { + input.readString(dormName); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1162923273: { + if (input.isAtField(FieldNames.rewardIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(rewardIds); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -375899059: { + if (input.isAtField(FieldNames.achievementList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(achievementList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormInfoData clone() { + return new DormInfoData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormInfoData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormInfoData(), data).checkInitialized(); + } + + public static DormInfoData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInfoData(), input).checkInitialized(); + } + + public static DormInfoData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormInfoData(), input).checkInitialized(); + } + + /** + * @return factory for creating DormInfoData messages + */ + public static MessageFactory getFactory() { + return DormInfoDataFactory.INSTANCE; + } + + private enum DormInfoDataFactory implements MessageFactory { + INSTANCE; + + @Override + public DormInfoData create() { + return DormInfoData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName restNameTime = FieldName.forField("RestNameTime"); + + static final FieldName likeNum = FieldName.forField("LikeNum"); + + static final FieldName dayVisitNum = FieldName.forField("DayVisitNum"); + + static final FieldName visitTotalNum = FieldName.forField("VisitTotalNum"); + + static final FieldName taskGroup = FieldName.forField("TaskGroup"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormName = FieldName.forField("DormName"); + + static final FieldName rewardIds = FieldName.forField("rewardIds"); + + static final FieldName achievementList = FieldName.forField("AchievementList"); + } + } + + /** + * Protobuf type {@code DormFriendDetail} + */ + public static final class DormFriendDetail extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 uid = 1; + */ + private long uid; + + /** + * optional uint32 LikeNum = 2; + */ + private int likeNum; + + /** + * optional uint32 CollectionValue = 5; + */ + private int collectionValue; + + /** + * optional bool IsLike = 3; + */ + private boolean isLike; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string DormName = 4; + */ + private final Utf8String dormName = Utf8String.newEmptyInstance(); + + private DormFriendDetail() { + } + + /** + * @return a new empty instance of {@code DormFriendDetail} + */ + public static DormFriendDetail newInstance() { + return new DormFriendDetail(); + } + + /** + * optional uint64 uid = 1; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 uid = 1; + * @return this + */ + public DormFriendDetail clearUid() { + bitField0_ &= ~0x00000001; + uid = 0L; + return this; + } + + /** + * optional uint64 uid = 1; + * @return the uid + */ + public long getUid() { + return uid; + } + + /** + * optional uint64 uid = 1; + * @param value the uid to set + * @return this + */ + public DormFriendDetail setUid(final long value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + /** + * optional uint32 LikeNum = 2; + * @return whether the likeNum field is set + */ + public boolean hasLikeNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LikeNum = 2; + * @return this + */ + public DormFriendDetail clearLikeNum() { + bitField0_ &= ~0x00000002; + likeNum = 0; + return this; + } + + /** + * optional uint32 LikeNum = 2; + * @return the likeNum + */ + public int getLikeNum() { + return likeNum; + } + + /** + * optional uint32 LikeNum = 2; + * @param value the likeNum to set + * @return this + */ + public DormFriendDetail setLikeNum(final int value) { + bitField0_ |= 0x00000002; + likeNum = value; + return this; + } + + /** + * optional uint32 CollectionValue = 5; + * @return whether the collectionValue field is set + */ + public boolean hasCollectionValue() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 CollectionValue = 5; + * @return this + */ + public DormFriendDetail clearCollectionValue() { + bitField0_ &= ~0x00000004; + collectionValue = 0; + return this; + } + + /** + * optional uint32 CollectionValue = 5; + * @return the collectionValue + */ + public int getCollectionValue() { + return collectionValue; + } + + /** + * optional uint32 CollectionValue = 5; + * @param value the collectionValue to set + * @return this + */ + public DormFriendDetail setCollectionValue(final int value) { + bitField0_ |= 0x00000004; + collectionValue = value; + return this; + } + + /** + * optional bool IsLike = 3; + * @return whether the isLike field is set + */ + public boolean hasIsLike() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool IsLike = 3; + * @return this + */ + public DormFriendDetail clearIsLike() { + bitField0_ &= ~0x00000008; + isLike = false; + return this; + } + + /** + * optional bool IsLike = 3; + * @return the isLike + */ + public boolean getIsLike() { + return isLike; + } + + /** + * optional bool IsLike = 3; + * @param value the isLike to set + * @return this + */ + public DormFriendDetail setIsLike(final boolean value) { + bitField0_ |= 0x00000008; + isLike = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFriendDetail clearNextPackage() { + bitField0_ &= ~0x00000010; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000010; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFriendDetail addNextPackage(final byte value) { + bitField0_ |= 0x00000010; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFriendDetail addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFriendDetail setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string DormName = 4; + * @return whether the dormName field is set + */ + public boolean hasDormName() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string DormName = 4; + * @return this + */ + public DormFriendDetail clearDormName() { + bitField0_ &= ~0x00000020; + dormName.clear(); + return this; + } + + /** + * optional string DormName = 4; + * @return the dormName + */ + public String getDormName() { + return dormName.getString(); + } + + /** + * optional string DormName = 4; + * @return internal {@code Utf8String} representation of dormName for reading + */ + public Utf8String getDormNameBytes() { + return this.dormName; + } + + /** + * optional string DormName = 4; + * @return internal {@code Utf8String} representation of dormName for modifications + */ + public Utf8String getMutableDormNameBytes() { + bitField0_ |= 0x00000020; + return this.dormName; + } + + /** + * optional string DormName = 4; + * @param value the dormName to set + * @return this + */ + public DormFriendDetail setDormName(final CharSequence value) { + bitField0_ |= 0x00000020; + dormName.copyFrom(value); + return this; + } + + /** + * optional string DormName = 4; + * @param value the dormName to set + * @return this + */ + public DormFriendDetail setDormName(final Utf8String value) { + bitField0_ |= 0x00000020; + dormName.copyFrom(value); + return this; + } + + @Override + public DormFriendDetail copyFrom(final DormFriendDetail other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + likeNum = other.likeNum; + collectionValue = other.collectionValue; + isLike = other.isLike; + nextPackage.copyFrom(other.nextPackage); + dormName.copyFrom(other.dormName); + } + return this; + } + + @Override + public DormFriendDetail mergeFrom(final DormFriendDetail other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasLikeNum()) { + setLikeNum(other.likeNum); + } + if (other.hasCollectionValue()) { + setCollectionValue(other.collectionValue); + } + if (other.hasIsLike()) { + setIsLike(other.isLike); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormName()) { + getMutableDormNameBytes().copyFrom(other.dormName); + } + return this; + } + + @Override + public DormFriendDetail clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0L; + likeNum = 0; + collectionValue = 0; + isLike = false; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public DormFriendDetail clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormFriendDetail)) { + return false; + } + DormFriendDetail other = (DormFriendDetail) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) + && (!hasLikeNum() || likeNum == other.likeNum) + && (!hasCollectionValue() || collectionValue == other.collectionValue) + && (!hasIsLike() || isLike == other.isLike) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormName() || dormName.equals(other.dormName)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(likeNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(collectionValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(isLike); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(dormName); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(likeNum); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(collectionValue); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(dormName); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFriendDetail mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // uid + uid = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // likeNum + likeNum = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // collectionValue + collectionValue = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // isLike + isLike = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // dormName + input.readString(dormName); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.likeNum, likeNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.collectionValue, collectionValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.isLike, isLike); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.dormName, dormName); + } + output.endObject(); + } + + @Override + public DormFriendDetail mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1838768207: { + if (input.isAtField(FieldNames.likeNum)) { + if (!input.trySkipNullValue()) { + likeNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 54598995: { + if (input.isAtField(FieldNames.collectionValue)) { + if (!input.trySkipNullValue()) { + collectionValue = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2096465919: { + if (input.isAtField(FieldNames.isLike)) { + if (!input.trySkipNullValue()) { + isLike = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1347486673: { + if (input.isAtField(FieldNames.dormName)) { + if (!input.trySkipNullValue()) { + input.readString(dormName); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFriendDetail clone() { + return new DormFriendDetail().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFriendDetail parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFriendDetail(), data).checkInitialized(); + } + + public static DormFriendDetail parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendDetail(), input).checkInitialized(); + } + + public static DormFriendDetail parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendDetail(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFriendDetail messages + */ + public static MessageFactory getFactory() { + return DormFriendDetailFactory.INSTANCE; + } + + private enum DormFriendDetailFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFriendDetail create() { + return DormFriendDetail.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName likeNum = FieldName.forField("LikeNum"); + + static final FieldName collectionValue = FieldName.forField("CollectionValue"); + + static final FieldName isLike = FieldName.forField("IsLike"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormName = FieldName.forField("DormName"); + } + } + + /** + * Protobuf type {@code RoleInteraction} + */ + public static final class RoleInteraction extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DormRoomId = 1; + */ + private int dormRoomId; + + /** + * optional uint32 RoleId = 2; + */ + private int roleId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private RoleInteraction() { + } + + /** + * @return a new empty instance of {@code RoleInteraction} + */ + public static RoleInteraction newInstance() { + return new RoleInteraction(); + } + + /** + * optional uint32 DormRoomId = 1; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DormRoomId = 1; + * @return this + */ + public RoleInteraction clearDormRoomId() { + bitField0_ &= ~0x00000001; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 1; + * @param value the dormRoomId to set + * @return this + */ + public RoleInteraction setDormRoomId(final int value) { + bitField0_ |= 0x00000001; + dormRoomId = value; + return this; + } + + /** + * optional uint32 RoleId = 2; + * @return whether the roleId field is set + */ + public boolean hasRoleId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 RoleId = 2; + * @return this + */ + public RoleInteraction clearRoleId() { + bitField0_ &= ~0x00000002; + roleId = 0; + return this; + } + + /** + * optional uint32 RoleId = 2; + * @return the roleId + */ + public int getRoleId() { + return roleId; + } + + /** + * optional uint32 RoleId = 2; + * @param value the roleId to set + * @return this + */ + public RoleInteraction setRoleId(final int value) { + bitField0_ |= 0x00000002; + roleId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public RoleInteraction clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public RoleInteraction addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public RoleInteraction addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public RoleInteraction setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public RoleInteraction copyFrom(final RoleInteraction other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormRoomId = other.dormRoomId; + roleId = other.roleId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public RoleInteraction mergeFrom(final RoleInteraction other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasRoleId()) { + setRoleId(other.roleId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public RoleInteraction clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormRoomId = 0; + roleId = 0; + nextPackage.clear(); + return this; + } + + @Override + public RoleInteraction 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 RoleInteraction)) { + return false; + } + RoleInteraction other = (RoleInteraction) o; + return bitField0_ == other.bitField0_ + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasRoleId() || roleId == other.roleId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(roleId); + } + 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(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roleId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RoleInteraction mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dormRoomId + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // roleId + roleId = 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.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.roleId, roleId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public RoleInteraction mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1841549231: { + if (input.isAtField(FieldNames.roleId)) { + if (!input.trySkipNullValue()) { + roleId = 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 RoleInteraction clone() { + return new RoleInteraction().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RoleInteraction parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RoleInteraction(), data).checkInitialized(); + } + + public static RoleInteraction parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RoleInteraction(), input).checkInitialized(); + } + + public static RoleInteraction parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RoleInteraction(), input).checkInitialized(); + } + + /** + * @return factory for creating RoleInteraction messages + */ + public static MessageFactory getFactory() { + return RoleInteractionFactory.INSTANCE; + } + + private enum RoleInteractionFactory implements MessageFactory { + INSTANCE; + + @Override + public RoleInteraction create() { + return RoleInteraction.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName roleId = FieldName.forField("RoleId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code AffinityData} + */ + public static final class AffinityData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .AffinityInfo AffinityInfo = 1; + */ + private final Public.AffinityInfo affinityInfo = Public.AffinityInfo.newInstance(); + + /** + * optional .ItemTpl ItemInfo = 2; + */ + private final Public.ItemTpl itemInfo = Public.ItemTpl.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private AffinityData() { + } + + /** + * @return a new empty instance of {@code AffinityData} + */ + public static AffinityData newInstance() { + return new AffinityData(); + } + + /** + * optional .AffinityInfo AffinityInfo = 1; + * @return whether the affinityInfo field is set + */ + public boolean hasAffinityInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .AffinityInfo AffinityInfo = 1; + * @return this + */ + public AffinityData clearAffinityInfo() { + bitField0_ &= ~0x00000001; + affinityInfo.clear(); + return this; + } + + /** + * optional .AffinityInfo AffinityInfo = 1; + * + * 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 #getMutableAffinityInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.AffinityInfo getAffinityInfo() { + return affinityInfo; + } + + /** + * optional .AffinityInfo AffinityInfo = 1; + * + * 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.AffinityInfo getMutableAffinityInfo() { + bitField0_ |= 0x00000001; + return affinityInfo; + } + + /** + * optional .AffinityInfo AffinityInfo = 1; + * @param value the affinityInfo to set + * @return this + */ + public AffinityData setAffinityInfo(final Public.AffinityInfo value) { + bitField0_ |= 0x00000001; + affinityInfo.copyFrom(value); + return this; + } + + /** + * optional .ItemTpl ItemInfo = 2; + * @return whether the itemInfo field is set + */ + public boolean hasItemInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemTpl ItemInfo = 2; + * @return this + */ + public AffinityData clearItemInfo() { + bitField0_ &= ~0x00000002; + itemInfo.clear(); + return this; + } + + /** + * optional .ItemTpl ItemInfo = 2; + * + * 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 #getMutableItemInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ItemTpl getItemInfo() { + return itemInfo; + } + + /** + * optional .ItemTpl ItemInfo = 2; + * + * 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.ItemTpl getMutableItemInfo() { + bitField0_ |= 0x00000002; + return itemInfo; + } + + /** + * optional .ItemTpl ItemInfo = 2; + * @param value the itemInfo to set + * @return this + */ + public AffinityData setItemInfo(final Public.ItemTpl value) { + bitField0_ |= 0x00000002; + itemInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public AffinityData clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public AffinityData addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public AffinityData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public AffinityData setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public AffinityData copyFrom(final AffinityData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + affinityInfo.copyFrom(other.affinityInfo); + itemInfo.copyFrom(other.itemInfo); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public AffinityData mergeFrom(final AffinityData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAffinityInfo()) { + getMutableAffinityInfo().mergeFrom(other.affinityInfo); + } + if (other.hasItemInfo()) { + getMutableItemInfo().mergeFrom(other.itemInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public AffinityData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + affinityInfo.clear(); + itemInfo.clear(); + nextPackage.clear(); + return this; + } + + @Override + public AffinityData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + affinityInfo.clearQuick(); + itemInfo.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AffinityData)) { + return false; + } + AffinityData other = (AffinityData) o; + return bitField0_ == other.bitField0_ + && (!hasAffinityInfo() || affinityInfo.equals(other.affinityInfo)) + && (!hasItemInfo() || itemInfo.equals(other.itemInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(affinityInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(itemInfo); + } + 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.computeMessageSizeNoTag(affinityInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AffinityData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // affinityInfo + input.readMessage(affinityInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // itemInfo + input.readMessage(itemInfo); + 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.writeMessage(FieldNames.affinityInfo, affinityInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.itemInfo, itemInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public AffinityData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1904442858: { + if (input.isAtField(FieldNames.affinityInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(affinityInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1241839233: { + if (input.isAtField(FieldNames.itemInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemInfo); + 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 AffinityData clone() { + return new AffinityData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AffinityData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AffinityData(), data).checkInitialized(); + } + + public static AffinityData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AffinityData(), input).checkInitialized(); + } + + public static AffinityData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AffinityData(), input).checkInitialized(); + } + + /** + * @return factory for creating AffinityData messages + */ + public static MessageFactory getFactory() { + return AffinityDataFactory.INSTANCE; + } + + private enum AffinityDataFactory implements MessageFactory { + INSTANCE; + + @Override + public AffinityData create() { + return AffinityData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName affinityInfo = FieldName.forField("AffinityInfo"); + + static final FieldName itemInfo = FieldName.forField("ItemInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormFriendInfo} + */ + public static final class DormFriendInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string DormName = 1; + */ + private final Utf8String dormName = Utf8String.newEmptyInstance(); + + private DormFriendInfo() { + } + + /** + * @return a new empty instance of {@code DormFriendInfo} + */ + public static DormFriendInfo newInstance() { + return new DormFriendInfo(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormFriendInfo clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormFriendInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormFriendInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormFriendInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string DormName = 1; + * @return whether the dormName field is set + */ + public boolean hasDormName() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string DormName = 1; + * @return this + */ + public DormFriendInfo clearDormName() { + bitField0_ &= ~0x00000002; + dormName.clear(); + return this; + } + + /** + * optional string DormName = 1; + * @return the dormName + */ + public String getDormName() { + return dormName.getString(); + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for reading + */ + public Utf8String getDormNameBytes() { + return this.dormName; + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for modifications + */ + public Utf8String getMutableDormNameBytes() { + bitField0_ |= 0x00000002; + return this.dormName; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormFriendInfo setDormName(final CharSequence value) { + bitField0_ |= 0x00000002; + dormName.copyFrom(value); + return this; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormFriendInfo setDormName(final Utf8String value) { + bitField0_ |= 0x00000002; + dormName.copyFrom(value); + return this; + } + + @Override + public DormFriendInfo copyFrom(final DormFriendInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + dormName.copyFrom(other.dormName); + } + return this; + } + + @Override + public DormFriendInfo mergeFrom(final DormFriendInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormName()) { + getMutableDormNameBytes().copyFrom(other.dormName); + } + return this; + } + + @Override + public DormFriendInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public DormFriendInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormFriendInfo)) { + return false; + } + DormFriendInfo other = (DormFriendInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormName() || dormName.equals(other.dormName)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(dormName); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(dormName); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormFriendInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dormName + input.readString(dormName); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.dormName, dormName); + } + output.endObject(); + } + + @Override + public DormFriendInfo 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 1347486673: { + if (input.isAtField(FieldNames.dormName)) { + if (!input.trySkipNullValue()) { + input.readString(dormName); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormFriendInfo clone() { + return new DormFriendInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormFriendInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormFriendInfo(), data).checkInitialized(); + } + + public static DormFriendInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendInfo(), input).checkInitialized(); + } + + public static DormFriendInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormFriendInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormFriendInfo messages + */ + public static MessageFactory getFactory() { + return DormFriendInfoFactory.INSTANCE; + } + + private enum DormFriendInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormFriendInfo create() { + return DormFriendInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormName = FieldName.forField("DormName"); + } + } + + /** + * Protobuf type {@code DormAffinityGiftInfo} + */ + public static final class DormAffinityGiftInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 RoleId = 1; + */ + private int roleId; + + /** + * optional uint32 SendGiftCnt = 2; + */ + private int sendGiftCnt; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormAffinityGiftInfo() { + } + + /** + * @return a new empty instance of {@code DormAffinityGiftInfo} + */ + public static DormAffinityGiftInfo newInstance() { + return new DormAffinityGiftInfo(); + } + + /** + * optional uint32 RoleId = 1; + * @return whether the roleId field is set + */ + public boolean hasRoleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 RoleId = 1; + * @return this + */ + public DormAffinityGiftInfo clearRoleId() { + bitField0_ &= ~0x00000001; + roleId = 0; + return this; + } + + /** + * optional uint32 RoleId = 1; + * @return the roleId + */ + public int getRoleId() { + return roleId; + } + + /** + * optional uint32 RoleId = 1; + * @param value the roleId to set + * @return this + */ + public DormAffinityGiftInfo setRoleId(final int value) { + bitField0_ |= 0x00000001; + roleId = value; + return this; + } + + /** + * optional uint32 SendGiftCnt = 2; + * @return whether the sendGiftCnt field is set + */ + public boolean hasSendGiftCnt() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 SendGiftCnt = 2; + * @return this + */ + public DormAffinityGiftInfo clearSendGiftCnt() { + bitField0_ &= ~0x00000002; + sendGiftCnt = 0; + return this; + } + + /** + * optional uint32 SendGiftCnt = 2; + * @return the sendGiftCnt + */ + public int getSendGiftCnt() { + return sendGiftCnt; + } + + /** + * optional uint32 SendGiftCnt = 2; + * @param value the sendGiftCnt to set + * @return this + */ + public DormAffinityGiftInfo setSendGiftCnt(final int value) { + bitField0_ |= 0x00000002; + sendGiftCnt = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormAffinityGiftInfo clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormAffinityGiftInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormAffinityGiftInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormAffinityGiftInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormAffinityGiftInfo copyFrom(final DormAffinityGiftInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + roleId = other.roleId; + sendGiftCnt = other.sendGiftCnt; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormAffinityGiftInfo mergeFrom(final DormAffinityGiftInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRoleId()) { + setRoleId(other.roleId); + } + if (other.hasSendGiftCnt()) { + setSendGiftCnt(other.sendGiftCnt); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormAffinityGiftInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + roleId = 0; + sendGiftCnt = 0; + nextPackage.clear(); + return this; + } + + @Override + public DormAffinityGiftInfo 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 DormAffinityGiftInfo)) { + return false; + } + DormAffinityGiftInfo other = (DormAffinityGiftInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRoleId() || roleId == other.roleId) + && (!hasSendGiftCnt() || sendGiftCnt == other.sendGiftCnt) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(sendGiftCnt); + } + 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(roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sendGiftCnt); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormAffinityGiftInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // roleId + roleId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // sendGiftCnt + sendGiftCnt = 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.roleId, roleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.sendGiftCnt, sendGiftCnt); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormAffinityGiftInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1841549231: { + if (input.isAtField(FieldNames.roleId)) { + if (!input.trySkipNullValue()) { + roleId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1431779665: { + if (input.isAtField(FieldNames.sendGiftCnt)) { + if (!input.trySkipNullValue()) { + sendGiftCnt = 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 DormAffinityGiftInfo clone() { + return new DormAffinityGiftInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormAffinityGiftInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormAffinityGiftInfo(), data).checkInitialized(); + } + + public static DormAffinityGiftInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormAffinityGiftInfo(), input).checkInitialized(); + } + + public static DormAffinityGiftInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormAffinityGiftInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormAffinityGiftInfo messages + */ + public static MessageFactory getFactory() { + return DormAffinityGiftInfoFactory.INSTANCE; + } + + private enum DormAffinityGiftInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormAffinityGiftInfo create() { + return DormAffinityGiftInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName roleId = FieldName.forField("RoleId"); + + static final FieldName sendGiftCnt = FieldName.forField("SendGiftCnt"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormRoomBGMInfo} + */ + public static final class DormRoomBGMInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DormRoomId = 1; + */ + private int dormRoomId; + + /** + * optional uint32 DiscId = 2; + */ + private int discId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormRoomBGMInfo() { + } + + /** + * @return a new empty instance of {@code DormRoomBGMInfo} + */ + public static DormRoomBGMInfo newInstance() { + return new DormRoomBGMInfo(); + } + + /** + * optional uint32 DormRoomId = 1; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DormRoomId = 1; + * @return this + */ + public DormRoomBGMInfo clearDormRoomId() { + bitField0_ &= ~0x00000001; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 1; + * @param value the dormRoomId to set + * @return this + */ + public DormRoomBGMInfo setDormRoomId(final int value) { + bitField0_ |= 0x00000001; + dormRoomId = value; + return this; + } + + /** + * optional uint32 DiscId = 2; + * @return whether the discId field is set + */ + public boolean hasDiscId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DiscId = 2; + * @return this + */ + public DormRoomBGMInfo clearDiscId() { + bitField0_ &= ~0x00000002; + discId = 0; + return this; + } + + /** + * optional uint32 DiscId = 2; + * @return the discId + */ + public int getDiscId() { + return discId; + } + + /** + * optional uint32 DiscId = 2; + * @param value the discId to set + * @return this + */ + public DormRoomBGMInfo setDiscId(final int value) { + bitField0_ |= 0x00000002; + discId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoomBGMInfo clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoomBGMInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoomBGMInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoomBGMInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormRoomBGMInfo copyFrom(final DormRoomBGMInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormRoomId = other.dormRoomId; + discId = other.discId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormRoomBGMInfo mergeFrom(final DormRoomBGMInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasDiscId()) { + setDiscId(other.discId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormRoomBGMInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormRoomId = 0; + discId = 0; + nextPackage.clear(); + return this; + } + + @Override + public DormRoomBGMInfo 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 DormRoomBGMInfo)) { + return false; + } + DormRoomBGMInfo other = (DormRoomBGMInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasDiscId() || discId == other.discId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(discId); + } + 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(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(discId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoomBGMInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dormRoomId + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // discId + discId = 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.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.discId, discId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormRoomBGMInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2047275440: { + if (input.isAtField(FieldNames.discId)) { + if (!input.trySkipNullValue()) { + discId = 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 DormRoomBGMInfo clone() { + return new DormRoomBGMInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoomBGMInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoomBGMInfo(), data).checkInitialized(); + } + + public static DormRoomBGMInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomBGMInfo(), input).checkInitialized(); + } + + public static DormRoomBGMInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomBGMInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoomBGMInfo messages + */ + public static MessageFactory getFactory() { + return DormRoomBGMInfoFactory.INSTANCE; + } + + private enum DormRoomBGMInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoomBGMInfo create() { + return DormRoomBGMInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName discId = FieldName.forField("DiscId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormRoomUnlock} + */ + public static final class DormRoomUnlock extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DormRoomId = 1; + */ + private int dormRoomId; + + /** + * optional .ChangeInfo ChangeInfo = 2; + */ + private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private DormRoomUnlock() { + } + + /** + * @return a new empty instance of {@code DormRoomUnlock} + */ + public static DormRoomUnlock newInstance() { + return new DormRoomUnlock(); + } + + /** + * optional uint32 DormRoomId = 1; + * @return whether the dormRoomId field is set + */ + public boolean hasDormRoomId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DormRoomId = 1; + * @return this + */ + public DormRoomUnlock clearDormRoomId() { + bitField0_ &= ~0x00000001; + dormRoomId = 0; + return this; + } + + /** + * optional uint32 DormRoomId = 1; + * @return the dormRoomId + */ + public int getDormRoomId() { + return dormRoomId; + } + + /** + * optional uint32 DormRoomId = 1; + * @param value the dormRoomId to set + * @return this + */ + public DormRoomUnlock setDormRoomId(final int value) { + bitField0_ |= 0x00000001; + dormRoomId = value; + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * @return whether the changeInfo field is set + */ + public boolean hasChangeInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * @return this + */ + public DormRoomUnlock clearChangeInfo() { + bitField0_ &= ~0x00000002; + changeInfo.clear(); + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChangeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChangeInfo() { + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChangeInfo() { + bitField0_ |= 0x00000002; + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 2; + * @param value the changeInfo to set + * @return this + */ + public DormRoomUnlock setChangeInfo(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + changeInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormRoomUnlock clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormRoomUnlock addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormRoomUnlock addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormRoomUnlock setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public DormRoomUnlock copyFrom(final DormRoomUnlock other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dormRoomId = other.dormRoomId; + changeInfo.copyFrom(other.changeInfo); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormRoomUnlock mergeFrom(final DormRoomUnlock other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDormRoomId()) { + setDormRoomId(other.dormRoomId); + } + if (other.hasChangeInfo()) { + getMutableChangeInfo().mergeFrom(other.changeInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public DormRoomUnlock clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dormRoomId = 0; + changeInfo.clear(); + nextPackage.clear(); + return this; + } + + @Override + public DormRoomUnlock clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormRoomUnlock)) { + return false; + } + DormRoomUnlock other = (DormRoomUnlock) o; + return bitField0_ == other.bitField0_ + && (!hasDormRoomId() || dormRoomId == other.dormRoomId) + && (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(changeInfo); + } + 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(dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormRoomUnlock mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dormRoomId + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // changeInfo + input.readMessage(changeInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 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.dormRoomId, dormRoomId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.changeInfo, changeInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public DormRoomUnlock mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2017915108: { + if (input.isAtField(FieldNames.dormRoomId)) { + if (!input.trySkipNullValue()) { + dormRoomId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -138776418: { + if (input.isAtField(FieldNames.changeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(changeInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormRoomUnlock clone() { + return new DormRoomUnlock().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormRoomUnlock parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormRoomUnlock(), data).checkInitialized(); + } + + public static DormRoomUnlock parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomUnlock(), input).checkInitialized(); + } + + public static DormRoomUnlock parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormRoomUnlock(), input).checkInitialized(); + } + + /** + * @return factory for creating DormRoomUnlock messages + */ + public static MessageFactory getFactory() { + return DormRoomUnlockFactory.INSTANCE; + } + + private enum DormRoomUnlockFactory implements MessageFactory { + INSTANCE; + + @Override + public DormRoomUnlock create() { + return DormRoomUnlock.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dormRoomId = FieldName.forField("DormRoomId"); + + static final FieldName changeInfo = FieldName.forField("ChangeInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code DormChangeDataInfo} + */ + public static final class DormChangeDataInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LikeNum = 2; + */ + private int likeNum; + + /** + * optional uint32 DayVisitNum = 3; + */ + private int dayVisitNum; + + /** + * optional uint32 VisitTotalNum = 4; + */ + private int visitTotalNum; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string DormName = 1; + */ + private final Utf8String dormName = Utf8String.newEmptyInstance(); + + private DormChangeDataInfo() { + } + + /** + * @return a new empty instance of {@code DormChangeDataInfo} + */ + public static DormChangeDataInfo newInstance() { + return new DormChangeDataInfo(); + } + + /** + * optional uint32 LikeNum = 2; + * @return whether the likeNum field is set + */ + public boolean hasLikeNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LikeNum = 2; + * @return this + */ + public DormChangeDataInfo clearLikeNum() { + bitField0_ &= ~0x00000001; + likeNum = 0; + return this; + } + + /** + * optional uint32 LikeNum = 2; + * @return the likeNum + */ + public int getLikeNum() { + return likeNum; + } + + /** + * optional uint32 LikeNum = 2; + * @param value the likeNum to set + * @return this + */ + public DormChangeDataInfo setLikeNum(final int value) { + bitField0_ |= 0x00000001; + likeNum = value; + return this; + } + + /** + * optional uint32 DayVisitNum = 3; + * @return whether the dayVisitNum field is set + */ + public boolean hasDayVisitNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DayVisitNum = 3; + * @return this + */ + public DormChangeDataInfo clearDayVisitNum() { + bitField0_ &= ~0x00000002; + dayVisitNum = 0; + return this; + } + + /** + * optional uint32 DayVisitNum = 3; + * @return the dayVisitNum + */ + public int getDayVisitNum() { + return dayVisitNum; + } + + /** + * optional uint32 DayVisitNum = 3; + * @param value the dayVisitNum to set + * @return this + */ + public DormChangeDataInfo setDayVisitNum(final int value) { + bitField0_ |= 0x00000002; + dayVisitNum = value; + return this; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @return whether the visitTotalNum field is set + */ + public boolean hasVisitTotalNum() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @return this + */ + public DormChangeDataInfo clearVisitTotalNum() { + bitField0_ &= ~0x00000004; + visitTotalNum = 0; + return this; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @return the visitTotalNum + */ + public int getVisitTotalNum() { + return visitTotalNum; + } + + /** + * optional uint32 VisitTotalNum = 4; + * @param value the visitTotalNum to set + * @return this + */ + public DormChangeDataInfo setVisitTotalNum(final int value) { + bitField0_ |= 0x00000004; + visitTotalNum = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormChangeDataInfo clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormChangeDataInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormChangeDataInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormChangeDataInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string DormName = 1; + * @return whether the dormName field is set + */ + public boolean hasDormName() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional string DormName = 1; + * @return this + */ + public DormChangeDataInfo clearDormName() { + bitField0_ &= ~0x00000010; + dormName.clear(); + return this; + } + + /** + * optional string DormName = 1; + * @return the dormName + */ + public String getDormName() { + return dormName.getString(); + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for reading + */ + public Utf8String getDormNameBytes() { + return this.dormName; + } + + /** + * optional string DormName = 1; + * @return internal {@code Utf8String} representation of dormName for modifications + */ + public Utf8String getMutableDormNameBytes() { + bitField0_ |= 0x00000010; + return this.dormName; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormChangeDataInfo setDormName(final CharSequence value) { + bitField0_ |= 0x00000010; + dormName.copyFrom(value); + return this; + } + + /** + * optional string DormName = 1; + * @param value the dormName to set + * @return this + */ + public DormChangeDataInfo setDormName(final Utf8String value) { + bitField0_ |= 0x00000010; + dormName.copyFrom(value); + return this; + } + + @Override + public DormChangeDataInfo copyFrom(final DormChangeDataInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + likeNum = other.likeNum; + dayVisitNum = other.dayVisitNum; + visitTotalNum = other.visitTotalNum; + nextPackage.copyFrom(other.nextPackage); + dormName.copyFrom(other.dormName); + } + return this; + } + + @Override + public DormChangeDataInfo mergeFrom(final DormChangeDataInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLikeNum()) { + setLikeNum(other.likeNum); + } + if (other.hasDayVisitNum()) { + setDayVisitNum(other.dayVisitNum); + } + if (other.hasVisitTotalNum()) { + setVisitTotalNum(other.visitTotalNum); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasDormName()) { + getMutableDormNameBytes().copyFrom(other.dormName); + } + return this; + } + + @Override + public DormChangeDataInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + likeNum = 0; + dayVisitNum = 0; + visitTotalNum = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public DormChangeDataInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + dormName.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormChangeDataInfo)) { + return false; + } + DormChangeDataInfo other = (DormChangeDataInfo) o; + return bitField0_ == other.bitField0_ + && (!hasLikeNum() || likeNum == other.likeNum) + && (!hasDayVisitNum() || dayVisitNum == other.dayVisitNum) + && (!hasVisitTotalNum() || visitTotalNum == other.visitTotalNum) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasDormName() || dormName.equals(other.dormName)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(likeNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dayVisitNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(visitTotalNum); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(dormName); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(likeNum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dayVisitNum); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(visitTotalNum); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(dormName); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormChangeDataInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // likeNum + likeNum = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dayVisitNum + dayVisitNum = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // visitTotalNum + visitTotalNum = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dormName + input.readString(dormName); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.likeNum, likeNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dayVisitNum, dayVisitNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.visitTotalNum, visitTotalNum); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeString(FieldNames.dormName, dormName); + } + output.endObject(); + } + + @Override + public DormChangeDataInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1838768207: { + if (input.isAtField(FieldNames.likeNum)) { + if (!input.trySkipNullValue()) { + likeNum = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1824910889: { + if (input.isAtField(FieldNames.dayVisitNum)) { + if (!input.trySkipNullValue()) { + dayVisitNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1559283693: { + if (input.isAtField(FieldNames.visitTotalNum)) { + if (!input.trySkipNullValue()) { + visitTotalNum = 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 1347486673: { + if (input.isAtField(FieldNames.dormName)) { + if (!input.trySkipNullValue()) { + input.readString(dormName); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormChangeDataInfo clone() { + return new DormChangeDataInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormChangeDataInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormChangeDataInfo(), data).checkInitialized(); + } + + public static DormChangeDataInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormChangeDataInfo(), input).checkInitialized(); + } + + public static DormChangeDataInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormChangeDataInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating DormChangeDataInfo messages + */ + public static MessageFactory getFactory() { + return DormChangeDataInfoFactory.INSTANCE; + } + + private enum DormChangeDataInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public DormChangeDataInfo create() { + return DormChangeDataInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName likeNum = FieldName.forField("LikeNum"); + + static final FieldName dayVisitNum = FieldName.forField("DayVisitNum"); + + static final FieldName visitTotalNum = FieldName.forField("VisitTotalNum"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName dormName = FieldName.forField("DormName"); + } + } + + /** + * Protobuf type {@code DormHot} + */ + public static final class DormHot extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CollectionValue = 1; + */ + private int collectionValue; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .NewbieInfo Newbies = 2; + */ + private final RepeatedMessage newbies = RepeatedMessage.newEmptyInstance(Public.NewbieInfo.getFactory()); + + private DormHot() { + } + + /** + * @return a new empty instance of {@code DormHot} + */ + public static DormHot newInstance() { + return new DormHot(); + } + + /** + * optional uint32 CollectionValue = 1; + * @return whether the collectionValue field is set + */ + public boolean hasCollectionValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CollectionValue = 1; + * @return this + */ + public DormHot clearCollectionValue() { + bitField0_ &= ~0x00000001; + collectionValue = 0; + return this; + } + + /** + * optional uint32 CollectionValue = 1; + * @return the collectionValue + */ + public int getCollectionValue() { + return collectionValue; + } + + /** + * optional uint32 CollectionValue = 1; + * @param value the collectionValue to set + * @return this + */ + public DormHot setCollectionValue(final int value) { + bitField0_ |= 0x00000001; + collectionValue = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public DormHot clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public DormHot addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public DormHot addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public DormHot setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .NewbieInfo Newbies = 2; + * @return whether the newbies field is set + */ + public boolean hasNewbies() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .NewbieInfo Newbies = 2; + * @return this + */ + public DormHot clearNewbies() { + bitField0_ &= ~0x00000004; + newbies.clear(); + return this; + } + + /** + * repeated .NewbieInfo Newbies = 2; + * + * 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 #getMutableNewbies()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getNewbies() { + return newbies; + } + + /** + * repeated .NewbieInfo Newbies = 2; + * + * 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 getMutableNewbies() { + bitField0_ |= 0x00000004; + return newbies; + } + + /** + * repeated .NewbieInfo Newbies = 2; + * @param value the newbies to add + * @return this + */ + public DormHot addNewbies(final Public.NewbieInfo value) { + bitField0_ |= 0x00000004; + newbies.add(value); + return this; + } + + /** + * repeated .NewbieInfo Newbies = 2; + * @param values the newbies to add + * @return this + */ + public DormHot addAllNewbies(final Public.NewbieInfo... values) { + bitField0_ |= 0x00000004; + newbies.addAll(values); + return this; + } + + @Override + public DormHot copyFrom(final DormHot other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + collectionValue = other.collectionValue; + nextPackage.copyFrom(other.nextPackage); + newbies.copyFrom(other.newbies); + } + return this; + } + + @Override + public DormHot mergeFrom(final DormHot other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCollectionValue()) { + setCollectionValue(other.collectionValue); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasNewbies()) { + getMutableNewbies().addAll(other.newbies); + } + return this; + } + + @Override + public DormHot clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + collectionValue = 0; + nextPackage.clear(); + newbies.clear(); + return this; + } + + @Override + public DormHot clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + newbies.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DormHot)) { + return false; + } + DormHot other = (DormHot) o; + return bitField0_ == other.bitField0_ + && (!hasCollectionValue() || collectionValue == other.collectionValue) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasNewbies() || newbies.equals(other.newbies)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(collectionValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < newbies.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(newbies.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(collectionValue); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * newbies.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(newbies); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DormHot mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // collectionValue + collectionValue = input.readUInt32(); + 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: { + // newbies + tag = input.readRepeatedMessage(newbies, 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.writeUInt32(FieldNames.collectionValue, collectionValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.newbies, newbies); + } + output.endObject(); + } + + @Override + public DormHot mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 54598995: { + if (input.isAtField(FieldNames.collectionValue)) { + if (!input.trySkipNullValue()) { + collectionValue = input.readUInt32(); + 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 -784689995: { + if (input.isAtField(FieldNames.newbies)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(newbies); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DormHot clone() { + return new DormHot().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DormHot parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DormHot(), data).checkInitialized(); + } + + public static DormHot parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormHot(), input).checkInitialized(); + } + + public static DormHot parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DormHot(), input).checkInitialized(); + } + + /** + * @return factory for creating DormHot messages + */ + public static MessageFactory getFactory() { + return DormHotFactory.INSTANCE; + } + + private enum DormHotFactory implements MessageFactory { + INSTANCE; + + @Override + public DormHot create() { + return DormHot.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName collectionValue = FieldName.forField("CollectionValue"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName newbies = FieldName.forField("Newbies"); + } + } + + /** + * Protobuf type {@code AchievementComplete} + */ + public static final class AchievementComplete extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo ChangeInfo = 1; + */ + private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .AchievementInfo AchievementList = 2; + */ + private final RepeatedMessage achievementList = RepeatedMessage.newEmptyInstance(AchievementInfo.getFactory()); + + private AchievementComplete() { + } + + /** + * @return a new empty instance of {@code AchievementComplete} + */ + public static AchievementComplete newInstance() { + return new AchievementComplete(); + } + + /** + * optional .ChangeInfo ChangeInfo = 1; + * @return whether the changeInfo field is set + */ + public boolean hasChangeInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo ChangeInfo = 1; + * @return this + */ + public AchievementComplete clearChangeInfo() { + bitField0_ &= ~0x00000001; + changeInfo.clear(); + return this; + } + + /** + * optional .ChangeInfo ChangeInfo = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChangeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChangeInfo() { + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChangeInfo() { + bitField0_ |= 0x00000001; + return changeInfo; + } + + /** + * optional .ChangeInfo ChangeInfo = 1; + * @param value the changeInfo to set + * @return this + */ + public AchievementComplete setChangeInfo(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + changeInfo.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public AchievementComplete clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public AchievementComplete addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public AchievementComplete addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public AchievementComplete setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .AchievementInfo AchievementList = 2; + * @return whether the achievementList field is set + */ + public boolean hasAchievementList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .AchievementInfo AchievementList = 2; + * @return this + */ + public AchievementComplete clearAchievementList() { + bitField0_ &= ~0x00000004; + achievementList.clear(); + return this; + } + + /** + * repeated .AchievementInfo AchievementList = 2; + * + * 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 #getMutableAchievementList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAchievementList() { + return achievementList; + } + + /** + * repeated .AchievementInfo AchievementList = 2; + * + * 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 getMutableAchievementList() { + bitField0_ |= 0x00000004; + return achievementList; + } + + /** + * repeated .AchievementInfo AchievementList = 2; + * @param value the achievementList to add + * @return this + */ + public AchievementComplete addAchievementList(final AchievementInfo value) { + bitField0_ |= 0x00000004; + achievementList.add(value); + return this; + } + + /** + * repeated .AchievementInfo AchievementList = 2; + * @param values the achievementList to add + * @return this + */ + public AchievementComplete addAllAchievementList(final AchievementInfo... values) { + bitField0_ |= 0x00000004; + achievementList.addAll(values); + return this; + } + + @Override + public AchievementComplete copyFrom(final AchievementComplete other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + changeInfo.copyFrom(other.changeInfo); + nextPackage.copyFrom(other.nextPackage); + achievementList.copyFrom(other.achievementList); + } + return this; + } + + @Override + public AchievementComplete mergeFrom(final AchievementComplete other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChangeInfo()) { + getMutableChangeInfo().mergeFrom(other.changeInfo); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasAchievementList()) { + getMutableAchievementList().addAll(other.achievementList); + } + return this; + } + + @Override + public AchievementComplete clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clear(); + nextPackage.clear(); + achievementList.clear(); + return this; + } + + @Override + public AchievementComplete clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clearQuick(); + nextPackage.clear(); + achievementList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AchievementComplete)) { + return false; + } + AchievementComplete other = (AchievementComplete) o; + return bitField0_ == other.bitField0_ + && (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasAchievementList() || achievementList.equals(other.achievementList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(changeInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < achievementList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(achievementList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(changeInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * achievementList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(achievementList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AchievementComplete mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // changeInfo + input.readMessage(changeInfo); + 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: { + // achievementList + tag = input.readRepeatedMessage(achievementList, 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.changeInfo, changeInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.achievementList, achievementList); + } + output.endObject(); + } + + @Override + public AchievementComplete mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -138776418: { + if (input.isAtField(FieldNames.changeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(changeInfo); + 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 -375899059: { + if (input.isAtField(FieldNames.achievementList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(achievementList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AchievementComplete clone() { + return new AchievementComplete().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AchievementComplete parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AchievementComplete(), data).checkInitialized(); + } + + public static AchievementComplete parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AchievementComplete(), input).checkInitialized(); + } + + public static AchievementComplete parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AchievementComplete(), input).checkInitialized(); + } + + /** + * @return factory for creating AchievementComplete messages + */ + public static MessageFactory getFactory() { + return AchievementCompleteFactory.INSTANCE; + } + + private enum AchievementCompleteFactory implements MessageFactory { + INSTANCE; + + @Override + public AchievementComplete create() { + return AchievementComplete.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName changeInfo = FieldName.forField("ChangeInfo"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName achievementList = FieldName.forField("AchievementList"); + } + } + + /** + * Protobuf type {@code AchievementInfo} + */ + public static final class AchievementInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 CompleteTime = 2; + */ + private long completeTime; + + /** + * optional uint32 AchievementId = 1; + */ + private int achievementId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private AchievementInfo() { + } + + /** + * @return a new empty instance of {@code AchievementInfo} + */ + public static AchievementInfo newInstance() { + return new AchievementInfo(); + } + + /** + * optional int64 CompleteTime = 2; + * @return whether the completeTime field is set + */ + public boolean hasCompleteTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 CompleteTime = 2; + * @return this + */ + public AchievementInfo clearCompleteTime() { + bitField0_ &= ~0x00000001; + completeTime = 0L; + return this; + } + + /** + * optional int64 CompleteTime = 2; + * @return the completeTime + */ + public long getCompleteTime() { + return completeTime; + } + + /** + * optional int64 CompleteTime = 2; + * @param value the completeTime to set + * @return this + */ + public AchievementInfo setCompleteTime(final long value) { + bitField0_ |= 0x00000001; + completeTime = value; + return this; + } + + /** + * optional uint32 AchievementId = 1; + * @return whether the achievementId field is set + */ + public boolean hasAchievementId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 AchievementId = 1; + * @return this + */ + public AchievementInfo clearAchievementId() { + bitField0_ &= ~0x00000002; + achievementId = 0; + return this; + } + + /** + * optional uint32 AchievementId = 1; + * @return the achievementId + */ + public int getAchievementId() { + return achievementId; + } + + /** + * optional uint32 AchievementId = 1; + * @param value the achievementId to set + * @return this + */ + public AchievementInfo setAchievementId(final int value) { + bitField0_ |= 0x00000002; + achievementId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public AchievementInfo clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public AchievementInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public AchievementInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public AchievementInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public AchievementInfo copyFrom(final AchievementInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + completeTime = other.completeTime; + achievementId = other.achievementId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public AchievementInfo mergeFrom(final AchievementInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCompleteTime()) { + setCompleteTime(other.completeTime); + } + if (other.hasAchievementId()) { + setAchievementId(other.achievementId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public AchievementInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + completeTime = 0L; + achievementId = 0; + nextPackage.clear(); + return this; + } + + @Override + public AchievementInfo 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 AchievementInfo)) { + return false; + } + AchievementInfo other = (AchievementInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCompleteTime() || completeTime == other.completeTime) + && (!hasAchievementId() || achievementId == other.achievementId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(completeTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(achievementId); + } + 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.computeInt64SizeNoTag(completeTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(achievementId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AchievementInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // completeTime + completeTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // achievementId + achievementId = 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.writeInt64(FieldNames.completeTime, completeTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.achievementId, achievementId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public AchievementInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -245692474: { + if (input.isAtField(FieldNames.completeTime)) { + if (!input.trySkipNullValue()) { + completeTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 929216650: { + if (input.isAtField(FieldNames.achievementId)) { + if (!input.trySkipNullValue()) { + achievementId = 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 AchievementInfo clone() { + return new AchievementInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AchievementInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AchievementInfo(), data).checkInitialized(); + } + + public static AchievementInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AchievementInfo(), input).checkInitialized(); + } + + public static AchievementInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AchievementInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating AchievementInfo messages + */ + public static MessageFactory getFactory() { + return AchievementInfoFactory.INSTANCE; + } + + private enum AchievementInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public AchievementInfo create() { + return AchievementInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName completeTime = FieldName.forField("CompleteTime"); + + static final FieldName achievementId = FieldName.forField("AchievementId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/PublicSoldier.java b/src/generated/main/emu/nebula/proto/PublicSoldier.java index 5fee933..32910a4 100644 --- a/src/generated/main/emu/nebula/proto/PublicSoldier.java +++ b/src/generated/main/emu/nebula/proto/PublicSoldier.java @@ -19,44 +19,64 @@ import us.hebi.quickbuf.Utf8String; public final class PublicSoldier { /** - * Protobuf enum {@code SoldierCardType} + * Protobuf enum {@code SoldierBuffType} */ - public enum SoldierCardType implements ProtoEnum { + public enum SoldierBuffType implements ProtoEnum { /** - * Undefined = 0; + * UnknownBuff = 0; */ - Undefined("Undefined", 0), + UnknownBuff("UnknownBuff", 0), /** - * Starter = 1; + * CardBuff = 1; */ - Starter("Starter", 1), + CardBuff("CardBuff", 1), /** - * Strategy = 2; + * PartnerBuff = 2; */ - Strategy("Strategy", 2); + PartnerBuff("PartnerBuff", 2), /** - * Undefined = 0; + * TechNodeBuff = 3; */ - public static final int Undefined_VALUE = 0; + TechNodeBuff("TechNodeBuff", 3), /** - * Starter = 1; + * AbilityBuff = 4; */ - public static final int Starter_VALUE = 1; + AbilityBuff("AbilityBuff", 4); /** - * Strategy = 2; + * UnknownBuff = 0; */ - public static final int Strategy_VALUE = 2; + public static final int UnknownBuff_VALUE = 0; + + /** + * CardBuff = 1; + */ + public static final int CardBuff_VALUE = 1; + + /** + * PartnerBuff = 2; + */ + public static final int PartnerBuff_VALUE = 2; + + /** + * TechNodeBuff = 3; + */ + public static final int TechNodeBuff_VALUE = 3; + + /** + * AbilityBuff = 4; + */ + public static final int AbilityBuff_VALUE = 4; private final String name; private final int number; - private SoldierCardType(String name, int number) { + private SoldierBuffType(String name, int number) { this.name = name; this.number = number; } @@ -80,16 +100,16 @@ public final class PublicSoldier { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { - return SoldierCardTypeConverter.INSTANCE; + public static ProtoEnum.EnumConverter converter() { + return SoldierBuffTypeConverter.INSTANCE; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value, or null if unknown. */ - public static SoldierCardType forNumber(int value) { - return SoldierCardTypeConverter.INSTANCE.forNumber(value); + public static SoldierBuffType forNumber(int value) { + return SoldierBuffTypeConverter.INSTANCE.forNumber(value); } /** @@ -97,24 +117,26 @@ public final class PublicSoldier { * @param other Fallback value in case the value is not known. * @return The enum associated with the given numeric wire value, or the fallback value if unknown. */ - public static SoldierCardType forNumberOr(int number, SoldierCardType other) { - SoldierCardType value = forNumber(number); + public static SoldierBuffType forNumberOr(int number, SoldierBuffType other) { + SoldierBuffType value = forNumber(number); return value == null ? other : value; } - enum SoldierCardTypeConverter implements ProtoEnum.EnumConverter { + enum SoldierBuffTypeConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final SoldierCardType[] lookup = new SoldierCardType[3]; + private static final SoldierBuffType[] lookup = new SoldierBuffType[5]; static { - lookup[0] = Undefined; - lookup[1] = Starter; - lookup[2] = Strategy; + lookup[0] = UnknownBuff; + lookup[1] = CardBuff; + lookup[2] = PartnerBuff; + lookup[3] = TechNodeBuff; + lookup[4] = AbilityBuff; } @Override - public final SoldierCardType forNumber(final int value) { + public final SoldierBuffType forNumber(final int value) { if (value >= 0 && value < lookup.length) { return lookup[value]; } @@ -122,20 +144,26 @@ public final class PublicSoldier { } @Override - public final SoldierCardType forName(final CharSequence value) { - if (value.length() == 7) { - if (ProtoUtil.isEqual("Starter", value)) { - return Starter; - } - } + public final SoldierBuffType forName(final CharSequence value) { if (value.length() == 8) { - if (ProtoUtil.isEqual("Strategy", value)) { - return Strategy; + if (ProtoUtil.isEqual("CardBuff", value)) { + return CardBuff; } } - if (value.length() == 9) { - if (ProtoUtil.isEqual("Undefined", value)) { - return Undefined; + if (value.length() == 11) { + if (ProtoUtil.isEqual("UnknownBuff", value)) { + return UnknownBuff; + } + if (ProtoUtil.isEqual("PartnerBuff", value)) { + return PartnerBuff; + } + if (ProtoUtil.isEqual("AbilityBuff", value)) { + return AbilityBuff; + } + } + if (value.length() == 12) { + if (ProtoUtil.isEqual("TechNodeBuff", value)) { + return TechNodeBuff; } } return null; @@ -144,9 +172,9 @@ public final class PublicSoldier { } /** - * Protobuf enum {@code SoldierPartnerAction} + * Protobuf enum {@code SoldierBuffAction} */ - public enum SoldierPartnerAction implements ProtoEnum { + public enum SoldierBuffAction implements ProtoEnum { /** * Sync = 0; */ @@ -181,7 +209,7 @@ public final class PublicSoldier { private final int number; - private SoldierPartnerAction(String name, int number) { + private SoldierBuffAction(String name, int number) { this.name = name; this.number = number; } @@ -205,16 +233,16 @@ public final class PublicSoldier { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { - return SoldierPartnerActionConverter.INSTANCE; + public static ProtoEnum.EnumConverter converter() { + return SoldierBuffActionConverter.INSTANCE; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value, or null if unknown. */ - public static SoldierPartnerAction forNumber(int value) { - return SoldierPartnerActionConverter.INSTANCE.forNumber(value); + public static SoldierBuffAction forNumber(int value) { + return SoldierBuffActionConverter.INSTANCE.forNumber(value); } /** @@ -222,15 +250,15 @@ public final class PublicSoldier { * @param other Fallback value in case the value is not known. * @return The enum associated with the given numeric wire value, or the fallback value if unknown. */ - public static SoldierPartnerAction forNumberOr(int number, SoldierPartnerAction other) { - SoldierPartnerAction value = forNumber(number); + public static SoldierBuffAction forNumberOr(int number, SoldierBuffAction other) { + SoldierBuffAction value = forNumber(number); return value == null ? other : value; } - enum SoldierPartnerActionConverter implements ProtoEnum.EnumConverter { + enum SoldierBuffActionConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final SoldierPartnerAction[] lookup = new SoldierPartnerAction[3]; + private static final SoldierBuffAction[] lookup = new SoldierBuffAction[3]; static { lookup[0] = Sync; @@ -239,7 +267,7 @@ public final class PublicSoldier { } @Override - public final SoldierPartnerAction forNumber(final int value) { + public final SoldierBuffAction forNumber(final int value) { if (value >= 0 && value < lookup.length) { return lookup[value]; } @@ -247,7 +275,7 @@ public final class PublicSoldier { } @Override - public final SoldierPartnerAction forName(final CharSequence value) { + public final SoldierBuffAction forName(final CharSequence value) { if (value.length() == 3) { if (ProtoUtil.isEqual("Add", value)) { return Add; @@ -377,6 +405,216 @@ public final class PublicSoldier { } } + /** + * Protobuf enum {@code SoldierEventEffectRewardType} + */ + public enum SoldierEventEffectRewardType implements ProtoEnum { + /** + * Next = 0; + */ + Next("Next", 0), + + /** + * GainCoin = 1; + */ + GainCoin("GainCoin", 1), + + /** + * LossCoin = 2; + */ + LossCoin("LossCoin", 2), + + /** + * Chess = 3; + */ + Chess("Chess", 3), + + /** + * Hp = 4; + */ + Hp("Hp", 4), + + /** + * Card = 5; + */ + Card("Card", 5), + + /** + * CardEffect = 6; + */ + CardEffect("CardEffect", 6), + + /** + * LoseAllCoin = 7; + */ + LoseAllCoin("LoseAllCoin", 7); + + /** + * Next = 0; + */ + public static final int Next_VALUE = 0; + + /** + * GainCoin = 1; + */ + public static final int GainCoin_VALUE = 1; + + /** + * LossCoin = 2; + */ + public static final int LossCoin_VALUE = 2; + + /** + * Chess = 3; + */ + public static final int Chess_VALUE = 3; + + /** + * Hp = 4; + */ + public static final int Hp_VALUE = 4; + + /** + * Card = 5; + */ + public static final int Card_VALUE = 5; + + /** + * CardEffect = 6; + */ + public static final int CardEffect_VALUE = 6; + + /** + * LoseAllCoin = 7; + */ + public static final int LoseAllCoin_VALUE = 7; + + private final String name; + + private final int number; + + private SoldierEventEffectRewardType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SoldierEventEffectRewardTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SoldierEventEffectRewardType forNumber(int value) { + return SoldierEventEffectRewardTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SoldierEventEffectRewardType forNumberOr(int number, + SoldierEventEffectRewardType other) { + SoldierEventEffectRewardType value = forNumber(number); + return value == null ? other : value; + } + + enum SoldierEventEffectRewardTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SoldierEventEffectRewardType[] lookup = new SoldierEventEffectRewardType[8]; + + static { + lookup[0] = Next; + lookup[1] = GainCoin; + lookup[2] = LossCoin; + lookup[3] = Chess; + lookup[4] = Hp; + lookup[5] = Card; + lookup[6] = CardEffect; + lookup[7] = LoseAllCoin; + } + + @Override + public final SoldierEventEffectRewardType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SoldierEventEffectRewardType forName(final CharSequence value) { + switch (value.length()) { + case 2: { + if (ProtoUtil.isEqual("Hp", value)) { + return Hp; + } + break; + } + case 4: { + if (ProtoUtil.isEqual("Next", value)) { + return Next; + } + if (ProtoUtil.isEqual("Card", value)) { + return Card; + } + break; + } + case 5: { + if (ProtoUtil.isEqual("Chess", value)) { + return Chess; + } + break; + } + case 8: { + if (ProtoUtil.isEqual("GainCoin", value)) { + return GainCoin; + } + if (ProtoUtil.isEqual("LossCoin", value)) { + return LossCoin; + } + break; + } + case 10: { + if (ProtoUtil.isEqual("CardEffect", value)) { + return CardEffect; + } + break; + } + case 11: { + if (ProtoUtil.isEqual("LoseAllCoin", value)) { + return LoseAllCoin; + } + break; + } + } + return null; + } + } + } + /** * Protobuf type {@code SoldierInfo} */ @@ -404,9 +642,19 @@ public final class PublicSoldier { private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; + * repeated .SoldierCase Cases = 4; */ - private final RepeatedMessage activatedEffects = RepeatedMessage.newEmptyInstance(SoldierEffectInfo.getFactory()); + private final RepeatedMessage cases = RepeatedMessage.newEmptyInstance(SoldierCase.getFactory()); + + /** + * repeated .SoldierEffectInfo Effects = 5; + */ + private final RepeatedMessage effects = RepeatedMessage.newEmptyInstance(SoldierEffectInfo.getFactory()); + + /** + * repeated .SoldierBuffProgress Progress = 6; + */ + private final RepeatedMessage progress = RepeatedMessage.newEmptyInstance(SoldierBuffProgress.getFactory()); private SoldierInfo() { } @@ -669,39 +917,39 @@ public final class PublicSoldier { } /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; - * @return whether the activatedEffects field is set + * repeated .SoldierCase Cases = 4; + * @return whether the cases field is set */ - public boolean hasActivatedEffects() { + public boolean hasCases() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; + * repeated .SoldierCase Cases = 4; * @return this */ - public SoldierInfo clearActivatedEffects() { + public SoldierInfo clearCases() { bitField0_ &= ~0x00000010; - activatedEffects.clear(); + cases.clear(); return this; } /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; + * repeated .SoldierCase Cases = 4; * * 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 #getMutableActivatedEffects()} if you want to modify it. + * Use {@link #getMutableCases()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getActivatedEffects() { - return activatedEffects; + public RepeatedMessage getCases() { + return cases; } /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; + * repeated .SoldierCase Cases = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -709,30 +957,166 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableActivatedEffects() { + public RepeatedMessage getMutableCases() { bitField0_ |= 0x00000010; - return activatedEffects; + return cases; } /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; - * @param value the activatedEffects to add + * repeated .SoldierCase Cases = 4; + * @param value the cases to add * @return this */ - public SoldierInfo addActivatedEffects(final SoldierEffectInfo value) { + public SoldierInfo addCases(final SoldierCase value) { bitField0_ |= 0x00000010; - activatedEffects.add(value); + cases.add(value); return this; } /** - * repeated .SoldierEffectInfo ActivatedEffects = 4; - * @param values the activatedEffects to add + * repeated .SoldierCase Cases = 4; + * @param values the cases to add * @return this */ - public SoldierInfo addAllActivatedEffects(final SoldierEffectInfo... values) { + public SoldierInfo addAllCases(final SoldierCase... values) { bitField0_ |= 0x00000010; - activatedEffects.addAll(values); + cases.addAll(values); + return this; + } + + /** + * repeated .SoldierEffectInfo Effects = 5; + * @return whether the effects field is set + */ + public boolean hasEffects() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .SoldierEffectInfo Effects = 5; + * @return this + */ + public SoldierInfo clearEffects() { + bitField0_ &= ~0x00000020; + effects.clear(); + return this; + } + + /** + * repeated .SoldierEffectInfo Effects = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEffects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEffects() { + return effects; + } + + /** + * repeated .SoldierEffectInfo Effects = 5; + * + * 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 getMutableEffects() { + bitField0_ |= 0x00000020; + return effects; + } + + /** + * repeated .SoldierEffectInfo Effects = 5; + * @param value the effects to add + * @return this + */ + public SoldierInfo addEffects(final SoldierEffectInfo value) { + bitField0_ |= 0x00000020; + effects.add(value); + return this; + } + + /** + * repeated .SoldierEffectInfo Effects = 5; + * @param values the effects to add + * @return this + */ + public SoldierInfo addAllEffects(final SoldierEffectInfo... values) { + bitField0_ |= 0x00000020; + effects.addAll(values); + return this; + } + + /** + * repeated .SoldierBuffProgress Progress = 6; + * @return whether the progress field is set + */ + public boolean hasProgress() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .SoldierBuffProgress Progress = 6; + * @return this + */ + public SoldierInfo clearProgress() { + bitField0_ &= ~0x00000040; + progress.clear(); + return this; + } + + /** + * repeated .SoldierBuffProgress Progress = 6; + * + * 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 #getMutableProgress()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getProgress() { + return progress; + } + + /** + * repeated .SoldierBuffProgress Progress = 6; + * + * 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 getMutableProgress() { + bitField0_ |= 0x00000040; + return progress; + } + + /** + * repeated .SoldierBuffProgress Progress = 6; + * @param value the progress to add + * @return this + */ + public SoldierInfo addProgress(final SoldierBuffProgress value) { + bitField0_ |= 0x00000040; + progress.add(value); + return this; + } + + /** + * repeated .SoldierBuffProgress Progress = 6; + * @param values the progress to add + * @return this + */ + public SoldierInfo addAllProgress(final SoldierBuffProgress... values) { + bitField0_ |= 0x00000040; + progress.addAll(values); return this; } @@ -745,7 +1129,9 @@ public final class PublicSoldier { node.copyFrom(other.node); bag.copyFrom(other.bag); nextPackage.copyFrom(other.nextPackage); - activatedEffects.copyFrom(other.activatedEffects); + cases.copyFrom(other.cases); + effects.copyFrom(other.effects); + progress.copyFrom(other.progress); } return this; } @@ -768,8 +1154,14 @@ public final class PublicSoldier { if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasActivatedEffects()) { - getMutableActivatedEffects().addAll(other.activatedEffects); + if (other.hasCases()) { + getMutableCases().addAll(other.cases); + } + if (other.hasEffects()) { + getMutableEffects().addAll(other.effects); + } + if (other.hasProgress()) { + getMutableProgress().addAll(other.progress); } return this; } @@ -785,7 +1177,9 @@ public final class PublicSoldier { node.clear(); bag.clear(); nextPackage.clear(); - activatedEffects.clear(); + cases.clear(); + effects.clear(); + progress.clear(); return this; } @@ -800,7 +1194,9 @@ public final class PublicSoldier { node.clearQuick(); bag.clearQuick(); nextPackage.clear(); - activatedEffects.clearQuick(); + cases.clearQuick(); + effects.clearQuick(); + progress.clearQuick(); return this; } @@ -818,7 +1214,9 @@ public final class PublicSoldier { && (!hasNode() || node.equals(other.node)) && (!hasBag() || bag.equals(other.bag)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasActivatedEffects() || activatedEffects.equals(other.activatedEffects)); + && (!hasCases() || cases.equals(other.cases)) + && (!hasEffects() || effects.equals(other.effects)) + && (!hasProgress() || progress.equals(other.progress)); } @Override @@ -840,9 +1238,21 @@ public final class PublicSoldier { output.writeBytesNoTag(nextPackage); } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < activatedEffects.length(); i++) { + for (int i = 0; i < cases.length(); i++) { output.writeRawByte((byte) 34); - output.writeMessageNoTag(activatedEffects.get(i)); + output.writeMessageNoTag(cases.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < effects.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(effects.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < progress.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(progress.get(i)); } } } @@ -863,7 +1273,13 @@ public final class PublicSoldier { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * activatedEffects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(activatedEffects); + size += (1 * cases.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cases); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * effects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(effects); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * progress.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(progress); } return size; } @@ -912,9 +1328,25 @@ public final class PublicSoldier { } } case 34: { - // activatedEffects - tag = input.readRepeatedMessage(activatedEffects, tag); + // cases + tag = input.readRepeatedMessage(cases, tag); bitField0_ |= 0x00000010; + if (tag != 42) { + break; + } + } + case 42: { + // effects + tag = input.readRepeatedMessage(effects, tag); + bitField0_ |= 0x00000020; + if (tag != 50) { + break; + } + } + case 50: { + // progress + tag = input.readRepeatedMessage(progress, tag); + bitField0_ |= 0x00000040; if (tag != 0) { break; } @@ -949,7 +1381,13 @@ public final class PublicSoldier { output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.activatedEffects, activatedEffects); + output.writeRepeatedMessage(FieldNames.cases, cases); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.effects, effects); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.progress, progress); } output.endObject(); } @@ -1005,10 +1443,10 @@ public final class PublicSoldier { } break; } - case -489681391: { - if (input.isAtField(FieldNames.activatedEffects)) { + case 64879395: { + if (input.isAtField(FieldNames.cases)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(activatedEffects); + input.readRepeatedMessage(cases); bitField0_ |= 0x00000010; } } else { @@ -1016,6 +1454,28 @@ public final class PublicSoldier { } break; } + case -169275166: { + if (input.isAtField(FieldNames.effects)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(effects); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -936434099: { + if (input.isAtField(FieldNames.progress)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(progress); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -1076,7 +1536,11 @@ public final class PublicSoldier { static final FieldName nextPackage = FieldName.forField("NextPackage"); - static final FieldName activatedEffects = FieldName.forField("ActivatedEffects"); + static final FieldName cases = FieldName.forField("Cases"); + + static final FieldName effects = FieldName.forField("Effects"); + + static final FieldName progress = FieldName.forField("Progress"); } } @@ -2252,11 +2716,6 @@ public final class PublicSoldier { */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - /** - * repeated .SoldierCase Cases = 2; - */ - private final RepeatedMessage cases = RepeatedMessage.newEmptyInstance(SoldierCase.getFactory()); - private SoldierNode() { } @@ -2403,74 +2862,6 @@ public final class PublicSoldier { return this; } - /** - * repeated .SoldierCase Cases = 2; - * @return whether the cases field is set - */ - public boolean hasCases() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .SoldierCase Cases = 2; - * @return this - */ - public SoldierNode clearCases() { - bitField0_ &= ~0x00000004; - cases.clear(); - return this; - } - - /** - * repeated .SoldierCase Cases = 2; - * - * 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 #getMutableCases()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getCases() { - return cases; - } - - /** - * repeated .SoldierCase Cases = 2; - * - * 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 getMutableCases() { - bitField0_ |= 0x00000004; - return cases; - } - - /** - * repeated .SoldierCase Cases = 2; - * @param value the cases to add - * @return this - */ - public SoldierNode addCases(final SoldierCase value) { - bitField0_ |= 0x00000004; - cases.add(value); - return this; - } - - /** - * repeated .SoldierCase Cases = 2; - * @param values the cases to add - * @return this - */ - public SoldierNode addAllCases(final SoldierCase... values) { - bitField0_ |= 0x00000004; - cases.addAll(values); - return this; - } - @Override public SoldierNode copyFrom(final SoldierNode other) { cachedSize = other.cachedSize; @@ -2478,7 +2869,6 @@ public final class PublicSoldier { bitField0_ = other.bitField0_; data.copyFrom(other.data); nextPackage.copyFrom(other.nextPackage); - cases.copyFrom(other.cases); } return this; } @@ -2495,9 +2885,6 @@ public final class PublicSoldier { if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasCases()) { - getMutableCases().addAll(other.cases); - } return this; } @@ -2510,7 +2897,6 @@ public final class PublicSoldier { bitField0_ = 0; data.clear(); nextPackage.clear(); - cases.clear(); return this; } @@ -2523,7 +2909,6 @@ public final class PublicSoldier { bitField0_ = 0; data.clearQuick(); nextPackage.clear(); - cases.clearQuick(); return this; } @@ -2538,8 +2923,7 @@ public final class PublicSoldier { SoldierNode other = (SoldierNode) o; return bitField0_ == other.bitField0_ && (!hasData() || data.equals(other.data)) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasCases() || cases.equals(other.cases)); + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override @@ -2552,12 +2936,6 @@ public final class PublicSoldier { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < cases.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(cases.get(i)); - } - } } @Override @@ -2569,9 +2947,6 @@ public final class PublicSoldier { if ((bitField0_ & 0x00000002) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * cases.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cases); - } return size; } @@ -2596,14 +2971,6 @@ public final class PublicSoldier { input.readBytes(nextPackage); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // cases - tag = input.readRepeatedMessage(cases, tag); - bitField0_ |= 0x00000004; if (tag != 0) { break; } @@ -2631,9 +2998,6 @@ public final class PublicSoldier { if ((bitField0_ & 0x00000002) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.cases, cases); - } output.endObject(); } @@ -2666,17 +3030,6 @@ public final class PublicSoldier { } break; } - case 64879395: { - if (input.isAtField(FieldNames.cases)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(cases); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -2732,8 +3085,6 @@ public final class PublicSoldier { static final FieldName data = FieldName.forField("Data"); static final FieldName nextPackage = FieldName.forField("NextPackage"); - - static final FieldName cases = FieldName.forField("Cases"); } } @@ -3287,19 +3638,9 @@ public final class PublicSoldier { private final RepeatedMessage res = RepeatedMessage.newEmptyInstance(SoldierRes.getFactory()); /** - * repeated .SoldierChess Chess = 3; + * repeated .SoldierBuff Buffs = 3; */ - private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); - - /** - * repeated .SoldierCard Cards = 4; - */ - private final RepeatedMessage cards = RepeatedMessage.newEmptyInstance(SoldierCard.getFactory()); - - /** - * repeated .SoldierPartner Partners = 5; - */ - private final RepeatedMessage partners = RepeatedMessage.newEmptyInstance(SoldierPartner.getFactory()); + private final RepeatedMessage buffs = RepeatedMessage.newEmptyInstance(SoldierBuff.getFactory()); private SoldierBag() { } @@ -3516,39 +3857,39 @@ public final class PublicSoldier { } /** - * repeated .SoldierChess Chess = 3; - * @return whether the chess field is set + * repeated .SoldierBuff Buffs = 3; + * @return whether the buffs field is set */ - public boolean hasChess() { + public boolean hasBuffs() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .SoldierChess Chess = 3; + * repeated .SoldierBuff Buffs = 3; * @return this */ - public SoldierBag clearChess() { + public SoldierBag clearBuffs() { bitField0_ &= ~0x00000008; - chess.clear(); + buffs.clear(); return this; } /** - * repeated .SoldierChess Chess = 3; + * repeated .SoldierBuff Buffs = 3; * * 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 #getMutableChess()} if you want to modify it. + * Use {@link #getMutableBuffs()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getChess() { - return chess; + public RepeatedMessage getBuffs() { + return buffs; } /** - * repeated .SoldierChess Chess = 3; + * repeated .SoldierBuff Buffs = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -3556,166 +3897,30 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableChess() { + public RepeatedMessage getMutableBuffs() { bitField0_ |= 0x00000008; - return chess; + return buffs; } /** - * repeated .SoldierChess Chess = 3; - * @param value the chess to add + * repeated .SoldierBuff Buffs = 3; + * @param value the buffs to add * @return this */ - public SoldierBag addChess(final SoldierChess value) { + public SoldierBag addBuffs(final SoldierBuff value) { bitField0_ |= 0x00000008; - chess.add(value); + buffs.add(value); return this; } /** - * repeated .SoldierChess Chess = 3; - * @param values the chess to add + * repeated .SoldierBuff Buffs = 3; + * @param values the buffs to add * @return this */ - public SoldierBag addAllChess(final SoldierChess... values) { + public SoldierBag addAllBuffs(final SoldierBuff... values) { bitField0_ |= 0x00000008; - chess.addAll(values); - return this; - } - - /** - * repeated .SoldierCard Cards = 4; - * @return whether the cards field is set - */ - public boolean hasCards() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated .SoldierCard Cards = 4; - * @return this - */ - public SoldierBag clearCards() { - bitField0_ &= ~0x00000010; - cards.clear(); - return this; - } - - /** - * repeated .SoldierCard Cards = 4; - * - * 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 #getMutableCards()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getCards() { - return cards; - } - - /** - * repeated .SoldierCard Cards = 4; - * - * 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 getMutableCards() { - bitField0_ |= 0x00000010; - return cards; - } - - /** - * repeated .SoldierCard Cards = 4; - * @param value the cards to add - * @return this - */ - public SoldierBag addCards(final SoldierCard value) { - bitField0_ |= 0x00000010; - cards.add(value); - return this; - } - - /** - * repeated .SoldierCard Cards = 4; - * @param values the cards to add - * @return this - */ - public SoldierBag addAllCards(final SoldierCard... values) { - bitField0_ |= 0x00000010; - cards.addAll(values); - return this; - } - - /** - * repeated .SoldierPartner Partners = 5; - * @return whether the partners field is set - */ - public boolean hasPartners() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .SoldierPartner Partners = 5; - * @return this - */ - public SoldierBag clearPartners() { - bitField0_ &= ~0x00000020; - partners.clear(); - return this; - } - - /** - * repeated .SoldierPartner Partners = 5; - * - * 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 #getMutablePartners()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getPartners() { - return partners; - } - - /** - * repeated .SoldierPartner Partners = 5; - * - * 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 getMutablePartners() { - bitField0_ |= 0x00000020; - return partners; - } - - /** - * repeated .SoldierPartner Partners = 5; - * @param value the partners to add - * @return this - */ - public SoldierBag addPartners(final SoldierPartner value) { - bitField0_ |= 0x00000020; - partners.add(value); - return this; - } - - /** - * repeated .SoldierPartner Partners = 5; - * @param values the partners to add - * @return this - */ - public SoldierBag addAllPartners(final SoldierPartner... values) { - bitField0_ |= 0x00000020; - partners.addAll(values); + buffs.addAll(values); return this; } @@ -3727,9 +3932,7 @@ public final class PublicSoldier { deploy.copyFrom(other.deploy); nextPackage.copyFrom(other.nextPackage); res.copyFrom(other.res); - chess.copyFrom(other.chess); - cards.copyFrom(other.cards); - partners.copyFrom(other.partners); + buffs.copyFrom(other.buffs); } return this; } @@ -3749,14 +3952,8 @@ public final class PublicSoldier { if (other.hasRes()) { getMutableRes().addAll(other.res); } - if (other.hasChess()) { - getMutableChess().addAll(other.chess); - } - if (other.hasCards()) { - getMutableCards().addAll(other.cards); - } - if (other.hasPartners()) { - getMutablePartners().addAll(other.partners); + if (other.hasBuffs()) { + getMutableBuffs().addAll(other.buffs); } return this; } @@ -3771,9 +3968,7 @@ public final class PublicSoldier { deploy.clear(); nextPackage.clear(); res.clear(); - chess.clear(); - cards.clear(); - partners.clear(); + buffs.clear(); return this; } @@ -3787,9 +3982,7 @@ public final class PublicSoldier { deploy.clearQuick(); nextPackage.clear(); res.clearQuick(); - chess.clearQuick(); - cards.clearQuick(); - partners.clearQuick(); + buffs.clearQuick(); return this; } @@ -3806,9 +3999,7 @@ public final class PublicSoldier { && (!hasDeploy() || deploy.equals(other.deploy)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasRes() || res.equals(other.res)) - && (!hasChess() || chess.equals(other.chess)) - && (!hasCards() || cards.equals(other.cards)) - && (!hasPartners() || partners.equals(other.partners)); + && (!hasBuffs() || buffs.equals(other.buffs)); } @Override @@ -3828,21 +4019,9 @@ public final class PublicSoldier { } } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < chess.length(); i++) { + for (int i = 0; i < buffs.length(); i++) { output.writeRawByte((byte) 26); - output.writeMessageNoTag(chess.get(i)); - } - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < cards.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(cards.get(i)); - } - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < partners.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(partners.get(i)); + output.writeMessageNoTag(buffs.get(i)); } } } @@ -3860,13 +4039,7 @@ public final class PublicSoldier { size += (1 * res.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(res); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * cards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cards); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * partners.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(partners); + size += (1 * buffs.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffs); } return size; } @@ -3905,25 +4078,9 @@ public final class PublicSoldier { } } case 26: { - // chess - tag = input.readRepeatedMessage(chess, tag); + // buffs + tag = input.readRepeatedMessage(buffs, tag); bitField0_ |= 0x00000008; - if (tag != 34) { - break; - } - } - case 34: { - // cards - tag = input.readRepeatedMessage(cards, tag); - bitField0_ |= 0x00000010; - if (tag != 42) { - break; - } - } - case 42: { - // partners - tag = input.readRepeatedMessage(partners, tag); - bitField0_ |= 0x00000020; if (tag != 0) { break; } @@ -3955,13 +4112,7 @@ public final class PublicSoldier { output.writeRepeatedMessage(FieldNames.res, res); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.chess, chess); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.cards, cards); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.partners, partners); + output.writeRepeatedMessage(FieldNames.buffs, buffs); } output.endObject(); } @@ -4006,10 +4157,10 @@ public final class PublicSoldier { } break; } - case 65074912: { - if (input.isAtField(FieldNames.chess)) { + case 64539232: { + if (input.isAtField(FieldNames.buffs)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(chess); + input.readRepeatedMessage(buffs); bitField0_ |= 0x00000008; } } else { @@ -4017,28 +4168,6 @@ public final class PublicSoldier { } break; } - case 64878403: { - if (input.isAtField(FieldNames.cards)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(cards); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1253646539: { - if (input.isAtField(FieldNames.partners)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(partners); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -4097,11 +4226,487 @@ public final class PublicSoldier { static final FieldName res = FieldName.forField("Res"); + static final FieldName buffs = FieldName.forField("Buffs"); + } + } + + /** + * Protobuf type {@code SoldierDeploy} + */ + public static final class SoldierDeploy extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Version = 1; + */ + private int version; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess Chess = 2; + */ + private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private SoldierDeploy() { + } + + /** + * @return a new empty instance of {@code SoldierDeploy} + */ + public static SoldierDeploy newInstance() { + return new SoldierDeploy(); + } + + /** + * optional uint32 Version = 1; + * @return whether the version field is set + */ + public boolean hasVersion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Version = 1; + * @return this + */ + public SoldierDeploy clearVersion() { + bitField0_ &= ~0x00000001; + version = 0; + return this; + } + + /** + * optional uint32 Version = 1; + * @return the version + */ + public int getVersion() { + return version; + } + + /** + * optional uint32 Version = 1; + * @param value the version to set + * @return this + */ + public SoldierDeploy setVersion(final int value) { + bitField0_ |= 0x00000001; + version = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierDeploy clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierDeploy addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierDeploy addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierDeploy setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SoldierChess Chess = 2; + * @return this + */ + public SoldierDeploy clearChess() { + bitField0_ &= ~0x00000004; + chess.clear(); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * + * 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChess() { + return chess; + } + + /** + * repeated .SoldierChess Chess = 2; + * + * 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 getMutableChess() { + bitField0_ |= 0x00000004; + return chess; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param value the chess to add + * @return this + */ + public SoldierDeploy addChess(final SoldierChess value) { + bitField0_ |= 0x00000004; + chess.add(value); + return this; + } + + /** + * repeated .SoldierChess Chess = 2; + * @param values the chess to add + * @return this + */ + public SoldierDeploy addAllChess(final SoldierChess... values) { + bitField0_ |= 0x00000004; + chess.addAll(values); + return this; + } + + @Override + public SoldierDeploy copyFrom(final SoldierDeploy other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + version = other.version; + nextPackage.copyFrom(other.nextPackage); + chess.copyFrom(other.chess); + } + return this; + } + + @Override + public SoldierDeploy mergeFrom(final SoldierDeploy other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasVersion()) { + setVersion(other.version); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChess()) { + getMutableChess().addAll(other.chess); + } + return this; + } + + @Override + public SoldierDeploy clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + version = 0; + nextPackage.clear(); + chess.clear(); + return this; + } + + @Override + public SoldierDeploy clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chess.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierDeploy)) { + return false; + } + SoldierDeploy other = (SoldierDeploy) o; + return bitField0_ == other.bitField0_ + && (!hasVersion() || version == other.version) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChess() || chess.equals(other.chess)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(version); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < chess.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chess.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(version); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierDeploy mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // version + version = input.readUInt32(); + 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: { + // chess + tag = input.readRepeatedMessage(chess, 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.writeUInt32(FieldNames.version, version); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.chess, chess); + } + output.endObject(); + } + + @Override + public SoldierDeploy mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2016261304: { + if (input.isAtField(FieldNames.version)) { + if (!input.trySkipNullValue()) { + version = input.readUInt32(); + 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 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chess); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierDeploy clone() { + return new SoldierDeploy().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierDeploy parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierDeploy(), data).checkInitialized(); + } + + public static SoldierDeploy parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierDeploy(), input).checkInitialized(); + } + + public static SoldierDeploy parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierDeploy(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierDeploy messages + */ + public static MessageFactory getFactory() { + return SoldierDeployFactory.INSTANCE; + } + + private enum SoldierDeployFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierDeploy create() { + return SoldierDeploy.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName version = FieldName.forField("Version"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + static final FieldName chess = FieldName.forField("Chess"); - - static final FieldName cards = FieldName.forField("Cards"); - - static final FieldName partners = FieldName.forField("Partners"); } } @@ -4552,632 +5157,6 @@ public final class PublicSoldier { } } - /** - * Protobuf type {@code SoldierDeploy} - */ - public static final class SoldierDeploy extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional bytes NextPackage = 2047; - */ - private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - - /** - * repeated .SoldierChess Master = 1; - */ - private final RepeatedMessage master = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); - - /** - * repeated .SoldierChess Assist = 2; - */ - private final RepeatedMessage assist = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); - - /** - * repeated .SoldierChess Waiting = 3; - */ - private final RepeatedMessage waiting = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); - - private SoldierDeploy() { - } - - /** - * @return a new empty instance of {@code SoldierDeploy} - */ - public static SoldierDeploy newInstance() { - return new SoldierDeploy(); - } - - /** - * optional bytes NextPackage = 2047; - * @return whether the nextPackage field is set - */ - public boolean hasNextPackage() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional bytes NextPackage = 2047; - * @return this - */ - public SoldierDeploy clearNextPackage() { - bitField0_ &= ~0x00000001; - nextPackage.clear(); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * @param value the nextPackage to add - * @return this - */ - public SoldierDeploy addNextPackage(final byte value) { - bitField0_ |= 0x00000001; - nextPackage.add(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to add - * @return this - */ - public SoldierDeploy addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000001; - nextPackage.addAll(values); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to set - * @return this - */ - public SoldierDeploy setNextPackage(final byte... values) { - bitField0_ |= 0x00000001; - nextPackage.copyFrom(values); - return this; - } - - /** - * repeated .SoldierChess Master = 1; - * @return whether the master field is set - */ - public boolean hasMaster() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .SoldierChess Master = 1; - * @return this - */ - public SoldierDeploy clearMaster() { - bitField0_ &= ~0x00000002; - master.clear(); - return this; - } - - /** - * repeated .SoldierChess Master = 1; - * - * 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 #getMutableMaster()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMaster() { - return master; - } - - /** - * repeated .SoldierChess Master = 1; - * - * 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 getMutableMaster() { - bitField0_ |= 0x00000002; - return master; - } - - /** - * repeated .SoldierChess Master = 1; - * @param value the master to add - * @return this - */ - public SoldierDeploy addMaster(final SoldierChess value) { - bitField0_ |= 0x00000002; - master.add(value); - return this; - } - - /** - * repeated .SoldierChess Master = 1; - * @param values the master to add - * @return this - */ - public SoldierDeploy addAllMaster(final SoldierChess... values) { - bitField0_ |= 0x00000002; - master.addAll(values); - return this; - } - - /** - * repeated .SoldierChess Assist = 2; - * @return whether the assist field is set - */ - public boolean hasAssist() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .SoldierChess Assist = 2; - * @return this - */ - public SoldierDeploy clearAssist() { - bitField0_ &= ~0x00000004; - assist.clear(); - return this; - } - - /** - * repeated .SoldierChess Assist = 2; - * - * 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 #getMutableAssist()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getAssist() { - return assist; - } - - /** - * repeated .SoldierChess Assist = 2; - * - * 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 getMutableAssist() { - bitField0_ |= 0x00000004; - return assist; - } - - /** - * repeated .SoldierChess Assist = 2; - * @param value the assist to add - * @return this - */ - public SoldierDeploy addAssist(final SoldierChess value) { - bitField0_ |= 0x00000004; - assist.add(value); - return this; - } - - /** - * repeated .SoldierChess Assist = 2; - * @param values the assist to add - * @return this - */ - public SoldierDeploy addAllAssist(final SoldierChess... values) { - bitField0_ |= 0x00000004; - assist.addAll(values); - return this; - } - - /** - * repeated .SoldierChess Waiting = 3; - * @return whether the waiting field is set - */ - public boolean hasWaiting() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .SoldierChess Waiting = 3; - * @return this - */ - public SoldierDeploy clearWaiting() { - bitField0_ &= ~0x00000008; - waiting.clear(); - return this; - } - - /** - * repeated .SoldierChess Waiting = 3; - * - * 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 #getMutableWaiting()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getWaiting() { - return waiting; - } - - /** - * repeated .SoldierChess Waiting = 3; - * - * 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 getMutableWaiting() { - bitField0_ |= 0x00000008; - return waiting; - } - - /** - * repeated .SoldierChess Waiting = 3; - * @param value the waiting to add - * @return this - */ - public SoldierDeploy addWaiting(final SoldierChess value) { - bitField0_ |= 0x00000008; - waiting.add(value); - return this; - } - - /** - * repeated .SoldierChess Waiting = 3; - * @param values the waiting to add - * @return this - */ - public SoldierDeploy addAllWaiting(final SoldierChess... values) { - bitField0_ |= 0x00000008; - waiting.addAll(values); - return this; - } - - @Override - public SoldierDeploy copyFrom(final SoldierDeploy other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - nextPackage.copyFrom(other.nextPackage); - master.copyFrom(other.master); - assist.copyFrom(other.assist); - waiting.copyFrom(other.waiting); - } - return this; - } - - @Override - public SoldierDeploy mergeFrom(final SoldierDeploy other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasNextPackage()) { - getMutableNextPackage().copyFrom(other.nextPackage); - } - if (other.hasMaster()) { - getMutableMaster().addAll(other.master); - } - if (other.hasAssist()) { - getMutableAssist().addAll(other.assist); - } - if (other.hasWaiting()) { - getMutableWaiting().addAll(other.waiting); - } - return this; - } - - @Override - public SoldierDeploy clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nextPackage.clear(); - master.clear(); - assist.clear(); - waiting.clear(); - return this; - } - - @Override - public SoldierDeploy clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nextPackage.clear(); - master.clearQuick(); - assist.clearQuick(); - waiting.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SoldierDeploy)) { - return false; - } - SoldierDeploy other = (SoldierDeploy) o; - return bitField0_ == other.bitField0_ - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasMaster() || master.equals(other.master)) - && (!hasAssist() || assist.equals(other.assist)) - && (!hasWaiting() || waiting.equals(other.waiting)); - } - - @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 < master.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(master.get(i)); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < assist.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(assist.get(i)); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < waiting.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(waiting.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * master.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(master); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * assist.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assist); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * waiting.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(waiting); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SoldierDeploy mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16378: { - // nextPackage - input.readBytes(nextPackage); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // master - tag = input.readRepeatedMessage(master, tag); - bitField0_ |= 0x00000002; - if (tag != 18) { - break; - } - } - case 18: { - // assist - tag = input.readRepeatedMessage(assist, tag); - bitField0_ |= 0x00000004; - if (tag != 26) { - break; - } - } - case 26: { - // waiting - tag = input.readRepeatedMessage(waiting, 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.writeBytes(FieldNames.nextPackage, nextPackage); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.master, master); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.assist, assist); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.waiting, waiting); - } - output.endObject(); - } - - @Override - public SoldierDeploy 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 -1997400446: { - if (input.isAtField(FieldNames.master)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(master); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1970630281: { - if (input.isAtField(FieldNames.assist)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(assist); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1514000851: { - if (input.isAtField(FieldNames.waiting)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(waiting); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SoldierDeploy clone() { - return new SoldierDeploy().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SoldierDeploy parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierDeploy(), data).checkInitialized(); - } - - public static SoldierDeploy parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierDeploy(), input).checkInitialized(); - } - - public static SoldierDeploy parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierDeploy(), input).checkInitialized(); - } - - /** - * @return factory for creating SoldierDeploy messages - */ - public static MessageFactory getFactory() { - return SoldierDeployFactory.INSTANCE; - } - - private enum SoldierDeployFactory implements MessageFactory { - INSTANCE; - - @Override - public SoldierDeploy create() { - return SoldierDeploy.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName nextPackage = FieldName.forField("NextPackage"); - - static final FieldName master = FieldName.forField("Master"); - - static final FieldName assist = FieldName.forField("Assist"); - - static final FieldName waiting = FieldName.forField("Waiting"); - } - } - /** * Protobuf type {@code SoldierCase} */ @@ -5220,9 +5199,29 @@ public final class PublicSoldier { private final EventSettlementOfDisputeBattleCaseData eventSettlementOfDisputeBattle = EventSettlementOfDisputeBattleCaseData.newInstance(); /** - * optional .DeploySyncCaseData DeploySyncCase = 14; + * optional .SelectBossAbilityCaseData SelectBossAbilityCase = 8; */ - private final DeploySyncCaseData deploySyncCase = DeploySyncCaseData.newInstance(); + private final SelectBossAbilityCaseData selectBossAbilityCase = SelectBossAbilityCaseData.newInstance(); + + /** + * optional .CheckStageCaseData CheckStageCase = 9; + */ + private final CheckStageCaseData checkStageCase = CheckStageCaseData.newInstance(); + + /** + * optional .SoldierStoryEventOfPersonalityCaseData StoryEventOfPersonalityCase = 10; + */ + private final SoldierStoryEventOfPersonalityCaseData storyEventOfPersonalityCase = SoldierStoryEventOfPersonalityCaseData.newInstance(); + + /** + * optional .SoldierStoryEventOfCostlyCaseData StoryEventOfCostlyCase = 11; + */ + private final SoldierStoryEventOfCostlyCaseData storyEventOfCostlyCase = SoldierStoryEventOfCostlyCaseData.newInstance(); + + /** + * optional .DeploySyncCaseData DeployOptCase = 14; + */ + private final DeploySyncCaseData deployOptCase = DeploySyncCaseData.newInstance(); /** * optional .ClientEventCaseData ClientEventCase = 15; @@ -5625,39 +5624,39 @@ public final class PublicSoldier { } /** - * optional .DeploySyncCaseData DeploySyncCase = 14; - * @return whether the deploySyncCase field is set + * optional .SelectBossAbilityCaseData SelectBossAbilityCase = 8; + * @return whether the selectBossAbilityCase field is set */ - public boolean hasDeploySyncCase() { + public boolean hasSelectBossAbilityCase() { return (bitField0_ & 0x00000080) != 0; } /** - * optional .DeploySyncCaseData DeploySyncCase = 14; + * optional .SelectBossAbilityCaseData SelectBossAbilityCase = 8; * @return this */ - public SoldierCase clearDeploySyncCase() { + public SoldierCase clearSelectBossAbilityCase() { bitField0_ &= ~0x00000080; - deploySyncCase.clear(); + selectBossAbilityCase.clear(); return this; } /** - * optional .DeploySyncCaseData DeploySyncCase = 14; + * optional .SelectBossAbilityCaseData SelectBossAbilityCase = 8; * * 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 #getMutableDeploySyncCase()} if you want to modify it. + * Use {@link #getMutableSelectBossAbilityCase()} if you want to modify it. * * @return internal storage object for reading */ - public DeploySyncCaseData getDeploySyncCase() { - return deploySyncCase; + public SelectBossAbilityCaseData getSelectBossAbilityCase() { + return selectBossAbilityCase; } /** - * optional .DeploySyncCaseData DeploySyncCase = 14; + * optional .SelectBossAbilityCaseData SelectBossAbilityCase = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -5665,19 +5664,248 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public DeploySyncCaseData getMutableDeploySyncCase() { + public SelectBossAbilityCaseData getMutableSelectBossAbilityCase() { bitField0_ |= 0x00000080; - return deploySyncCase; + return selectBossAbilityCase; } /** - * optional .DeploySyncCaseData DeploySyncCase = 14; - * @param value the deploySyncCase to set + * optional .SelectBossAbilityCaseData SelectBossAbilityCase = 8; + * @param value the selectBossAbilityCase to set * @return this */ - public SoldierCase setDeploySyncCase(final DeploySyncCaseData value) { + public SoldierCase setSelectBossAbilityCase(final SelectBossAbilityCaseData value) { bitField0_ |= 0x00000080; - deploySyncCase.copyFrom(value); + selectBossAbilityCase.copyFrom(value); + return this; + } + + /** + * optional .CheckStageCaseData CheckStageCase = 9; + * @return whether the checkStageCase field is set + */ + public boolean hasCheckStageCase() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .CheckStageCaseData CheckStageCase = 9; + * @return this + */ + public SoldierCase clearCheckStageCase() { + bitField0_ &= ~0x00000100; + checkStageCase.clear(); + return this; + } + + /** + * optional .CheckStageCaseData CheckStageCase = 9; + * + * 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 #getMutableCheckStageCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CheckStageCaseData getCheckStageCase() { + return checkStageCase; + } + + /** + * optional .CheckStageCaseData CheckStageCase = 9; + * + * 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 CheckStageCaseData getMutableCheckStageCase() { + bitField0_ |= 0x00000100; + return checkStageCase; + } + + /** + * optional .CheckStageCaseData CheckStageCase = 9; + * @param value the checkStageCase to set + * @return this + */ + public SoldierCase setCheckStageCase(final CheckStageCaseData value) { + bitField0_ |= 0x00000100; + checkStageCase.copyFrom(value); + return this; + } + + /** + * optional .SoldierStoryEventOfPersonalityCaseData StoryEventOfPersonalityCase = 10; + * @return whether the storyEventOfPersonalityCase field is set + */ + public boolean hasStoryEventOfPersonalityCase() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .SoldierStoryEventOfPersonalityCaseData StoryEventOfPersonalityCase = 10; + * @return this + */ + public SoldierCase clearStoryEventOfPersonalityCase() { + bitField0_ &= ~0x00000200; + storyEventOfPersonalityCase.clear(); + return this; + } + + /** + * optional .SoldierStoryEventOfPersonalityCaseData StoryEventOfPersonalityCase = 10; + * + * 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 #getMutableStoryEventOfPersonalityCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierStoryEventOfPersonalityCaseData getStoryEventOfPersonalityCase() { + return storyEventOfPersonalityCase; + } + + /** + * optional .SoldierStoryEventOfPersonalityCaseData StoryEventOfPersonalityCase = 10; + * + * 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 SoldierStoryEventOfPersonalityCaseData getMutableStoryEventOfPersonalityCase() { + bitField0_ |= 0x00000200; + return storyEventOfPersonalityCase; + } + + /** + * optional .SoldierStoryEventOfPersonalityCaseData StoryEventOfPersonalityCase = 10; + * @param value the storyEventOfPersonalityCase to set + * @return this + */ + public SoldierCase setStoryEventOfPersonalityCase( + final SoldierStoryEventOfPersonalityCaseData value) { + bitField0_ |= 0x00000200; + storyEventOfPersonalityCase.copyFrom(value); + return this; + } + + /** + * optional .SoldierStoryEventOfCostlyCaseData StoryEventOfCostlyCase = 11; + * @return whether the storyEventOfCostlyCase field is set + */ + public boolean hasStoryEventOfCostlyCase() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .SoldierStoryEventOfCostlyCaseData StoryEventOfCostlyCase = 11; + * @return this + */ + public SoldierCase clearStoryEventOfCostlyCase() { + bitField0_ &= ~0x00000400; + storyEventOfCostlyCase.clear(); + return this; + } + + /** + * optional .SoldierStoryEventOfCostlyCaseData StoryEventOfCostlyCase = 11; + * + * 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 #getMutableStoryEventOfCostlyCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierStoryEventOfCostlyCaseData getStoryEventOfCostlyCase() { + return storyEventOfCostlyCase; + } + + /** + * optional .SoldierStoryEventOfCostlyCaseData StoryEventOfCostlyCase = 11; + * + * 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 SoldierStoryEventOfCostlyCaseData getMutableStoryEventOfCostlyCase() { + bitField0_ |= 0x00000400; + return storyEventOfCostlyCase; + } + + /** + * optional .SoldierStoryEventOfCostlyCaseData StoryEventOfCostlyCase = 11; + * @param value the storyEventOfCostlyCase to set + * @return this + */ + public SoldierCase setStoryEventOfCostlyCase(final SoldierStoryEventOfCostlyCaseData value) { + bitField0_ |= 0x00000400; + storyEventOfCostlyCase.copyFrom(value); + return this; + } + + /** + * optional .DeploySyncCaseData DeployOptCase = 14; + * @return whether the deployOptCase field is set + */ + public boolean hasDeployOptCase() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .DeploySyncCaseData DeployOptCase = 14; + * @return this + */ + public SoldierCase clearDeployOptCase() { + bitField0_ &= ~0x00000800; + deployOptCase.clear(); + return this; + } + + /** + * optional .DeploySyncCaseData DeployOptCase = 14; + * + * 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 #getMutableDeployOptCase()} if you want to modify it. + * + * @return internal storage object for reading + */ + public DeploySyncCaseData getDeployOptCase() { + return deployOptCase; + } + + /** + * optional .DeploySyncCaseData DeployOptCase = 14; + * + * 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 DeploySyncCaseData getMutableDeployOptCase() { + bitField0_ |= 0x00000800; + return deployOptCase; + } + + /** + * optional .DeploySyncCaseData DeployOptCase = 14; + * @param value the deployOptCase to set + * @return this + */ + public SoldierCase setDeployOptCase(final DeploySyncCaseData value) { + bitField0_ |= 0x00000800; + deployOptCase.copyFrom(value); return this; } @@ -5686,7 +5914,7 @@ public final class PublicSoldier { * @return whether the clientEventCase field is set */ public boolean hasClientEventCase() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -5694,7 +5922,7 @@ public final class PublicSoldier { * @return this */ public SoldierCase clearClientEventCase() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00001000; clientEventCase.clear(); return this; } @@ -5723,7 +5951,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public ClientEventCaseData getMutableClientEventCase() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00001000; return clientEventCase; } @@ -5733,7 +5961,7 @@ public final class PublicSoldier { * @return this */ public SoldierCase setClientEventCase(final ClientEventCaseData value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00001000; clientEventCase.copyFrom(value); return this; } @@ -5743,7 +5971,7 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -5751,7 +5979,7 @@ public final class PublicSoldier { * @return this */ public SoldierCase clearNextPackage() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00002000; nextPackage.clear(); return this; } @@ -5780,7 +6008,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; return nextPackage; } @@ -5790,7 +6018,7 @@ public final class PublicSoldier { * @return this */ public SoldierCase addNextPackage(final byte value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; nextPackage.add(value); return this; } @@ -5801,7 +6029,7 @@ public final class PublicSoldier { * @return this */ public SoldierCase addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; nextPackage.addAll(values); return this; } @@ -5812,7 +6040,7 @@ public final class PublicSoldier { * @return this */ public SoldierCase setNextPackage(final byte... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; nextPackage.copyFrom(values); return this; } @@ -5829,7 +6057,11 @@ public final class PublicSoldier { battleCase.copyFrom(other.battleCase); eventSettlementOfDispute.copyFrom(other.eventSettlementOfDispute); eventSettlementOfDisputeBattle.copyFrom(other.eventSettlementOfDisputeBattle); - deploySyncCase.copyFrom(other.deploySyncCase); + selectBossAbilityCase.copyFrom(other.selectBossAbilityCase); + checkStageCase.copyFrom(other.checkStageCase); + storyEventOfPersonalityCase.copyFrom(other.storyEventOfPersonalityCase); + storyEventOfCostlyCase.copyFrom(other.storyEventOfCostlyCase); + deployOptCase.copyFrom(other.deployOptCase); clientEventCase.copyFrom(other.clientEventCase); nextPackage.copyFrom(other.nextPackage); } @@ -5863,8 +6095,20 @@ public final class PublicSoldier { if (other.hasEventSettlementOfDisputeBattle()) { getMutableEventSettlementOfDisputeBattle().mergeFrom(other.eventSettlementOfDisputeBattle); } - if (other.hasDeploySyncCase()) { - getMutableDeploySyncCase().mergeFrom(other.deploySyncCase); + if (other.hasSelectBossAbilityCase()) { + getMutableSelectBossAbilityCase().mergeFrom(other.selectBossAbilityCase); + } + if (other.hasCheckStageCase()) { + getMutableCheckStageCase().mergeFrom(other.checkStageCase); + } + if (other.hasStoryEventOfPersonalityCase()) { + getMutableStoryEventOfPersonalityCase().mergeFrom(other.storyEventOfPersonalityCase); + } + if (other.hasStoryEventOfCostlyCase()) { + getMutableStoryEventOfCostlyCase().mergeFrom(other.storyEventOfCostlyCase); + } + if (other.hasDeployOptCase()) { + getMutableDeployOptCase().mergeFrom(other.deployOptCase); } if (other.hasClientEventCase()) { getMutableClientEventCase().mergeFrom(other.clientEventCase); @@ -5889,7 +6133,11 @@ public final class PublicSoldier { battleCase.clear(); eventSettlementOfDispute.clear(); eventSettlementOfDisputeBattle.clear(); - deploySyncCase.clear(); + selectBossAbilityCase.clear(); + checkStageCase.clear(); + storyEventOfPersonalityCase.clear(); + storyEventOfCostlyCase.clear(); + deployOptCase.clear(); clientEventCase.clear(); nextPackage.clear(); return this; @@ -5908,7 +6156,11 @@ public final class PublicSoldier { battleCase.clearQuick(); eventSettlementOfDispute.clearQuick(); eventSettlementOfDisputeBattle.clearQuick(); - deploySyncCase.clearQuick(); + selectBossAbilityCase.clearQuick(); + checkStageCase.clearQuick(); + storyEventOfPersonalityCase.clearQuick(); + storyEventOfCostlyCase.clearQuick(); + deployOptCase.clearQuick(); clientEventCase.clearQuick(); nextPackage.clear(); return this; @@ -5931,7 +6183,11 @@ public final class PublicSoldier { && (!hasBattleCase() || battleCase.equals(other.battleCase)) && (!hasEventSettlementOfDispute() || eventSettlementOfDispute.equals(other.eventSettlementOfDispute)) && (!hasEventSettlementOfDisputeBattle() || eventSettlementOfDisputeBattle.equals(other.eventSettlementOfDisputeBattle)) - && (!hasDeploySyncCase() || deploySyncCase.equals(other.deploySyncCase)) + && (!hasSelectBossAbilityCase() || selectBossAbilityCase.equals(other.selectBossAbilityCase)) + && (!hasCheckStageCase() || checkStageCase.equals(other.checkStageCase)) + && (!hasStoryEventOfPersonalityCase() || storyEventOfPersonalityCase.equals(other.storyEventOfPersonalityCase)) + && (!hasStoryEventOfCostlyCase() || storyEventOfCostlyCase.equals(other.storyEventOfCostlyCase)) + && (!hasDeployOptCase() || deployOptCase.equals(other.deployOptCase)) && (!hasClientEventCase() || clientEventCase.equals(other.clientEventCase)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -5967,14 +6223,30 @@ public final class PublicSoldier { output.writeMessageNoTag(eventSettlementOfDisputeBattle); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(deploySyncCase); + output.writeRawByte((byte) 66); + output.writeMessageNoTag(selectBossAbilityCase); } if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(checkStageCase); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(storyEventOfPersonalityCase); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(storyEventOfCostlyCase); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(deployOptCase); + } + if ((bitField0_ & 0x00001000) != 0) { output.writeRawByte((byte) 122); output.writeMessageNoTag(clientEventCase); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -6005,12 +6277,24 @@ public final class PublicSoldier { size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeBattle); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(deploySyncCase); + size += 1 + ProtoSink.computeMessageSizeNoTag(selectBossAbilityCase); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(clientEventCase); + size += 1 + ProtoSink.computeMessageSizeNoTag(checkStageCase); } if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(storyEventOfPersonalityCase); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(storyEventOfCostlyCase); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deployOptCase); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientEventCase); + } + if ((bitField0_ & 0x00002000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -6082,14 +6366,50 @@ public final class PublicSoldier { input.readMessage(eventSettlementOfDisputeBattle); bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // selectBossAbilityCase + input.readMessage(selectBossAbilityCase); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // checkStageCase + input.readMessage(checkStageCase); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // storyEventOfPersonalityCase + input.readMessage(storyEventOfPersonalityCase); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // storyEventOfCostlyCase + input.readMessage(storyEventOfCostlyCase); + bitField0_ |= 0x00000400; + tag = input.readTag(); if (tag != 114) { break; } } case 114: { - // deploySyncCase - input.readMessage(deploySyncCase); - bitField0_ |= 0x00000080; + // deployOptCase + input.readMessage(deployOptCase); + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 122) { break; @@ -6098,7 +6418,7 @@ public final class PublicSoldier { case 122: { // clientEventCase input.readMessage(clientEventCase); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 16378) { break; @@ -6107,7 +6427,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 0) { break; @@ -6152,12 +6472,24 @@ public final class PublicSoldier { output.writeMessage(FieldNames.eventSettlementOfDisputeBattle, eventSettlementOfDisputeBattle); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.deploySyncCase, deploySyncCase); + output.writeMessage(FieldNames.selectBossAbilityCase, selectBossAbilityCase); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.clientEventCase, clientEventCase); + output.writeMessage(FieldNames.checkStageCase, checkStageCase); } if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.storyEventOfPersonalityCase, storyEventOfPersonalityCase); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.storyEventOfCostlyCase, storyEventOfCostlyCase); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeMessage(FieldNames.deployOptCase, deployOptCase); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeMessage(FieldNames.clientEventCase, clientEventCase); + } + if ((bitField0_ & 0x00002000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -6247,10 +6579,10 @@ public final class PublicSoldier { } break; } - case -1222963566: { - if (input.isAtField(FieldNames.deploySyncCase)) { + case 1501016337: { + if (input.isAtField(FieldNames.selectBossAbilityCase)) { if (!input.trySkipNullValue()) { - input.readMessage(deploySyncCase); + input.readMessage(selectBossAbilityCase); bitField0_ |= 0x00000080; } } else { @@ -6258,11 +6590,55 @@ public final class PublicSoldier { } break; } + case -1620626618: { + if (input.isAtField(FieldNames.checkStageCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(checkStageCase); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1826783326: { + if (input.isAtField(FieldNames.storyEventOfPersonalityCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(storyEventOfPersonalityCase); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -649059066: { + if (input.isAtField(FieldNames.storyEventOfCostlyCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(storyEventOfCostlyCase); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 313909628: { + if (input.isAtField(FieldNames.deployOptCase)) { + if (!input.trySkipNullValue()) { + input.readMessage(deployOptCase); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } case -811107009: { if (input.isAtField(FieldNames.clientEventCase)) { if (!input.trySkipNullValue()) { input.readMessage(clientEventCase); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -6273,7 +6649,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -6346,7 +6722,15 @@ public final class PublicSoldier { static final FieldName eventSettlementOfDisputeBattle = FieldName.forField("EventSettlementOfDisputeBattle"); - static final FieldName deploySyncCase = FieldName.forField("DeploySyncCase"); + static final FieldName selectBossAbilityCase = FieldName.forField("SelectBossAbilityCase"); + + static final FieldName checkStageCase = FieldName.forField("CheckStageCase"); + + static final FieldName storyEventOfPersonalityCase = FieldName.forField("StoryEventOfPersonalityCase"); + + static final FieldName storyEventOfCostlyCase = FieldName.forField("StoryEventOfCostlyCase"); + + static final FieldName deployOptCase = FieldName.forField("DeployOptCase"); static final FieldName clientEventCase = FieldName.forField("ClientEventCase"); @@ -6361,20 +6745,25 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional int32 Qty = 2; + * optional uint32 UID = 1; */ - private int qty; + private int uID; /** - * optional uint32 Id = 1; + * optional uint32 Tid = 2; */ - private int id; + private int tid; /** * optional uint32 Star = 3; */ private int star; + /** + * optional uint32 Slot = 4; + */ + private int slot; + /** * optional bytes NextPackage = 2047; */ @@ -6391,76 +6780,76 @@ public final class PublicSoldier { } /** - * optional int32 Qty = 2; - * @return whether the qty field is set + * optional uint32 UID = 1; + * @return whether the uID field is set */ - public boolean hasQty() { + public boolean hasUID() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int32 Qty = 2; + * optional uint32 UID = 1; * @return this */ - public SoldierChess clearQty() { + public SoldierChess clearUID() { bitField0_ &= ~0x00000001; - qty = 0; + uID = 0; return this; } /** - * optional int32 Qty = 2; - * @return the qty + * optional uint32 UID = 1; + * @return the uID */ - public int getQty() { - return qty; + public int getUID() { + return uID; } /** - * optional int32 Qty = 2; - * @param value the qty to set + * optional uint32 UID = 1; + * @param value the uID to set * @return this */ - public SoldierChess setQty(final int value) { + public SoldierChess setUID(final int value) { bitField0_ |= 0x00000001; - qty = value; + uID = value; return this; } /** - * optional uint32 Id = 1; - * @return whether the id field is set + * optional uint32 Tid = 2; + * @return whether the tid field is set */ - public boolean hasId() { + public boolean hasTid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 Id = 1; + * optional uint32 Tid = 2; * @return this */ - public SoldierChess clearId() { + public SoldierChess clearTid() { bitField0_ &= ~0x00000002; - id = 0; + tid = 0; return this; } /** - * optional uint32 Id = 1; - * @return the id + * optional uint32 Tid = 2; + * @return the tid */ - public int getId() { - return id; + public int getTid() { + return tid; } /** - * optional uint32 Id = 1; - * @param value the id to set + * optional uint32 Tid = 2; + * @param value the tid to set * @return this */ - public SoldierChess setId(final int value) { + public SoldierChess setTid(final int value) { bitField0_ |= 0x00000002; - id = value; + tid = value; return this; } @@ -6501,12 +6890,49 @@ public final class PublicSoldier { return this; } + /** + * optional uint32 Slot = 4; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 Slot = 4; + * @return this + */ + public SoldierChess clearSlot() { + bitField0_ &= ~0x00000008; + slot = 0; + return this; + } + + /** + * optional uint32 Slot = 4; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 Slot = 4; + * @param value the slot to set + * @return this + */ + public SoldierChess setSlot(final int value) { + bitField0_ |= 0x00000008; + slot = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -6514,7 +6940,7 @@ public final class PublicSoldier { * @return this */ public SoldierChess clearNextPackage() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; nextPackage.clear(); return this; } @@ -6543,7 +6969,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return nextPackage; } @@ -6553,7 +6979,7 @@ public final class PublicSoldier { * @return this */ public SoldierChess addNextPackage(final byte value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; nextPackage.add(value); return this; } @@ -6564,7 +6990,7 @@ public final class PublicSoldier { * @return this */ public SoldierChess addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; nextPackage.addAll(values); return this; } @@ -6575,7 +7001,7 @@ public final class PublicSoldier { * @return this */ public SoldierChess setNextPackage(final byte... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; nextPackage.copyFrom(values); return this; } @@ -6585,9 +7011,10 @@ public final class PublicSoldier { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - qty = other.qty; - id = other.id; + uID = other.uID; + tid = other.tid; star = other.star; + slot = other.slot; nextPackage.copyFrom(other.nextPackage); } return this; @@ -6599,15 +7026,18 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasQty()) { - setQty(other.qty); + if (other.hasUID()) { + setUID(other.uID); } - if (other.hasId()) { - setId(other.id); + if (other.hasTid()) { + setTid(other.tid); } if (other.hasStar()) { setStar(other.star); } + if (other.hasSlot()) { + setSlot(other.slot); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -6621,9 +7051,10 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - qty = 0; - id = 0; + uID = 0; + tid = 0; star = 0; + slot = 0; nextPackage.clear(); return this; } @@ -6649,27 +7080,32 @@ public final class PublicSoldier { } SoldierChess other = (SoldierChess) o; return bitField0_ == other.bitField0_ - && (!hasQty() || qty == other.qty) - && (!hasId() || id == other.id) + && (!hasUID() || uID == other.uID) + && (!hasTid() || tid == other.tid) && (!hasStar() || star == other.star) + && (!hasSlot() || slot == other.slot) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeInt32NoTag(qty); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(uID); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(id); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(star); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -6679,15 +7115,18 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(qty); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uID); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(star); } if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000010) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -6700,18 +7139,18 @@ public final class PublicSoldier { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // qty - qty = input.readInt32(); + case 8: { + // uID + uID = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 16) { break; } } - case 8: { - // id - id = input.readUInt32(); + case 16: { + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 24) { @@ -6723,6 +7162,15 @@ public final class PublicSoldier { star = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 16378) { break; } @@ -6730,7 +7178,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { break; @@ -6754,15 +7202,18 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt32(FieldNames.qty, qty); + output.writeUInt32(FieldNames.uID, uID); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.tid, tid); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.star, star); } if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -6775,10 +7226,10 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 81558: { - if (input.isAtField(FieldNames.qty)) { + case 84016: { + if (input.isAtField(FieldNames.uID)) { if (!input.trySkipNullValue()) { - qty = input.readInt32(); + uID = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -6786,10 +7237,10 @@ public final class PublicSoldier { } break; } - case 2363: { - if (input.isAtField(FieldNames.id)) { + case 84079: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -6808,11 +7259,22 @@ public final class PublicSoldier { } break; } + case 2579998: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -6871,16 +7333,419 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName qty = FieldName.forField("Qty"); + static final FieldName uID = FieldName.forField("UID"); - static final FieldName id = FieldName.forField("Id"); + static final FieldName tid = FieldName.forField("Tid"); static final FieldName star = FieldName.forField("Star"); + static final FieldName slot = FieldName.forField("Slot"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } + /** + * Protobuf type {@code SoldierChessList} + */ + public static final class SoldierChessList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierChess ChessList = 1; + */ + private final RepeatedMessage chessList = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + + private SoldierChessList() { + } + + /** + * @return a new empty instance of {@code SoldierChessList} + */ + public static SoldierChessList newInstance() { + return new SoldierChessList(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierChessList clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierChessList addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierChessList addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierChessList setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierChess ChessList = 1; + * @return whether the chessList field is set + */ + public boolean hasChessList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierChess ChessList = 1; + * @return this + */ + public SoldierChessList clearChessList() { + bitField0_ &= ~0x00000002; + chessList.clear(); + return this; + } + + /** + * repeated .SoldierChess ChessList = 1; + * + * 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 #getMutableChessList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChessList() { + return chessList; + } + + /** + * repeated .SoldierChess ChessList = 1; + * + * 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 getMutableChessList() { + bitField0_ |= 0x00000002; + return chessList; + } + + /** + * repeated .SoldierChess ChessList = 1; + * @param value the chessList to add + * @return this + */ + public SoldierChessList addChessList(final SoldierChess value) { + bitField0_ |= 0x00000002; + chessList.add(value); + return this; + } + + /** + * repeated .SoldierChess ChessList = 1; + * @param values the chessList to add + * @return this + */ + public SoldierChessList addAllChessList(final SoldierChess... values) { + bitField0_ |= 0x00000002; + chessList.addAll(values); + return this; + } + + @Override + public SoldierChessList copyFrom(final SoldierChessList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + chessList.copyFrom(other.chessList); + } + return this; + } + + @Override + public SoldierChessList mergeFrom(final SoldierChessList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChessList()) { + getMutableChessList().addAll(other.chessList); + } + return this; + } + + @Override + public SoldierChessList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chessList.clear(); + return this; + } + + @Override + public SoldierChessList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chessList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierChessList)) { + return false; + } + SoldierChessList other = (SoldierChessList) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChessList() || chessList.equals(other.chessList)); + } + + @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 < chessList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(chessList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * chessList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chessList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierChessList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // chessList + tag = input.readRepeatedMessage(chessList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.chessList, chessList); + } + output.endObject(); + } + + @Override + public SoldierChessList 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 -1427199074: { + if (input.isAtField(FieldNames.chessList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chessList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierChessList clone() { + return new SoldierChessList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierChessList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierChessList(), data).checkInitialized(); + } + + public static SoldierChessList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierChessList(), input).checkInitialized(); + } + + public static SoldierChessList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierChessList(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierChessList messages + */ + public static MessageFactory getFactory() { + return SoldierChessListFactory.INSTANCE; + } + + private enum SoldierChessListFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierChessList create() { + return SoldierChessList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName chessList = FieldName.forField("ChessList"); + } + } + /** * Protobuf type {@code SoldierTransform} */ @@ -6902,6 +7767,11 @@ public final class PublicSoldier { */ private final RepeatedMessage obtain = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + /** + * repeated .SoldierChess Update = 3; + */ + private final RepeatedMessage update = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); + private SoldierTransform() { } @@ -7127,6 +7997,74 @@ public final class PublicSoldier { return this; } + /** + * repeated .SoldierChess Update = 3; + * @return whether the update field is set + */ + public boolean hasUpdate() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierChess Update = 3; + * @return this + */ + public SoldierTransform clearUpdate() { + bitField0_ &= ~0x00000008; + update.clear(); + return this; + } + + /** + * repeated .SoldierChess Update = 3; + * + * 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 #getMutableUpdate()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUpdate() { + return update; + } + + /** + * repeated .SoldierChess Update = 3; + * + * 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 getMutableUpdate() { + bitField0_ |= 0x00000008; + return update; + } + + /** + * repeated .SoldierChess Update = 3; + * @param value the update to add + * @return this + */ + public SoldierTransform addUpdate(final SoldierChess value) { + bitField0_ |= 0x00000008; + update.add(value); + return this; + } + + /** + * repeated .SoldierChess Update = 3; + * @param values the update to add + * @return this + */ + public SoldierTransform addAllUpdate(final SoldierChess... values) { + bitField0_ |= 0x00000008; + update.addAll(values); + return this; + } + @Override public SoldierTransform copyFrom(final SoldierTransform other) { cachedSize = other.cachedSize; @@ -7135,6 +8073,7 @@ public final class PublicSoldier { nextPackage.copyFrom(other.nextPackage); consume.copyFrom(other.consume); obtain.copyFrom(other.obtain); + update.copyFrom(other.update); } return this; } @@ -7154,6 +8093,9 @@ public final class PublicSoldier { if (other.hasObtain()) { getMutableObtain().addAll(other.obtain); } + if (other.hasUpdate()) { + getMutableUpdate().addAll(other.update); + } return this; } @@ -7167,6 +8109,7 @@ public final class PublicSoldier { nextPackage.clear(); consume.clear(); obtain.clear(); + update.clear(); return this; } @@ -7180,6 +8123,7 @@ public final class PublicSoldier { nextPackage.clear(); consume.clearQuick(); obtain.clearQuick(); + update.clearQuick(); return this; } @@ -7195,7 +8139,8 @@ public final class PublicSoldier { return bitField0_ == other.bitField0_ && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasConsume() || consume.equals(other.consume)) - && (!hasObtain() || obtain.equals(other.obtain)); + && (!hasObtain() || obtain.equals(other.obtain)) + && (!hasUpdate() || update.equals(other.update)); } @Override @@ -7216,6 +8161,12 @@ public final class PublicSoldier { output.writeMessageNoTag(obtain.get(i)); } } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < update.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(update.get(i)); + } + } } @Override @@ -7230,6 +8181,9 @@ public final class PublicSoldier { if ((bitField0_ & 0x00000004) != 0) { size += (1 * obtain.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(obtain); } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * update.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(update); + } return size; } @@ -7261,6 +8215,14 @@ public final class PublicSoldier { // obtain tag = input.readRepeatedMessage(obtain, tag); bitField0_ |= 0x00000004; + if (tag != 26) { + break; + } + } + case 26: { + // update + tag = input.readRepeatedMessage(update, tag); + bitField0_ |= 0x00000008; if (tag != 0) { break; } @@ -7291,6 +8253,9 @@ public final class PublicSoldier { if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.obtain, obtain); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.update, update); + } output.endObject(); } @@ -7334,6 +8299,17 @@ public final class PublicSoldier { } break; } + case -1754979095: { + if (input.isAtField(FieldNames.update)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(update); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -7392,24 +8368,26 @@ public final class PublicSoldier { static final FieldName consume = FieldName.forField("Consume"); static final FieldName obtain = FieldName.forField("Obtain"); + + static final FieldName update = FieldName.forField("Update"); } } /** - * Protobuf type {@code SoldierCard} + * Protobuf type {@code SoldierChessChange} */ - public static final class SoldierCard extends ProtoMessage implements Cloneable { + public static final class SoldierChessChange extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 Id = 1; + * optional uint32 BaseVersion = 2; */ - private int id; + private int baseVersion; /** - * optional .SoldierCardType Type = 2; + * optional uint32 NextVersion = 3; */ - private int type; + private int nextVersion; /** * optional bytes NextPackage = 2047; @@ -7417,86 +8395,694 @@ public final class PublicSoldier { private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated .SoldierIdx BuffIdx = 3; + * repeated .SoldierTransform Transforms = 1; */ - private final RepeatedMessage buffIdx = RepeatedMessage.newEmptyInstance(SoldierIdx.getFactory()); + private final RepeatedMessage transforms = RepeatedMessage.newEmptyInstance(SoldierTransform.getFactory()); - private SoldierCard() { + private SoldierChessChange() { } /** - * @return a new empty instance of {@code SoldierCard} + * @return a new empty instance of {@code SoldierChessChange} */ - public static SoldierCard newInstance() { - return new SoldierCard(); + public static SoldierChessChange newInstance() { + return new SoldierChessChange(); } /** - * optional uint32 Id = 1; - * @return whether the id field is set + * optional uint32 BaseVersion = 2; + * @return whether the baseVersion field is set */ - public boolean hasId() { + public boolean hasBaseVersion() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 Id = 1; + * optional uint32 BaseVersion = 2; * @return this */ - public SoldierCard clearId() { + public SoldierChessChange clearBaseVersion() { bitField0_ &= ~0x00000001; - id = 0; + baseVersion = 0; return this; } /** - * optional uint32 Id = 1; - * @return the id + * optional uint32 BaseVersion = 2; + * @return the baseVersion */ - public int getId() { - return id; + public int getBaseVersion() { + return baseVersion; } /** - * optional uint32 Id = 1; - * @param value the id to set + * optional uint32 BaseVersion = 2; + * @param value the baseVersion to set * @return this */ - public SoldierCard setId(final int value) { + public SoldierChessChange setBaseVersion(final int value) { bitField0_ |= 0x00000001; - id = value; + baseVersion = value; return this; } /** - * optional .SoldierCardType Type = 2; - * @return whether the type field is set + * optional uint32 NextVersion = 3; + * @return whether the nextVersion field is set */ - public boolean hasType() { + public boolean hasNextVersion() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .SoldierCardType Type = 2; + * optional uint32 NextVersion = 3; * @return this */ - public SoldierCard clearType() { + public SoldierChessChange clearNextVersion() { bitField0_ &= ~0x00000002; + nextVersion = 0; + return this; + } + + /** + * optional uint32 NextVersion = 3; + * @return the nextVersion + */ + public int getNextVersion() { + return nextVersion; + } + + /** + * optional uint32 NextVersion = 3; + * @param value the nextVersion to set + * @return this + */ + public SoldierChessChange setNextVersion(final int value) { + bitField0_ |= 0x00000002; + nextVersion = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierChessChange clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierChessChange addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierChessChange addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierChessChange setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierTransform Transforms = 1; + * @return whether the transforms field is set + */ + public boolean hasTransforms() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierTransform Transforms = 1; + * @return this + */ + public SoldierChessChange clearTransforms() { + bitField0_ &= ~0x00000008; + transforms.clear(); + return this; + } + + /** + * repeated .SoldierTransform Transforms = 1; + * + * 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 #getMutableTransforms()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getTransforms() { + return transforms; + } + + /** + * repeated .SoldierTransform Transforms = 1; + * + * 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 getMutableTransforms() { + bitField0_ |= 0x00000008; + return transforms; + } + + /** + * repeated .SoldierTransform Transforms = 1; + * @param value the transforms to add + * @return this + */ + public SoldierChessChange addTransforms(final SoldierTransform value) { + bitField0_ |= 0x00000008; + transforms.add(value); + return this; + } + + /** + * repeated .SoldierTransform Transforms = 1; + * @param values the transforms to add + * @return this + */ + public SoldierChessChange addAllTransforms(final SoldierTransform... values) { + bitField0_ |= 0x00000008; + transforms.addAll(values); + return this; + } + + @Override + public SoldierChessChange copyFrom(final SoldierChessChange other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseVersion = other.baseVersion; + nextVersion = other.nextVersion; + nextPackage.copyFrom(other.nextPackage); + transforms.copyFrom(other.transforms); + } + return this; + } + + @Override + public SoldierChessChange mergeFrom(final SoldierChessChange other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseVersion()) { + setBaseVersion(other.baseVersion); + } + if (other.hasNextVersion()) { + setNextVersion(other.nextVersion); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasTransforms()) { + getMutableTransforms().addAll(other.transforms); + } + return this; + } + + @Override + public SoldierChessChange clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseVersion = 0; + nextVersion = 0; + nextPackage.clear(); + transforms.clear(); + return this; + } + + @Override + public SoldierChessChange clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + transforms.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierChessChange)) { + return false; + } + SoldierChessChange other = (SoldierChessChange) o; + return bitField0_ == other.bitField0_ + && (!hasBaseVersion() || baseVersion == other.baseVersion) + && (!hasNextVersion() || nextVersion == other.nextVersion) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasTransforms() || transforms.equals(other.transforms)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(baseVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(nextVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < transforms.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(transforms.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nextVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * transforms.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(transforms); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierChessChange mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // baseVersion + baseVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // nextVersion + nextVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // transforms + tag = input.readRepeatedMessage(transforms, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.baseVersion, baseVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.nextVersion, nextVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.transforms, transforms); + } + output.endObject(); + } + + @Override + public SoldierChessChange mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 25966759: { + if (input.isAtField(FieldNames.baseVersion)) { + if (!input.trySkipNullValue()) { + baseVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -923653563: { + if (input.isAtField(FieldNames.nextVersion)) { + if (!input.trySkipNullValue()) { + nextVersion = 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; + } + case 266395303: { + if (input.isAtField(FieldNames.transforms)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(transforms); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierChessChange clone() { + return new SoldierChessChange().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierChessChange parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierChessChange(), data).checkInitialized(); + } + + public static SoldierChessChange parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierChessChange(), input).checkInitialized(); + } + + public static SoldierChessChange parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierChessChange(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierChessChange messages + */ + public static MessageFactory getFactory() { + return SoldierChessChangeFactory.INSTANCE; + } + + private enum SoldierChessChangeFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierChessChange create() { + return SoldierChessChange.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseVersion = FieldName.forField("BaseVersion"); + + static final FieldName nextVersion = FieldName.forField("NextVersion"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName transforms = FieldName.forField("Transforms"); + } + } + + /** + * Protobuf type {@code SoldierBuff} + */ + public static final class SoldierBuff extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BindId = 1; + */ + private int bindId; + + /** + * optional uint32 EffectGroup = 2; + */ + private int effectGroup; + + /** + * optional .SoldierBuffType Type = 3; + */ + private int type; + + /** + * optional .SoldierBuffAction Action = 4; + */ + private int action; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated uint32 BuffIds = 5; + */ + private final RepeatedInt buffIds = RepeatedInt.newEmptyInstance(); + + private SoldierBuff() { + } + + /** + * @return a new empty instance of {@code SoldierBuff} + */ + public static SoldierBuff newInstance() { + return new SoldierBuff(); + } + + /** + * optional uint32 BindId = 1; + * @return whether the bindId field is set + */ + public boolean hasBindId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BindId = 1; + * @return this + */ + public SoldierBuff clearBindId() { + bitField0_ &= ~0x00000001; + bindId = 0; + return this; + } + + /** + * optional uint32 BindId = 1; + * @return the bindId + */ + public int getBindId() { + return bindId; + } + + /** + * optional uint32 BindId = 1; + * @param value the bindId to set + * @return this + */ + public SoldierBuff setBindId(final int value) { + bitField0_ |= 0x00000001; + bindId = value; + return this; + } + + /** + * optional uint32 EffectGroup = 2; + * @return whether the effectGroup field is set + */ + public boolean hasEffectGroup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 EffectGroup = 2; + * @return this + */ + public SoldierBuff clearEffectGroup() { + bitField0_ &= ~0x00000002; + effectGroup = 0; + return this; + } + + /** + * optional uint32 EffectGroup = 2; + * @return the effectGroup + */ + public int getEffectGroup() { + return effectGroup; + } + + /** + * optional uint32 EffectGroup = 2; + * @param value the effectGroup to set + * @return this + */ + public SoldierBuff setEffectGroup(final int value) { + bitField0_ |= 0x00000002; + effectGroup = value; + return this; + } + + /** + * optional .SoldierBuffType Type = 3; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierBuffType Type = 3; + * @return this + */ + public SoldierBuff clearType() { + bitField0_ &= ~0x00000004; type = 0; return this; } /** - * optional .SoldierCardType Type = 2; + * optional .SoldierBuffType Type = 3; * @return the type */ - public SoldierCardType getType() { - return SoldierCardType.forNumber(type); + public SoldierBuffType getType() { + return SoldierBuffType.forNumber(type); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SoldierCard#getType()}.getNumber(). + * equivalent to {@link SoldierBuff#getType()}.getNumber(). * * @return numeric wire representation */ @@ -7507,589 +9093,58 @@ public final class PublicSoldier { /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link SoldierCardType}. Setting an invalid value - * can cause {@link SoldierCard#getType()} to return null + * constants from {@link SoldierBuffType}. Setting an invalid value + * can cause {@link SoldierBuff#getType()} to return null * * @param value the numeric wire value to set * @return this */ - public SoldierCard setTypeValue(final int value) { - bitField0_ |= 0x00000002; + public SoldierBuff setTypeValue(final int value) { + bitField0_ |= 0x00000004; type = value; return this; } /** - * optional .SoldierCardType Type = 2; + * optional .SoldierBuffType Type = 3; * @param value the type to set * @return this */ - public SoldierCard setType(final SoldierCardType value) { - bitField0_ |= 0x00000002; + public SoldierBuff setType(final SoldierBuffType value) { + bitField0_ |= 0x00000004; type = value.getNumber(); return this; } /** - * optional bytes NextPackage = 2047; - * @return whether the nextPackage field is set + * optional .SoldierBuffAction Action = 4; + * @return whether the action field is set */ - public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bytes NextPackage = 2047; - * @return this - */ - public SoldierCard clearNextPackage() { - bitField0_ &= ~0x00000004; - nextPackage.clear(); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * @param value the nextPackage to add - * @return this - */ - public SoldierCard addNextPackage(final byte value) { - bitField0_ |= 0x00000004; - nextPackage.add(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to add - * @return this - */ - public SoldierCard addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; - nextPackage.addAll(values); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to set - * @return this - */ - public SoldierCard setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; - nextPackage.copyFrom(values); - return this; - } - - /** - * repeated .SoldierIdx BuffIdx = 3; - * @return whether the buffIdx field is set - */ - public boolean hasBuffIdx() { + public boolean hasAction() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .SoldierIdx BuffIdx = 3; + * optional .SoldierBuffAction Action = 4; * @return this */ - public SoldierCard clearBuffIdx() { + public SoldierBuff clearAction() { bitField0_ &= ~0x00000008; - buffIdx.clear(); - return this; - } - - /** - * repeated .SoldierIdx BuffIdx = 3; - * - * 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 #getMutableBuffIdx()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBuffIdx() { - return buffIdx; - } - - /** - * repeated .SoldierIdx BuffIdx = 3; - * - * 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 getMutableBuffIdx() { - bitField0_ |= 0x00000008; - return buffIdx; - } - - /** - * repeated .SoldierIdx BuffIdx = 3; - * @param value the buffIdx to add - * @return this - */ - public SoldierCard addBuffIdx(final SoldierIdx value) { - bitField0_ |= 0x00000008; - buffIdx.add(value); - return this; - } - - /** - * repeated .SoldierIdx BuffIdx = 3; - * @param values the buffIdx to add - * @return this - */ - public SoldierCard addAllBuffIdx(final SoldierIdx... values) { - bitField0_ |= 0x00000008; - buffIdx.addAll(values); - return this; - } - - @Override - public SoldierCard copyFrom(final SoldierCard other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - id = other.id; - type = other.type; - nextPackage.copyFrom(other.nextPackage); - buffIdx.copyFrom(other.buffIdx); - } - return this; - } - - @Override - public SoldierCard mergeFrom(final SoldierCard other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasId()) { - setId(other.id); - } - if (other.hasType()) { - setTypeValue(other.type); - } - if (other.hasNextPackage()) { - getMutableNextPackage().copyFrom(other.nextPackage); - } - if (other.hasBuffIdx()) { - getMutableBuffIdx().addAll(other.buffIdx); - } - return this; - } - - @Override - public SoldierCard clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - id = 0; - type = 0; - nextPackage.clear(); - buffIdx.clear(); - return this; - } - - @Override - public SoldierCard clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nextPackage.clear(); - buffIdx.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SoldierCard)) { - return false; - } - SoldierCard other = (SoldierCard) o; - return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) - && (!hasType() || type == other.type) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasBuffIdx() || buffIdx.equals(other.buffIdx)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeEnumNoTag(type); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawLittleEndian16((short) 32762); - output.writeBytesNoTag(nextPackage); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < buffIdx.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(buffIdx.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(type); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * buffIdx.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffIdx); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SoldierCard mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // id - id = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // type - final int value = input.readInt32(); - if (SoldierCardType.forNumber(value) != null) { - type = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 16378) { - break; - } - } - case 16378: { - // nextPackage - input.readBytes(nextPackage); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // buffIdx - tag = input.readRepeatedMessage(buffIdx, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.type, type, SoldierCardType.converter()); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.buffIdx, buffIdx); - } - output.endObject(); - } - - @Override - public SoldierCard mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 2363: { - if (input.isAtField(FieldNames.id)) { - if (!input.trySkipNullValue()) { - id = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2622298: { - if (input.isAtField(FieldNames.type)) { - if (!input.trySkipNullValue()) { - final SoldierCardType value = input.readEnum(SoldierCardType.converter()); - if (value != null) { - type = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -2082324045: { - if (input.isAtField(FieldNames.nextPackage)) { - if (!input.trySkipNullValue()) { - input.readBytes(nextPackage); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1892622666: { - if (input.isAtField(FieldNames.buffIdx)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffIdx); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SoldierCard clone() { - return new SoldierCard().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SoldierCard parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierCard(), data).checkInitialized(); - } - - public static SoldierCard parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierCard(), input).checkInitialized(); - } - - public static SoldierCard parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierCard(), input).checkInitialized(); - } - - /** - * @return factory for creating SoldierCard messages - */ - public static MessageFactory getFactory() { - return SoldierCardFactory.INSTANCE; - } - - private enum SoldierCardFactory implements MessageFactory { - INSTANCE; - - @Override - public SoldierCard create() { - return SoldierCard.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName id = FieldName.forField("Id"); - - static final FieldName type = FieldName.forField("Type"); - - static final FieldName nextPackage = FieldName.forField("NextPackage"); - - static final FieldName buffIdx = FieldName.forField("BuffIdx"); - } - } - - /** - * Protobuf type {@code SoldierPartner} - */ - public static final class SoldierPartner extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 Id = 1; - */ - private int id; - - /** - * optional .SoldierPartnerAction Action = 2; - */ - private int action; - - /** - * optional bytes NextPackage = 2047; - */ - private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - - /** - * repeated .SoldierIdx BuffIdx = 3; - */ - private final RepeatedMessage buffIdx = RepeatedMessage.newEmptyInstance(SoldierIdx.getFactory()); - - private SoldierPartner() { - } - - /** - * @return a new empty instance of {@code SoldierPartner} - */ - public static SoldierPartner newInstance() { - return new SoldierPartner(); - } - - /** - * optional uint32 Id = 1; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 Id = 1; - * @return this - */ - public SoldierPartner clearId() { - bitField0_ &= ~0x00000001; - id = 0; - return this; - } - - /** - * optional uint32 Id = 1; - * @return the id - */ - public int getId() { - return id; - } - - /** - * optional uint32 Id = 1; - * @param value the id to set - * @return this - */ - public SoldierPartner setId(final int value) { - bitField0_ |= 0x00000001; - id = value; - return this; - } - - /** - * optional .SoldierPartnerAction Action = 2; - * @return whether the action field is set - */ - public boolean hasAction() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .SoldierPartnerAction Action = 2; - * @return this - */ - public SoldierPartner clearAction() { - bitField0_ &= ~0x00000002; action = 0; return this; } /** - * optional .SoldierPartnerAction Action = 2; + * optional .SoldierBuffAction Action = 4; * @return the action */ - public SoldierPartnerAction getAction() { - return SoldierPartnerAction.forNumber(action); + public SoldierBuffAction getAction() { + return SoldierBuffAction.forNumber(action); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SoldierPartner#getAction()}.getNumber(). + * equivalent to {@link SoldierBuff#getAction()}.getNumber(). * * @return numeric wire representation */ @@ -8100,25 +9155,25 @@ public final class PublicSoldier { /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value - * constants from {@link SoldierPartnerAction}. Setting an invalid value - * can cause {@link SoldierPartner#getAction()} to return null + * constants from {@link SoldierBuffAction}. Setting an invalid value + * can cause {@link SoldierBuff#getAction()} to return null * * @param value the numeric wire value to set * @return this */ - public SoldierPartner setActionValue(final int value) { - bitField0_ |= 0x00000002; + public SoldierBuff setActionValue(final int value) { + bitField0_ |= 0x00000008; action = value; return this; } /** - * optional .SoldierPartnerAction Action = 2; + * optional .SoldierBuffAction Action = 4; * @param value the action to set * @return this */ - public SoldierPartner setAction(final SoldierPartnerAction value) { - bitField0_ |= 0x00000002; + public SoldierBuff setAction(final SoldierBuffAction value) { + bitField0_ |= 0x00000008; action = value.getNumber(); return this; } @@ -8128,15 +9183,15 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000010) != 0; } /** * optional bytes NextPackage = 2047; * @return this */ - public SoldierPartner clearNextPackage() { - bitField0_ &= ~0x00000004; + public SoldierBuff clearNextPackage() { + bitField0_ &= ~0x00000010; nextPackage.clear(); return this; } @@ -8165,7 +9220,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; return nextPackage; } @@ -8174,8 +9229,8 @@ public final class PublicSoldier { * @param value the nextPackage to add * @return this */ - public SoldierPartner addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + public SoldierBuff addNextPackage(final byte value) { + bitField0_ |= 0x00000010; nextPackage.add(value); return this; } @@ -8185,8 +9240,8 @@ public final class PublicSoldier { * @param values the nextPackage to add * @return this */ - public SoldierPartner addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + public SoldierBuff addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000010; nextPackage.addAll(values); return this; } @@ -8196,46 +9251,46 @@ public final class PublicSoldier { * @param values the nextPackage to set * @return this */ - public SoldierPartner setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + public SoldierBuff setNextPackage(final byte... values) { + bitField0_ |= 0x00000010; nextPackage.copyFrom(values); return this; } /** - * repeated .SoldierIdx BuffIdx = 3; - * @return whether the buffIdx field is set + * repeated uint32 BuffIds = 5; + * @return whether the buffIds field is set */ - public boolean hasBuffIdx() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasBuffIds() { + return (bitField0_ & 0x00000020) != 0; } /** - * repeated .SoldierIdx BuffIdx = 3; + * repeated uint32 BuffIds = 5; * @return this */ - public SoldierPartner clearBuffIdx() { - bitField0_ &= ~0x00000008; - buffIdx.clear(); + public SoldierBuff clearBuffIds() { + bitField0_ &= ~0x00000020; + buffIds.clear(); return this; } /** - * repeated .SoldierIdx BuffIdx = 3; + * repeated uint32 BuffIds = 5; * * 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 #getMutableBuffIdx()} if you want to modify it. + * Use {@link #getMutableBuffIds()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBuffIdx() { - return buffIdx; + public RepeatedInt getBuffIds() { + return buffIds; } /** - * repeated .SoldierIdx BuffIdx = 3; + * repeated uint32 BuffIds = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -8243,54 +9298,62 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBuffIdx() { - bitField0_ |= 0x00000008; - return buffIdx; + public RepeatedInt getMutableBuffIds() { + bitField0_ |= 0x00000020; + return buffIds; } /** - * repeated .SoldierIdx BuffIdx = 3; - * @param value the buffIdx to add + * repeated uint32 BuffIds = 5; + * @param value the buffIds to add * @return this */ - public SoldierPartner addBuffIdx(final SoldierIdx value) { - bitField0_ |= 0x00000008; - buffIdx.add(value); + public SoldierBuff addBuffIds(final int value) { + bitField0_ |= 0x00000020; + buffIds.add(value); return this; } /** - * repeated .SoldierIdx BuffIdx = 3; - * @param values the buffIdx to add + * repeated uint32 BuffIds = 5; + * @param values the buffIds to add * @return this */ - public SoldierPartner addAllBuffIdx(final SoldierIdx... values) { - bitField0_ |= 0x00000008; - buffIdx.addAll(values); + public SoldierBuff addAllBuffIds(final int... values) { + bitField0_ |= 0x00000020; + buffIds.addAll(values); return this; } @Override - public SoldierPartner copyFrom(final SoldierPartner other) { + public SoldierBuff copyFrom(final SoldierBuff other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - id = other.id; + bindId = other.bindId; + effectGroup = other.effectGroup; + type = other.type; action = other.action; nextPackage.copyFrom(other.nextPackage); - buffIdx.copyFrom(other.buffIdx); + buffIds.copyFrom(other.buffIds); } return this; } @Override - public SoldierPartner mergeFrom(final SoldierPartner other) { + public SoldierBuff mergeFrom(final SoldierBuff other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasId()) { - setId(other.id); + if (other.hasBindId()) { + setBindId(other.bindId); + } + if (other.hasEffectGroup()) { + setEffectGroup(other.effectGroup); + } + if (other.hasType()) { + setTypeValue(other.type); } if (other.hasAction()) { setActionValue(other.action); @@ -8298,35 +9361,37 @@ public final class PublicSoldier { if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasBuffIdx()) { - getMutableBuffIdx().addAll(other.buffIdx); + if (other.hasBuffIds()) { + getMutableBuffIds().addAll(other.buffIds); } return this; } @Override - public SoldierPartner clear() { + public SoldierBuff clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - id = 0; + bindId = 0; + effectGroup = 0; + type = 0; action = 0; nextPackage.clear(); - buffIdx.clear(); + buffIds.clear(); return this; } @Override - public SoldierPartner clearQuick() { + public SoldierBuff clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; nextPackage.clear(); - buffIdx.clearQuick(); + buffIds.clear(); return this; } @@ -8335,35 +9400,45 @@ public final class PublicSoldier { if (o == this) { return true; } - if (!(o instanceof SoldierPartner)) { + if (!(o instanceof SoldierBuff)) { return false; } - SoldierPartner other = (SoldierPartner) o; + SoldierBuff other = (SoldierBuff) o; return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) + && (!hasBindId() || bindId == other.bindId) + && (!hasEffectGroup() || effectGroup == other.effectGroup) + && (!hasType() || type == other.type) && (!hasAction() || action == other.action) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasBuffIdx() || buffIdx.equals(other.buffIdx)); + && (!hasBuffIds() || buffIds.equals(other.buffIds)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(id); + output.writeUInt32NoTag(bindId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); - output.writeEnumNoTag(action); + output.writeUInt32NoTag(effectGroup); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeEnumNoTag(type); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeEnumNoTag(action); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < buffIdx.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(buffIdx.get(i)); + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < buffIds.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(buffIds.array()[i]); } } } @@ -8372,30 +9447,36 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(bindId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(action); + size += 1 + ProtoSink.computeUInt32SizeNoTag(effectGroup); } if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeEnumSizeNoTag(type); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * buffIdx.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffIdx); + size += 1 + ProtoSink.computeEnumSizeNoTag(action); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * buffIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(buffIds); } return size; } @Override @SuppressWarnings("fallthrough") - public SoldierPartner mergeFrom(final ProtoSource input) throws IOException { + public SoldierBuff mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 8: { - // id - id = input.readUInt32(); + // bindId + bindId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { @@ -8403,11 +9484,32 @@ public final class PublicSoldier { } } case 16: { + // effectGroup + effectGroup = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // type + final int value = input.readInt32(); + if (SoldierBuffType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { // action final int value = input.readInt32(); - if (SoldierPartnerAction.forNumber(value) != null) { + if (SoldierBuffAction.forNumber(value) != null) { action = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } tag = input.readTag(); if (tag != 16378) { @@ -8417,16 +9519,17 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 26) { + if (tag != 42) { break; } } - case 26: { - // buffIdx - tag = input.readRepeatedMessage(buffIdx, tag); - bitField0_ |= 0x00000008; + case 42: { + // buffIds [packed=true] + input.readPackedUInt32(buffIds, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); if (tag != 0) { break; } @@ -8441,6 +9544,12 @@ public final class PublicSoldier { tag = input.readTag(); break; } + case 40: { + // buffIds [packed=false] + tag = input.readRepeatedUInt32(buffIds, tag); + bitField0_ |= 0x00000020; + break; + } } } } @@ -8449,31 +9558,37 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.bindId, bindId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.action, action, SoldierPartnerAction.converter()); + output.writeUInt32(FieldNames.effectGroup, effectGroup); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeEnum(FieldNames.type, type, SoldierBuffType.converter()); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.buffIdx, buffIdx); + output.writeEnum(FieldNames.action, action, SoldierBuffAction.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.buffIds, buffIds); } output.endObject(); } @Override - public SoldierPartner mergeFrom(final JsonSource input) throws IOException { + public SoldierBuff mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2363: { - if (input.isAtField(FieldNames.id)) { + case 1989869144: { + if (input.isAtField(FieldNames.bindId)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + bindId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -8481,13 +9596,40 @@ public final class PublicSoldier { } break; } + case -988068018: { + if (input.isAtField(FieldNames.effectGroup)) { + if (!input.trySkipNullValue()) { + effectGroup = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final SoldierBuffType value = input.readEnum(SoldierBuffType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } case 1955883606: { if (input.isAtField(FieldNames.action)) { if (!input.trySkipNullValue()) { - final SoldierPartnerAction value = input.readEnum(SoldierPartnerAction.converter()); + final SoldierBuffAction value = input.readEnum(SoldierBuffAction.converter()); if (value != null) { action = value.getNumber(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } else { input.skipUnknownEnumValue(); } @@ -8501,18 +9643,18 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); } break; } - case 1892622666: { - if (input.isAtField(FieldNames.buffIdx)) { + case 1892622661: { + if (input.isAtField(FieldNames.buffIds)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffIdx); - bitField0_ |= 0x00000008; + input.readRepeatedUInt32(buffIds); + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -8530,8 +9672,8 @@ public final class PublicSoldier { } @Override - public SoldierPartner clone() { - return new SoldierPartner().copyFrom(this); + public SoldierBuff clone() { + return new SoldierBuff().copyFrom(this); } @Override @@ -8539,32 +9681,31 @@ public final class PublicSoldier { return ((bitField0_) == 0); } - public static SoldierPartner parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierPartner(), data).checkInitialized(); + public static SoldierBuff parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBuff(), data).checkInitialized(); } - public static SoldierPartner parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierPartner(), input).checkInitialized(); + public static SoldierBuff parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBuff(), input).checkInitialized(); } - public static SoldierPartner parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierPartner(), input).checkInitialized(); + public static SoldierBuff parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBuff(), input).checkInitialized(); } /** - * @return factory for creating SoldierPartner messages + * @return factory for creating SoldierBuff messages */ - public static MessageFactory getFactory() { - return SoldierPartnerFactory.INSTANCE; + public static MessageFactory getFactory() { + return SoldierBuffFactory.INSTANCE; } - private enum SoldierPartnerFactory implements MessageFactory { + private enum SoldierBuffFactory implements MessageFactory { INSTANCE; @Override - public SoldierPartner create() { - return SoldierPartner.newInstance(); + public SoldierBuff create() { + return SoldierBuff.newInstance(); } } @@ -8572,81 +9713,273 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName id = FieldName.forField("Id"); + static final FieldName bindId = FieldName.forField("BindId"); + + static final FieldName effectGroup = FieldName.forField("EffectGroup"); + + static final FieldName type = FieldName.forField("Type"); static final FieldName action = FieldName.forField("Action"); static final FieldName nextPackage = FieldName.forField("NextPackage"); - static final FieldName buffIdx = FieldName.forField("BuffIdx"); + static final FieldName buffIds = FieldName.forField("BuffIds"); } } /** - * Protobuf type {@code SoldierIdx} + * Protobuf type {@code SoldierBuffProgress} */ - public static final class SoldierIdx extends ProtoMessage implements Cloneable { + public static final class SoldierBuffProgress extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 Buff = 1; + * optional uint32 BuffId = 1; */ - private int buff; + private int buffId; + + /** + * optional uint32 Cur = 4; + */ + private int cur; + + /** + * optional uint32 Max = 5; + */ + private int max; + + /** + * optional .SoldierBuffProgress.ProgressType Type = 3; + */ + private int type; + + /** + * optional bool Removed = 2; + */ + private boolean removed; /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - /** - * repeated uint32 Effects = 2; - */ - private final RepeatedInt effects = RepeatedInt.newEmptyInstance(); - - private SoldierIdx() { + private SoldierBuffProgress() { } /** - * @return a new empty instance of {@code SoldierIdx} + * @return a new empty instance of {@code SoldierBuffProgress} */ - public static SoldierIdx newInstance() { - return new SoldierIdx(); + public static SoldierBuffProgress newInstance() { + return new SoldierBuffProgress(); } /** - * optional uint32 Buff = 1; - * @return whether the buff field is set + * optional uint32 BuffId = 1; + * @return whether the buffId field is set */ - public boolean hasBuff() { + public boolean hasBuffId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 Buff = 1; + * optional uint32 BuffId = 1; * @return this */ - public SoldierIdx clearBuff() { + public SoldierBuffProgress clearBuffId() { bitField0_ &= ~0x00000001; - buff = 0; + buffId = 0; return this; } /** - * optional uint32 Buff = 1; - * @return the buff + * optional uint32 BuffId = 1; + * @return the buffId */ - public int getBuff() { - return buff; + public int getBuffId() { + return buffId; } /** - * optional uint32 Buff = 1; - * @param value the buff to set + * optional uint32 BuffId = 1; + * @param value the buffId to set * @return this */ - public SoldierIdx setBuff(final int value) { + public SoldierBuffProgress setBuffId(final int value) { bitField0_ |= 0x00000001; - buff = value; + buffId = value; + return this; + } + + /** + * optional uint32 Cur = 4; + * @return whether the cur field is set + */ + public boolean hasCur() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Cur = 4; + * @return this + */ + public SoldierBuffProgress clearCur() { + bitField0_ &= ~0x00000002; + cur = 0; + return this; + } + + /** + * optional uint32 Cur = 4; + * @return the cur + */ + public int getCur() { + return cur; + } + + /** + * optional uint32 Cur = 4; + * @param value the cur to set + * @return this + */ + public SoldierBuffProgress setCur(final int value) { + bitField0_ |= 0x00000002; + cur = value; + return this; + } + + /** + * optional uint32 Max = 5; + * @return whether the max field is set + */ + public boolean hasMax() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Max = 5; + * @return this + */ + public SoldierBuffProgress clearMax() { + bitField0_ &= ~0x00000004; + max = 0; + return this; + } + + /** + * optional uint32 Max = 5; + * @return the max + */ + public int getMax() { + return max; + } + + /** + * optional uint32 Max = 5; + * @param value the max to set + * @return this + */ + public SoldierBuffProgress setMax(final int value) { + bitField0_ |= 0x00000004; + max = value; + return this; + } + + /** + * optional .SoldierBuffProgress.ProgressType Type = 3; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierBuffProgress.ProgressType Type = 3; + * @return this + */ + public SoldierBuffProgress clearType() { + bitField0_ &= ~0x00000008; + type = 0; + return this; + } + + /** + * optional .SoldierBuffProgress.ProgressType Type = 3; + * @return the type + */ + public ProgressType getType() { + return ProgressType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierBuffProgress#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ProgressType}. Setting an invalid value + * can cause {@link SoldierBuffProgress#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierBuffProgress setTypeValue(final int value) { + bitField0_ |= 0x00000008; + type = value; + return this; + } + + /** + * optional .SoldierBuffProgress.ProgressType Type = 3; + * @param value the type to set + * @return this + */ + public SoldierBuffProgress setType(final ProgressType value) { + bitField0_ |= 0x00000008; + type = value.getNumber(); + return this; + } + + /** + * optional bool Removed = 2; + * @return whether the removed field is set + */ + public boolean hasRemoved() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool Removed = 2; + * @return this + */ + public SoldierBuffProgress clearRemoved() { + bitField0_ &= ~0x00000010; + removed = false; + return this; + } + + /** + * optional bool Removed = 2; + * @return the removed + */ + public boolean getRemoved() { + return removed; + } + + /** + * optional bool Removed = 2; + * @param value the removed to set + * @return this + */ + public SoldierBuffProgress setRemoved(final boolean value) { + bitField0_ |= 0x00000010; + removed = value; return this; } @@ -8655,15 +9988,15 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000020) != 0; } /** * optional bytes NextPackage = 2047; * @return this */ - public SoldierIdx clearNextPackage() { - bitField0_ &= ~0x00000002; + public SoldierBuffProgress clearNextPackage() { + bitField0_ &= ~0x00000020; nextPackage.clear(); return this; } @@ -8692,7 +10025,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; return nextPackage; } @@ -8701,8 +10034,8 @@ public final class PublicSoldier { * @param value the nextPackage to add * @return this */ - public SoldierIdx addNextPackage(final byte value) { - bitField0_ |= 0x00000002; + public SoldierBuffProgress addNextPackage(final byte value) { + bitField0_ |= 0x00000020; nextPackage.add(value); return this; } @@ -8712,8 +10045,8 @@ public final class PublicSoldier { * @param values the nextPackage to add * @return this */ - public SoldierIdx addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + public SoldierBuffProgress addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000020; nextPackage.addAll(values); return this; } @@ -8723,132 +10056,78 @@ public final class PublicSoldier { * @param values the nextPackage to set * @return this */ - public SoldierIdx setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + public SoldierBuffProgress setNextPackage(final byte... values) { + bitField0_ |= 0x00000020; nextPackage.copyFrom(values); return this; } - /** - * repeated uint32 Effects = 2; - * @return whether the effects field is set - */ - public boolean hasEffects() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated uint32 Effects = 2; - * @return this - */ - public SoldierIdx clearEffects() { - bitField0_ &= ~0x00000004; - effects.clear(); - return this; - } - - /** - * repeated uint32 Effects = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableEffects()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getEffects() { - return effects; - } - - /** - * repeated uint32 Effects = 2; - * - * 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 getMutableEffects() { - bitField0_ |= 0x00000004; - return effects; - } - - /** - * repeated uint32 Effects = 2; - * @param value the effects to add - * @return this - */ - public SoldierIdx addEffects(final int value) { - bitField0_ |= 0x00000004; - effects.add(value); - return this; - } - - /** - * repeated uint32 Effects = 2; - * @param values the effects to add - * @return this - */ - public SoldierIdx addAllEffects(final int... values) { - bitField0_ |= 0x00000004; - effects.addAll(values); - return this; - } - @Override - public SoldierIdx copyFrom(final SoldierIdx other) { + public SoldierBuffProgress copyFrom(final SoldierBuffProgress other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buff = other.buff; + buffId = other.buffId; + cur = other.cur; + max = other.max; + type = other.type; + removed = other.removed; nextPackage.copyFrom(other.nextPackage); - effects.copyFrom(other.effects); } return this; } @Override - public SoldierIdx mergeFrom(final SoldierIdx other) { + public SoldierBuffProgress mergeFrom(final SoldierBuffProgress other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBuff()) { - setBuff(other.buff); + if (other.hasBuffId()) { + setBuffId(other.buffId); + } + if (other.hasCur()) { + setCur(other.cur); + } + if (other.hasMax()) { + setMax(other.max); + } + if (other.hasType()) { + setTypeValue(other.type); + } + if (other.hasRemoved()) { + setRemoved(other.removed); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasEffects()) { - getMutableEffects().addAll(other.effects); - } return this; } @Override - public SoldierIdx clear() { + public SoldierBuffProgress clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buff = 0; + buffId = 0; + cur = 0; + max = 0; + type = 0; + removed = false; nextPackage.clear(); - effects.clear(); return this; } @Override - public SoldierIdx clearQuick() { + public SoldierBuffProgress clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; nextPackage.clear(); - effects.clear(); return this; } @@ -8857,31 +10136,44 @@ public final class PublicSoldier { if (o == this) { return true; } - if (!(o instanceof SoldierIdx)) { + if (!(o instanceof SoldierBuffProgress)) { return false; } - SoldierIdx other = (SoldierIdx) o; + SoldierBuffProgress other = (SoldierBuffProgress) o; return bitField0_ == other.bitField0_ - && (!hasBuff() || buff == other.buff) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasEffects() || effects.equals(other.effects)); + && (!hasBuffId() || buffId == other.buffId) + && (!hasCur() || cur == other.cur) + && (!hasMax() || max == other.max) + && (!hasType() || type == other.type) + && (!hasRemoved() || removed == other.removed) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(buff); + output.writeUInt32NoTag(buffId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawLittleEndian16((short) 32762); - output.writeBytesNoTag(nextPackage); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(cur); } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < effects.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(effects.array()[i]); - } + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(max); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 24); + output.writeEnumNoTag(type); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(removed); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); } } @@ -8889,29 +10181,77 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buff); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cur); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * effects.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(effects); + size += 1 + ProtoSink.computeUInt32SizeNoTag(max); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(type); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; } @Override @SuppressWarnings("fallthrough") - public SoldierIdx mergeFrom(final ProtoSource input) throws IOException { + public SoldierBuffProgress mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 8: { - // buff - buff = input.readUInt32(); + // buffId + buffId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // cur + cur = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // max + max = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // type + final int value = input.readInt32(); + if (ProgressType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // removed + removed = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 16378) { break; } @@ -8919,16 +10259,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // effects [packed=true] - input.readPackedUInt32(effects, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 0) { break; @@ -8944,12 +10275,6 @@ public final class PublicSoldier { tag = input.readTag(); break; } - case 16: { - // effects [packed=false] - tag = input.readRepeatedUInt32(effects, tag); - bitField0_ |= 0x00000004; - break; - } } } } @@ -8958,28 +10283,37 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buff, buff); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeUInt32(FieldNames.cur, cur); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.effects, effects); + output.writeUInt32(FieldNames.max, max); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.type, type, ProgressType.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.removed, removed); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); } @Override - public SoldierIdx mergeFrom(final JsonSource input) throws IOException { + public SoldierBuffProgress mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2081907: { - if (input.isAtField(FieldNames.buff)) { + case 2000714990: { + if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { - buff = input.readUInt32(); + buffId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -8987,22 +10321,60 @@ public final class PublicSoldier { } break; } + case 68128: { + if (input.isAtField(FieldNames.cur)) { + if (!input.trySkipNullValue()) { + cur = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 77124: { + if (input.isAtField(FieldNames.max)) { + if (!input.trySkipNullValue()) { + max = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2622298: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final ProgressType value = input.readEnum(ProgressType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1538478016: { + if (input.isAtField(FieldNames.removed)) { + if (!input.trySkipNullValue()) { + removed = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -169275166: { - if (input.isAtField(FieldNames.effects)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(effects); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -9020,8 +10392,8 @@ public final class PublicSoldier { } @Override - public SoldierIdx clone() { - return new SoldierIdx().copyFrom(this); + public SoldierBuffProgress clone() { + return new SoldierBuffProgress().copyFrom(this); } @Override @@ -9029,31 +10401,157 @@ public final class PublicSoldier { return ((bitField0_) == 0); } - public static SoldierIdx parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierIdx(), data).checkInitialized(); + public static SoldierBuffProgress parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBuffProgress(), data).checkInitialized(); } - public static SoldierIdx parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierIdx(), input).checkInitialized(); + public static SoldierBuffProgress parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBuffProgress(), input).checkInitialized(); } - public static SoldierIdx parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierIdx(), input).checkInitialized(); + public static SoldierBuffProgress parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierBuffProgress(), input).checkInitialized(); } /** - * @return factory for creating SoldierIdx messages + * @return factory for creating SoldierBuffProgress messages */ - public static MessageFactory getFactory() { - return SoldierIdxFactory.INSTANCE; + public static MessageFactory getFactory() { + return SoldierBuffProgressFactory.INSTANCE; } - private enum SoldierIdxFactory implements MessageFactory { + /** + * Protobuf enum {@code ProgressType} + */ + public enum ProgressType implements ProtoEnum { + /** + * UnknownProgress = 0; + */ + UnknownProgress("UnknownProgress", 0), + + /** + * StateProgress = 1; + */ + StateProgress("StateProgress", 1), + + /** + * CondProgress = 2; + */ + CondProgress("CondProgress", 2); + + /** + * UnknownProgress = 0; + */ + public static final int UnknownProgress_VALUE = 0; + + /** + * StateProgress = 1; + */ + public static final int StateProgress_VALUE = 1; + + /** + * CondProgress = 2; + */ + public static final int CondProgress_VALUE = 2; + + private final String name; + + private final int number; + + private ProgressType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return ProgressTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static ProgressType forNumber(int value) { + return ProgressTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static ProgressType forNumberOr(int number, ProgressType other) { + ProgressType value = forNumber(number); + return value == null ? other : value; + } + + enum ProgressTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ProgressType[] lookup = new ProgressType[3]; + + static { + lookup[0] = UnknownProgress; + lookup[1] = StateProgress; + lookup[2] = CondProgress; + } + + @Override + public final ProgressType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ProgressType forName(final CharSequence value) { + if (value.length() == 12) { + if (ProtoUtil.isEqual("CondProgress", value)) { + return CondProgress; + } + } + if (value.length() == 13) { + if (ProtoUtil.isEqual("StateProgress", value)) { + return StateProgress; + } + } + if (value.length() == 15) { + if (ProtoUtil.isEqual("UnknownProgress", value)) { + return UnknownProgress; + } + } + return null; + } + } + } + + private enum SoldierBuffProgressFactory implements MessageFactory { INSTANCE; @Override - public SoldierIdx create() { - return SoldierIdx.newInstance(); + public SoldierBuffProgress create() { + return SoldierBuffProgress.newInstance(); } } @@ -9061,11 +10559,17 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buff = FieldName.forField("Buff"); + static final FieldName buffId = FieldName.forField("BuffId"); + + static final FieldName cur = FieldName.forField("Cur"); + + static final FieldName max = FieldName.forField("Max"); + + static final FieldName type = FieldName.forField("Type"); + + static final FieldName removed = FieldName.forField("Removed"); static final FieldName nextPackage = FieldName.forField("NextPackage"); - - static final FieldName effects = FieldName.forField("Effects"); } } @@ -10284,6 +11788,294 @@ public final class PublicSoldier { } } + /** + * Protobuf type {@code SelectBossAbilityCaseData} + */ + public static final class SelectBossAbilityCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SelectBossAbilityCaseData() { + } + + /** + * @return a new empty instance of {@code SelectBossAbilityCaseData} + */ + public static SelectBossAbilityCaseData newInstance() { + return new SelectBossAbilityCaseData(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SelectBossAbilityCaseData clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SelectBossAbilityCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SelectBossAbilityCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SelectBossAbilityCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SelectBossAbilityCaseData copyFrom(final SelectBossAbilityCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SelectBossAbilityCaseData mergeFrom(final SelectBossAbilityCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SelectBossAbilityCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public SelectBossAbilityCaseData 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 SelectBossAbilityCaseData)) { + return false; + } + SelectBossAbilityCaseData other = (SelectBossAbilityCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectBossAbilityCaseData 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 != 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); + } + output.endObject(); + } + + @Override + public SelectBossAbilityCaseData 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectBossAbilityCaseData clone() { + return new SelectBossAbilityCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectBossAbilityCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectBossAbilityCaseData(), data).checkInitialized(); + } + + public static SelectBossAbilityCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectBossAbilityCaseData(), input).checkInitialized(); + } + + public static SelectBossAbilityCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectBossAbilityCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectBossAbilityCaseData messages + */ + public static MessageFactory getFactory() { + return SelectBossAbilityCaseDataFactory.INSTANCE; + } + + private enum SelectBossAbilityCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectBossAbilityCaseData create() { + return SelectBossAbilityCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code ShopCaseData} */ @@ -10315,6 +12107,11 @@ public final class PublicSoldier { */ private int purchaseExpPrice; + /** + * optional uint32 TempFree = 11; + */ + private int tempFree; + /** * optional bool Lock = 5; */ @@ -10540,12 +12337,49 @@ public final class PublicSoldier { return this; } + /** + * optional uint32 TempFree = 11; + * @return whether the tempFree field is set + */ + public boolean hasTempFree() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 TempFree = 11; + * @return this + */ + public ShopCaseData clearTempFree() { + bitField0_ &= ~0x00000020; + tempFree = 0; + return this; + } + + /** + * optional uint32 TempFree = 11; + * @return the tempFree + */ + public int getTempFree() { + return tempFree; + } + + /** + * optional uint32 TempFree = 11; + * @param value the tempFree to set + * @return this + */ + public ShopCaseData setTempFree(final int value) { + bitField0_ |= 0x00000020; + tempFree = value; + return this; + } + /** * optional bool Lock = 5; * @return whether the lock field is set */ public boolean hasLock() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -10553,7 +12387,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData clearLock() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; lock = false; return this; } @@ -10572,7 +12406,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData setLock(final boolean value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; lock = value; return this; } @@ -10582,7 +12416,7 @@ public final class PublicSoldier { * @return whether the disableRefresh field is set */ public boolean hasDisableRefresh() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -10590,7 +12424,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData clearDisableRefresh() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; disableRefresh = false; return this; } @@ -10609,7 +12443,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData setDisableRefresh(final boolean value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; disableRefresh = value; return this; } @@ -10619,7 +12453,7 @@ public final class PublicSoldier { * @return whether the disablePurchase field is set */ public boolean hasDisablePurchase() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -10627,7 +12461,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData clearDisablePurchase() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; disablePurchase = false; return this; } @@ -10646,7 +12480,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData setDisablePurchase(final boolean value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; disablePurchase = value; return this; } @@ -10656,7 +12490,7 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -10664,7 +12498,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData clearNextPackage() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; nextPackage.clear(); return this; } @@ -10693,7 +12527,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return nextPackage; } @@ -10703,7 +12537,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData addNextPackage(final byte value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; nextPackage.add(value); return this; } @@ -10714,7 +12548,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; nextPackage.addAll(values); return this; } @@ -10725,7 +12559,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData setNextPackage(final byte... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; nextPackage.copyFrom(values); return this; } @@ -10735,7 +12569,7 @@ public final class PublicSoldier { * @return whether the rarityUp field is set */ public boolean hasRarityUp() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -10743,7 +12577,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData clearRarityUp() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; rarityUp.clear(); return this; } @@ -10772,7 +12606,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedInt getMutableRarityUp() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return rarityUp; } @@ -10782,7 +12616,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData addRarityUp(final int value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; rarityUp.add(value); return this; } @@ -10793,7 +12627,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData addAllRarityUp(final int... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; rarityUp.addAll(values); return this; } @@ -10803,7 +12637,7 @@ public final class PublicSoldier { * @return whether the goods field is set */ public boolean hasGoods() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -10811,7 +12645,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData clearGoods() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; goods.clear(); return this; } @@ -10840,7 +12674,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedMessage getMutableGoods() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return goods; } @@ -10850,7 +12684,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData addGoods(final SoldierGoods value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; goods.add(value); return this; } @@ -10861,7 +12695,7 @@ public final class PublicSoldier { * @return this */ public ShopCaseData addAllGoods(final SoldierGoods... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; goods.addAll(values); return this; } @@ -10876,6 +12710,7 @@ public final class PublicSoldier { free = other.free; reRollPrice = other.reRollPrice; purchaseExpPrice = other.purchaseExpPrice; + tempFree = other.tempFree; lock = other.lock; disableRefresh = other.disableRefresh; disablePurchase = other.disablePurchase; @@ -10907,6 +12742,9 @@ public final class PublicSoldier { if (other.hasPurchaseExpPrice()) { setPurchaseExpPrice(other.purchaseExpPrice); } + if (other.hasTempFree()) { + setTempFree(other.tempFree); + } if (other.hasLock()) { setLock(other.lock); } @@ -10940,6 +12778,7 @@ public final class PublicSoldier { free = 0; reRollPrice = 0; purchaseExpPrice = 0; + tempFree = 0; lock = false; disableRefresh = false; disablePurchase = false; @@ -10977,6 +12816,7 @@ public final class PublicSoldier { && (!hasFree() || free == other.free) && (!hasReRollPrice() || reRollPrice == other.reRollPrice) && (!hasPurchaseExpPrice() || purchaseExpPrice == other.purchaseExpPrice) + && (!hasTempFree() || tempFree == other.tempFree) && (!hasLock() || lock == other.lock) && (!hasDisableRefresh() || disableRefresh == other.disableRefresh) && (!hasDisablePurchase() || disablePurchase == other.disablePurchase) @@ -11008,28 +12848,32 @@ public final class PublicSoldier { output.writeUInt32NoTag(purchaseExpPrice); } if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(tempFree); + } + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 40); output.writeBoolNoTag(lock); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 64); output.writeBoolNoTag(disableRefresh); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 72); output.writeBoolNoTag(disablePurchase); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000400) != 0) { for (int i = 0; i < rarityUp.length(); i++) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(rarityUp.array()[i]); } } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { for (int i = 0; i < goods.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(goods.get(i)); @@ -11056,7 +12900,7 @@ public final class PublicSoldier { size += 1 + ProtoSink.computeUInt32SizeNoTag(purchaseExpPrice); } if ((bitField0_ & 0x00000020) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(tempFree); } if ((bitField0_ & 0x00000040) != 0) { size += 2; @@ -11065,12 +12909,15 @@ public final class PublicSoldier { size += 2; } if ((bitField0_ & 0x00000100) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 2; } if ((bitField0_ & 0x00000200) != 0) { - size += (1 * rarityUp.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rarityUp); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000400) != 0) { + size += (1 * rarityUp.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rarityUp); + } + if ((bitField0_ & 0x00000800) != 0) { size += (1 * goods.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(goods); } return size; @@ -11124,6 +12971,15 @@ public final class PublicSoldier { purchaseExpPrice = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // tempFree + tempFree = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); if (tag != 40) { break; } @@ -11131,7 +12987,7 @@ public final class PublicSoldier { case 40: { // lock lock = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 64) { break; @@ -11140,7 +12996,7 @@ public final class PublicSoldier { case 64: { // disableRefresh disableRefresh = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 72) { break; @@ -11149,7 +13005,7 @@ public final class PublicSoldier { case 72: { // disablePurchase disablePurchase = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 16378) { break; @@ -11158,7 +13014,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 34) { break; @@ -11167,7 +13023,7 @@ public final class PublicSoldier { case 34: { // rarityUp [packed=true] input.readPackedUInt32(rarityUp, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 26) { break; @@ -11176,7 +13032,7 @@ public final class PublicSoldier { case 26: { // goods tag = input.readRepeatedMessage(goods, tag); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; if (tag != 0) { break; } @@ -11194,7 +13050,7 @@ public final class PublicSoldier { case 32: { // rarityUp [packed=false] tag = input.readRepeatedUInt32(rarityUp, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } } @@ -11220,21 +13076,24 @@ public final class PublicSoldier { output.writeUInt32(FieldNames.purchaseExpPrice, purchaseExpPrice); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.lock, lock); + output.writeUInt32(FieldNames.tempFree, tempFree); } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.disableRefresh, disableRefresh); + output.writeBool(FieldNames.lock, lock); } if ((bitField0_ & 0x00000080) != 0) { - output.writeBool(FieldNames.disablePurchase, disablePurchase); + output.writeBool(FieldNames.disableRefresh, disableRefresh); } if ((bitField0_ & 0x00000100) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeBool(FieldNames.disablePurchase, disablePurchase); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedUInt32(FieldNames.rarityUp, rarityUp); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedUInt32(FieldNames.rarityUp, rarityUp); + } + if ((bitField0_ & 0x00000800) != 0) { output.writeRepeatedMessage(FieldNames.goods, goods); } output.endObject(); @@ -11302,11 +13161,22 @@ public final class PublicSoldier { } break; } + case -1258018688: { + if (input.isAtField(FieldNames.tempFree)) { + if (!input.trySkipNullValue()) { + tempFree = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } case 2373963: { if (input.isAtField(FieldNames.lock)) { if (!input.trySkipNullValue()) { lock = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -11317,7 +13187,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.disableRefresh)) { if (!input.trySkipNullValue()) { disableRefresh = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -11328,7 +13198,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.disablePurchase)) { if (!input.trySkipNullValue()) { disablePurchase = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -11339,7 +13209,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -11350,7 +13220,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.rarityUp)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(rarityUp); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -11361,7 +13231,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.goods)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(goods); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -11430,6 +13300,8 @@ public final class PublicSoldier { static final FieldName purchaseExpPrice = FieldName.forField("PurchaseExpPrice"); + static final FieldName tempFree = FieldName.forField("TempFree"); + static final FieldName lock = FieldName.forField("Lock"); static final FieldName disableRefresh = FieldName.forField("DisableRefresh"); @@ -11451,22 +13323,17 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional uint32 ReRoll = 3; + * optional uint32 ReRoll = 2; */ private int reRoll; - /** - * optional .SoldierCardType Type = 1; - */ - private int type; - /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; */ private final RepeatedInt ids = RepeatedInt.newEmptyInstance(); @@ -11481,7 +13348,7 @@ public final class PublicSoldier { } /** - * optional uint32 ReRoll = 3; + * optional uint32 ReRoll = 2; * @return whether the reRoll field is set */ public boolean hasReRoll() { @@ -11489,7 +13356,7 @@ public final class PublicSoldier { } /** - * optional uint32 ReRoll = 3; + * optional uint32 ReRoll = 2; * @return this */ public SelectCardData clearReRoll() { @@ -11499,7 +13366,7 @@ public final class PublicSoldier { } /** - * optional uint32 ReRoll = 3; + * optional uint32 ReRoll = 2; * @return the reRoll */ public int getReRoll() { @@ -11507,7 +13374,7 @@ public final class PublicSoldier { } /** - * optional uint32 ReRoll = 3; + * optional uint32 ReRoll = 2; * @param value the reRoll to set * @return this */ @@ -11517,74 +13384,12 @@ public final class PublicSoldier { return this; } - /** - * optional .SoldierCardType Type = 1; - * @return whether the type field is set - */ - public boolean hasType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .SoldierCardType Type = 1; - * @return this - */ - public SelectCardData clearType() { - bitField0_ &= ~0x00000002; - type = 0; - return this; - } - - /** - * optional .SoldierCardType Type = 1; - * @return the type - */ - public SoldierCardType getType() { - return SoldierCardType.forNumber(type); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link SelectCardData#getType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getTypeValue() { - return type; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link SoldierCardType}. Setting an invalid value - * can cause {@link SelectCardData#getType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public SelectCardData setTypeValue(final int value) { - bitField0_ |= 0x00000002; - type = value; - return this; - } - - /** - * optional .SoldierCardType Type = 1; - * @param value the type to set - * @return this - */ - public SelectCardData setType(final SoldierCardType value) { - bitField0_ |= 0x00000002; - type = value.getNumber(); - return this; - } - /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -11592,7 +13397,7 @@ public final class PublicSoldier { * @return this */ public SelectCardData clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; nextPackage.clear(); return this; } @@ -11621,7 +13426,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return nextPackage; } @@ -11631,7 +13436,7 @@ public final class PublicSoldier { * @return this */ public SelectCardData addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; nextPackage.add(value); return this; } @@ -11642,7 +13447,7 @@ public final class PublicSoldier { * @return this */ public SelectCardData addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; nextPackage.addAll(values); return this; } @@ -11653,31 +13458,31 @@ public final class PublicSoldier { * @return this */ public SelectCardData setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; nextPackage.copyFrom(values); return this; } /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; * @return whether the ids field is set */ public boolean hasIds() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; * @return this */ public SelectCardData clearIds() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; ids.clear(); return this; } /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; * * 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. @@ -11691,7 +13496,7 @@ public final class PublicSoldier { } /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -11700,28 +13505,28 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedInt getMutableIds() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return ids; } /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; * @param value the ids to add * @return this */ public SelectCardData addIds(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; ids.add(value); return this; } /** - * repeated uint32 Ids = 2; + * repeated uint32 Ids = 1; * @param values the ids to add * @return this */ public SelectCardData addAllIds(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; ids.addAll(values); return this; } @@ -11732,7 +13537,6 @@ public final class PublicSoldier { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; reRoll = other.reRoll; - type = other.type; nextPackage.copyFrom(other.nextPackage); ids.copyFrom(other.ids); } @@ -11748,9 +13552,6 @@ public final class PublicSoldier { if (other.hasReRoll()) { setReRoll(other.reRoll); } - if (other.hasType()) { - setTypeValue(other.type); - } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -11768,7 +13569,6 @@ public final class PublicSoldier { cachedSize = -1; bitField0_ = 0; reRoll = 0; - type = 0; nextPackage.clear(); ids.clear(); return this; @@ -11797,7 +13597,6 @@ public final class PublicSoldier { SelectCardData other = (SelectCardData) o; return bitField0_ == other.bitField0_ && (!hasReRoll() || reRoll == other.reRoll) - && (!hasType() || type == other.type) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasIds() || ids.equals(other.ids)); } @@ -11805,20 +13604,16 @@ public final class PublicSoldier { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(reRoll); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeEnumNoTag(type); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < ids.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(ids.array()[i]); } } @@ -11831,12 +13626,9 @@ public final class PublicSoldier { size += 1 + ProtoSink.computeUInt32SizeNoTag(reRoll); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(type); - } - if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ids); } return size; @@ -11849,23 +13641,11 @@ public final class PublicSoldier { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 16: { // reRoll reRoll = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // type - final int value = input.readInt32(); - if (SoldierCardType.forNumber(value) != null) { - type = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); if (tag != 16378) { break; } @@ -11873,16 +13653,16 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 18) { + if (tag != 10) { break; } } - case 18: { + case 10: { // ids [packed=true] input.readPackedUInt32(ids, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -11898,10 +13678,10 @@ public final class PublicSoldier { tag = input.readTag(); break; } - case 16: { + case 8: { // ids [packed=false] tag = input.readRepeatedUInt32(ids, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; break; } } @@ -11915,12 +13695,9 @@ public final class PublicSoldier { output.writeUInt32(FieldNames.reRoll, reRoll); } if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.type, type, SoldierCardType.converter()); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedUInt32(FieldNames.ids, ids); } output.endObject(); @@ -11944,27 +13721,11 @@ public final class PublicSoldier { } break; } - case 2622298: { - if (input.isAtField(FieldNames.type)) { - if (!input.trySkipNullValue()) { - final SoldierCardType value = input.readEnum(SoldierCardType.converter()); - if (value != null) { - type = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -11975,7 +13736,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.ids)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(ids); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -12037,8 +13798,6 @@ public final class PublicSoldier { static class FieldNames { static final FieldName reRoll = FieldName.forField("ReRoll"); - static final FieldName type = FieldName.forField("Type"); - static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName ids = FieldName.forField("Ids"); @@ -12706,16 +14465,6 @@ public final class PublicSoldier { public static final class EventSettlementOfDisputeCaseData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 DicePoint = 2; - */ - private int dicePoint; - - /** - * optional bool TwoDice = 3; - */ - private boolean twoDice; - /** * optional bytes NextPackage = 2047; */ @@ -12736,86 +14485,12 @@ public final class PublicSoldier { return new EventSettlementOfDisputeCaseData(); } - /** - * optional uint32 DicePoint = 2; - * @return whether the dicePoint field is set - */ - public boolean hasDicePoint() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 DicePoint = 2; - * @return this - */ - public EventSettlementOfDisputeCaseData clearDicePoint() { - bitField0_ &= ~0x00000001; - dicePoint = 0; - return this; - } - - /** - * optional uint32 DicePoint = 2; - * @return the dicePoint - */ - public int getDicePoint() { - return dicePoint; - } - - /** - * optional uint32 DicePoint = 2; - * @param value the dicePoint to set - * @return this - */ - public EventSettlementOfDisputeCaseData setDicePoint(final int value) { - bitField0_ |= 0x00000001; - dicePoint = value; - return this; - } - - /** - * optional bool TwoDice = 3; - * @return whether the twoDice field is set - */ - public boolean hasTwoDice() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool TwoDice = 3; - * @return this - */ - public EventSettlementOfDisputeCaseData clearTwoDice() { - bitField0_ &= ~0x00000002; - twoDice = false; - return this; - } - - /** - * optional bool TwoDice = 3; - * @return the twoDice - */ - public boolean getTwoDice() { - return twoDice; - } - - /** - * optional bool TwoDice = 3; - * @param value the twoDice to set - * @return this - */ - public EventSettlementOfDisputeCaseData setTwoDice(final boolean value) { - bitField0_ |= 0x00000002; - twoDice = value; - return this; - } - /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -12823,7 +14498,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; nextPackage.clear(); return this; } @@ -12852,7 +14527,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; return nextPackage; } @@ -12862,7 +14537,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; nextPackage.add(value); return this; } @@ -12873,7 +14548,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; nextPackage.addAll(values); return this; } @@ -12884,7 +14559,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; nextPackage.copyFrom(values); return this; } @@ -12894,7 +14569,7 @@ public final class PublicSoldier { * @return whether the ids field is set */ public boolean hasIds() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -12902,7 +14577,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData clearIds() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; ids.clear(); return this; } @@ -12931,7 +14606,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedInt getMutableIds() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; return ids; } @@ -12941,7 +14616,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData addIds(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; ids.add(value); return this; } @@ -12952,7 +14627,7 @@ public final class PublicSoldier { * @return this */ public EventSettlementOfDisputeCaseData addAllIds(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; ids.addAll(values); return this; } @@ -12962,8 +14637,6 @@ public final class PublicSoldier { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - dicePoint = other.dicePoint; - twoDice = other.twoDice; nextPackage.copyFrom(other.nextPackage); ids.copyFrom(other.ids); } @@ -12977,12 +14650,6 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasDicePoint()) { - setDicePoint(other.dicePoint); - } - if (other.hasTwoDice()) { - setTwoDice(other.twoDice); - } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -12999,8 +14666,6 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - dicePoint = 0; - twoDice = false; nextPackage.clear(); ids.clear(); return this; @@ -13028,8 +14693,6 @@ public final class PublicSoldier { } EventSettlementOfDisputeCaseData other = (EventSettlementOfDisputeCaseData) o; return bitField0_ == other.bitField0_ - && (!hasDicePoint() || dicePoint == other.dicePoint) - && (!hasTwoDice() || twoDice == other.twoDice) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasIds() || ids.equals(other.ids)); } @@ -13037,18 +14700,10 @@ public final class PublicSoldier { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(dicePoint); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeBoolNoTag(twoDice); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < ids.length(); i++) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(ids.array()[i]); @@ -13060,15 +14715,9 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dicePoint); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ids); } return size; @@ -13081,28 +14730,10 @@ public final class PublicSoldier { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // dicePoint - dicePoint = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // twoDice - twoDice = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 16378) { - break; - } - } case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 10) { break; @@ -13111,7 +14742,7 @@ public final class PublicSoldier { case 10: { // ids [packed=true] input.readPackedUInt32(ids, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { break; @@ -13130,7 +14761,7 @@ public final class PublicSoldier { case 8: { // ids [packed=false] tag = input.readRepeatedUInt32(ids, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; break; } } @@ -13141,15 +14772,9 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.dicePoint, dicePoint); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.twoDice, twoDice); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedUInt32(FieldNames.ids, ids); } output.endObject(); @@ -13162,33 +14787,11 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 596027913: { - if (input.isAtField(FieldNames.dicePoint)) { - if (!input.trySkipNullValue()) { - dicePoint = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 752407539: { - if (input.isAtField(FieldNames.twoDice)) { - if (!input.trySkipNullValue()) { - twoDice = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -13199,7 +14802,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.ids)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(ids); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -13261,10 +14864,6 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName dicePoint = FieldName.forField("DicePoint"); - - static final FieldName twoDice = FieldName.forField("TwoDice"); - static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName ids = FieldName.forField("Ids"); @@ -13725,6 +15324,374 @@ public final class PublicSoldier { } } + /** + * Protobuf type {@code CheckStageCaseData} + */ + public static final class CheckStageCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FloorId = 1; + */ + private int floorId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private CheckStageCaseData() { + } + + /** + * @return a new empty instance of {@code CheckStageCaseData} + */ + public static CheckStageCaseData newInstance() { + return new CheckStageCaseData(); + } + + /** + * optional uint32 FloorId = 1; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FloorId = 1; + * @return this + */ + public CheckStageCaseData clearFloorId() { + bitField0_ &= ~0x00000001; + floorId = 0; + return this; + } + + /** + * optional uint32 FloorId = 1; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 FloorId = 1; + * @param value the floorId to set + * @return this + */ + public CheckStageCaseData setFloorId(final int value) { + bitField0_ |= 0x00000001; + floorId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public CheckStageCaseData clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public CheckStageCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public CheckStageCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public CheckStageCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public CheckStageCaseData copyFrom(final CheckStageCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + floorId = other.floorId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public CheckStageCaseData mergeFrom(final CheckStageCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public CheckStageCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + floorId = 0; + nextPackage.clear(); + return this; + } + + @Override + public CheckStageCaseData 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 CheckStageCaseData)) { + return false; + } + CheckStageCaseData other = (CheckStageCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasFloorId() || floorId == other.floorId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CheckStageCaseData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public CheckStageCaseData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 898626087: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CheckStageCaseData clone() { + return new CheckStageCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CheckStageCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CheckStageCaseData(), data).checkInitialized(); + } + + public static CheckStageCaseData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CheckStageCaseData(), input).checkInitialized(); + } + + public static CheckStageCaseData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CheckStageCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating CheckStageCaseData messages + */ + public static MessageFactory getFactory() { + return CheckStageCaseDataFactory.INSTANCE; + } + + private enum CheckStageCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public CheckStageCaseData create() { + return CheckStageCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName floorId = FieldName.forField("FloorId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code ClientEventCaseData} */ @@ -14301,6 +16268,376 @@ public final class PublicSoldier { } } + /** + * Protobuf type {@code InteractSelectBossAbilityReq} + */ + public static final class InteractSelectBossAbilityReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 AbilityId = 1; + */ + private int abilityId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractSelectBossAbilityReq() { + } + + /** + * @return a new empty instance of {@code InteractSelectBossAbilityReq} + */ + public static InteractSelectBossAbilityReq newInstance() { + return new InteractSelectBossAbilityReq(); + } + + /** + * optional uint32 AbilityId = 1; + * @return whether the abilityId field is set + */ + public boolean hasAbilityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 AbilityId = 1; + * @return this + */ + public InteractSelectBossAbilityReq clearAbilityId() { + bitField0_ &= ~0x00000001; + abilityId = 0; + return this; + } + + /** + * optional uint32 AbilityId = 1; + * @return the abilityId + */ + public int getAbilityId() { + return abilityId; + } + + /** + * optional uint32 AbilityId = 1; + * @param value the abilityId to set + * @return this + */ + public InteractSelectBossAbilityReq setAbilityId(final int value) { + bitField0_ |= 0x00000001; + abilityId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractSelectBossAbilityReq clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractSelectBossAbilityReq addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractSelectBossAbilityReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractSelectBossAbilityReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractSelectBossAbilityReq copyFrom(final InteractSelectBossAbilityReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + abilityId = other.abilityId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSelectBossAbilityReq mergeFrom(final InteractSelectBossAbilityReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAbilityId()) { + setAbilityId(other.abilityId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractSelectBossAbilityReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + abilityId = 0; + nextPackage.clear(); + return this; + } + + @Override + public InteractSelectBossAbilityReq 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 InteractSelectBossAbilityReq)) { + return false; + } + InteractSelectBossAbilityReq other = (InteractSelectBossAbilityReq) o; + return bitField0_ == other.bitField0_ + && (!hasAbilityId() || abilityId == other.abilityId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(abilityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(abilityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractSelectBossAbilityReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // abilityId + abilityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.abilityId, abilityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractSelectBossAbilityReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -632603707: { + if (input.isAtField(FieldNames.abilityId)) { + if (!input.trySkipNullValue()) { + abilityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractSelectBossAbilityReq clone() { + return new InteractSelectBossAbilityReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractSelectBossAbilityReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractSelectBossAbilityReq(), data).checkInitialized(); + } + + public static InteractSelectBossAbilityReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractSelectBossAbilityReq(), input).checkInitialized(); + } + + public static InteractSelectBossAbilityReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractSelectBossAbilityReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractSelectBossAbilityReq messages + */ + public static MessageFactory getFactory() { + return InteractSelectBossAbilityReqFactory.INSTANCE; + } + + private enum InteractSelectBossAbilityReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractSelectBossAbilityReq create() { + return InteractSelectBossAbilityReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName abilityId = FieldName.forField("AbilityId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code InteractShopReq} */ @@ -16233,11 +18570,6 @@ public final class PublicSoldier { public static final class InteractFightReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional .SoldierDeploy Deploy = 1; - */ - private final SoldierDeploy deploy = SoldierDeploy.newInstance(); - /** * optional bytes NextPackage = 2047; */ @@ -16253,69 +18585,12 @@ public final class PublicSoldier { return new InteractFightReq(); } - /** - * optional .SoldierDeploy Deploy = 1; - * @return whether the deploy field is set - */ - public boolean hasDeploy() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * @return this - */ - public InteractFightReq clearDeploy() { - bitField0_ &= ~0x00000001; - deploy.clear(); - return this; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDeploy()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SoldierDeploy getDeploy() { - return deploy; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * - * 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 SoldierDeploy getMutableDeploy() { - bitField0_ |= 0x00000001; - return deploy; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * @param value the deploy to set - * @return this - */ - public InteractFightReq setDeploy(final SoldierDeploy value) { - bitField0_ |= 0x00000001; - deploy.copyFrom(value); - return this; - } - /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -16323,7 +18598,7 @@ public final class PublicSoldier { * @return this */ public InteractFightReq clearNextPackage() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; nextPackage.clear(); return this; } @@ -16352,7 +18627,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return nextPackage; } @@ -16362,7 +18637,7 @@ public final class PublicSoldier { * @return this */ public InteractFightReq addNextPackage(final byte value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; nextPackage.add(value); return this; } @@ -16373,7 +18648,7 @@ public final class PublicSoldier { * @return this */ public InteractFightReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; nextPackage.addAll(values); return this; } @@ -16384,7 +18659,7 @@ public final class PublicSoldier { * @return this */ public InteractFightReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; nextPackage.copyFrom(values); return this; } @@ -16394,7 +18669,6 @@ public final class PublicSoldier { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - deploy.copyFrom(other.deploy); nextPackage.copyFrom(other.nextPackage); } return this; @@ -16406,9 +18680,6 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasDeploy()) { - getMutableDeploy().mergeFrom(other.deploy); - } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -16422,7 +18693,6 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - deploy.clear(); nextPackage.clear(); return this; } @@ -16434,7 +18704,6 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - deploy.clearQuick(); nextPackage.clear(); return this; } @@ -16449,17 +18718,12 @@ public final class PublicSoldier { } InteractFightReq other = (InteractFightReq) o; return bitField0_ == other.bitField0_ - && (!hasDeploy() || deploy.equals(other.deploy)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(deploy); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -16469,9 +18733,6 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(deploy); - } - if ((bitField0_ & 0x00000002) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -16484,19 +18745,10 @@ public final class PublicSoldier { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { - // deploy - input.readMessage(deploy); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16378) { - break; - } - } case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { break; @@ -16520,9 +18772,6 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.deploy, deploy); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -16535,22 +18784,11 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2043501831: { - if (input.isAtField(FieldNames.deploy)) { - if (!input.trySkipNullValue()) { - input.readMessage(deploy); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -16610,8 +18848,6 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName deploy = FieldName.forField("Deploy"); - static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -16642,6 +18878,11 @@ public final class PublicSoldier { */ private boolean defeat; + /** + * optional .Events Events = 5; + */ + private final Public.Events events = Public.Events.newInstance(); + /** * optional .InteractSoldierBattleReq.VictoryData Victory = 13; */ @@ -16815,12 +19056,69 @@ public final class PublicSoldier { return this; } + /** + * optional .Events Events = 5; + * @return whether the events field is set + */ + public boolean hasEvents() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .Events Events = 5; + * @return this + */ + public InteractSoldierBattleReq clearEvents() { + bitField0_ &= ~0x00000010; + events.clear(); + return this; + } + + /** + * optional .Events Events = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEvents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Events getEvents() { + return events; + } + + /** + * optional .Events Events = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.Events getMutableEvents() { + bitField0_ |= 0x00000010; + return events; + } + + /** + * optional .Events Events = 5; + * @param value the events to set + * @return this + */ + public InteractSoldierBattleReq setEvents(final Public.Events value) { + bitField0_ |= 0x00000010; + events.copyFrom(value); + return this; + } + /** * optional .InteractSoldierBattleReq.VictoryData Victory = 13; * @return whether the victory field is set */ public boolean hasVictory() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -16828,7 +19126,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq clearVictory() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; victory.clear(); return this; } @@ -16857,7 +19155,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public VictoryData getMutableVictory() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return victory; } @@ -16867,7 +19165,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq setVictory(final VictoryData value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; victory.copyFrom(value); return this; } @@ -16877,7 +19175,7 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -16885,7 +19183,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq clearNextPackage() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; nextPackage.clear(); return this; } @@ -16914,7 +19212,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return nextPackage; } @@ -16924,7 +19222,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq addNextPackage(final byte value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; nextPackage.add(value); return this; } @@ -16935,7 +19233,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; nextPackage.addAll(values); return this; } @@ -16946,7 +19244,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; nextPackage.copyFrom(values); return this; } @@ -16956,7 +19254,7 @@ public final class PublicSoldier { * @return whether the clientData field is set */ public boolean hasClientData() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -16964,7 +19262,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq clearClientData() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; clientData.clear(); return this; } @@ -16990,7 +19288,7 @@ public final class PublicSoldier { * @return internal {@code Utf8String} representation of clientData for modifications */ public Utf8String getMutableClientDataBytes() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return this.clientData; } @@ -17000,7 +19298,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq setClientData(final CharSequence value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; clientData.copyFrom(value); return this; } @@ -17011,7 +19309,7 @@ public final class PublicSoldier { * @return this */ public InteractSoldierBattleReq setClientData(final Utf8String value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; clientData.copyFrom(value); return this; } @@ -17025,6 +19323,7 @@ public final class PublicSoldier { dataVersion = other.dataVersion; chessSkillAddGold = other.chessSkillAddGold; defeat = other.defeat; + events.copyFrom(other.events); victory.copyFrom(other.victory); nextPackage.copyFrom(other.nextPackage); clientData.copyFrom(other.clientData); @@ -17050,6 +19349,9 @@ public final class PublicSoldier { if (other.hasDefeat()) { setDefeat(other.defeat); } + if (other.hasEvents()) { + getMutableEvents().mergeFrom(other.events); + } if (other.hasVictory()) { getMutableVictory().mergeFrom(other.victory); } @@ -17073,6 +19375,7 @@ public final class PublicSoldier { dataVersion = 0; chessSkillAddGold = 0; defeat = false; + events.clear(); victory.clear(); nextPackage.clear(); clientData.clear(); @@ -17086,6 +19389,7 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; + events.clearQuick(); victory.clearQuick(); nextPackage.clear(); clientData.clear(); @@ -17106,6 +19410,7 @@ public final class PublicSoldier { && (!hasDataVersion() || dataVersion == other.dataVersion) && (!hasChessSkillAddGold() || chessSkillAddGold == other.chessSkillAddGold) && (!hasDefeat() || defeat == other.defeat) + && (!hasEvents() || events.equals(other.events)) && (!hasVictory() || victory.equals(other.victory)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasClientData() || clientData.equals(other.clientData)); @@ -17130,14 +19435,18 @@ public final class PublicSoldier { output.writeBoolNoTag(defeat); } if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(events); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 106); output.writeMessageNoTag(victory); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 18); output.writeStringNoTag(clientData); } @@ -17159,12 +19468,15 @@ public final class PublicSoldier { size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(victory); + size += 1 + ProtoSink.computeMessageSizeNoTag(events); } if ((bitField0_ & 0x00000020) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(victory); } if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(clientData); } return size; @@ -17209,6 +19521,15 @@ public final class PublicSoldier { defeat = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // events + input.readMessage(events); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 106) { break; } @@ -17216,7 +19537,7 @@ public final class PublicSoldier { case 106: { // victory input.readMessage(victory); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 16378) { break; @@ -17225,7 +19546,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 18) { break; @@ -17234,7 +19555,7 @@ public final class PublicSoldier { case 18: { // clientData input.readString(clientData); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 0) { break; @@ -17270,12 +19591,15 @@ public final class PublicSoldier { output.writeBool(FieldNames.defeat, defeat); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.victory, victory); + output.writeMessage(FieldNames.events, events); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.victory, victory); } if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { output.writeString(FieldNames.clientData, clientData); } output.endObject(); @@ -17332,11 +19656,22 @@ public final class PublicSoldier { } break; } + case 2087505209: { + if (input.isAtField(FieldNames.events)) { + if (!input.trySkipNullValue()) { + input.readMessage(events); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case 2116960754: { if (input.isAtField(FieldNames.victory)) { if (!input.trySkipNullValue()) { input.readMessage(victory); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -17347,7 +19682,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -17358,7 +19693,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.clientData)) { if (!input.trySkipNullValue()) { input.readString(clientData); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -17670,6 +20005,8 @@ public final class PublicSoldier { static final FieldName defeat = FieldName.forField("Defeat"); + static final FieldName events = FieldName.forField("Events"); + static final FieldName victory = FieldName.forField("Victory"); static final FieldName nextPackage = FieldName.forField("NextPackage"); @@ -18293,15 +20630,10 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional uint32 Index = 2; + * optional uint32 Index = 1; */ private int index; - /** - * optional bool ThrowDice = 1; - */ - private boolean throwDice; - /** * optional bytes NextPackage = 2047; */ @@ -18318,7 +20650,7 @@ public final class PublicSoldier { } /** - * optional uint32 Index = 2; + * optional uint32 Index = 1; * @return whether the index field is set */ public boolean hasIndex() { @@ -18326,7 +20658,7 @@ public final class PublicSoldier { } /** - * optional uint32 Index = 2; + * optional uint32 Index = 1; * @return this */ public InteractEventSettlementOfDisputeReq clearIndex() { @@ -18336,7 +20668,7 @@ public final class PublicSoldier { } /** - * optional uint32 Index = 2; + * optional uint32 Index = 1; * @return the index */ public int getIndex() { @@ -18344,7 +20676,7 @@ public final class PublicSoldier { } /** - * optional uint32 Index = 2; + * optional uint32 Index = 1; * @param value the index to set * @return this */ @@ -18354,49 +20686,12 @@ public final class PublicSoldier { return this; } - /** - * optional bool ThrowDice = 1; - * @return whether the throwDice field is set - */ - public boolean hasThrowDice() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool ThrowDice = 1; - * @return this - */ - public InteractEventSettlementOfDisputeReq clearThrowDice() { - bitField0_ &= ~0x00000002; - throwDice = false; - return this; - } - - /** - * optional bool ThrowDice = 1; - * @return the throwDice - */ - public boolean getThrowDice() { - return throwDice; - } - - /** - * optional bool ThrowDice = 1; - * @param value the throwDice to set - * @return this - */ - public InteractEventSettlementOfDisputeReq setThrowDice(final boolean value) { - bitField0_ |= 0x00000002; - throwDice = value; - return this; - } - /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -18404,7 +20699,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeReq clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; nextPackage.clear(); return this; } @@ -18433,7 +20728,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return nextPackage; } @@ -18443,7 +20738,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeReq addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; nextPackage.add(value); return this; } @@ -18454,7 +20749,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; nextPackage.addAll(values); return this; } @@ -18465,7 +20760,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; nextPackage.copyFrom(values); return this; } @@ -18477,7 +20772,6 @@ public final class PublicSoldier { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; index = other.index; - throwDice = other.throwDice; nextPackage.copyFrom(other.nextPackage); } return this; @@ -18493,9 +20787,6 @@ public final class PublicSoldier { if (other.hasIndex()) { setIndex(other.index); } - if (other.hasThrowDice()) { - setThrowDice(other.throwDice); - } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -18510,7 +20801,6 @@ public final class PublicSoldier { cachedSize = -1; bitField0_ = 0; index = 0; - throwDice = false; nextPackage.clear(); return this; } @@ -18537,21 +20827,16 @@ public final class PublicSoldier { InteractEventSettlementOfDisputeReq other = (InteractEventSettlementOfDisputeReq) o; return bitField0_ == other.bitField0_ && (!hasIndex() || index == other.index) - && (!hasThrowDice() || throwDice == other.throwDice) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(throwDice); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -18564,9 +20849,6 @@ public final class PublicSoldier { size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -18580,20 +20862,11 @@ public final class PublicSoldier { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 8: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // throwDice - throwDice = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 16378) { break; } @@ -18601,7 +20874,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { break; @@ -18628,9 +20901,6 @@ public final class PublicSoldier { output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.throwDice, throwDice); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -18655,22 +20925,11 @@ public final class PublicSoldier { } break; } - case 747398029: { - if (input.isAtField(FieldNames.throwDice)) { - if (!input.trySkipNullValue()) { - throwDice = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -18734,1386 +20993,6 @@ public final class PublicSoldier { static class FieldNames { static final FieldName index = FieldName.forField("Index"); - static final FieldName throwDice = FieldName.forField("ThrowDice"); - - static final FieldName nextPackage = FieldName.forField("NextPackage"); - } - } - - /** - * Protobuf type {@code InteractEventSettlementOfDisputeResp} - */ - public static final class InteractEventSettlementOfDisputeResp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; - */ - private final ThrowResult result = ThrowResult.newInstance(); - - /** - * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; - */ - private final ChooseReward reward = ChooseReward.newInstance(); - - /** - * optional bytes NextPackage = 2047; - */ - private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - - private InteractEventSettlementOfDisputeResp() { - } - - /** - * @return a new empty instance of {@code InteractEventSettlementOfDisputeResp} - */ - public static InteractEventSettlementOfDisputeResp newInstance() { - return new InteractEventSettlementOfDisputeResp(); - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; - * @return whether the result field is set - */ - public boolean hasResult() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; - * @return this - */ - public InteractEventSettlementOfDisputeResp clearResult() { - bitField0_ &= ~0x00000001; - result.clear(); - return this; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; - * - * 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 #getMutableResult()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ThrowResult getResult() { - return result; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; - * - * 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 ThrowResult getMutableResult() { - bitField0_ |= 0x00000001; - return result; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ThrowResult Result = 1; - * @param value the result to set - * @return this - */ - public InteractEventSettlementOfDisputeResp setResult(final ThrowResult value) { - bitField0_ |= 0x00000001; - result.copyFrom(value); - return this; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; - * @return whether the reward field is set - */ - public boolean hasReward() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; - * @return this - */ - public InteractEventSettlementOfDisputeResp clearReward() { - bitField0_ &= ~0x00000002; - reward.clear(); - return this; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; - * - * 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 #getMutableReward()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChooseReward getReward() { - return reward; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; - * - * 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 ChooseReward getMutableReward() { - bitField0_ |= 0x00000002; - return reward; - } - - /** - * optional .InteractEventSettlementOfDisputeResp.ChooseReward Reward = 2; - * @param value the reward to set - * @return this - */ - public InteractEventSettlementOfDisputeResp setReward(final ChooseReward value) { - bitField0_ |= 0x00000002; - reward.copyFrom(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @return whether the nextPackage field is set - */ - public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bytes NextPackage = 2047; - * @return this - */ - public InteractEventSettlementOfDisputeResp clearNextPackage() { - bitField0_ &= ~0x00000004; - nextPackage.clear(); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * @param value the nextPackage to add - * @return this - */ - public InteractEventSettlementOfDisputeResp addNextPackage(final byte value) { - bitField0_ |= 0x00000004; - nextPackage.add(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to add - * @return this - */ - public InteractEventSettlementOfDisputeResp addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; - nextPackage.addAll(values); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to set - * @return this - */ - public InteractEventSettlementOfDisputeResp setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; - nextPackage.copyFrom(values); - return this; - } - - @Override - public InteractEventSettlementOfDisputeResp copyFrom( - final InteractEventSettlementOfDisputeResp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - result.copyFrom(other.result); - reward.copyFrom(other.reward); - nextPackage.copyFrom(other.nextPackage); - } - return this; - } - - @Override - public InteractEventSettlementOfDisputeResp mergeFrom( - final InteractEventSettlementOfDisputeResp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasResult()) { - getMutableResult().mergeFrom(other.result); - } - if (other.hasReward()) { - getMutableReward().mergeFrom(other.reward); - } - if (other.hasNextPackage()) { - getMutableNextPackage().copyFrom(other.nextPackage); - } - return this; - } - - @Override - public InteractEventSettlementOfDisputeResp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - result.clear(); - reward.clear(); - nextPackage.clear(); - return this; - } - - @Override - public InteractEventSettlementOfDisputeResp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - result.clearQuick(); - reward.clearQuick(); - nextPackage.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof InteractEventSettlementOfDisputeResp)) { - return false; - } - InteractEventSettlementOfDisputeResp other = (InteractEventSettlementOfDisputeResp) o; - return bitField0_ == other.bitField0_ - && (!hasResult() || result.equals(other.result)) - && (!hasReward() || reward.equals(other.reward)) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(result); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(reward); - } - 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.computeMessageSizeNoTag(result); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(reward); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public InteractEventSettlementOfDisputeResp mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 10: { - // result - input.readMessage(result); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // reward - input.readMessage(reward); - 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.writeMessage(FieldNames.result, result); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.reward, reward); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); - } - output.endObject(); - } - - @Override - public InteractEventSettlementOfDisputeResp mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1850559427: { - if (input.isAtField(FieldNames.result)) { - if (!input.trySkipNullValue()) { - input.readMessage(result); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1850459313: { - if (input.isAtField(FieldNames.reward)) { - if (!input.trySkipNullValue()) { - input.readMessage(reward); - 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 InteractEventSettlementOfDisputeResp clone() { - return new InteractEventSettlementOfDisputeResp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static InteractEventSettlementOfDisputeResp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeResp(), data).checkInitialized(); - } - - public static InteractEventSettlementOfDisputeResp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeResp(), input).checkInitialized(); - } - - public static InteractEventSettlementOfDisputeResp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new InteractEventSettlementOfDisputeResp(), input).checkInitialized(); - } - - /** - * @return factory for creating InteractEventSettlementOfDisputeResp messages - */ - public static MessageFactory getFactory() { - return InteractEventSettlementOfDisputeRespFactory.INSTANCE; - } - - /** - * Protobuf type {@code ThrowResult} - */ - public static final class ThrowResult extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 Point = 1; - */ - private int point; - - /** - * repeated uint32 TwoDicePoint = 2; - */ - private final RepeatedInt twoDicePoint = RepeatedInt.newEmptyInstance(); - - private ThrowResult() { - } - - /** - * @return a new empty instance of {@code ThrowResult} - */ - public static ThrowResult newInstance() { - return new ThrowResult(); - } - - /** - * optional uint32 Point = 1; - * @return whether the point field is set - */ - public boolean hasPoint() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 Point = 1; - * @return this - */ - public ThrowResult clearPoint() { - bitField0_ &= ~0x00000001; - point = 0; - return this; - } - - /** - * optional uint32 Point = 1; - * @return the point - */ - public int getPoint() { - return point; - } - - /** - * optional uint32 Point = 1; - * @param value the point to set - * @return this - */ - public ThrowResult setPoint(final int value) { - bitField0_ |= 0x00000001; - point = value; - return this; - } - - /** - * repeated uint32 TwoDicePoint = 2; - * @return whether the twoDicePoint field is set - */ - public boolean hasTwoDicePoint() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated uint32 TwoDicePoint = 2; - * @return this - */ - public ThrowResult clearTwoDicePoint() { - bitField0_ &= ~0x00000002; - twoDicePoint.clear(); - return this; - } - - /** - * repeated uint32 TwoDicePoint = 2; - * - * 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 #getMutableTwoDicePoint()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getTwoDicePoint() { - return twoDicePoint; - } - - /** - * repeated uint32 TwoDicePoint = 2; - * - * 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 getMutableTwoDicePoint() { - bitField0_ |= 0x00000002; - return twoDicePoint; - } - - /** - * repeated uint32 TwoDicePoint = 2; - * @param value the twoDicePoint to add - * @return this - */ - public ThrowResult addTwoDicePoint(final int value) { - bitField0_ |= 0x00000002; - twoDicePoint.add(value); - return this; - } - - /** - * repeated uint32 TwoDicePoint = 2; - * @param values the twoDicePoint to add - * @return this - */ - public ThrowResult addAllTwoDicePoint(final int... values) { - bitField0_ |= 0x00000002; - twoDicePoint.addAll(values); - return this; - } - - @Override - public ThrowResult copyFrom(final ThrowResult other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - point = other.point; - twoDicePoint.copyFrom(other.twoDicePoint); - } - return this; - } - - @Override - public ThrowResult mergeFrom(final ThrowResult other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasPoint()) { - setPoint(other.point); - } - if (other.hasTwoDicePoint()) { - getMutableTwoDicePoint().addAll(other.twoDicePoint); - } - return this; - } - - @Override - public ThrowResult clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - point = 0; - twoDicePoint.clear(); - return this; - } - - @Override - public ThrowResult clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - twoDicePoint.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ThrowResult)) { - return false; - } - ThrowResult other = (ThrowResult) o; - return bitField0_ == other.bitField0_ - && (!hasPoint() || point == other.point) - && (!hasTwoDicePoint() || twoDicePoint.equals(other.twoDicePoint)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(point); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < twoDicePoint.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(twoDicePoint.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(point); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * twoDicePoint.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(twoDicePoint); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ThrowResult mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // point - point = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // twoDicePoint [packed=true] - input.readPackedUInt32(twoDicePoint, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 16: { - // twoDicePoint [packed=false] - tag = input.readRepeatedUInt32(twoDicePoint, tag); - bitField0_ |= 0x00000002; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.point, point); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.twoDicePoint, twoDicePoint); - } - output.endObject(); - } - - @Override - public ThrowResult mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 77292912: { - if (input.isAtField(FieldNames.point)) { - if (!input.trySkipNullValue()) { - point = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -872935075: { - if (input.isAtField(FieldNames.twoDicePoint)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(twoDicePoint); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ThrowResult clone() { - return new ThrowResult().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ThrowResult parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ThrowResult(), data).checkInitialized(); - } - - public static ThrowResult parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ThrowResult(), input).checkInitialized(); - } - - public static ThrowResult parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ThrowResult(), input).checkInitialized(); - } - - /** - * @return factory for creating ThrowResult messages - */ - public static MessageFactory getFactory() { - return ThrowResultFactory.INSTANCE; - } - - private enum ThrowResultFactory implements MessageFactory { - INSTANCE; - - @Override - public ThrowResult create() { - return ThrowResult.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName point = FieldName.forField("Point"); - - static final FieldName twoDicePoint = FieldName.forField("TwoDicePoint"); - } - } - - /** - * Protobuf type {@code ChooseReward} - */ - public static final class ChooseReward extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 Coin = 1; - */ - private int coin; - - /** - * optional uint32 BaseReward = 3; - */ - private int baseReward; - - /** - * optional uint32 Interest = 4; - */ - private int interest; - - /** - * repeated .SoldierChess Chess = 2; - */ - private final RepeatedMessage chess = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); - - private ChooseReward() { - } - - /** - * @return a new empty instance of {@code ChooseReward} - */ - public static ChooseReward newInstance() { - return new ChooseReward(); - } - - /** - * optional uint32 Coin = 1; - * @return whether the coin field is set - */ - public boolean hasCoin() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 Coin = 1; - * @return this - */ - public ChooseReward clearCoin() { - bitField0_ &= ~0x00000001; - coin = 0; - return this; - } - - /** - * optional uint32 Coin = 1; - * @return the coin - */ - public int getCoin() { - return coin; - } - - /** - * optional uint32 Coin = 1; - * @param value the coin to set - * @return this - */ - public ChooseReward setCoin(final int value) { - bitField0_ |= 0x00000001; - coin = value; - return this; - } - - /** - * optional uint32 BaseReward = 3; - * @return whether the baseReward field is set - */ - public boolean hasBaseReward() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 BaseReward = 3; - * @return this - */ - public ChooseReward clearBaseReward() { - bitField0_ &= ~0x00000002; - baseReward = 0; - return this; - } - - /** - * optional uint32 BaseReward = 3; - * @return the baseReward - */ - public int getBaseReward() { - return baseReward; - } - - /** - * optional uint32 BaseReward = 3; - * @param value the baseReward to set - * @return this - */ - public ChooseReward setBaseReward(final int value) { - bitField0_ |= 0x00000002; - baseReward = value; - return this; - } - - /** - * optional uint32 Interest = 4; - * @return whether the interest field is set - */ - public boolean hasInterest() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 Interest = 4; - * @return this - */ - public ChooseReward clearInterest() { - bitField0_ &= ~0x00000004; - interest = 0; - return this; - } - - /** - * optional uint32 Interest = 4; - * @return the interest - */ - public int getInterest() { - return interest; - } - - /** - * optional uint32 Interest = 4; - * @param value the interest to set - * @return this - */ - public ChooseReward setInterest(final int value) { - bitField0_ |= 0x00000004; - interest = value; - return this; - } - - /** - * repeated .SoldierChess Chess = 2; - * @return whether the chess field is set - */ - public boolean hasChess() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .SoldierChess Chess = 2; - * @return this - */ - public ChooseReward clearChess() { - bitField0_ &= ~0x00000008; - chess.clear(); - return this; - } - - /** - * repeated .SoldierChess Chess = 2; - * - * 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 #getMutableChess()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getChess() { - return chess; - } - - /** - * repeated .SoldierChess Chess = 2; - * - * 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 getMutableChess() { - bitField0_ |= 0x00000008; - return chess; - } - - /** - * repeated .SoldierChess Chess = 2; - * @param value the chess to add - * @return this - */ - public ChooseReward addChess(final SoldierChess value) { - bitField0_ |= 0x00000008; - chess.add(value); - return this; - } - - /** - * repeated .SoldierChess Chess = 2; - * @param values the chess to add - * @return this - */ - public ChooseReward addAllChess(final SoldierChess... values) { - bitField0_ |= 0x00000008; - chess.addAll(values); - return this; - } - - @Override - public ChooseReward copyFrom(final ChooseReward other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - coin = other.coin; - baseReward = other.baseReward; - interest = other.interest; - chess.copyFrom(other.chess); - } - return this; - } - - @Override - public ChooseReward mergeFrom(final ChooseReward other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasCoin()) { - setCoin(other.coin); - } - if (other.hasBaseReward()) { - setBaseReward(other.baseReward); - } - if (other.hasInterest()) { - setInterest(other.interest); - } - if (other.hasChess()) { - getMutableChess().addAll(other.chess); - } - return this; - } - - @Override - public ChooseReward clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - coin = 0; - baseReward = 0; - interest = 0; - chess.clear(); - return this; - } - - @Override - public ChooseReward clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - chess.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChooseReward)) { - return false; - } - ChooseReward other = (ChooseReward) o; - return bitField0_ == other.bitField0_ - && (!hasCoin() || coin == other.coin) - && (!hasBaseReward() || baseReward == other.baseReward) - && (!hasInterest() || interest == other.interest) - && (!hasChess() || chess.equals(other.chess)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(coin); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(baseReward); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(interest); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < chess.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(chess.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(coin); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseReward); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(interest); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChooseReward mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // coin - coin = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // baseReward - baseReward = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // interest - interest = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // chess - tag = input.readRepeatedMessage(chess, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.coin, coin); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseReward, baseReward); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.interest, interest); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.chess, chess); - } - output.endObject(); - } - - @Override - public ChooseReward mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 2106033: { - if (input.isAtField(FieldNames.coin)) { - if (!input.trySkipNullValue()) { - coin = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1133378944: { - if (input.isAtField(FieldNames.baseReward)) { - if (!input.trySkipNullValue()) { - baseReward = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 635046730: { - if (input.isAtField(FieldNames.interest)) { - if (!input.trySkipNullValue()) { - interest = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 65074912: { - if (input.isAtField(FieldNames.chess)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(chess); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChooseReward clone() { - return new ChooseReward().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChooseReward parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChooseReward(), data).checkInitialized(); - } - - public static ChooseReward parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChooseReward(), input).checkInitialized(); - } - - public static ChooseReward parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChooseReward(), input).checkInitialized(); - } - - /** - * @return factory for creating ChooseReward messages - */ - public static MessageFactory getFactory() { - return ChooseRewardFactory.INSTANCE; - } - - private enum ChooseRewardFactory implements MessageFactory { - INSTANCE; - - @Override - public ChooseReward create() { - return ChooseReward.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName coin = FieldName.forField("Coin"); - - static final FieldName baseReward = FieldName.forField("BaseReward"); - - static final FieldName interest = FieldName.forField("Interest"); - - static final FieldName chess = FieldName.forField("Chess"); - } - } - - private enum InteractEventSettlementOfDisputeRespFactory implements MessageFactory { - INSTANCE; - - @Override - public InteractEventSettlementOfDisputeResp create() { - return InteractEventSettlementOfDisputeResp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName result = FieldName.forField("Result"); - - static final FieldName reward = FieldName.forField("Reward"); - static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -20144,6 +21023,11 @@ public final class PublicSoldier { */ private boolean defeat; + /** + * optional .Events Events = 5; + */ + private final Public.Events events = Public.Events.newInstance(); + /** * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; */ @@ -20317,12 +21201,69 @@ public final class PublicSoldier { return this; } + /** + * optional .Events Events = 5; + * @return whether the events field is set + */ + public boolean hasEvents() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .Events Events = 5; + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq clearEvents() { + bitField0_ &= ~0x00000010; + events.clear(); + return this; + } + + /** + * optional .Events Events = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEvents()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Events getEvents() { + return events; + } + + /** + * optional .Events Events = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.Events getMutableEvents() { + bitField0_ |= 0x00000010; + return events; + } + + /** + * optional .Events Events = 5; + * @param value the events to set + * @return this + */ + public InteractEventSettlementOfDisputeBattleReq setEvents(final Public.Events value) { + bitField0_ |= 0x00000010; + events.copyFrom(value); + return this; + } + /** * optional .InteractEventSettlementOfDisputeBattleReq.VictoryData Victory = 13; * @return whether the victory field is set */ public boolean hasVictory() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -20330,7 +21271,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq clearVictory() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; victory.clear(); return this; } @@ -20359,7 +21300,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public VictoryData getMutableVictory() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return victory; } @@ -20369,7 +21310,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq setVictory(final VictoryData value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; victory.copyFrom(value); return this; } @@ -20379,7 +21320,7 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -20387,7 +21328,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq clearNextPackage() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; nextPackage.clear(); return this; } @@ -20416,7 +21357,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return nextPackage; } @@ -20426,7 +21367,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq addNextPackage(final byte value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; nextPackage.add(value); return this; } @@ -20437,7 +21378,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; nextPackage.addAll(values); return this; } @@ -20448,7 +21389,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; nextPackage.copyFrom(values); return this; } @@ -20458,7 +21399,7 @@ public final class PublicSoldier { * @return whether the clientData field is set */ public boolean hasClientData() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -20466,7 +21407,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq clearClientData() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; clientData.clear(); return this; } @@ -20492,7 +21433,7 @@ public final class PublicSoldier { * @return internal {@code Utf8String} representation of clientData for modifications */ public Utf8String getMutableClientDataBytes() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return this.clientData; } @@ -20502,7 +21443,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq setClientData(final CharSequence value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; clientData.copyFrom(value); return this; } @@ -20513,7 +21454,7 @@ public final class PublicSoldier { * @return this */ public InteractEventSettlementOfDisputeBattleReq setClientData(final Utf8String value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; clientData.copyFrom(value); return this; } @@ -20528,6 +21469,7 @@ public final class PublicSoldier { dataVersion = other.dataVersion; chessSkillAddGold = other.chessSkillAddGold; defeat = other.defeat; + events.copyFrom(other.events); victory.copyFrom(other.victory); nextPackage.copyFrom(other.nextPackage); clientData.copyFrom(other.clientData); @@ -20554,6 +21496,9 @@ public final class PublicSoldier { if (other.hasDefeat()) { setDefeat(other.defeat); } + if (other.hasEvents()) { + getMutableEvents().mergeFrom(other.events); + } if (other.hasVictory()) { getMutableVictory().mergeFrom(other.victory); } @@ -20577,6 +21522,7 @@ public final class PublicSoldier { dataVersion = 0; chessSkillAddGold = 0; defeat = false; + events.clear(); victory.clear(); nextPackage.clear(); clientData.clear(); @@ -20590,6 +21536,7 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; + events.clearQuick(); victory.clearQuick(); nextPackage.clear(); clientData.clear(); @@ -20610,6 +21557,7 @@ public final class PublicSoldier { && (!hasDataVersion() || dataVersion == other.dataVersion) && (!hasChessSkillAddGold() || chessSkillAddGold == other.chessSkillAddGold) && (!hasDefeat() || defeat == other.defeat) + && (!hasEvents() || events.equals(other.events)) && (!hasVictory() || victory.equals(other.victory)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasClientData() || clientData.equals(other.clientData)); @@ -20634,14 +21582,18 @@ public final class PublicSoldier { output.writeBoolNoTag(defeat); } if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(events); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 106); output.writeMessageNoTag(victory); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 18); output.writeStringNoTag(clientData); } @@ -20663,12 +21615,15 @@ public final class PublicSoldier { size += 2; } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(victory); + size += 1 + ProtoSink.computeMessageSizeNoTag(events); } if ((bitField0_ & 0x00000020) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(victory); } if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(clientData); } return size; @@ -20714,6 +21669,15 @@ public final class PublicSoldier { defeat = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // events + input.readMessage(events); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 106) { break; } @@ -20721,7 +21685,7 @@ public final class PublicSoldier { case 106: { // victory input.readMessage(victory); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 16378) { break; @@ -20730,7 +21694,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 18) { break; @@ -20739,7 +21703,7 @@ public final class PublicSoldier { case 18: { // clientData input.readString(clientData); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 0) { break; @@ -20775,12 +21739,15 @@ public final class PublicSoldier { output.writeBool(FieldNames.defeat, defeat); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.victory, victory); + output.writeMessage(FieldNames.events, events); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.victory, victory); } if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { output.writeString(FieldNames.clientData, clientData); } output.endObject(); @@ -20838,11 +21805,22 @@ public final class PublicSoldier { } break; } + case 2087505209: { + if (input.isAtField(FieldNames.events)) { + if (!input.trySkipNullValue()) { + input.readMessage(events); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case 2116960754: { if (input.isAtField(FieldNames.victory)) { if (!input.trySkipNullValue()) { input.readMessage(victory); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -20853,7 +21831,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -20864,7 +21842,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.clientData)) { if (!input.trySkipNullValue()) { input.readString(clientData); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -21178,6 +22156,8 @@ public final class PublicSoldier { static final FieldName defeat = FieldName.forField("Defeat"); + static final FieldName events = FieldName.forField("Events"); + static final FieldName victory = FieldName.forField("Victory"); static final FieldName nextPackage = FieldName.forField("NextPackage"); @@ -22757,12 +23737,7 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional uint32 Typ = 1; - */ - private int typ; - - /** - * optional uint32 Id = 2; + * optional uint32 Id = 1; */ private int id; @@ -22777,62 +23752,25 @@ public final class PublicSoldier { } /** - * optional uint32 Typ = 1; - * @return whether the typ field is set + * optional uint32 Id = 1; + * @return whether the id field is set */ - public boolean hasTyp() { + public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 Typ = 1; - * @return this - */ - public Success clearTyp() { - bitField0_ &= ~0x00000001; - typ = 0; - return this; - } - - /** - * optional uint32 Typ = 1; - * @return the typ - */ - public int getTyp() { - return typ; - } - - /** - * optional uint32 Typ = 1; - * @param value the typ to set - * @return this - */ - public Success setTyp(final int value) { - bitField0_ |= 0x00000001; - typ = value; - return this; - } - - /** - * optional uint32 Id = 2; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 Id = 2; + * optional uint32 Id = 1; * @return this */ public Success clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } /** - * optional uint32 Id = 2; + * optional uint32 Id = 1; * @return the id */ public int getId() { @@ -22840,12 +23778,12 @@ public final class PublicSoldier { } /** - * optional uint32 Id = 2; + * optional uint32 Id = 1; * @param value the id to set * @return this */ public Success setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } @@ -22855,7 +23793,6 @@ public final class PublicSoldier { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - typ = other.typ; id = other.id; } return this; @@ -22867,9 +23804,6 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasTyp()) { - setTyp(other.typ); - } if (other.hasId()) { setId(other.id); } @@ -22883,7 +23817,6 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - typ = 0; id = 0; return this; } @@ -22908,7 +23841,6 @@ public final class PublicSoldier { } Success other = (Success) o; return bitField0_ == other.bitField0_ - && (!hasTyp() || typ == other.typ) && (!hasId() || id == other.id); } @@ -22916,10 +23848,6 @@ public final class PublicSoldier { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(typ); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); output.writeUInt32NoTag(id); } } @@ -22928,9 +23856,6 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(typ); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } return size; @@ -22944,18 +23869,9 @@ public final class PublicSoldier { while (true) { switch (tag) { case 8: { - // typ - typ = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { break; @@ -22979,9 +23895,6 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.typ, typ); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.id, id); } output.endObject(); @@ -22994,22 +23907,11 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 84587: { - if (input.isAtField(FieldNames.typ)) { - if (!input.trySkipNullValue()) { - typ = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 2363: { if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -23068,8 +23970,6 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName typ = FieldName.forField("Typ"); - static final FieldName id = FieldName.forField("Id"); } } @@ -23095,6 +23995,905 @@ public final class PublicSoldier { } } + /** + * Protobuf type {@code InteractCheckStageSettleReq} + */ + public static final class InteractCheckStageSettleReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DpsId = 1; + */ + private int dpsId; + + /** + * optional uint32 TimeId = 2; + */ + private int timeId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractCheckStageSettleReq() { + } + + /** + * @return a new empty instance of {@code InteractCheckStageSettleReq} + */ + public static InteractCheckStageSettleReq newInstance() { + return new InteractCheckStageSettleReq(); + } + + /** + * optional uint32 DpsId = 1; + * @return whether the dpsId field is set + */ + public boolean hasDpsId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DpsId = 1; + * @return this + */ + public InteractCheckStageSettleReq clearDpsId() { + bitField0_ &= ~0x00000001; + dpsId = 0; + return this; + } + + /** + * optional uint32 DpsId = 1; + * @return the dpsId + */ + public int getDpsId() { + return dpsId; + } + + /** + * optional uint32 DpsId = 1; + * @param value the dpsId to set + * @return this + */ + public InteractCheckStageSettleReq setDpsId(final int value) { + bitField0_ |= 0x00000001; + dpsId = value; + return this; + } + + /** + * optional uint32 TimeId = 2; + * @return whether the timeId field is set + */ + public boolean hasTimeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 TimeId = 2; + * @return this + */ + public InteractCheckStageSettleReq clearTimeId() { + bitField0_ &= ~0x00000002; + timeId = 0; + return this; + } + + /** + * optional uint32 TimeId = 2; + * @return the timeId + */ + public int getTimeId() { + return timeId; + } + + /** + * optional uint32 TimeId = 2; + * @param value the timeId to set + * @return this + */ + public InteractCheckStageSettleReq setTimeId(final int value) { + bitField0_ |= 0x00000002; + timeId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractCheckStageSettleReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractCheckStageSettleReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractCheckStageSettleReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractCheckStageSettleReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractCheckStageSettleReq copyFrom(final InteractCheckStageSettleReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dpsId = other.dpsId; + timeId = other.timeId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractCheckStageSettleReq mergeFrom(final InteractCheckStageSettleReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDpsId()) { + setDpsId(other.dpsId); + } + if (other.hasTimeId()) { + setTimeId(other.timeId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractCheckStageSettleReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dpsId = 0; + timeId = 0; + nextPackage.clear(); + return this; + } + + @Override + public InteractCheckStageSettleReq 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 InteractCheckStageSettleReq)) { + return false; + } + InteractCheckStageSettleReq other = (InteractCheckStageSettleReq) o; + return bitField0_ == other.bitField0_ + && (!hasDpsId() || dpsId == other.dpsId) + && (!hasTimeId() || timeId == other.timeId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dpsId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(timeId); + } + 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(dpsId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(timeId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractCheckStageSettleReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dpsId + dpsId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // timeId + timeId = 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.dpsId, dpsId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.timeId, timeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractCheckStageSettleReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 66248898: { + if (input.isAtField(FieldNames.dpsId)) { + if (!input.trySkipNullValue()) { + dpsId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1789802264: { + if (input.isAtField(FieldNames.timeId)) { + if (!input.trySkipNullValue()) { + timeId = 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 InteractCheckStageSettleReq clone() { + return new InteractCheckStageSettleReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractCheckStageSettleReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractCheckStageSettleReq(), data).checkInitialized(); + } + + public static InteractCheckStageSettleReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractCheckStageSettleReq(), input).checkInitialized(); + } + + public static InteractCheckStageSettleReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractCheckStageSettleReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractCheckStageSettleReq messages + */ + public static MessageFactory getFactory() { + return InteractCheckStageSettleReqFactory.INSTANCE; + } + + private enum InteractCheckStageSettleReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractCheckStageSettleReq create() { + return InteractCheckStageSettleReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dpsId = FieldName.forField("DpsId"); + + static final FieldName timeId = FieldName.forField("TimeId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractCheckStageSettleResp} + */ + public static final class InteractCheckStageSettleResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DpsScore = 1; + */ + private int dpsScore; + + /** + * optional uint32 TimeScore = 2; + */ + private int timeScore; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractCheckStageSettleResp() { + } + + /** + * @return a new empty instance of {@code InteractCheckStageSettleResp} + */ + public static InteractCheckStageSettleResp newInstance() { + return new InteractCheckStageSettleResp(); + } + + /** + * optional uint32 DpsScore = 1; + * @return whether the dpsScore field is set + */ + public boolean hasDpsScore() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DpsScore = 1; + * @return this + */ + public InteractCheckStageSettleResp clearDpsScore() { + bitField0_ &= ~0x00000001; + dpsScore = 0; + return this; + } + + /** + * optional uint32 DpsScore = 1; + * @return the dpsScore + */ + public int getDpsScore() { + return dpsScore; + } + + /** + * optional uint32 DpsScore = 1; + * @param value the dpsScore to set + * @return this + */ + public InteractCheckStageSettleResp setDpsScore(final int value) { + bitField0_ |= 0x00000001; + dpsScore = value; + return this; + } + + /** + * optional uint32 TimeScore = 2; + * @return whether the timeScore field is set + */ + public boolean hasTimeScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 TimeScore = 2; + * @return this + */ + public InteractCheckStageSettleResp clearTimeScore() { + bitField0_ &= ~0x00000002; + timeScore = 0; + return this; + } + + /** + * optional uint32 TimeScore = 2; + * @return the timeScore + */ + public int getTimeScore() { + return timeScore; + } + + /** + * optional uint32 TimeScore = 2; + * @param value the timeScore to set + * @return this + */ + public InteractCheckStageSettleResp setTimeScore(final int value) { + bitField0_ |= 0x00000002; + timeScore = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractCheckStageSettleResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractCheckStageSettleResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractCheckStageSettleResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractCheckStageSettleResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractCheckStageSettleResp copyFrom(final InteractCheckStageSettleResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dpsScore = other.dpsScore; + timeScore = other.timeScore; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractCheckStageSettleResp mergeFrom(final InteractCheckStageSettleResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDpsScore()) { + setDpsScore(other.dpsScore); + } + if (other.hasTimeScore()) { + setTimeScore(other.timeScore); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractCheckStageSettleResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dpsScore = 0; + timeScore = 0; + nextPackage.clear(); + return this; + } + + @Override + public InteractCheckStageSettleResp 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 InteractCheckStageSettleResp)) { + return false; + } + InteractCheckStageSettleResp other = (InteractCheckStageSettleResp) o; + return bitField0_ == other.bitField0_ + && (!hasDpsScore() || dpsScore == other.dpsScore) + && (!hasTimeScore() || timeScore == other.timeScore) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dpsScore); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(timeScore); + } + 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(dpsScore); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(timeScore); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractCheckStageSettleResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dpsScore + dpsScore = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // timeScore + timeScore = 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.dpsScore, dpsScore); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.timeScore, timeScore); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractCheckStageSettleResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2054720117: { + if (input.isAtField(FieldNames.dpsScore)) { + if (!input.trySkipNullValue()) { + dpsScore = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2029048741: { + if (input.isAtField(FieldNames.timeScore)) { + if (!input.trySkipNullValue()) { + timeScore = 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 InteractCheckStageSettleResp clone() { + return new InteractCheckStageSettleResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractCheckStageSettleResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractCheckStageSettleResp(), data).checkInitialized(); + } + + public static InteractCheckStageSettleResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractCheckStageSettleResp(), input).checkInitialized(); + } + + public static InteractCheckStageSettleResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractCheckStageSettleResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractCheckStageSettleResp messages + */ + public static MessageFactory getFactory() { + return InteractCheckStageSettleRespFactory.INSTANCE; + } + + private enum InteractCheckStageSettleRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractCheckStageSettleResp create() { + return InteractCheckStageSettleResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dpsScore = FieldName.forField("DpsScore"); + + static final FieldName timeScore = FieldName.forField("TimeScore"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code InteractClientEventReq} */ @@ -23659,20 +25458,75 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional uint32 TotalScore = 1; - */ - private int totalScore; - - /** - * optional uint32 RewardScore = 2; - */ - private int rewardScore; - - /** - * optional uint32 Result = 3; + * optional uint32 Result = 1; */ private int result; + /** + * optional uint32 PassedNode = 2; + */ + private int passedNode; + + /** + * optional uint32 RemainingHp = 3; + */ + private int remainingHp; + + /** + * optional uint32 CheckStageDps = 4; + */ + private int checkStageDps; + + /** + * optional uint32 CheckStageTime = 5; + */ + private int checkStageTime; + + /** + * optional uint32 ChessTotalCost = 6; + */ + private int chessTotalCost; + + /** + * optional uint32 GetSchedule = 7; + */ + private int getSchedule; + + /** + * optional uint32 GetTechPoint = 8; + */ + private int getTechPoint; + + /** + * optional uint32 GetGradeExp = 9; + */ + private int getGradeExp; + + /** + * optional uint32 CurGradeChallengeId = 10; + */ + private int curGradeChallengeId; + + /** + * optional uint32 CurGradeExp = 11; + */ + private int curGradeExp; + + /** + * optional uint32 EndingId = 12; + */ + private int endingId; + + /** + * optional uint32 TotalCoinQty = 13; + */ + private int totalCoinQty; + + /** + * optional .ChangeInfo Change = 15; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -23689,99 +25543,25 @@ public final class PublicSoldier { } /** - * optional uint32 TotalScore = 1; - * @return whether the totalScore field is set + * optional uint32 Result = 1; + * @return whether the result field is set */ - public boolean hasTotalScore() { + public boolean hasResult() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 TotalScore = 1; - * @return this - */ - public SoldierSettleDataResp clearTotalScore() { - bitField0_ &= ~0x00000001; - totalScore = 0; - return this; - } - - /** - * optional uint32 TotalScore = 1; - * @return the totalScore - */ - public int getTotalScore() { - return totalScore; - } - - /** - * optional uint32 TotalScore = 1; - * @param value the totalScore to set - * @return this - */ - public SoldierSettleDataResp setTotalScore(final int value) { - bitField0_ |= 0x00000001; - totalScore = value; - return this; - } - - /** - * optional uint32 RewardScore = 2; - * @return whether the rewardScore field is set - */ - public boolean hasRewardScore() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 RewardScore = 2; - * @return this - */ - public SoldierSettleDataResp clearRewardScore() { - bitField0_ &= ~0x00000002; - rewardScore = 0; - return this; - } - - /** - * optional uint32 RewardScore = 2; - * @return the rewardScore - */ - public int getRewardScore() { - return rewardScore; - } - - /** - * optional uint32 RewardScore = 2; - * @param value the rewardScore to set - * @return this - */ - public SoldierSettleDataResp setRewardScore(final int value) { - bitField0_ |= 0x00000002; - rewardScore = value; - return this; - } - - /** - * optional uint32 Result = 3; - * @return whether the result field is set - */ - public boolean hasResult() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 Result = 3; + * optional uint32 Result = 1; * @return this */ public SoldierSettleDataResp clearResult() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; result = 0; return this; } /** - * optional uint32 Result = 3; + * optional uint32 Result = 1; * @return the result */ public int getResult() { @@ -23789,22 +25569,523 @@ public final class PublicSoldier { } /** - * optional uint32 Result = 3; + * optional uint32 Result = 1; * @param value the result to set * @return this */ public SoldierSettleDataResp setResult(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; result = value; return this; } + /** + * optional uint32 PassedNode = 2; + * @return whether the passedNode field is set + */ + public boolean hasPassedNode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 PassedNode = 2; + * @return this + */ + public SoldierSettleDataResp clearPassedNode() { + bitField0_ &= ~0x00000002; + passedNode = 0; + return this; + } + + /** + * optional uint32 PassedNode = 2; + * @return the passedNode + */ + public int getPassedNode() { + return passedNode; + } + + /** + * optional uint32 PassedNode = 2; + * @param value the passedNode to set + * @return this + */ + public SoldierSettleDataResp setPassedNode(final int value) { + bitField0_ |= 0x00000002; + passedNode = value; + return this; + } + + /** + * optional uint32 RemainingHp = 3; + * @return whether the remainingHp field is set + */ + public boolean hasRemainingHp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 RemainingHp = 3; + * @return this + */ + public SoldierSettleDataResp clearRemainingHp() { + bitField0_ &= ~0x00000004; + remainingHp = 0; + return this; + } + + /** + * optional uint32 RemainingHp = 3; + * @return the remainingHp + */ + public int getRemainingHp() { + return remainingHp; + } + + /** + * optional uint32 RemainingHp = 3; + * @param value the remainingHp to set + * @return this + */ + public SoldierSettleDataResp setRemainingHp(final int value) { + bitField0_ |= 0x00000004; + remainingHp = value; + return this; + } + + /** + * optional uint32 CheckStageDps = 4; + * @return whether the checkStageDps field is set + */ + public boolean hasCheckStageDps() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 CheckStageDps = 4; + * @return this + */ + public SoldierSettleDataResp clearCheckStageDps() { + bitField0_ &= ~0x00000008; + checkStageDps = 0; + return this; + } + + /** + * optional uint32 CheckStageDps = 4; + * @return the checkStageDps + */ + public int getCheckStageDps() { + return checkStageDps; + } + + /** + * optional uint32 CheckStageDps = 4; + * @param value the checkStageDps to set + * @return this + */ + public SoldierSettleDataResp setCheckStageDps(final int value) { + bitField0_ |= 0x00000008; + checkStageDps = value; + return this; + } + + /** + * optional uint32 CheckStageTime = 5; + * @return whether the checkStageTime field is set + */ + public boolean hasCheckStageTime() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 CheckStageTime = 5; + * @return this + */ + public SoldierSettleDataResp clearCheckStageTime() { + bitField0_ &= ~0x00000010; + checkStageTime = 0; + return this; + } + + /** + * optional uint32 CheckStageTime = 5; + * @return the checkStageTime + */ + public int getCheckStageTime() { + return checkStageTime; + } + + /** + * optional uint32 CheckStageTime = 5; + * @param value the checkStageTime to set + * @return this + */ + public SoldierSettleDataResp setCheckStageTime(final int value) { + bitField0_ |= 0x00000010; + checkStageTime = value; + return this; + } + + /** + * optional uint32 ChessTotalCost = 6; + * @return whether the chessTotalCost field is set + */ + public boolean hasChessTotalCost() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 ChessTotalCost = 6; + * @return this + */ + public SoldierSettleDataResp clearChessTotalCost() { + bitField0_ &= ~0x00000020; + chessTotalCost = 0; + return this; + } + + /** + * optional uint32 ChessTotalCost = 6; + * @return the chessTotalCost + */ + public int getChessTotalCost() { + return chessTotalCost; + } + + /** + * optional uint32 ChessTotalCost = 6; + * @param value the chessTotalCost to set + * @return this + */ + public SoldierSettleDataResp setChessTotalCost(final int value) { + bitField0_ |= 0x00000020; + chessTotalCost = value; + return this; + } + + /** + * optional uint32 GetSchedule = 7; + * @return whether the getSchedule field is set + */ + public boolean hasGetSchedule() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 GetSchedule = 7; + * @return this + */ + public SoldierSettleDataResp clearGetSchedule() { + bitField0_ &= ~0x00000040; + getSchedule = 0; + return this; + } + + /** + * optional uint32 GetSchedule = 7; + * @return the getSchedule + */ + public int getGetSchedule() { + return getSchedule; + } + + /** + * optional uint32 GetSchedule = 7; + * @param value the getSchedule to set + * @return this + */ + public SoldierSettleDataResp setGetSchedule(final int value) { + bitField0_ |= 0x00000040; + getSchedule = value; + return this; + } + + /** + * optional uint32 GetTechPoint = 8; + * @return whether the getTechPoint field is set + */ + public boolean hasGetTechPoint() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 GetTechPoint = 8; + * @return this + */ + public SoldierSettleDataResp clearGetTechPoint() { + bitField0_ &= ~0x00000080; + getTechPoint = 0; + return this; + } + + /** + * optional uint32 GetTechPoint = 8; + * @return the getTechPoint + */ + public int getGetTechPoint() { + return getTechPoint; + } + + /** + * optional uint32 GetTechPoint = 8; + * @param value the getTechPoint to set + * @return this + */ + public SoldierSettleDataResp setGetTechPoint(final int value) { + bitField0_ |= 0x00000080; + getTechPoint = value; + return this; + } + + /** + * optional uint32 GetGradeExp = 9; + * @return whether the getGradeExp field is set + */ + public boolean hasGetGradeExp() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 GetGradeExp = 9; + * @return this + */ + public SoldierSettleDataResp clearGetGradeExp() { + bitField0_ &= ~0x00000100; + getGradeExp = 0; + return this; + } + + /** + * optional uint32 GetGradeExp = 9; + * @return the getGradeExp + */ + public int getGetGradeExp() { + return getGradeExp; + } + + /** + * optional uint32 GetGradeExp = 9; + * @param value the getGradeExp to set + * @return this + */ + public SoldierSettleDataResp setGetGradeExp(final int value) { + bitField0_ |= 0x00000100; + getGradeExp = value; + return this; + } + + /** + * optional uint32 CurGradeChallengeId = 10; + * @return whether the curGradeChallengeId field is set + */ + public boolean hasCurGradeChallengeId() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional uint32 CurGradeChallengeId = 10; + * @return this + */ + public SoldierSettleDataResp clearCurGradeChallengeId() { + bitField0_ &= ~0x00000200; + curGradeChallengeId = 0; + return this; + } + + /** + * optional uint32 CurGradeChallengeId = 10; + * @return the curGradeChallengeId + */ + public int getCurGradeChallengeId() { + return curGradeChallengeId; + } + + /** + * optional uint32 CurGradeChallengeId = 10; + * @param value the curGradeChallengeId to set + * @return this + */ + public SoldierSettleDataResp setCurGradeChallengeId(final int value) { + bitField0_ |= 0x00000200; + curGradeChallengeId = value; + return this; + } + + /** + * optional uint32 CurGradeExp = 11; + * @return whether the curGradeExp field is set + */ + public boolean hasCurGradeExp() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional uint32 CurGradeExp = 11; + * @return this + */ + public SoldierSettleDataResp clearCurGradeExp() { + bitField0_ &= ~0x00000400; + curGradeExp = 0; + return this; + } + + /** + * optional uint32 CurGradeExp = 11; + * @return the curGradeExp + */ + public int getCurGradeExp() { + return curGradeExp; + } + + /** + * optional uint32 CurGradeExp = 11; + * @param value the curGradeExp to set + * @return this + */ + public SoldierSettleDataResp setCurGradeExp(final int value) { + bitField0_ |= 0x00000400; + curGradeExp = value; + return this; + } + + /** + * optional uint32 EndingId = 12; + * @return whether the endingId field is set + */ + public boolean hasEndingId() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional uint32 EndingId = 12; + * @return this + */ + public SoldierSettleDataResp clearEndingId() { + bitField0_ &= ~0x00000800; + endingId = 0; + return this; + } + + /** + * optional uint32 EndingId = 12; + * @return the endingId + */ + public int getEndingId() { + return endingId; + } + + /** + * optional uint32 EndingId = 12; + * @param value the endingId to set + * @return this + */ + public SoldierSettleDataResp setEndingId(final int value) { + bitField0_ |= 0x00000800; + endingId = value; + return this; + } + + /** + * optional uint32 TotalCoinQty = 13; + * @return whether the totalCoinQty field is set + */ + public boolean hasTotalCoinQty() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional uint32 TotalCoinQty = 13; + * @return this + */ + public SoldierSettleDataResp clearTotalCoinQty() { + bitField0_ &= ~0x00001000; + totalCoinQty = 0; + return this; + } + + /** + * optional uint32 TotalCoinQty = 13; + * @return the totalCoinQty + */ + public int getTotalCoinQty() { + return totalCoinQty; + } + + /** + * optional uint32 TotalCoinQty = 13; + * @param value the totalCoinQty to set + * @return this + */ + public SoldierSettleDataResp setTotalCoinQty(final int value) { + bitField0_ |= 0x00001000; + totalCoinQty = value; + return this; + } + + /** + * optional .ChangeInfo Change = 15; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional .ChangeInfo Change = 15; + * @return this + */ + public SoldierSettleDataResp clearChange() { + bitField0_ &= ~0x00002000; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 15; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 15; + * + * 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_ |= 0x00002000; + return change; + } + + /** + * optional .ChangeInfo Change = 15; + * @param value the change to set + * @return this + */ + public SoldierSettleDataResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00002000; + change.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -23812,7 +26093,7 @@ public final class PublicSoldier { * @return this */ public SoldierSettleDataResp clearNextPackage() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00004000; nextPackage.clear(); return this; } @@ -23841,7 +26122,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; return nextPackage; } @@ -23851,7 +26132,7 @@ public final class PublicSoldier { * @return this */ public SoldierSettleDataResp addNextPackage(final byte value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; nextPackage.add(value); return this; } @@ -23862,7 +26143,7 @@ public final class PublicSoldier { * @return this */ public SoldierSettleDataResp addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; nextPackage.addAll(values); return this; } @@ -23873,7 +26154,7 @@ public final class PublicSoldier { * @return this */ public SoldierSettleDataResp setNextPackage(final byte... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; nextPackage.copyFrom(values); return this; } @@ -23883,9 +26164,20 @@ public final class PublicSoldier { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - totalScore = other.totalScore; - rewardScore = other.rewardScore; result = other.result; + passedNode = other.passedNode; + remainingHp = other.remainingHp; + checkStageDps = other.checkStageDps; + checkStageTime = other.checkStageTime; + chessTotalCost = other.chessTotalCost; + getSchedule = other.getSchedule; + getTechPoint = other.getTechPoint; + getGradeExp = other.getGradeExp; + curGradeChallengeId = other.curGradeChallengeId; + curGradeExp = other.curGradeExp; + endingId = other.endingId; + totalCoinQty = other.totalCoinQty; + change.copyFrom(other.change); nextPackage.copyFrom(other.nextPackage); } return this; @@ -23897,15 +26189,48 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasTotalScore()) { - setTotalScore(other.totalScore); - } - if (other.hasRewardScore()) { - setRewardScore(other.rewardScore); - } if (other.hasResult()) { setResult(other.result); } + if (other.hasPassedNode()) { + setPassedNode(other.passedNode); + } + if (other.hasRemainingHp()) { + setRemainingHp(other.remainingHp); + } + if (other.hasCheckStageDps()) { + setCheckStageDps(other.checkStageDps); + } + if (other.hasCheckStageTime()) { + setCheckStageTime(other.checkStageTime); + } + if (other.hasChessTotalCost()) { + setChessTotalCost(other.chessTotalCost); + } + if (other.hasGetSchedule()) { + setGetSchedule(other.getSchedule); + } + if (other.hasGetTechPoint()) { + setGetTechPoint(other.getTechPoint); + } + if (other.hasGetGradeExp()) { + setGetGradeExp(other.getGradeExp); + } + if (other.hasCurGradeChallengeId()) { + setCurGradeChallengeId(other.curGradeChallengeId); + } + if (other.hasCurGradeExp()) { + setCurGradeExp(other.curGradeExp); + } + if (other.hasEndingId()) { + setEndingId(other.endingId); + } + if (other.hasTotalCoinQty()) { + setTotalCoinQty(other.totalCoinQty); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -23919,9 +26244,20 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - totalScore = 0; - rewardScore = 0; result = 0; + passedNode = 0; + remainingHp = 0; + checkStageDps = 0; + checkStageTime = 0; + chessTotalCost = 0; + getSchedule = 0; + getTechPoint = 0; + getGradeExp = 0; + curGradeChallengeId = 0; + curGradeExp = 0; + endingId = 0; + totalCoinQty = 0; + change.clear(); nextPackage.clear(); return this; } @@ -23933,6 +26269,7 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; + change.clearQuick(); nextPackage.clear(); return this; } @@ -23947,9 +26284,20 @@ public final class PublicSoldier { } SoldierSettleDataResp other = (SoldierSettleDataResp) o; return bitField0_ == other.bitField0_ - && (!hasTotalScore() || totalScore == other.totalScore) - && (!hasRewardScore() || rewardScore == other.rewardScore) && (!hasResult() || result == other.result) + && (!hasPassedNode() || passedNode == other.passedNode) + && (!hasRemainingHp() || remainingHp == other.remainingHp) + && (!hasCheckStageDps() || checkStageDps == other.checkStageDps) + && (!hasCheckStageTime() || checkStageTime == other.checkStageTime) + && (!hasChessTotalCost() || chessTotalCost == other.chessTotalCost) + && (!hasGetSchedule() || getSchedule == other.getSchedule) + && (!hasGetTechPoint() || getTechPoint == other.getTechPoint) + && (!hasGetGradeExp() || getGradeExp == other.getGradeExp) + && (!hasCurGradeChallengeId() || curGradeChallengeId == other.curGradeChallengeId) + && (!hasCurGradeExp() || curGradeExp == other.curGradeExp) + && (!hasEndingId() || endingId == other.endingId) + && (!hasTotalCoinQty() || totalCoinQty == other.totalCoinQty) + && (!hasChange() || change.equals(other.change)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -23957,17 +26305,61 @@ public final class PublicSoldier { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(totalScore); + output.writeUInt32NoTag(result); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(rewardScore); + output.writeUInt32NoTag(passedNode); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(result); + output.writeUInt32NoTag(remainingHp); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(checkStageDps); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(checkStageTime); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(chessTotalCost); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(getSchedule); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(getTechPoint); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(getGradeExp); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(curGradeExp); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(endingId); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(totalCoinQty); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -23977,15 +26369,48 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardScore); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(result); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(passedNode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(remainingHp); + } if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(checkStageDps); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(checkStageTime); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chessTotalCost); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(getSchedule); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(getTechPoint); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(getGradeExp); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curGradeExp); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(endingId); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalCoinQty); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00004000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -23999,8 +26424,8 @@ public final class PublicSoldier { while (true) { switch (tag) { case 8: { - // totalScore - totalScore = input.readUInt32(); + // result + result = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { @@ -24008,8 +26433,8 @@ public final class PublicSoldier { } } case 16: { - // rewardScore - rewardScore = input.readUInt32(); + // passedNode + passedNode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 24) { @@ -24017,10 +26442,109 @@ public final class PublicSoldier { } } case 24: { - // result - result = input.readUInt32(); + // remainingHp + remainingHp = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // checkStageDps + checkStageDps = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // checkStageTime + checkStageTime = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // chessTotalCost + chessTotalCost = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // getSchedule + getSchedule = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // getTechPoint + getTechPoint = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // getGradeExp + getGradeExp = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // curGradeChallengeId + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // curGradeExp + curGradeExp = input.readUInt32(); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // endingId + endingId = input.readUInt32(); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // totalCoinQty + totalCoinQty = input.readUInt32(); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // change + input.readMessage(change); + bitField0_ |= 0x00002000; + tag = input.readTag(); if (tag != 16378) { break; } @@ -24028,7 +26552,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 0) { break; @@ -24052,15 +26576,48 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.totalScore, totalScore); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rewardScore, rewardScore); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.result, result); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.passedNode, passedNode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.remainingHp, remainingHp); + } if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.checkStageDps, checkStageDps); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.checkStageTime, checkStageTime); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.chessTotalCost, chessTotalCost); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.getSchedule, getSchedule); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.getTechPoint, getTechPoint); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.getGradeExp, getGradeExp); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeUInt32(FieldNames.curGradeChallengeId, curGradeChallengeId); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeUInt32(FieldNames.curGradeExp, curGradeExp); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeUInt32(FieldNames.endingId, endingId); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeUInt32(FieldNames.totalCoinQty, totalCoinQty); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00004000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -24073,10 +26630,10 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1276492238: { - if (input.isAtField(FieldNames.totalScore)) { + case -1850559427: { + if (input.isAtField(FieldNames.result)) { if (!input.trySkipNullValue()) { - totalScore = input.readUInt32(); + result = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -24084,10 +26641,10 @@ public final class PublicSoldier { } break; } - case -1740125053: { - if (input.isAtField(FieldNames.rewardScore)) { + case -1535838542: { + if (input.isAtField(FieldNames.passedNode)) { if (!input.trySkipNullValue()) { - rewardScore = input.readUInt32(); + passedNode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -24095,10 +26652,10 @@ public final class PublicSoldier { } break; } - case -1850559427: { - if (input.isAtField(FieldNames.result)) { + case 63879550: { + if (input.isAtField(FieldNames.remainingHp)) { if (!input.trySkipNullValue()) { - result = input.readUInt32(); + remainingHp = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -24106,11 +26663,132 @@ public final class PublicSoldier { } break; } + case 224817809: { + if (input.isAtField(FieldNames.checkStageDps)) { + if (!input.trySkipNullValue()) { + checkStageDps = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1620112669: { + if (input.isAtField(FieldNames.checkStageTime)) { + if (!input.trySkipNullValue()) { + checkStageTime = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1614385: { + if (input.isAtField(FieldNames.chessTotalCost)) { + if (!input.trySkipNullValue()) { + chessTotalCost = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1247119379: { + if (input.isAtField(FieldNames.getSchedule)) { + if (!input.trySkipNullValue()) { + getSchedule = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1596855812: { + if (input.isAtField(FieldNames.getTechPoint)) { + if (!input.trySkipNullValue()) { + getTechPoint = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -459697124: { + if (input.isAtField(FieldNames.getGradeExp)) { + if (!input.trySkipNullValue()) { + getGradeExp = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 750219975: { + if (input.isAtField(FieldNames.curGradeChallengeId)) { + if (!input.trySkipNullValue()) { + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1391133434: { + if (input.isAtField(FieldNames.curGradeExp)) { + if (!input.trySkipNullValue()) { + curGradeExp = input.readUInt32(); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1799249090: { + if (input.isAtField(FieldNames.endingId)) { + if (!input.trySkipNullValue()) { + endingId = input.readUInt32(); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1666078369: { + if (input.isAtField(FieldNames.totalCoinQty)) { + if (!input.trySkipNullValue()) { + totalCoinQty = input.readUInt32(); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -24170,12 +26848,34 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName totalScore = FieldName.forField("TotalScore"); - - static final FieldName rewardScore = FieldName.forField("RewardScore"); - static final FieldName result = FieldName.forField("Result"); + static final FieldName passedNode = FieldName.forField("PassedNode"); + + static final FieldName remainingHp = FieldName.forField("RemainingHp"); + + static final FieldName checkStageDps = FieldName.forField("CheckStageDps"); + + static final FieldName checkStageTime = FieldName.forField("CheckStageTime"); + + static final FieldName chessTotalCost = FieldName.forField("ChessTotalCost"); + + static final FieldName getSchedule = FieldName.forField("GetSchedule"); + + static final FieldName getTechPoint = FieldName.forField("GetTechPoint"); + + static final FieldName getGradeExp = FieldName.forField("GetGradeExp"); + + static final FieldName curGradeChallengeId = FieldName.forField("CurGradeChallengeId"); + + static final FieldName curGradeExp = FieldName.forField("CurGradeExp"); + + static final FieldName endingId = FieldName.forField("EndingId"); + + static final FieldName totalCoinQty = FieldName.forField("TotalCoinQty"); + + static final FieldName change = FieldName.forField("Change"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -24187,20 +26887,25 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional .SoldierDeploy Deploy = 1; + * optional uint32 DeployVersion = 1; */ - private final SoldierDeploy deploy = SoldierDeploy.newInstance(); + private int deployVersion; + + /** + * optional .SyncChessAction Sync = 2; + */ + private final SyncChessAction sync = SyncChessAction.newInstance(); + + /** + * optional .MoveChessAction Move = 3; + */ + private final MoveChessAction move = MoveChessAction.newInstance(); /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - /** - * repeated .SoldierChess DeployEx = 2; - */ - private final RepeatedMessage deployEx = RepeatedMessage.newEmptyInstance(SoldierChess.getFactory()); - private InteractDeploySyncReq() { } @@ -24212,39 +26917,76 @@ public final class PublicSoldier { } /** - * optional .SoldierDeploy Deploy = 1; - * @return whether the deploy field is set + * optional uint32 DeployVersion = 1; + * @return whether the deployVersion field is set */ - public boolean hasDeploy() { + public boolean hasDeployVersion() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .SoldierDeploy Deploy = 1; + * optional uint32 DeployVersion = 1; * @return this */ - public InteractDeploySyncReq clearDeploy() { + public InteractDeploySyncReq clearDeployVersion() { bitField0_ &= ~0x00000001; - deploy.clear(); + deployVersion = 0; return this; } /** - * optional .SoldierDeploy Deploy = 1; + * optional uint32 DeployVersion = 1; + * @return the deployVersion + */ + public int getDeployVersion() { + return deployVersion; + } + + /** + * optional uint32 DeployVersion = 1; + * @param value the deployVersion to set + * @return this + */ + public InteractDeploySyncReq setDeployVersion(final int value) { + bitField0_ |= 0x00000001; + deployVersion = value; + return this; + } + + /** + * optional .SyncChessAction Sync = 2; + * @return whether the sync field is set + */ + public boolean hasSync() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SyncChessAction Sync = 2; + * @return this + */ + public InteractDeploySyncReq clearSync() { + bitField0_ &= ~0x00000002; + sync.clear(); + return this; + } + + /** + * optional .SyncChessAction Sync = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableDeploy()} if you want to modify it. + * Use {@link #getMutableSync()} if you want to modify it. * * @return internal storage object for reading */ - public SoldierDeploy getDeploy() { - return deploy; + public SyncChessAction getSync() { + return sync; } /** - * optional .SoldierDeploy Deploy = 1; + * optional .SyncChessAction Sync = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -24252,19 +26994,76 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public SoldierDeploy getMutableDeploy() { - bitField0_ |= 0x00000001; - return deploy; + public SyncChessAction getMutableSync() { + bitField0_ |= 0x00000002; + return sync; } /** - * optional .SoldierDeploy Deploy = 1; - * @param value the deploy to set + * optional .SyncChessAction Sync = 2; + * @param value the sync to set * @return this */ - public InteractDeploySyncReq setDeploy(final SoldierDeploy value) { - bitField0_ |= 0x00000001; - deploy.copyFrom(value); + public InteractDeploySyncReq setSync(final SyncChessAction value) { + bitField0_ |= 0x00000002; + sync.copyFrom(value); + return this; + } + + /** + * optional .MoveChessAction Move = 3; + * @return whether the move field is set + */ + public boolean hasMove() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MoveChessAction Move = 3; + * @return this + */ + public InteractDeploySyncReq clearMove() { + bitField0_ &= ~0x00000004; + move.clear(); + return this; + } + + /** + * optional .MoveChessAction Move = 3; + * + * 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 #getMutableMove()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MoveChessAction getMove() { + return move; + } + + /** + * optional .MoveChessAction Move = 3; + * + * 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 MoveChessAction getMutableMove() { + bitField0_ |= 0x00000004; + return move; + } + + /** + * optional .MoveChessAction Move = 3; + * @param value the move to set + * @return this + */ + public InteractDeploySyncReq setMove(final MoveChessAction value) { + bitField0_ |= 0x00000004; + move.copyFrom(value); return this; } @@ -24273,7 +27072,7 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -24281,7 +27080,7 @@ public final class PublicSoldier { * @return this */ public InteractDeploySyncReq clearNextPackage() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -24310,7 +27109,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; return nextPackage; } @@ -24320,7 +27119,7 @@ public final class PublicSoldier { * @return this */ public InteractDeploySyncReq addNextPackage(final byte value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -24331,7 +27130,7 @@ public final class PublicSoldier { * @return this */ public InteractDeploySyncReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -24342,87 +27141,20 @@ public final class PublicSoldier { * @return this */ public InteractDeploySyncReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } - /** - * repeated .SoldierChess DeployEx = 2; - * @return whether the deployEx field is set - */ - public boolean hasDeployEx() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .SoldierChess DeployEx = 2; - * @return this - */ - public InteractDeploySyncReq clearDeployEx() { - bitField0_ &= ~0x00000004; - deployEx.clear(); - return this; - } - - /** - * repeated .SoldierChess DeployEx = 2; - * - * 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 #getMutableDeployEx()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getDeployEx() { - return deployEx; - } - - /** - * repeated .SoldierChess DeployEx = 2; - * - * 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 getMutableDeployEx() { - bitField0_ |= 0x00000004; - return deployEx; - } - - /** - * repeated .SoldierChess DeployEx = 2; - * @param value the deployEx to add - * @return this - */ - public InteractDeploySyncReq addDeployEx(final SoldierChess value) { - bitField0_ |= 0x00000004; - deployEx.add(value); - return this; - } - - /** - * repeated .SoldierChess DeployEx = 2; - * @param values the deployEx to add - * @return this - */ - public InteractDeploySyncReq addAllDeployEx(final SoldierChess... values) { - bitField0_ |= 0x00000004; - deployEx.addAll(values); - return this; - } - @Override public InteractDeploySyncReq copyFrom(final InteractDeploySyncReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - deploy.copyFrom(other.deploy); + deployVersion = other.deployVersion; + sync.copyFrom(other.sync); + move.copyFrom(other.move); nextPackage.copyFrom(other.nextPackage); - deployEx.copyFrom(other.deployEx); } return this; } @@ -24433,15 +27165,18 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasDeploy()) { - getMutableDeploy().mergeFrom(other.deploy); + if (other.hasDeployVersion()) { + setDeployVersion(other.deployVersion); + } + if (other.hasSync()) { + getMutableSync().mergeFrom(other.sync); + } + if (other.hasMove()) { + getMutableMove().mergeFrom(other.move); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasDeployEx()) { - getMutableDeployEx().addAll(other.deployEx); - } return this; } @@ -24452,9 +27187,10 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - deploy.clear(); + deployVersion = 0; + sync.clear(); + move.clear(); nextPackage.clear(); - deployEx.clear(); return this; } @@ -24465,9 +27201,9 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - deploy.clearQuick(); + sync.clearQuick(); + move.clearQuick(); nextPackage.clear(); - deployEx.clearQuick(); return this; } @@ -24481,26 +27217,29 @@ public final class PublicSoldier { } InteractDeploySyncReq other = (InteractDeploySyncReq) o; return bitField0_ == other.bitField0_ - && (!hasDeploy() || deploy.equals(other.deploy)) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasDeployEx() || deployEx.equals(other.deployEx)); + && (!hasDeployVersion() || deployVersion == other.deployVersion) + && (!hasSync() || sync.equals(other.sync)) + && (!hasMove() || move.equals(other.move)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(deploy); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(deployVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawLittleEndian16((short) 32762); - output.writeBytesNoTag(nextPackage); + output.writeRawByte((byte) 18); + output.writeMessageNoTag(sync); } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < deployEx.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(deployEx.get(i)); - } + output.writeRawByte((byte) 26); + output.writeMessageNoTag(move); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); } } @@ -24508,13 +27247,16 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(deploy); + size += 1 + ProtoSink.computeUInt32SizeNoTag(deployVersion); } if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(sync); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * deployEx.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(deployEx); + size += 1 + ProtoSink.computeMessageSizeNoTag(move); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; } @@ -24526,11 +27268,29 @@ public final class PublicSoldier { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { - // deploy - input.readMessage(deploy); + case 8: { + // deployVersion + deployVersion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // sync + input.readMessage(sync); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // move + input.readMessage(move); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -24538,16 +27298,8 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // deployEx - tag = input.readRepeatedMessage(deployEx, tag); - bitField0_ |= 0x00000004; if (tag != 0) { break; } @@ -24570,13 +27322,16 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.deploy, deploy); + output.writeUInt32(FieldNames.deployVersion, deployVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.sync, sync); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.deployEx, deployEx); + output.writeMessage(FieldNames.move, move); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); } @@ -24588,10 +27343,10 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2043501831: { - if (input.isAtField(FieldNames.deploy)) { + case 1916137937: { + if (input.isAtField(FieldNames.deployVersion)) { if (!input.trySkipNullValue()) { - input.readMessage(deploy); + deployVersion = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -24599,22 +27354,33 @@ public final class PublicSoldier { } break; } + case 2592443: { + if (input.isAtField(FieldNames.sync)) { + if (!input.trySkipNullValue()) { + input.readMessage(sync); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2404337: { + if (input.isAtField(FieldNames.move)) { + if (!input.trySkipNullValue()) { + input.readMessage(move); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1005207578: { - if (input.isAtField(FieldNames.deployEx)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(deployEx); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -24674,11 +27440,1239 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName deployVersion = FieldName.forField("DeployVersion"); + + static final FieldName sync = FieldName.forField("Sync"); + + static final FieldName move = FieldName.forField("Move"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SyncChessAction} + */ + public static final class SyncChessAction extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SyncChessAction() { + } + + /** + * @return a new empty instance of {@code SyncChessAction} + */ + public static SyncChessAction newInstance() { + return new SyncChessAction(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SyncChessAction clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SyncChessAction addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SyncChessAction addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SyncChessAction setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SyncChessAction copyFrom(final SyncChessAction other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SyncChessAction mergeFrom(final SyncChessAction other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SyncChessAction clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + return this; + } + + @Override + public SyncChessAction 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 SyncChessAction)) { + return false; + } + SyncChessAction other = (SyncChessAction) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncChessAction 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 != 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); + } + output.endObject(); + } + + @Override + public SyncChessAction 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncChessAction clone() { + return new SyncChessAction().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncChessAction parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncChessAction(), data).checkInitialized(); + } + + public static SyncChessAction parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncChessAction(), input).checkInitialized(); + } + + public static SyncChessAction parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncChessAction(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncChessAction messages + */ + public static MessageFactory getFactory() { + return SyncChessActionFactory.INSTANCE; + } + + private enum SyncChessActionFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncChessAction create() { + return SyncChessAction.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code MoveChessAction} + */ + public static final class MoveChessAction extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 UID = 1; + */ + private int uID; + + /** + * optional uint32 Slot = 2; + */ + private int slot; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private MoveChessAction() { + } + + /** + * @return a new empty instance of {@code MoveChessAction} + */ + public static MoveChessAction newInstance() { + return new MoveChessAction(); + } + + /** + * optional uint32 UID = 1; + * @return whether the uID field is set + */ + public boolean hasUID() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 UID = 1; + * @return this + */ + public MoveChessAction clearUID() { + bitField0_ &= ~0x00000001; + uID = 0; + return this; + } + + /** + * optional uint32 UID = 1; + * @return the uID + */ + public int getUID() { + return uID; + } + + /** + * optional uint32 UID = 1; + * @param value the uID to set + * @return this + */ + public MoveChessAction setUID(final int value) { + bitField0_ |= 0x00000001; + uID = value; + return this; + } + + /** + * optional uint32 Slot = 2; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Slot = 2; + * @return this + */ + public MoveChessAction clearSlot() { + bitField0_ &= ~0x00000002; + slot = 0; + return this; + } + + /** + * optional uint32 Slot = 2; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 Slot = 2; + * @param value the slot to set + * @return this + */ + public MoveChessAction setSlot(final int value) { + bitField0_ |= 0x00000002; + slot = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public MoveChessAction clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public MoveChessAction addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public MoveChessAction addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public MoveChessAction setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public MoveChessAction copyFrom(final MoveChessAction other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uID = other.uID; + slot = other.slot; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MoveChessAction mergeFrom(final MoveChessAction other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUID()) { + setUID(other.uID); + } + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public MoveChessAction clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uID = 0; + slot = 0; + nextPackage.clear(); + return this; + } + + @Override + public MoveChessAction 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 MoveChessAction)) { + return false; + } + MoveChessAction other = (MoveChessAction) o; + return bitField0_ == other.bitField0_ + && (!hasUID() || uID == other.uID) + && (!hasSlot() || slot == other.slot) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(uID); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(slot); + } + 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(uID); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MoveChessAction mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // uID + uID = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // slot + slot = 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.uID, uID); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public MoveChessAction mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 84016: { + if (input.isAtField(FieldNames.uID)) { + if (!input.trySkipNullValue()) { + uID = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2579998: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = 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 MoveChessAction clone() { + return new MoveChessAction().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MoveChessAction parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MoveChessAction(), data).checkInitialized(); + } + + public static MoveChessAction parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MoveChessAction(), input).checkInitialized(); + } + + public static MoveChessAction parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MoveChessAction(), input).checkInitialized(); + } + + /** + * @return factory for creating MoveChessAction messages + */ + public static MessageFactory getFactory() { + return MoveChessActionFactory.INSTANCE; + } + + private enum MoveChessActionFactory implements MessageFactory { + INSTANCE; + + @Override + public MoveChessAction create() { + return MoveChessAction.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uID = FieldName.forField("UID"); + + static final FieldName slot = FieldName.forField("Slot"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractDeploySyncResp} + */ + public static final class InteractDeploySyncResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .Nil Succeed = 1; + */ + private final Public.Nil succeed = Public.Nil.newInstance(); + + /** + * optional .SoldierDeploy Deploy = 2; + */ + private final SoldierDeploy deploy = SoldierDeploy.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractDeploySyncResp() { + } + + /** + * @return a new empty instance of {@code InteractDeploySyncResp} + */ + public static InteractDeploySyncResp newInstance() { + return new InteractDeploySyncResp(); + } + + /** + * optional .Nil Succeed = 1; + * @return whether the succeed field is set + */ + public boolean hasSucceed() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .Nil Succeed = 1; + * @return this + */ + public InteractDeploySyncResp clearSucceed() { + bitField0_ &= ~0x00000001; + succeed.clear(); + return this; + } + + /** + * optional .Nil Succeed = 1; + * + * 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 #getMutableSucceed()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Nil getSucceed() { + return succeed; + } + + /** + * optional .Nil Succeed = 1; + * + * 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.Nil getMutableSucceed() { + bitField0_ |= 0x00000001; + return succeed; + } + + /** + * optional .Nil Succeed = 1; + * @param value the succeed to set + * @return this + */ + public InteractDeploySyncResp setSucceed(final Public.Nil value) { + bitField0_ |= 0x00000001; + succeed.copyFrom(value); + return this; + } + + /** + * optional .SoldierDeploy Deploy = 2; + * @return whether the deploy field is set + */ + public boolean hasDeploy() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierDeploy Deploy = 2; + * @return this + */ + public InteractDeploySyncResp clearDeploy() { + bitField0_ &= ~0x00000002; + deploy.clear(); + return this; + } + + /** + * optional .SoldierDeploy Deploy = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDeploy()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierDeploy getDeploy() { + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 2; + * + * 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 SoldierDeploy getMutableDeploy() { + bitField0_ |= 0x00000002; + return deploy; + } + + /** + * optional .SoldierDeploy Deploy = 2; + * @param value the deploy to set + * @return this + */ + public InteractDeploySyncResp setDeploy(final SoldierDeploy value) { + bitField0_ |= 0x00000002; + deploy.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractDeploySyncResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractDeploySyncResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractDeploySyncResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractDeploySyncResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractDeploySyncResp copyFrom(final InteractDeploySyncResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + succeed.copyFrom(other.succeed); + deploy.copyFrom(other.deploy); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractDeploySyncResp mergeFrom(final InteractDeploySyncResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSucceed()) { + getMutableSucceed().mergeFrom(other.succeed); + } + if (other.hasDeploy()) { + getMutableDeploy().mergeFrom(other.deploy); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractDeploySyncResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + succeed.clear(); + deploy.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractDeploySyncResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + succeed.clearQuick(); + deploy.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractDeploySyncResp)) { + return false; + } + InteractDeploySyncResp other = (InteractDeploySyncResp) o; + return bitField0_ == other.bitField0_ + && (!hasSucceed() || succeed.equals(other.succeed)) + && (!hasDeploy() || deploy.equals(other.deploy)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(succeed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(deploy); + } + 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.computeMessageSizeNoTag(succeed); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deploy); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractDeploySyncResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // succeed + input.readMessage(succeed); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // deploy + input.readMessage(deploy); + 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.writeMessage(FieldNames.succeed, succeed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.deploy, deploy); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractDeploySyncResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -202516958: { + if (input.isAtField(FieldNames.succeed)) { + if (!input.trySkipNullValue()) { + input.readMessage(succeed); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2043501831: { + if (input.isAtField(FieldNames.deploy)) { + if (!input.trySkipNullValue()) { + input.readMessage(deploy); + 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 InteractDeploySyncResp clone() { + return new InteractDeploySyncResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractDeploySyncResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractDeploySyncResp(), data).checkInitialized(); + } + + public static InteractDeploySyncResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractDeploySyncResp(), input).checkInitialized(); + } + + public static InteractDeploySyncResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractDeploySyncResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractDeploySyncResp messages + */ + public static MessageFactory getFactory() { + return InteractDeploySyncRespFactory.INSTANCE; + } + + private enum InteractDeploySyncRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractDeploySyncResp create() { + return InteractDeploySyncResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName succeed = FieldName.forField("Succeed"); + static final FieldName deploy = FieldName.forField("Deploy"); static final FieldName nextPackage = FieldName.forField("NextPackage"); - - static final FieldName deployEx = FieldName.forField("DeployEx"); } } @@ -24698,6 +28692,11 @@ public final class PublicSoldier { */ private int tid; + /** + * optional uint32 BuffId = 3; + */ + private int buffId; + /** * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 6; */ @@ -24724,9 +28723,9 @@ public final class PublicSoldier { private final SoldierNodeTypeModify nodeTypeModify = SoldierNodeTypeModify.newInstance(); /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; */ - private final SoldierClientEffect clientEffect = SoldierClientEffect.newInstance(); + private final SoldierClientEffectAttr clientAttr = SoldierClientEffectAttr.newInstance(); /** * optional .SoldierShopRefreshState RefreshState = 12; @@ -24758,6 +28757,31 @@ public final class PublicSoldier { */ private final SoldierEffectAddChess showChess = SoldierEffectAddChess.newInstance(); + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 18; + */ + private final SoldierEffectClientHarvest clientHarvest = SoldierEffectClientHarvest.newInstance(); + + /** + * optional .SoldierEffectInterest Interest = 19; + */ + private final SoldierEffectInterest interest = SoldierEffectInterest.newInstance(); + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 20; + */ + private final SoldierEffectCardReRoll cardReRoll = SoldierEffectCardReRoll.newInstance(); + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 21; + */ + private final SoldierEffectDiceAddPoint diceAddPoint = SoldierEffectDiceAddPoint.newInstance(); + + /** + * optional .SoldierShopTempFreeState TempFree = 22; + */ + private final SoldierShopTempFreeState tempFree = SoldierShopTempFreeState.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -24847,12 +28871,49 @@ public final class PublicSoldier { return this; } + /** + * optional uint32 BuffId = 3; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 BuffId = 3; + * @return this + */ + public SoldierEffect clearBuffId() { + bitField0_ &= ~0x00000004; + buffId = 0; + return this; + } + + /** + * optional uint32 BuffId = 3; + * @return the buffId + */ + public int getBuffId() { + return buffId; + } + + /** + * optional uint32 BuffId = 3; + * @param value the buffId to set + * @return this + */ + public SoldierEffect setBuffId(final int value) { + bitField0_ |= 0x00000004; + buffId = value; + return this; + } + /** * optional .SoldierEffectLeftmostWaitingChessChange LeftmostChange = 6; * @return whether the leftmostChange field is set */ public boolean hasLeftmostChange() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -24860,7 +28921,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearLeftmostChange() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; leftmostChange.clear(); return this; } @@ -24889,7 +28950,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierEffectLeftmostWaitingChessChange getMutableLeftmostChange() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return leftmostChange; } @@ -24899,7 +28960,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setLeftmostChange(final SoldierEffectLeftmostWaitingChessChange value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; leftmostChange.copyFrom(value); return this; } @@ -24909,7 +28970,7 @@ public final class PublicSoldier { * @return whether the becomeAnother field is set */ public boolean hasBecomeAnother() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -24917,7 +28978,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearBecomeAnother() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; becomeAnother.clear(); return this; } @@ -24946,7 +29007,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierShopRandomChessBecomeAnotherHigherCost getMutableBecomeAnother() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return becomeAnother; } @@ -24957,7 +29018,7 @@ public final class PublicSoldier { */ public SoldierEffect setBecomeAnother( final SoldierShopRandomChessBecomeAnotherHigherCost value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; becomeAnother.copyFrom(value); return this; } @@ -24967,7 +29028,7 @@ public final class PublicSoldier { * @return whether the partnerAdditional field is set */ public boolean hasPartnerAdditional() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -24975,7 +29036,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearPartnerAdditional() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; partnerAdditional.clear(); return this; } @@ -25004,7 +29065,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierEffectPartnerAdditional getMutablePartnerAdditional() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return partnerAdditional; } @@ -25014,7 +29075,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setPartnerAdditional(final SoldierEffectPartnerAdditional value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; partnerAdditional.copyFrom(value); return this; } @@ -25024,7 +29085,7 @@ public final class PublicSoldier { * @return whether the partnerActivateAdditional field is set */ public boolean hasPartnerActivateAdditional() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -25032,7 +29093,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearPartnerActivateAdditional() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; partnerActivateAdditional.clear(); return this; } @@ -25061,7 +29122,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierEffectPartnerActivateAdditional getMutablePartnerActivateAdditional() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return partnerActivateAdditional; } @@ -25072,7 +29133,7 @@ public final class PublicSoldier { */ public SoldierEffect setPartnerActivateAdditional( final SoldierEffectPartnerActivateAdditional value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; partnerActivateAdditional.copyFrom(value); return this; } @@ -25082,7 +29143,7 @@ public final class PublicSoldier { * @return whether the nodeTypeModify field is set */ public boolean hasNodeTypeModify() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -25090,7 +29151,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearNodeTypeModify() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; nodeTypeModify.clear(); return this; } @@ -25119,7 +29180,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierNodeTypeModify getMutableNodeTypeModify() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return nodeTypeModify; } @@ -25129,45 +29190,45 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setNodeTypeModify(final SoldierNodeTypeModify value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; nodeTypeModify.copyFrom(value); return this; } /** - * optional .SoldierClientEffect ClientEffect = 11; - * @return whether the clientEffect field is set + * optional .SoldierClientEffectAttr ClientAttr = 11; + * @return whether the clientAttr field is set */ - public boolean hasClientEffect() { - return (bitField0_ & 0x00000080) != 0; + public boolean hasClientAttr() { + return (bitField0_ & 0x00000100) != 0; } /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; * @return this */ - public SoldierEffect clearClientEffect() { - bitField0_ &= ~0x00000080; - clientEffect.clear(); + public SoldierEffect clearClientAttr() { + bitField0_ &= ~0x00000100; + clientAttr.clear(); return this; } /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; * * 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 #getMutableClientEffect()} if you want to modify it. + * Use {@link #getMutableClientAttr()} if you want to modify it. * * @return internal storage object for reading */ - public SoldierClientEffect getClientEffect() { - return clientEffect; + public SoldierClientEffectAttr getClientAttr() { + return clientAttr; } /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -25175,19 +29236,19 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public SoldierClientEffect getMutableClientEffect() { - bitField0_ |= 0x00000080; - return clientEffect; + public SoldierClientEffectAttr getMutableClientAttr() { + bitField0_ |= 0x00000100; + return clientAttr; } /** - * optional .SoldierClientEffect ClientEffect = 11; - * @param value the clientEffect to set + * optional .SoldierClientEffectAttr ClientAttr = 11; + * @param value the clientAttr to set * @return this */ - public SoldierEffect setClientEffect(final SoldierClientEffect value) { - bitField0_ |= 0x00000080; - clientEffect.copyFrom(value); + public SoldierEffect setClientAttr(final SoldierClientEffectAttr value) { + bitField0_ |= 0x00000100; + clientAttr.copyFrom(value); return this; } @@ -25196,7 +29257,7 @@ public final class PublicSoldier { * @return whether the refreshState field is set */ public boolean hasRefreshState() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -25204,7 +29265,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearRefreshState() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; refreshState.clear(); return this; } @@ -25233,7 +29294,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierShopRefreshState getMutableRefreshState() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return refreshState; } @@ -25243,7 +29304,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setRefreshState(final SoldierShopRefreshState value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; refreshState.copyFrom(value); return this; } @@ -25253,7 +29314,7 @@ public final class PublicSoldier { * @return whether the purchaseState field is set */ public boolean hasPurchaseState() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -25261,7 +29322,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearPurchaseState() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; purchaseState.clear(); return this; } @@ -25290,7 +29351,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierShopPurchaseState getMutablePurchaseState() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return purchaseState; } @@ -25300,7 +29361,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setPurchaseState(final SoldierShopPurchaseState value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; purchaseState.copyFrom(value); return this; } @@ -25310,7 +29371,7 @@ public final class PublicSoldier { * @return whether the freeState field is set */ public boolean hasFreeState() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -25318,7 +29379,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearFreeState() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; freeState.clear(); return this; } @@ -25347,7 +29408,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierShopFreeState getMutableFreeState() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return freeState; } @@ -25357,7 +29418,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setFreeState(final SoldierShopFreeState value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; freeState.copyFrom(value); return this; } @@ -25367,7 +29428,7 @@ public final class PublicSoldier { * @return whether the rarity field is set */ public boolean hasRarity() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -25375,7 +29436,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearRarity() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00001000; rarity.clear(); return this; } @@ -25404,7 +29465,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierShopRarity getMutableRarity() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return rarity; } @@ -25414,7 +29475,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setRarity(final SoldierShopRarity value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; rarity.copyFrom(value); return this; } @@ -25424,7 +29485,7 @@ public final class PublicSoldier { * @return whether the purchaseExpDiscount field is set */ public boolean hasPurchaseExpDiscount() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -25432,7 +29493,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearPurchaseExpDiscount() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; purchaseExpDiscount.clear(); return this; } @@ -25461,7 +29522,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierShopPurchaseExpDiscount getMutablePurchaseExpDiscount() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return purchaseExpDiscount; } @@ -25471,7 +29532,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setPurchaseExpDiscount(final SoldierShopPurchaseExpDiscount value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; purchaseExpDiscount.copyFrom(value); return this; } @@ -25481,7 +29542,7 @@ public final class PublicSoldier { * @return whether the showChess field is set */ public boolean hasShowChess() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -25489,7 +29550,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearShowChess() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00004000; showChess.clear(); return this; } @@ -25518,7 +29579,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierEffectAddChess getMutableShowChess() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return showChess; } @@ -25528,17 +29589,302 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setShowChess(final SoldierEffectAddChess value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; showChess.copyFrom(value); return this; } + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 18; + * @return whether the clientHarvest field is set + */ + public boolean hasClientHarvest() { + return (bitField0_ & 0x00008000) != 0; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 18; + * @return this + */ + public SoldierEffect clearClientHarvest() { + bitField0_ &= ~0x00008000; + clientHarvest.clear(); + return this; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 18; + * + * 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 #getMutableClientHarvest()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectClientHarvest getClientHarvest() { + return clientHarvest; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 18; + * + * 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 SoldierEffectClientHarvest getMutableClientHarvest() { + bitField0_ |= 0x00008000; + return clientHarvest; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 18; + * @param value the clientHarvest to set + * @return this + */ + public SoldierEffect setClientHarvest(final SoldierEffectClientHarvest value) { + bitField0_ |= 0x00008000; + clientHarvest.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectInterest Interest = 19; + * @return whether the interest field is set + */ + public boolean hasInterest() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * optional .SoldierEffectInterest Interest = 19; + * @return this + */ + public SoldierEffect clearInterest() { + bitField0_ &= ~0x00010000; + interest.clear(); + return this; + } + + /** + * optional .SoldierEffectInterest Interest = 19; + * + * 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 #getMutableInterest()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectInterest getInterest() { + return interest; + } + + /** + * optional .SoldierEffectInterest Interest = 19; + * + * 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 SoldierEffectInterest getMutableInterest() { + bitField0_ |= 0x00010000; + return interest; + } + + /** + * optional .SoldierEffectInterest Interest = 19; + * @param value the interest to set + * @return this + */ + public SoldierEffect setInterest(final SoldierEffectInterest value) { + bitField0_ |= 0x00010000; + interest.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 20; + * @return whether the cardReRoll field is set + */ + public boolean hasCardReRoll() { + return (bitField0_ & 0x00020000) != 0; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 20; + * @return this + */ + public SoldierEffect clearCardReRoll() { + bitField0_ &= ~0x00020000; + cardReRoll.clear(); + return this; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 20; + * + * 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 #getMutableCardReRoll()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectCardReRoll getCardReRoll() { + return cardReRoll; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 20; + * + * 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 SoldierEffectCardReRoll getMutableCardReRoll() { + bitField0_ |= 0x00020000; + return cardReRoll; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 20; + * @param value the cardReRoll to set + * @return this + */ + public SoldierEffect setCardReRoll(final SoldierEffectCardReRoll value) { + bitField0_ |= 0x00020000; + cardReRoll.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 21; + * @return whether the diceAddPoint field is set + */ + public boolean hasDiceAddPoint() { + return (bitField0_ & 0x00040000) != 0; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 21; + * @return this + */ + public SoldierEffect clearDiceAddPoint() { + bitField0_ &= ~0x00040000; + diceAddPoint.clear(); + return this; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 21; + * + * 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 #getMutableDiceAddPoint()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectDiceAddPoint getDiceAddPoint() { + return diceAddPoint; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 21; + * + * 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 SoldierEffectDiceAddPoint getMutableDiceAddPoint() { + bitField0_ |= 0x00040000; + return diceAddPoint; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 21; + * @param value the diceAddPoint to set + * @return this + */ + public SoldierEffect setDiceAddPoint(final SoldierEffectDiceAddPoint value) { + bitField0_ |= 0x00040000; + diceAddPoint.copyFrom(value); + return this; + } + + /** + * optional .SoldierShopTempFreeState TempFree = 22; + * @return whether the tempFree field is set + */ + public boolean hasTempFree() { + return (bitField0_ & 0x00080000) != 0; + } + + /** + * optional .SoldierShopTempFreeState TempFree = 22; + * @return this + */ + public SoldierEffect clearTempFree() { + bitField0_ &= ~0x00080000; + tempFree.clear(); + return this; + } + + /** + * optional .SoldierShopTempFreeState TempFree = 22; + * + * 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 #getMutableTempFree()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierShopTempFreeState getTempFree() { + return tempFree; + } + + /** + * optional .SoldierShopTempFreeState TempFree = 22; + * + * 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 SoldierShopTempFreeState getMutableTempFree() { + bitField0_ |= 0x00080000; + return tempFree; + } + + /** + * optional .SoldierShopTempFreeState TempFree = 22; + * @param value the tempFree to set + * @return this + */ + public SoldierEffect setTempFree(final SoldierShopTempFreeState value) { + bitField0_ |= 0x00080000; + tempFree.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00004000) != 0; + return (bitField0_ & 0x00100000) != 0; } /** @@ -25546,7 +29892,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect clearNextPackage() { - bitField0_ &= ~0x00004000; + bitField0_ &= ~0x00100000; nextPackage.clear(); return this; } @@ -25575,7 +29921,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00100000; return nextPackage; } @@ -25585,7 +29931,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect addNextPackage(final byte value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00100000; nextPackage.add(value); return this; } @@ -25596,7 +29942,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect addAllNextPackage(final byte... values) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00100000; nextPackage.addAll(values); return this; } @@ -25607,7 +29953,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffect setNextPackage(final byte... values) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00100000; nextPackage.copyFrom(values); return this; } @@ -25619,18 +29965,24 @@ public final class PublicSoldier { bitField0_ = other.bitField0_; id = other.id; tid = other.tid; + buffId = other.buffId; leftmostChange.copyFrom(other.leftmostChange); becomeAnother.copyFrom(other.becomeAnother); partnerAdditional.copyFrom(other.partnerAdditional); partnerActivateAdditional.copyFrom(other.partnerActivateAdditional); nodeTypeModify.copyFrom(other.nodeTypeModify); - clientEffect.copyFrom(other.clientEffect); + clientAttr.copyFrom(other.clientAttr); refreshState.copyFrom(other.refreshState); purchaseState.copyFrom(other.purchaseState); freeState.copyFrom(other.freeState); rarity.copyFrom(other.rarity); purchaseExpDiscount.copyFrom(other.purchaseExpDiscount); showChess.copyFrom(other.showChess); + clientHarvest.copyFrom(other.clientHarvest); + interest.copyFrom(other.interest); + cardReRoll.copyFrom(other.cardReRoll); + diceAddPoint.copyFrom(other.diceAddPoint); + tempFree.copyFrom(other.tempFree); nextPackage.copyFrom(other.nextPackage); } return this; @@ -25648,6 +30000,9 @@ public final class PublicSoldier { if (other.hasTid()) { setTid(other.tid); } + if (other.hasBuffId()) { + setBuffId(other.buffId); + } if (other.hasLeftmostChange()) { getMutableLeftmostChange().mergeFrom(other.leftmostChange); } @@ -25663,8 +30018,8 @@ public final class PublicSoldier { if (other.hasNodeTypeModify()) { getMutableNodeTypeModify().mergeFrom(other.nodeTypeModify); } - if (other.hasClientEffect()) { - getMutableClientEffect().mergeFrom(other.clientEffect); + if (other.hasClientAttr()) { + getMutableClientAttr().mergeFrom(other.clientAttr); } if (other.hasRefreshState()) { getMutableRefreshState().mergeFrom(other.refreshState); @@ -25684,6 +30039,21 @@ public final class PublicSoldier { if (other.hasShowChess()) { getMutableShowChess().mergeFrom(other.showChess); } + if (other.hasClientHarvest()) { + getMutableClientHarvest().mergeFrom(other.clientHarvest); + } + if (other.hasInterest()) { + getMutableInterest().mergeFrom(other.interest); + } + if (other.hasCardReRoll()) { + getMutableCardReRoll().mergeFrom(other.cardReRoll); + } + if (other.hasDiceAddPoint()) { + getMutableDiceAddPoint().mergeFrom(other.diceAddPoint); + } + if (other.hasTempFree()) { + getMutableTempFree().mergeFrom(other.tempFree); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -25699,18 +30069,24 @@ public final class PublicSoldier { bitField0_ = 0; id = 0; tid = 0; + buffId = 0; leftmostChange.clear(); becomeAnother.clear(); partnerAdditional.clear(); partnerActivateAdditional.clear(); nodeTypeModify.clear(); - clientEffect.clear(); + clientAttr.clear(); refreshState.clear(); purchaseState.clear(); freeState.clear(); rarity.clear(); purchaseExpDiscount.clear(); showChess.clear(); + clientHarvest.clear(); + interest.clear(); + cardReRoll.clear(); + diceAddPoint.clear(); + tempFree.clear(); nextPackage.clear(); return this; } @@ -25727,13 +30103,18 @@ public final class PublicSoldier { partnerAdditional.clearQuick(); partnerActivateAdditional.clearQuick(); nodeTypeModify.clearQuick(); - clientEffect.clearQuick(); + clientAttr.clearQuick(); refreshState.clearQuick(); purchaseState.clearQuick(); freeState.clearQuick(); rarity.clearQuick(); purchaseExpDiscount.clearQuick(); showChess.clearQuick(); + clientHarvest.clearQuick(); + interest.clearQuick(); + cardReRoll.clearQuick(); + diceAddPoint.clearQuick(); + tempFree.clearQuick(); nextPackage.clear(); return this; } @@ -25750,18 +30131,24 @@ public final class PublicSoldier { return bitField0_ == other.bitField0_ && (!hasId() || id == other.id) && (!hasTid() || tid == other.tid) + && (!hasBuffId() || buffId == other.buffId) && (!hasLeftmostChange() || leftmostChange.equals(other.leftmostChange)) && (!hasBecomeAnother() || becomeAnother.equals(other.becomeAnother)) && (!hasPartnerAdditional() || partnerAdditional.equals(other.partnerAdditional)) && (!hasPartnerActivateAdditional() || partnerActivateAdditional.equals(other.partnerActivateAdditional)) && (!hasNodeTypeModify() || nodeTypeModify.equals(other.nodeTypeModify)) - && (!hasClientEffect() || clientEffect.equals(other.clientEffect)) + && (!hasClientAttr() || clientAttr.equals(other.clientAttr)) && (!hasRefreshState() || refreshState.equals(other.refreshState)) && (!hasPurchaseState() || purchaseState.equals(other.purchaseState)) && (!hasFreeState() || freeState.equals(other.freeState)) && (!hasRarity() || rarity.equals(other.rarity)) && (!hasPurchaseExpDiscount() || purchaseExpDiscount.equals(other.purchaseExpDiscount)) && (!hasShowChess() || showChess.equals(other.showChess)) + && (!hasClientHarvest() || clientHarvest.equals(other.clientHarvest)) + && (!hasInterest() || interest.equals(other.interest)) + && (!hasCardReRoll() || cardReRoll.equals(other.cardReRoll)) + && (!hasDiceAddPoint() || diceAddPoint.equals(other.diceAddPoint)) + && (!hasTempFree() || tempFree.equals(other.tempFree)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -25776,54 +30163,78 @@ public final class PublicSoldier { output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(buffId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 50); output.writeMessageNoTag(leftmostChange); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 58); output.writeMessageNoTag(becomeAnother); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 66); output.writeMessageNoTag(partnerAdditional); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 74); output.writeMessageNoTag(partnerActivateAdditional); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 82); output.writeMessageNoTag(nodeTypeModify); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(clientEffect); - } if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(clientAttr); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeRawByte((byte) 98); output.writeMessageNoTag(refreshState); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 106); output.writeMessageNoTag(purchaseState); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 114); output.writeMessageNoTag(freeState); } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00001000) != 0) { output.writeRawByte((byte) 122); output.writeMessageNoTag(rarity); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { output.writeRawLittleEndian16((short) 386); output.writeMessageNoTag(purchaseExpDiscount); } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 394); output.writeMessageNoTag(showChess); } - if ((bitField0_ & 0x00004000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { + output.writeRawLittleEndian16((short) 402); + output.writeMessageNoTag(clientHarvest); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeRawLittleEndian16((short) 410); + output.writeMessageNoTag(interest); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeRawLittleEndian16((short) 418); + output.writeMessageNoTag(cardReRoll); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeRawLittleEndian16((short) 426); + output.writeMessageNoTag(diceAddPoint); + } + if ((bitField0_ & 0x00080000) != 0) { + output.writeRawLittleEndian16((short) 434); + output.writeMessageNoTag(tempFree); + } + if ((bitField0_ & 0x00100000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -25839,42 +30250,60 @@ public final class PublicSoldier { size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(leftmostChange); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(becomeAnother); + size += 1 + ProtoSink.computeMessageSizeNoTag(leftmostChange); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(partnerAdditional); + size += 1 + ProtoSink.computeMessageSizeNoTag(becomeAnother); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(partnerActivateAdditional); + size += 1 + ProtoSink.computeMessageSizeNoTag(partnerAdditional); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nodeTypeModify); + size += 1 + ProtoSink.computeMessageSizeNoTag(partnerActivateAdditional); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(clientEffect); + size += 1 + ProtoSink.computeMessageSizeNoTag(nodeTypeModify); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(refreshState); + size += 1 + ProtoSink.computeMessageSizeNoTag(clientAttr); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(purchaseState); + size += 1 + ProtoSink.computeMessageSizeNoTag(refreshState); } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(freeState); + size += 1 + ProtoSink.computeMessageSizeNoTag(purchaseState); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rarity); + size += 1 + ProtoSink.computeMessageSizeNoTag(freeState); } if ((bitField0_ & 0x00001000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(purchaseExpDiscount); + size += 1 + ProtoSink.computeMessageSizeNoTag(rarity); } if ((bitField0_ & 0x00002000) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(showChess); + size += 2 + ProtoSink.computeMessageSizeNoTag(purchaseExpDiscount); } if ((bitField0_ & 0x00004000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(showChess); + } + if ((bitField0_ & 0x00008000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(clientHarvest); + } + if ((bitField0_ & 0x00010000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(interest); + } + if ((bitField0_ & 0x00020000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(cardReRoll); + } + if ((bitField0_ & 0x00040000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(diceAddPoint); + } + if ((bitField0_ & 0x00080000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(tempFree); + } + if ((bitField0_ & 0x00100000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -25901,6 +30330,15 @@ public final class PublicSoldier { tid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // buffId + buffId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 50) { break; } @@ -25908,7 +30346,7 @@ public final class PublicSoldier { case 50: { // leftmostChange input.readMessage(leftmostChange); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 58) { break; @@ -25917,7 +30355,7 @@ public final class PublicSoldier { case 58: { // becomeAnother input.readMessage(becomeAnother); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 66) { break; @@ -25926,7 +30364,7 @@ public final class PublicSoldier { case 66: { // partnerAdditional input.readMessage(partnerAdditional); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 74) { break; @@ -25935,7 +30373,7 @@ public final class PublicSoldier { case 74: { // partnerActivateAdditional input.readMessage(partnerActivateAdditional); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 82) { break; @@ -25944,16 +30382,16 @@ public final class PublicSoldier { case 82: { // nodeTypeModify input.readMessage(nodeTypeModify); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 90) { break; } } case 90: { - // clientEffect - input.readMessage(clientEffect); - bitField0_ |= 0x00000080; + // clientAttr + input.readMessage(clientAttr); + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 98) { break; @@ -25962,7 +30400,7 @@ public final class PublicSoldier { case 98: { // refreshState input.readMessage(refreshState); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 106) { break; @@ -25971,7 +30409,7 @@ public final class PublicSoldier { case 106: { // purchaseState input.readMessage(purchaseState); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 114) { break; @@ -25980,7 +30418,7 @@ public final class PublicSoldier { case 114: { // freeState input.readMessage(freeState); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 122) { break; @@ -25989,7 +30427,7 @@ public final class PublicSoldier { case 122: { // rarity input.readMessage(rarity); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 130) { break; @@ -25998,7 +30436,7 @@ public final class PublicSoldier { case 130: { // purchaseExpDiscount input.readMessage(purchaseExpDiscount); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 138) { break; @@ -26007,7 +30445,52 @@ public final class PublicSoldier { case 138: { // showChess input.readMessage(showChess); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 146) { + break; + } + } + case 146: { + // clientHarvest + input.readMessage(clientHarvest); + bitField0_ |= 0x00008000; + tag = input.readTag(); + if (tag != 154) { + break; + } + } + case 154: { + // interest + input.readMessage(interest); + bitField0_ |= 0x00010000; + tag = input.readTag(); + if (tag != 162) { + break; + } + } + case 162: { + // cardReRoll + input.readMessage(cardReRoll); + bitField0_ |= 0x00020000; + tag = input.readTag(); + if (tag != 170) { + break; + } + } + case 170: { + // diceAddPoint + input.readMessage(diceAddPoint); + bitField0_ |= 0x00040000; + tag = input.readTag(); + if (tag != 178) { + break; + } + } + case 178: { + // tempFree + input.readMessage(tempFree); + bitField0_ |= 0x00080000; tag = input.readTag(); if (tag != 16378) { break; @@ -26016,7 +30499,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00100000; tag = input.readTag(); if (tag != 0) { break; @@ -26046,42 +30529,60 @@ public final class PublicSoldier { output.writeUInt32(FieldNames.tid, tid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.leftmostChange, leftmostChange); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.becomeAnother, becomeAnother); + output.writeMessage(FieldNames.leftmostChange, leftmostChange); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.partnerAdditional, partnerAdditional); + output.writeMessage(FieldNames.becomeAnother, becomeAnother); } if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.partnerActivateAdditional, partnerActivateAdditional); + output.writeMessage(FieldNames.partnerAdditional, partnerAdditional); } if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.nodeTypeModify, nodeTypeModify); + output.writeMessage(FieldNames.partnerActivateAdditional, partnerActivateAdditional); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.clientEffect, clientEffect); + output.writeMessage(FieldNames.nodeTypeModify, nodeTypeModify); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.refreshState, refreshState); + output.writeMessage(FieldNames.clientAttr, clientAttr); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.purchaseState, purchaseState); + output.writeMessage(FieldNames.refreshState, refreshState); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.freeState, freeState); + output.writeMessage(FieldNames.purchaseState, purchaseState); } if ((bitField0_ & 0x00000800) != 0) { - output.writeMessage(FieldNames.rarity, rarity); + output.writeMessage(FieldNames.freeState, freeState); } if ((bitField0_ & 0x00001000) != 0) { - output.writeMessage(FieldNames.purchaseExpDiscount, purchaseExpDiscount); + output.writeMessage(FieldNames.rarity, rarity); } if ((bitField0_ & 0x00002000) != 0) { - output.writeMessage(FieldNames.showChess, showChess); + output.writeMessage(FieldNames.purchaseExpDiscount, purchaseExpDiscount); } if ((bitField0_ & 0x00004000) != 0) { + output.writeMessage(FieldNames.showChess, showChess); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeMessage(FieldNames.clientHarvest, clientHarvest); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeMessage(FieldNames.interest, interest); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeMessage(FieldNames.cardReRoll, cardReRoll); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeMessage(FieldNames.diceAddPoint, diceAddPoint); + } + if ((bitField0_ & 0x00080000) != 0) { + output.writeMessage(FieldNames.tempFree, tempFree); + } + if ((bitField0_ & 0x00100000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -26116,11 +30617,22 @@ public final class PublicSoldier { } break; } + case 2000714990: { + if (input.isAtField(FieldNames.buffId)) { + if (!input.trySkipNullValue()) { + buffId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case 395943034: { if (input.isAtField(FieldNames.leftmostChange)) { if (!input.trySkipNullValue()) { input.readMessage(leftmostChange); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -26131,7 +30643,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.becomeAnother)) { if (!input.trySkipNullValue()) { input.readMessage(becomeAnother); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -26142,7 +30654,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.partnerAdditional)) { if (!input.trySkipNullValue()) { input.readMessage(partnerAdditional); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -26153,7 +30665,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.partnerActivateAdditional)) { if (!input.trySkipNullValue()) { input.readMessage(partnerActivateAdditional); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -26164,18 +30676,18 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nodeTypeModify)) { if (!input.trySkipNullValue()) { input.readMessage(nodeTypeModify); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); } break; } - case -1682396836: { - if (input.isAtField(FieldNames.clientEffect)) { + case -1199619972: { + if (input.isAtField(FieldNames.clientAttr)) { if (!input.trySkipNullValue()) { - input.readMessage(clientEffect); - bitField0_ |= 0x00000080; + input.readMessage(clientAttr); + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -26186,7 +30698,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.refreshState)) { if (!input.trySkipNullValue()) { input.readMessage(refreshState); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -26197,7 +30709,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.purchaseState)) { if (!input.trySkipNullValue()) { input.readMessage(purchaseState); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -26208,7 +30720,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.freeState)) { if (!input.trySkipNullValue()) { input.readMessage(freeState); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -26219,7 +30731,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.rarity)) { if (!input.trySkipNullValue()) { input.readMessage(rarity); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -26230,7 +30742,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.purchaseExpDiscount)) { if (!input.trySkipNullValue()) { input.readMessage(purchaseExpDiscount); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -26241,7 +30753,62 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.showChess)) { if (!input.trySkipNullValue()) { input.readMessage(showChess); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1916261630: { + if (input.isAtField(FieldNames.clientHarvest)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientHarvest); + bitField0_ |= 0x00008000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 635046730: { + if (input.isAtField(FieldNames.interest)) { + if (!input.trySkipNullValue()) { + input.readMessage(interest); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1694537568: { + if (input.isAtField(FieldNames.cardReRoll)) { + if (!input.trySkipNullValue()) { + input.readMessage(cardReRoll); + bitField0_ |= 0x00020000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -843098538: { + if (input.isAtField(FieldNames.diceAddPoint)) { + if (!input.trySkipNullValue()) { + input.readMessage(diceAddPoint); + bitField0_ |= 0x00040000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1258018688: { + if (input.isAtField(FieldNames.tempFree)) { + if (!input.trySkipNullValue()) { + input.readMessage(tempFree); + bitField0_ |= 0x00080000; } } else { input.skipUnknownField(); @@ -26252,7 +30819,7 @@ public final class PublicSoldier { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00100000; } } else { input.skipUnknownField(); @@ -26315,6 +30882,8 @@ public final class PublicSoldier { static final FieldName tid = FieldName.forField("Tid"); + static final FieldName buffId = FieldName.forField("BuffId"); + static final FieldName leftmostChange = FieldName.forField("LeftmostChange"); static final FieldName becomeAnother = FieldName.forField("BecomeAnother"); @@ -26325,7 +30894,7 @@ public final class PublicSoldier { static final FieldName nodeTypeModify = FieldName.forField("NodeTypeModify"); - static final FieldName clientEffect = FieldName.forField("ClientEffect"); + static final FieldName clientAttr = FieldName.forField("ClientAttr"); static final FieldName refreshState = FieldName.forField("RefreshState"); @@ -26339,6 +30908,16 @@ public final class PublicSoldier { static final FieldName showChess = FieldName.forField("ShowChess"); + static final FieldName clientHarvest = FieldName.forField("ClientHarvest"); + + static final FieldName interest = FieldName.forField("Interest"); + + static final FieldName cardReRoll = FieldName.forField("CardReRoll"); + + static final FieldName diceAddPoint = FieldName.forField("DiceAddPoint"); + + static final FieldName tempFree = FieldName.forField("TempFree"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -26359,15 +30938,35 @@ public final class PublicSoldier { */ private final SoldierEffectPartnerActivateAdditional partnerActivateAdditional = SoldierEffectPartnerActivateAdditional.newInstance(); + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 3; + */ + private final SoldierEffectClientHarvest clientHarvest = SoldierEffectClientHarvest.newInstance(); + + /** + * optional .SoldierEffectInterest Interest = 4; + */ + private final SoldierEffectInterest interest = SoldierEffectInterest.newInstance(); + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 5; + */ + private final SoldierEffectCardReRoll cardReRoll = SoldierEffectCardReRoll.newInstance(); + /** * optional .SoldierNodeTypeModify NodeTypeModify = 10; */ private final SoldierNodeTypeModify nodeTypeModify = SoldierNodeTypeModify.newInstance(); /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; */ - private final SoldierClientEffect clientEffect = SoldierClientEffect.newInstance(); + private final SoldierClientEffectAttr clientAttr = SoldierClientEffectAttr.newInstance(); + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 12; + */ + private final SoldierEffectDiceAddPoint diceAddPoint = SoldierEffectDiceAddPoint.newInstance(); /** * optional bytes NextPackage = 2047; @@ -26499,12 +31098,183 @@ public final class PublicSoldier { return this; } + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 3; + * @return whether the clientHarvest field is set + */ + public boolean hasClientHarvest() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 3; + * @return this + */ + public SoldierEffectInfo clearClientHarvest() { + bitField0_ &= ~0x00000004; + clientHarvest.clear(); + return this; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 3; + * + * 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 #getMutableClientHarvest()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectClientHarvest getClientHarvest() { + return clientHarvest; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 3; + * + * 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 SoldierEffectClientHarvest getMutableClientHarvest() { + bitField0_ |= 0x00000004; + return clientHarvest; + } + + /** + * optional .SoldierEffectClientHarvest ClientHarvest = 3; + * @param value the clientHarvest to set + * @return this + */ + public SoldierEffectInfo setClientHarvest(final SoldierEffectClientHarvest value) { + bitField0_ |= 0x00000004; + clientHarvest.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectInterest Interest = 4; + * @return whether the interest field is set + */ + public boolean hasInterest() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierEffectInterest Interest = 4; + * @return this + */ + public SoldierEffectInfo clearInterest() { + bitField0_ &= ~0x00000008; + interest.clear(); + return this; + } + + /** + * optional .SoldierEffectInterest Interest = 4; + * + * 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 #getMutableInterest()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectInterest getInterest() { + return interest; + } + + /** + * optional .SoldierEffectInterest Interest = 4; + * + * 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 SoldierEffectInterest getMutableInterest() { + bitField0_ |= 0x00000008; + return interest; + } + + /** + * optional .SoldierEffectInterest Interest = 4; + * @param value the interest to set + * @return this + */ + public SoldierEffectInfo setInterest(final SoldierEffectInterest value) { + bitField0_ |= 0x00000008; + interest.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 5; + * @return whether the cardReRoll field is set + */ + public boolean hasCardReRoll() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 5; + * @return this + */ + public SoldierEffectInfo clearCardReRoll() { + bitField0_ &= ~0x00000010; + cardReRoll.clear(); + return this; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 5; + * + * 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 #getMutableCardReRoll()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectCardReRoll getCardReRoll() { + return cardReRoll; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 5; + * + * 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 SoldierEffectCardReRoll getMutableCardReRoll() { + bitField0_ |= 0x00000010; + return cardReRoll; + } + + /** + * optional .SoldierEffectCardReRoll CardReRoll = 5; + * @param value the cardReRoll to set + * @return this + */ + public SoldierEffectInfo setCardReRoll(final SoldierEffectCardReRoll value) { + bitField0_ |= 0x00000010; + cardReRoll.copyFrom(value); + return this; + } + /** * optional .SoldierNodeTypeModify NodeTypeModify = 10; * @return whether the nodeTypeModify field is set */ public boolean hasNodeTypeModify() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -26512,7 +31282,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffectInfo clearNodeTypeModify() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000020; nodeTypeModify.clear(); return this; } @@ -26541,7 +31311,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public SoldierNodeTypeModify getMutableNodeTypeModify() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; return nodeTypeModify; } @@ -26551,45 +31321,45 @@ public final class PublicSoldier { * @return this */ public SoldierEffectInfo setNodeTypeModify(final SoldierNodeTypeModify value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; nodeTypeModify.copyFrom(value); return this; } /** - * optional .SoldierClientEffect ClientEffect = 11; - * @return whether the clientEffect field is set + * optional .SoldierClientEffectAttr ClientAttr = 11; + * @return whether the clientAttr field is set */ - public boolean hasClientEffect() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasClientAttr() { + return (bitField0_ & 0x00000040) != 0; } /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; * @return this */ - public SoldierEffectInfo clearClientEffect() { - bitField0_ &= ~0x00000008; - clientEffect.clear(); + public SoldierEffectInfo clearClientAttr() { + bitField0_ &= ~0x00000040; + clientAttr.clear(); return this; } /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; * * 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 #getMutableClientEffect()} if you want to modify it. + * Use {@link #getMutableClientAttr()} if you want to modify it. * * @return internal storage object for reading */ - public SoldierClientEffect getClientEffect() { - return clientEffect; + public SoldierClientEffectAttr getClientAttr() { + return clientAttr; } /** - * optional .SoldierClientEffect ClientEffect = 11; + * optional .SoldierClientEffectAttr ClientAttr = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -26597,19 +31367,76 @@ public final class PublicSoldier { * * @return internal storage object for modifications */ - public SoldierClientEffect getMutableClientEffect() { - bitField0_ |= 0x00000008; - return clientEffect; + public SoldierClientEffectAttr getMutableClientAttr() { + bitField0_ |= 0x00000040; + return clientAttr; } /** - * optional .SoldierClientEffect ClientEffect = 11; - * @param value the clientEffect to set + * optional .SoldierClientEffectAttr ClientAttr = 11; + * @param value the clientAttr to set * @return this */ - public SoldierEffectInfo setClientEffect(final SoldierClientEffect value) { - bitField0_ |= 0x00000008; - clientEffect.copyFrom(value); + public SoldierEffectInfo setClientAttr(final SoldierClientEffectAttr value) { + bitField0_ |= 0x00000040; + clientAttr.copyFrom(value); + return this; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 12; + * @return whether the diceAddPoint field is set + */ + public boolean hasDiceAddPoint() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 12; + * @return this + */ + public SoldierEffectInfo clearDiceAddPoint() { + bitField0_ &= ~0x00000080; + diceAddPoint.clear(); + return this; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 12; + * + * 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 #getMutableDiceAddPoint()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectDiceAddPoint getDiceAddPoint() { + return diceAddPoint; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 12; + * + * 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 SoldierEffectDiceAddPoint getMutableDiceAddPoint() { + bitField0_ |= 0x00000080; + return diceAddPoint; + } + + /** + * optional .SoldierEffectDiceAddPoint DiceAddPoint = 12; + * @param value the diceAddPoint to set + * @return this + */ + public SoldierEffectInfo setDiceAddPoint(final SoldierEffectDiceAddPoint value) { + bitField0_ |= 0x00000080; + diceAddPoint.copyFrom(value); return this; } @@ -26618,7 +31445,7 @@ public final class PublicSoldier { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -26626,7 +31453,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffectInfo clearNextPackage() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000100; nextPackage.clear(); return this; } @@ -26655,7 +31482,7 @@ public final class PublicSoldier { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000100; return nextPackage; } @@ -26665,7 +31492,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffectInfo addNextPackage(final byte value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000100; nextPackage.add(value); return this; } @@ -26676,7 +31503,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffectInfo addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000100; nextPackage.addAll(values); return this; } @@ -26687,7 +31514,7 @@ public final class PublicSoldier { * @return this */ public SoldierEffectInfo setNextPackage(final byte... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000100; nextPackage.copyFrom(values); return this; } @@ -26699,8 +31526,12 @@ public final class PublicSoldier { bitField0_ = other.bitField0_; partnerAdditional.copyFrom(other.partnerAdditional); partnerActivateAdditional.copyFrom(other.partnerActivateAdditional); + clientHarvest.copyFrom(other.clientHarvest); + interest.copyFrom(other.interest); + cardReRoll.copyFrom(other.cardReRoll); nodeTypeModify.copyFrom(other.nodeTypeModify); - clientEffect.copyFrom(other.clientEffect); + clientAttr.copyFrom(other.clientAttr); + diceAddPoint.copyFrom(other.diceAddPoint); nextPackage.copyFrom(other.nextPackage); } return this; @@ -26718,11 +31549,23 @@ public final class PublicSoldier { if (other.hasPartnerActivateAdditional()) { getMutablePartnerActivateAdditional().mergeFrom(other.partnerActivateAdditional); } + if (other.hasClientHarvest()) { + getMutableClientHarvest().mergeFrom(other.clientHarvest); + } + if (other.hasInterest()) { + getMutableInterest().mergeFrom(other.interest); + } + if (other.hasCardReRoll()) { + getMutableCardReRoll().mergeFrom(other.cardReRoll); + } if (other.hasNodeTypeModify()) { getMutableNodeTypeModify().mergeFrom(other.nodeTypeModify); } - if (other.hasClientEffect()) { - getMutableClientEffect().mergeFrom(other.clientEffect); + if (other.hasClientAttr()) { + getMutableClientAttr().mergeFrom(other.clientAttr); + } + if (other.hasDiceAddPoint()) { + getMutableDiceAddPoint().mergeFrom(other.diceAddPoint); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); @@ -26739,8 +31582,12 @@ public final class PublicSoldier { bitField0_ = 0; partnerAdditional.clear(); partnerActivateAdditional.clear(); + clientHarvest.clear(); + interest.clear(); + cardReRoll.clear(); nodeTypeModify.clear(); - clientEffect.clear(); + clientAttr.clear(); + diceAddPoint.clear(); nextPackage.clear(); return this; } @@ -26754,8 +31601,12 @@ public final class PublicSoldier { bitField0_ = 0; partnerAdditional.clearQuick(); partnerActivateAdditional.clearQuick(); + clientHarvest.clearQuick(); + interest.clearQuick(); + cardReRoll.clearQuick(); nodeTypeModify.clearQuick(); - clientEffect.clearQuick(); + clientAttr.clearQuick(); + diceAddPoint.clearQuick(); nextPackage.clear(); return this; } @@ -26772,8 +31623,12 @@ public final class PublicSoldier { return bitField0_ == other.bitField0_ && (!hasPartnerAdditional() || partnerAdditional.equals(other.partnerAdditional)) && (!hasPartnerActivateAdditional() || partnerActivateAdditional.equals(other.partnerActivateAdditional)) + && (!hasClientHarvest() || clientHarvest.equals(other.clientHarvest)) + && (!hasInterest() || interest.equals(other.interest)) + && (!hasCardReRoll() || cardReRoll.equals(other.cardReRoll)) && (!hasNodeTypeModify() || nodeTypeModify.equals(other.nodeTypeModify)) - && (!hasClientEffect() || clientEffect.equals(other.clientEffect)) + && (!hasClientAttr() || clientAttr.equals(other.clientAttr)) + && (!hasDiceAddPoint() || diceAddPoint.equals(other.diceAddPoint)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -26788,14 +31643,30 @@ public final class PublicSoldier { output.writeMessageNoTag(partnerActivateAdditional); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(clientHarvest); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(interest); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(cardReRoll); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 82); output.writeMessageNoTag(nodeTypeModify); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 90); - output.writeMessageNoTag(clientEffect); + output.writeMessageNoTag(clientAttr); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(diceAddPoint); + } + if ((bitField0_ & 0x00000100) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -26811,12 +31682,24 @@ public final class PublicSoldier { size += 1 + ProtoSink.computeMessageSizeNoTag(partnerActivateAdditional); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nodeTypeModify); + size += 1 + ProtoSink.computeMessageSizeNoTag(clientHarvest); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(clientEffect); + size += 1 + ProtoSink.computeMessageSizeNoTag(interest); } if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cardReRoll); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nodeTypeModify); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientAttr); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(diceAddPoint); + } + if ((bitField0_ & 0x00000100) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -26843,6 +31726,33 @@ public final class PublicSoldier { input.readMessage(partnerActivateAdditional); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // clientHarvest + input.readMessage(clientHarvest); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // interest + input.readMessage(interest); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // cardReRoll + input.readMessage(cardReRoll); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 82) { break; } @@ -26850,16 +31760,25 @@ public final class PublicSoldier { case 82: { // nodeTypeModify input.readMessage(nodeTypeModify); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 90) { break; } } case 90: { - // clientEffect - input.readMessage(clientEffect); - bitField0_ |= 0x00000008; + // clientAttr + input.readMessage(clientAttr); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // diceAddPoint + input.readMessage(diceAddPoint); + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 16378) { break; @@ -26868,7 +31787,7 @@ public final class PublicSoldier { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { break; @@ -26898,12 +31817,24 @@ public final class PublicSoldier { output.writeMessage(FieldNames.partnerActivateAdditional, partnerActivateAdditional); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.nodeTypeModify, nodeTypeModify); + output.writeMessage(FieldNames.clientHarvest, clientHarvest); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.clientEffect, clientEffect); + output.writeMessage(FieldNames.interest, interest); } if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.cardReRoll, cardReRoll); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.nodeTypeModify, nodeTypeModify); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.clientAttr, clientAttr); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.diceAddPoint, diceAddPoint); + } + if ((bitField0_ & 0x00000100) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -26938,10 +31869,10 @@ public final class PublicSoldier { } break; } - case 326982742: { - if (input.isAtField(FieldNames.nodeTypeModify)) { + case 1916261630: { + if (input.isAtField(FieldNames.clientHarvest)) { if (!input.trySkipNullValue()) { - input.readMessage(nodeTypeModify); + input.readMessage(clientHarvest); bitField0_ |= 0x00000004; } } else { @@ -26949,10 +31880,10 @@ public final class PublicSoldier { } break; } - case -1682396836: { - if (input.isAtField(FieldNames.clientEffect)) { + case 635046730: { + if (input.isAtField(FieldNames.interest)) { if (!input.trySkipNullValue()) { - input.readMessage(clientEffect); + input.readMessage(interest); bitField0_ |= 0x00000008; } } else { @@ -26960,11 +31891,55 @@ public final class PublicSoldier { } break; } + case -1694537568: { + if (input.isAtField(FieldNames.cardReRoll)) { + if (!input.trySkipNullValue()) { + input.readMessage(cardReRoll); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 326982742: { + if (input.isAtField(FieldNames.nodeTypeModify)) { + if (!input.trySkipNullValue()) { + input.readMessage(nodeTypeModify); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1199619972: { + if (input.isAtField(FieldNames.clientAttr)) { + if (!input.trySkipNullValue()) { + input.readMessage(clientAttr); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -843098538: { + if (input.isAtField(FieldNames.diceAddPoint)) { + if (!input.trySkipNullValue()) { + input.readMessage(diceAddPoint); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -27028,9 +32003,17 @@ public final class PublicSoldier { static final FieldName partnerActivateAdditional = FieldName.forField("PartnerActivateAdditional"); + static final FieldName clientHarvest = FieldName.forField("ClientHarvest"); + + static final FieldName interest = FieldName.forField("Interest"); + + static final FieldName cardReRoll = FieldName.forField("CardReRoll"); + static final FieldName nodeTypeModify = FieldName.forField("NodeTypeModify"); - static final FieldName clientEffect = FieldName.forField("ClientEffect"); + static final FieldName clientAttr = FieldName.forField("ClientAttr"); + + static final FieldName diceAddPoint = FieldName.forField("DiceAddPoint"); static final FieldName nextPackage = FieldName.forField("NextPackage"); } @@ -27043,9 +32026,9 @@ public final class PublicSoldier { private static final long serialVersionUID = 0L; /** - * optional uint32 SId = 1; + * optional uint32 UID = 1; */ - private int sId; + private int uID; /** * optional .SoldierChess Chess = 2; @@ -27068,39 +32051,39 @@ public final class PublicSoldier { } /** - * optional uint32 SId = 1; - * @return whether the sId field is set + * optional uint32 UID = 1; + * @return whether the uID field is set */ - public boolean hasSId() { + public boolean hasUID() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 SId = 1; + * optional uint32 UID = 1; * @return this */ - public SoldierEffectLeftmostWaitingChessChange clearSId() { + public SoldierEffectLeftmostWaitingChessChange clearUID() { bitField0_ &= ~0x00000001; - sId = 0; + uID = 0; return this; } /** - * optional uint32 SId = 1; - * @return the sId + * optional uint32 UID = 1; + * @return the uID */ - public int getSId() { - return sId; + public int getUID() { + return uID; } /** - * optional uint32 SId = 1; - * @param value the sId to set + * optional uint32 UID = 1; + * @param value the uID to set * @return this */ - public SoldierEffectLeftmostWaitingChessChange setSId(final int value) { + public SoldierEffectLeftmostWaitingChessChange setUID(final int value) { bitField0_ |= 0x00000001; - sId = value; + uID = value; return this; } @@ -27246,7 +32229,7 @@ public final class PublicSoldier { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - sId = other.sId; + uID = other.uID; chess.copyFrom(other.chess); nextPackage.copyFrom(other.nextPackage); } @@ -27260,8 +32243,8 @@ public final class PublicSoldier { return this; } cachedSize = -1; - if (other.hasSId()) { - setSId(other.sId); + if (other.hasUID()) { + setUID(other.uID); } if (other.hasChess()) { getMutableChess().mergeFrom(other.chess); @@ -27279,7 +32262,7 @@ public final class PublicSoldier { } cachedSize = -1; bitField0_ = 0; - sId = 0; + uID = 0; chess.clear(); nextPackage.clear(); return this; @@ -27307,7 +32290,7 @@ public final class PublicSoldier { } SoldierEffectLeftmostWaitingChessChange other = (SoldierEffectLeftmostWaitingChessChange) o; return bitField0_ == other.bitField0_ - && (!hasSId() || sId == other.sId) + && (!hasUID() || uID == other.uID) && (!hasChess() || chess.equals(other.chess)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -27316,7 +32299,7 @@ public final class PublicSoldier { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(sId); + output.writeUInt32NoTag(uID); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 18); @@ -27332,7 +32315,7 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(sId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uID); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(chess); @@ -27352,8 +32335,8 @@ public final class PublicSoldier { while (true) { switch (tag) { case 8: { - // sId - sId = input.readUInt32(); + // uID + uID = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 18) { @@ -27396,7 +32379,7 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.sId, sId); + output.writeUInt32(FieldNames.uID, uID); } if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.chess, chess); @@ -27415,10 +32398,10 @@ public final class PublicSoldier { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 82126: { - if (input.isAtField(FieldNames.sId)) { + case 84016: { + if (input.isAtField(FieldNames.uID)) { if (!input.trySkipNullValue()) { - sId = input.readUInt32(); + uID = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -27503,7 +32486,7 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName sId = FieldName.forField("SId"); + static final FieldName uID = FieldName.forField("UID"); static final FieldName chess = FieldName.forField("Chess"); @@ -29565,113 +34548,39 @@ public final class PublicSoldier { } /** - * Protobuf type {@code SoldierClientEffect} + * Protobuf type {@code SoldierClientEffectAttr} */ - public static final class SoldierClientEffect extends ProtoMessage implements Cloneable { + public static final class SoldierClientEffectAttr extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional int32 UseCount = 3; - */ - private int useCount; - - /** - * optional uint32 Eid = 2; - */ - private int eid; - /** * optional .SoldierEffectStatus Status = 1; */ private int status; + /** + * optional .SoldierEffectSource Source = 2; + */ + private final SoldierEffectSource source = SoldierEffectSource.newInstance(); + /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - private SoldierClientEffect() { + /** + * repeated uint32 Values = 3; + */ + private final RepeatedInt values_ = RepeatedInt.newEmptyInstance(); + + private SoldierClientEffectAttr() { } /** - * @return a new empty instance of {@code SoldierClientEffect} + * @return a new empty instance of {@code SoldierClientEffectAttr} */ - public static SoldierClientEffect newInstance() { - return new SoldierClientEffect(); - } - - /** - * optional int32 UseCount = 3; - * @return whether the useCount field is set - */ - public boolean hasUseCount() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional int32 UseCount = 3; - * @return this - */ - public SoldierClientEffect clearUseCount() { - bitField0_ &= ~0x00000001; - useCount = 0; - return this; - } - - /** - * optional int32 UseCount = 3; - * @return the useCount - */ - public int getUseCount() { - return useCount; - } - - /** - * optional int32 UseCount = 3; - * @param value the useCount to set - * @return this - */ - public SoldierClientEffect setUseCount(final int value) { - bitField0_ |= 0x00000001; - useCount = value; - return this; - } - - /** - * optional uint32 Eid = 2; - * @return whether the eid field is set - */ - public boolean hasEid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 Eid = 2; - * @return this - */ - public SoldierClientEffect clearEid() { - bitField0_ &= ~0x00000002; - eid = 0; - return this; - } - - /** - * optional uint32 Eid = 2; - * @return the eid - */ - public int getEid() { - return eid; - } - - /** - * optional uint32 Eid = 2; - * @param value the eid to set - * @return this - */ - public SoldierClientEffect setEid(final int value) { - bitField0_ |= 0x00000002; - eid = value; - return this; + public static SoldierClientEffectAttr newInstance() { + return new SoldierClientEffectAttr(); } /** @@ -29679,15 +34588,15 @@ public final class PublicSoldier { * @return whether the status field is set */ public boolean hasStatus() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000001) != 0; } /** * optional .SoldierEffectStatus Status = 1; * @return this */ - public SoldierClientEffect clearStatus() { - bitField0_ &= ~0x00000004; + public SoldierClientEffectAttr clearStatus() { + bitField0_ &= ~0x00000001; status = 0; return this; } @@ -29702,7 +34611,7 @@ public final class PublicSoldier { /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SoldierClientEffect#getStatus()}.getNumber(). + * equivalent to {@link SoldierClientEffectAttr#getStatus()}.getNumber(). * * @return numeric wire representation */ @@ -29714,13 +34623,13 @@ public final class PublicSoldier { * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value * constants from {@link SoldierEffectStatus}. Setting an invalid value - * can cause {@link SoldierClientEffect#getStatus()} to return null + * can cause {@link SoldierClientEffectAttr#getStatus()} to return null * * @param value the numeric wire value to set * @return this */ - public SoldierClientEffect setStatusValue(final int value) { - bitField0_ |= 0x00000004; + public SoldierClientEffectAttr setStatusValue(final int value) { + bitField0_ |= 0x00000001; status = value; return this; } @@ -29730,12 +34639,683 @@ public final class PublicSoldier { * @param value the status to set * @return this */ - public SoldierClientEffect setStatus(final SoldierEffectStatus value) { - bitField0_ |= 0x00000004; + public SoldierClientEffectAttr setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000001; status = value.getNumber(); return this; } + /** + * optional .SoldierEffectSource Source = 2; + * @return whether the source field is set + */ + public boolean hasSource() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectSource Source = 2; + * @return this + */ + public SoldierClientEffectAttr clearSource() { + bitField0_ &= ~0x00000002; + source.clear(); + return this; + } + + /** + * optional .SoldierEffectSource Source = 2; + * + * 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 #getMutableSource()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectSource getSource() { + return source; + } + + /** + * optional .SoldierEffectSource Source = 2; + * + * 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 SoldierEffectSource getMutableSource() { + bitField0_ |= 0x00000002; + return source; + } + + /** + * optional .SoldierEffectSource Source = 2; + * @param value the source to set + * @return this + */ + public SoldierClientEffectAttr setSource(final SoldierEffectSource value) { + bitField0_ |= 0x00000002; + source.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierClientEffectAttr clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierClientEffectAttr addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierClientEffectAttr addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierClientEffectAttr setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated uint32 Values = 3; + * @return whether the values_ field is set + */ + public boolean hasValues() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 Values = 3; + * @return this + */ + public SoldierClientEffectAttr clearValues() { + bitField0_ &= ~0x00000008; + values_.clear(); + return this; + } + + /** + * repeated uint32 Values = 3; + * + * 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 #getMutableValues()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getValues() { + return values_; + } + + /** + * repeated uint32 Values = 3; + * + * 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 getMutableValues() { + bitField0_ |= 0x00000008; + return values_; + } + + /** + * repeated uint32 Values = 3; + * @param value the values_ to add + * @return this + */ + public SoldierClientEffectAttr addValues(final int value) { + bitField0_ |= 0x00000008; + values_.add(value); + return this; + } + + /** + * repeated uint32 Values = 3; + * @param values the values_ to add + * @return this + */ + public SoldierClientEffectAttr addAllValues(final int... values) { + bitField0_ |= 0x00000008; + values_.addAll(values); + return this; + } + + @Override + public SoldierClientEffectAttr copyFrom(final SoldierClientEffectAttr other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + status = other.status; + source.copyFrom(other.source); + nextPackage.copyFrom(other.nextPackage); + values_.copyFrom(other.values_); + } + return this; + } + + @Override + public SoldierClientEffectAttr mergeFrom(final SoldierClientEffectAttr other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasSource()) { + getMutableSource().mergeFrom(other.source); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasValues()) { + getMutableValues().addAll(other.values_); + } + return this; + } + + @Override + public SoldierClientEffectAttr clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + status = 0; + source.clear(); + nextPackage.clear(); + values_.clear(); + return this; + } + + @Override + public SoldierClientEffectAttr clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + source.clearQuick(); + nextPackage.clear(); + values_.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierClientEffectAttr)) { + return false; + } + SoldierClientEffectAttr other = (SoldierClientEffectAttr) o; + return bitField0_ == other.bitField0_ + && (!hasStatus() || status == other.status) + && (!hasSource() || source.equals(other.source)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasValues() || values_.equals(other.values_)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(source); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < values_.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(values_.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(source); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * values_.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(values_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierClientEffectAttr mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // source + input.readMessage(source); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // values_ [packed=true] + input.readPackedUInt32(values_, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // values_ [packed=false] + tag = input.readRepeatedUInt32(values_, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.source, source); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.values_, values_); + } + output.endObject(); + } + + @Override + public SoldierClientEffectAttr mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1812638661: { + if (input.isAtField(FieldNames.source)) { + if (!input.trySkipNullValue()) { + input.readMessage(source); + 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 -1739945662: { + if (input.isAtField(FieldNames.values_)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(values_); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierClientEffectAttr clone() { + return new SoldierClientEffectAttr().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierClientEffectAttr parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierClientEffectAttr(), data).checkInitialized(); + } + + public static SoldierClientEffectAttr parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierClientEffectAttr(), input).checkInitialized(); + } + + public static SoldierClientEffectAttr parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierClientEffectAttr(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierClientEffectAttr messages + */ + public static MessageFactory getFactory() { + return SoldierClientEffectAttrFactory.INSTANCE; + } + + private enum SoldierClientEffectAttrFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierClientEffectAttr create() { + return SoldierClientEffectAttr.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName status = FieldName.forField("Status"); + + static final FieldName source = FieldName.forField("Source"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName values_ = FieldName.forField("Values"); + } + } + + /** + * Protobuf type {@code SoldierEffectSource} + */ + public static final class SoldierEffectSource extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional uint32 Tid = 2; + */ + private int tid; + + /** + * optional uint32 BuffId = 3; + */ + private int buffId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectSource() { + } + + /** + * @return a new empty instance of {@code SoldierEffectSource} + */ + public static SoldierEffectSource newInstance() { + return new SoldierEffectSource(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public SoldierEffectSource clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public SoldierEffectSource setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 Tid = 2; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Tid = 2; + * @return this + */ + public SoldierEffectSource clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 2; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 2; + * @param value the tid to set + * @return this + */ + public SoldierEffectSource setTid(final int value) { + bitField0_ |= 0x00000002; + tid = value; + return this; + } + + /** + * optional uint32 BuffId = 3; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 BuffId = 3; + * @return this + */ + public SoldierEffectSource clearBuffId() { + bitField0_ &= ~0x00000004; + buffId = 0; + return this; + } + + /** + * optional uint32 BuffId = 3; + * @return the buffId + */ + public int getBuffId() { + return buffId; + } + + /** + * optional uint32 BuffId = 3; + * @param value the buffId to set + * @return this + */ + public SoldierEffectSource setBuffId(final int value) { + bitField0_ |= 0x00000004; + buffId = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -29748,7 +35328,7 @@ public final class PublicSoldier { * optional bytes NextPackage = 2047; * @return this */ - public SoldierClientEffect clearNextPackage() { + public SoldierEffectSource clearNextPackage() { bitField0_ &= ~0x00000008; nextPackage.clear(); return this; @@ -29787,7 +35367,7 @@ public final class PublicSoldier { * @param value the nextPackage to add * @return this */ - public SoldierClientEffect addNextPackage(final byte value) { + public SoldierEffectSource addNextPackage(final byte value) { bitField0_ |= 0x00000008; nextPackage.add(value); return this; @@ -29798,7 +35378,7 @@ public final class PublicSoldier { * @param values the nextPackage to add * @return this */ - public SoldierClientEffect addAllNextPackage(final byte... values) { + public SoldierEffectSource addAllNextPackage(final byte... values) { bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; @@ -29809,39 +35389,39 @@ public final class PublicSoldier { * @param values the nextPackage to set * @return this */ - public SoldierClientEffect setNextPackage(final byte... values) { + public SoldierEffectSource setNextPackage(final byte... values) { bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @Override - public SoldierClientEffect copyFrom(final SoldierClientEffect other) { + public SoldierEffectSource copyFrom(final SoldierEffectSource other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - useCount = other.useCount; - eid = other.eid; - status = other.status; + id = other.id; + tid = other.tid; + buffId = other.buffId; nextPackage.copyFrom(other.nextPackage); } return this; } @Override - public SoldierClientEffect mergeFrom(final SoldierClientEffect other) { + public SoldierEffectSource mergeFrom(final SoldierEffectSource other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasUseCount()) { - setUseCount(other.useCount); + if (other.hasId()) { + setId(other.id); } - if (other.hasEid()) { - setEid(other.eid); + if (other.hasTid()) { + setTid(other.tid); } - if (other.hasStatus()) { - setStatusValue(other.status); + if (other.hasBuffId()) { + setBuffId(other.buffId); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); @@ -29850,21 +35430,21 @@ public final class PublicSoldier { } @Override - public SoldierClientEffect clear() { + public SoldierEffectSource clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - useCount = 0; - eid = 0; - status = 0; + id = 0; + tid = 0; + buffId = 0; nextPackage.clear(); return this; } @Override - public SoldierClientEffect clearQuick() { + public SoldierEffectSource clearQuick() { if (isEmpty()) { return this; } @@ -29879,30 +35459,30 @@ public final class PublicSoldier { if (o == this) { return true; } - if (!(o instanceof SoldierClientEffect)) { + if (!(o instanceof SoldierEffectSource)) { return false; } - SoldierClientEffect other = (SoldierClientEffect) o; + SoldierEffectSource other = (SoldierEffectSource) o; return bitField0_ == other.bitField0_ - && (!hasUseCount() || useCount == other.useCount) - && (!hasEid() || eid == other.eid) - && (!hasStatus() || status == other.status) + && (!hasId() || id == other.id) + && (!hasTid() || tid == other.tid) + && (!hasBuffId() || buffId == other.buffId) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeInt32NoTag(useCount); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(eid); + output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); - output.writeEnumNoTag(status); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(buffId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); @@ -29914,13 +35494,13 @@ public final class PublicSoldier { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(useCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -29930,14 +35510,14 @@ public final class PublicSoldier { @Override @SuppressWarnings("fallthrough") - public SoldierClientEffect mergeFrom(final ProtoSource input) throws IOException { + public SoldierEffectSource mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // useCount - useCount = input.readInt32(); + case 8: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { @@ -29945,21 +35525,18 @@ public final class PublicSoldier { } } case 16: { - // eid - eid = input.readUInt32(); + // tid + tid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 8) { + if (tag != 24) { break; } } - case 8: { - // status - final int value = input.readInt32(); - if (SoldierEffectStatus.forNumber(value) != null) { - status = value; - bitField0_ |= 0x00000004; - } + case 24: { + // buffId + buffId = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { break; @@ -29992,13 +35569,13 @@ public final class PublicSoldier { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt32(FieldNames.useCount, useCount); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.eid, eid); + output.writeUInt32(FieldNames.tid, tid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -30007,16 +35584,16 @@ public final class PublicSoldier { } @Override - public SoldierClientEffect mergeFrom(final JsonSource input) throws IOException { + public SoldierEffectSource mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -244425752: { - if (input.isAtField(FieldNames.useCount)) { + case 2363: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - useCount = input.readInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -30024,10 +35601,10 @@ public final class PublicSoldier { } break; } - case 69664: { - if (input.isAtField(FieldNames.eid)) { + case 84079: { + if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { - eid = input.readUInt32(); + tid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -30035,16 +35612,11 @@ public final class PublicSoldier { } break; } - case -1808614382: { - if (input.isAtField(FieldNames.status)) { + case 2000714990: { + if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { - final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); - if (value != null) { - status = value.getNumber(); - bitField0_ |= 0x00000004; - } else { - input.skipUnknownEnumValue(); - } + buffId = input.readUInt32(); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -30073,8 +35645,8 @@ public final class PublicSoldier { } @Override - public SoldierClientEffect clone() { - return new SoldierClientEffect().copyFrom(this); + public SoldierEffectSource clone() { + return new SoldierEffectSource().copyFrom(this); } @Override @@ -30082,32 +35654,32 @@ public final class PublicSoldier { return ((bitField0_) == 0); } - public static SoldierClientEffect parseFrom(final byte[] data) throws + public static SoldierEffectSource parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierClientEffect(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SoldierEffectSource(), data).checkInitialized(); } - public static SoldierClientEffect parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierClientEffect(), input).checkInitialized(); + public static SoldierEffectSource parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectSource(), input).checkInitialized(); } - public static SoldierClientEffect parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierClientEffect(), input).checkInitialized(); + public static SoldierEffectSource parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectSource(), input).checkInitialized(); } /** - * @return factory for creating SoldierClientEffect messages + * @return factory for creating SoldierEffectSource messages */ - public static MessageFactory getFactory() { - return SoldierClientEffectFactory.INSTANCE; + public static MessageFactory getFactory() { + return SoldierEffectSourceFactory.INSTANCE; } - private enum SoldierClientEffectFactory implements MessageFactory { + private enum SoldierEffectSourceFactory implements MessageFactory { INSTANCE; @Override - public SoldierClientEffect create() { - return SoldierClientEffect.newInstance(); + public SoldierEffectSource create() { + return SoldierEffectSource.newInstance(); } } @@ -30115,11 +35687,11 @@ public final class PublicSoldier { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName useCount = FieldName.forField("UseCount"); + static final FieldName id = FieldName.forField("Id"); - static final FieldName eid = FieldName.forField("Eid"); + static final FieldName tid = FieldName.forField("Tid"); - static final FieldName status = FieldName.forField("Status"); + static final FieldName buffId = FieldName.forField("BuffId"); static final FieldName nextPackage = FieldName.forField("NextPackage"); } @@ -31342,6 +36914,487 @@ public final class PublicSoldier { } } + /** + * Protobuf type {@code SoldierShopTempFreeState} + */ + public static final class SoldierShopTempFreeState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Free = 2; + */ + private int free; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierShopTempFreeState() { + } + + /** + * @return a new empty instance of {@code SoldierShopTempFreeState} + */ + public static SoldierShopTempFreeState newInstance() { + return new SoldierShopTempFreeState(); + } + + /** + * optional uint32 Free = 2; + * @return whether the free field is set + */ + public boolean hasFree() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Free = 2; + * @return this + */ + public SoldierShopTempFreeState clearFree() { + bitField0_ &= ~0x00000001; + free = 0; + return this; + } + + /** + * optional uint32 Free = 2; + * @return the free + */ + public int getFree() { + return free; + } + + /** + * optional uint32 Free = 2; + * @param value the free to set + * @return this + */ + public SoldierShopTempFreeState setFree(final int value) { + bitField0_ |= 0x00000001; + free = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierShopTempFreeState clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierShopTempFreeState#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierShopTempFreeState#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierShopTempFreeState setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierShopTempFreeState setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierShopTempFreeState clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierShopTempFreeState addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierShopTempFreeState addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierShopTempFreeState setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierShopTempFreeState copyFrom(final SoldierShopTempFreeState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + free = other.free; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopTempFreeState mergeFrom(final SoldierShopTempFreeState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFree()) { + setFree(other.free); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierShopTempFreeState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + free = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierShopTempFreeState 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 SoldierShopTempFreeState)) { + return false; + } + SoldierShopTempFreeState other = (SoldierShopTempFreeState) o; + return bitField0_ == other.bitField0_ + && (!hasFree() || free == other.free) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(free); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(free); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierShopTempFreeState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // free + free = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.free, free); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierShopTempFreeState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2198156: { + if (input.isAtField(FieldNames.free)) { + if (!input.trySkipNullValue()) { + free = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierShopTempFreeState clone() { + return new SoldierShopTempFreeState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierShopTempFreeState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierShopTempFreeState(), data).checkInitialized(); + } + + public static SoldierShopTempFreeState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopTempFreeState(), input).checkInitialized(); + } + + public static SoldierShopTempFreeState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierShopTempFreeState(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierShopTempFreeState messages + */ + public static MessageFactory getFactory() { + return SoldierShopTempFreeStateFactory.INSTANCE; + } + + private enum SoldierShopTempFreeStateFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierShopTempFreeState create() { + return SoldierShopTempFreeState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName free = FieldName.forField("Free"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + /** * Protobuf type {@code SoldierShopRarity} */ @@ -32706,4 +38759,10341 @@ public final class PublicSoldier { static final FieldName chess = FieldName.forField("Chess"); } } + + /** + * Protobuf type {@code SoldierEffectClientHarvest} + */ + public static final class SoldierEffectClientHarvest extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Count = 2; + */ + private int count; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectClientHarvest() { + } + + /** + * @return a new empty instance of {@code SoldierEffectClientHarvest} + */ + public static SoldierEffectClientHarvest newInstance() { + return new SoldierEffectClientHarvest(); + } + + /** + * optional uint32 Count = 2; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Count = 2; + * @return this + */ + public SoldierEffectClientHarvest clearCount() { + bitField0_ &= ~0x00000001; + count = 0; + return this; + } + + /** + * optional uint32 Count = 2; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 Count = 2; + * @param value the count to set + * @return this + */ + public SoldierEffectClientHarvest setCount(final int value) { + bitField0_ |= 0x00000001; + count = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierEffectClientHarvest clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierEffectClientHarvest#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierEffectClientHarvest#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierEffectClientHarvest setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierEffectClientHarvest setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEffectClientHarvest clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEffectClientHarvest addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectClientHarvest addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectClientHarvest setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectClientHarvest copyFrom(final SoldierEffectClientHarvest other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + count = other.count; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectClientHarvest mergeFrom(final SoldierEffectClientHarvest other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectClientHarvest clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + count = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectClientHarvest 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 SoldierEffectClientHarvest)) { + return false; + } + SoldierEffectClientHarvest other = (SoldierEffectClientHarvest) o; + return bitField0_ == other.bitField0_ + && (!hasCount() || count == other.count) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(count); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectClientHarvest mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.count, count); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectClientHarvest mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierEffectClientHarvest clone() { + return new SoldierEffectClientHarvest().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectClientHarvest parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectClientHarvest(), data).checkInitialized(); + } + + public static SoldierEffectClientHarvest parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectClientHarvest(), input).checkInitialized(); + } + + public static SoldierEffectClientHarvest parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectClientHarvest(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectClientHarvest messages + */ + public static MessageFactory getFactory() { + return SoldierEffectClientHarvestFactory.INSTANCE; + } + + private enum SoldierEffectClientHarvestFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectClientHarvest create() { + return SoldierEffectClientHarvest.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName count = FieldName.forField("Count"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectInterest} + */ + public static final class SoldierEffectInterest extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Limit = 2; + */ + private int limit; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectInterest() { + } + + /** + * @return a new empty instance of {@code SoldierEffectInterest} + */ + public static SoldierEffectInterest newInstance() { + return new SoldierEffectInterest(); + } + + /** + * optional uint32 Limit = 2; + * @return whether the limit field is set + */ + public boolean hasLimit() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Limit = 2; + * @return this + */ + public SoldierEffectInterest clearLimit() { + bitField0_ &= ~0x00000001; + limit = 0; + return this; + } + + /** + * optional uint32 Limit = 2; + * @return the limit + */ + public int getLimit() { + return limit; + } + + /** + * optional uint32 Limit = 2; + * @param value the limit to set + * @return this + */ + public SoldierEffectInterest setLimit(final int value) { + bitField0_ |= 0x00000001; + limit = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierEffectInterest clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierEffectInterest#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierEffectInterest#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierEffectInterest setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierEffectInterest setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEffectInterest clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEffectInterest addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectInterest addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectInterest setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectInterest copyFrom(final SoldierEffectInterest other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + limit = other.limit; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectInterest mergeFrom(final SoldierEffectInterest other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLimit()) { + setLimit(other.limit); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectInterest clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + limit = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectInterest 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 SoldierEffectInterest)) { + return false; + } + SoldierEffectInterest other = (SoldierEffectInterest) o; + return bitField0_ == other.bitField0_ + && (!hasLimit() || limit == other.limit) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(limit); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(limit); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectInterest mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // limit + limit = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.limit, limit); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectInterest mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 73423771: { + if (input.isAtField(FieldNames.limit)) { + if (!input.trySkipNullValue()) { + limit = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierEffectInterest clone() { + return new SoldierEffectInterest().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectInterest parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectInterest(), data).checkInitialized(); + } + + public static SoldierEffectInterest parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectInterest(), input).checkInitialized(); + } + + public static SoldierEffectInterest parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectInterest(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectInterest messages + */ + public static MessageFactory getFactory() { + return SoldierEffectInterestFactory.INSTANCE; + } + + private enum SoldierEffectInterestFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectInterest create() { + return SoldierEffectInterest.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName limit = FieldName.forField("Limit"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectCardReRoll} + */ + public static final class SoldierEffectCardReRoll extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Count = 2; + */ + private int count; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectCardReRoll() { + } + + /** + * @return a new empty instance of {@code SoldierEffectCardReRoll} + */ + public static SoldierEffectCardReRoll newInstance() { + return new SoldierEffectCardReRoll(); + } + + /** + * optional uint32 Count = 2; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Count = 2; + * @return this + */ + public SoldierEffectCardReRoll clearCount() { + bitField0_ &= ~0x00000001; + count = 0; + return this; + } + + /** + * optional uint32 Count = 2; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 Count = 2; + * @param value the count to set + * @return this + */ + public SoldierEffectCardReRoll setCount(final int value) { + bitField0_ |= 0x00000001; + count = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierEffectCardReRoll clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierEffectCardReRoll#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierEffectCardReRoll#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierEffectCardReRoll setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierEffectCardReRoll setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEffectCardReRoll clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEffectCardReRoll addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectCardReRoll addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectCardReRoll setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectCardReRoll copyFrom(final SoldierEffectCardReRoll other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + count = other.count; + status = other.status; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectCardReRoll mergeFrom(final SoldierEffectCardReRoll other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectCardReRoll clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + count = 0; + status = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectCardReRoll 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 SoldierEffectCardReRoll)) { + return false; + } + SoldierEffectCardReRoll other = (SoldierEffectCardReRoll) o; + return bitField0_ == other.bitField0_ + && (!hasCount() || count == other.count) + && (!hasStatus() || status == other.status) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + 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(count); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectCardReRoll mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + 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.count, count); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectCardReRoll mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 65298671: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } 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 SoldierEffectCardReRoll clone() { + return new SoldierEffectCardReRoll().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectCardReRoll parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectCardReRoll(), data).checkInitialized(); + } + + public static SoldierEffectCardReRoll parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectCardReRoll(), input).checkInitialized(); + } + + public static SoldierEffectCardReRoll parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectCardReRoll(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectCardReRoll messages + */ + public static MessageFactory getFactory() { + return SoldierEffectCardReRollFactory.INSTANCE; + } + + private enum SoldierEffectCardReRollFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectCardReRoll create() { + return SoldierEffectCardReRoll.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName count = FieldName.forField("Count"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEffectDiceAddPoint} + */ + public static final class SoldierEffectDiceAddPoint extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Point = 3; + */ + private int point; + + /** + * optional .SoldierEffectStatus Status = 1; + */ + private int status; + + /** + * optional .SoldierEffectSource Source = 2; + */ + private final SoldierEffectSource source = SoldierEffectSource.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEffectDiceAddPoint() { + } + + /** + * @return a new empty instance of {@code SoldierEffectDiceAddPoint} + */ + public static SoldierEffectDiceAddPoint newInstance() { + return new SoldierEffectDiceAddPoint(); + } + + /** + * optional uint32 Point = 3; + * @return whether the point field is set + */ + public boolean hasPoint() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Point = 3; + * @return this + */ + public SoldierEffectDiceAddPoint clearPoint() { + bitField0_ &= ~0x00000001; + point = 0; + return this; + } + + /** + * optional uint32 Point = 3; + * @return the point + */ + public int getPoint() { + return point; + } + + /** + * optional uint32 Point = 3; + * @param value the point to set + * @return this + */ + public SoldierEffectDiceAddPoint setPoint(final int value) { + bitField0_ |= 0x00000001; + point = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return this + */ + public SoldierEffectDiceAddPoint clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @return the status + */ + public SoldierEffectStatus getStatus() { + return SoldierEffectStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierEffectDiceAddPoint#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEffectStatus}. Setting an invalid value + * can cause {@link SoldierEffectDiceAddPoint#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierEffectDiceAddPoint setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .SoldierEffectStatus Status = 1; + * @param value the status to set + * @return this + */ + public SoldierEffectDiceAddPoint setStatus(final SoldierEffectStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + /** + * optional .SoldierEffectSource Source = 2; + * @return whether the source field is set + */ + public boolean hasSource() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEffectSource Source = 2; + * @return this + */ + public SoldierEffectDiceAddPoint clearSource() { + bitField0_ &= ~0x00000004; + source.clear(); + return this; + } + + /** + * optional .SoldierEffectSource Source = 2; + * + * 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 #getMutableSource()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEffectSource getSource() { + return source; + } + + /** + * optional .SoldierEffectSource Source = 2; + * + * 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 SoldierEffectSource getMutableSource() { + bitField0_ |= 0x00000004; + return source; + } + + /** + * optional .SoldierEffectSource Source = 2; + * @param value the source to set + * @return this + */ + public SoldierEffectDiceAddPoint setSource(final SoldierEffectSource value) { + bitField0_ |= 0x00000004; + source.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEffectDiceAddPoint clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEffectDiceAddPoint addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEffectDiceAddPoint addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEffectDiceAddPoint setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEffectDiceAddPoint copyFrom(final SoldierEffectDiceAddPoint other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + point = other.point; + status = other.status; + source.copyFrom(other.source); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectDiceAddPoint mergeFrom(final SoldierEffectDiceAddPoint other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPoint()) { + setPoint(other.point); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasSource()) { + getMutableSource().mergeFrom(other.source); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEffectDiceAddPoint clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + point = 0; + status = 0; + source.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierEffectDiceAddPoint clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + source.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEffectDiceAddPoint)) { + return false; + } + SoldierEffectDiceAddPoint other = (SoldierEffectDiceAddPoint) o; + return bitField0_ == other.bitField0_ + && (!hasPoint() || point == other.point) + && (!hasStatus() || status == other.status) + && (!hasSource() || source.equals(other.source)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(source); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(source); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEffectDiceAddPoint mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // point + point = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // status + final int value = input.readInt32(); + if (SoldierEffectStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // source + input.readMessage(source); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.point, point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, SoldierEffectStatus.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.source, source); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEffectDiceAddPoint mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 77292912: { + if (input.isAtField(FieldNames.point)) { + if (!input.trySkipNullValue()) { + point = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1808614382: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final SoldierEffectStatus value = input.readEnum(SoldierEffectStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1812638661: { + if (input.isAtField(FieldNames.source)) { + if (!input.trySkipNullValue()) { + input.readMessage(source); + 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 SoldierEffectDiceAddPoint clone() { + return new SoldierEffectDiceAddPoint().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEffectDiceAddPoint parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEffectDiceAddPoint(), data).checkInitialized(); + } + + public static SoldierEffectDiceAddPoint parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectDiceAddPoint(), input).checkInitialized(); + } + + public static SoldierEffectDiceAddPoint parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEffectDiceAddPoint(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEffectDiceAddPoint messages + */ + public static MessageFactory getFactory() { + return SoldierEffectDiceAddPointFactory.INSTANCE; + } + + private enum SoldierEffectDiceAddPointFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEffectDiceAddPoint create() { + return SoldierEffectDiceAddPoint.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName point = FieldName.forField("Point"); + + static final FieldName status = FieldName.forField("Status"); + + static final FieldName source = FieldName.forField("Source"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierSeasonInfo} + */ + public static final class SoldierSeasonInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 SeasonId = 1; + */ + private int seasonId; + + /** + * optional uint32 RewardLv = 2; + */ + private int rewardLv; + + /** + * optional uint32 RewardExp = 3; + */ + private int rewardExp; + + /** + * optional uint32 CurGradeChallengeId = 4; + */ + private int curGradeChallengeId; + + /** + * optional uint32 CurGradeExp = 5; + */ + private int curGradeExp; + + /** + * optional uint32 CurRewardLv = 6; + */ + private int curRewardLv; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .NewbieInfo Newbies = 7; + */ + private final RepeatedMessage newbies = RepeatedMessage.newEmptyInstance(Public.NewbieInfo.getFactory()); + + private SoldierSeasonInfo() { + } + + /** + * @return a new empty instance of {@code SoldierSeasonInfo} + */ + public static SoldierSeasonInfo newInstance() { + return new SoldierSeasonInfo(); + } + + /** + * optional uint32 SeasonId = 1; + * @return whether the seasonId field is set + */ + public boolean hasSeasonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 SeasonId = 1; + * @return this + */ + public SoldierSeasonInfo clearSeasonId() { + bitField0_ &= ~0x00000001; + seasonId = 0; + return this; + } + + /** + * optional uint32 SeasonId = 1; + * @return the seasonId + */ + public int getSeasonId() { + return seasonId; + } + + /** + * optional uint32 SeasonId = 1; + * @param value the seasonId to set + * @return this + */ + public SoldierSeasonInfo setSeasonId(final int value) { + bitField0_ |= 0x00000001; + seasonId = value; + return this; + } + + /** + * optional uint32 RewardLv = 2; + * @return whether the rewardLv field is set + */ + public boolean hasRewardLv() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 RewardLv = 2; + * @return this + */ + public SoldierSeasonInfo clearRewardLv() { + bitField0_ &= ~0x00000002; + rewardLv = 0; + return this; + } + + /** + * optional uint32 RewardLv = 2; + * @return the rewardLv + */ + public int getRewardLv() { + return rewardLv; + } + + /** + * optional uint32 RewardLv = 2; + * @param value the rewardLv to set + * @return this + */ + public SoldierSeasonInfo setRewardLv(final int value) { + bitField0_ |= 0x00000002; + rewardLv = value; + return this; + } + + /** + * optional uint32 RewardExp = 3; + * @return whether the rewardExp field is set + */ + public boolean hasRewardExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 RewardExp = 3; + * @return this + */ + public SoldierSeasonInfo clearRewardExp() { + bitField0_ &= ~0x00000004; + rewardExp = 0; + return this; + } + + /** + * optional uint32 RewardExp = 3; + * @return the rewardExp + */ + public int getRewardExp() { + return rewardExp; + } + + /** + * optional uint32 RewardExp = 3; + * @param value the rewardExp to set + * @return this + */ + public SoldierSeasonInfo setRewardExp(final int value) { + bitField0_ |= 0x00000004; + rewardExp = value; + return this; + } + + /** + * optional uint32 CurGradeChallengeId = 4; + * @return whether the curGradeChallengeId field is set + */ + public boolean hasCurGradeChallengeId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 CurGradeChallengeId = 4; + * @return this + */ + public SoldierSeasonInfo clearCurGradeChallengeId() { + bitField0_ &= ~0x00000008; + curGradeChallengeId = 0; + return this; + } + + /** + * optional uint32 CurGradeChallengeId = 4; + * @return the curGradeChallengeId + */ + public int getCurGradeChallengeId() { + return curGradeChallengeId; + } + + /** + * optional uint32 CurGradeChallengeId = 4; + * @param value the curGradeChallengeId to set + * @return this + */ + public SoldierSeasonInfo setCurGradeChallengeId(final int value) { + bitField0_ |= 0x00000008; + curGradeChallengeId = value; + return this; + } + + /** + * optional uint32 CurGradeExp = 5; + * @return whether the curGradeExp field is set + */ + public boolean hasCurGradeExp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 CurGradeExp = 5; + * @return this + */ + public SoldierSeasonInfo clearCurGradeExp() { + bitField0_ &= ~0x00000010; + curGradeExp = 0; + return this; + } + + /** + * optional uint32 CurGradeExp = 5; + * @return the curGradeExp + */ + public int getCurGradeExp() { + return curGradeExp; + } + + /** + * optional uint32 CurGradeExp = 5; + * @param value the curGradeExp to set + * @return this + */ + public SoldierSeasonInfo setCurGradeExp(final int value) { + bitField0_ |= 0x00000010; + curGradeExp = value; + return this; + } + + /** + * optional uint32 CurRewardLv = 6; + * @return whether the curRewardLv field is set + */ + public boolean hasCurRewardLv() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 CurRewardLv = 6; + * @return this + */ + public SoldierSeasonInfo clearCurRewardLv() { + bitField0_ &= ~0x00000020; + curRewardLv = 0; + return this; + } + + /** + * optional uint32 CurRewardLv = 6; + * @return the curRewardLv + */ + public int getCurRewardLv() { + return curRewardLv; + } + + /** + * optional uint32 CurRewardLv = 6; + * @param value the curRewardLv to set + * @return this + */ + public SoldierSeasonInfo setCurRewardLv(final int value) { + bitField0_ |= 0x00000020; + curRewardLv = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierSeasonInfo clearNextPackage() { + bitField0_ &= ~0x00000040; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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_ |= 0x00000040; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierSeasonInfo addNextPackage(final byte value) { + bitField0_ |= 0x00000040; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierSeasonInfo addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierSeasonInfo setNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .NewbieInfo Newbies = 7; + * @return whether the newbies field is set + */ + public boolean hasNewbies() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .NewbieInfo Newbies = 7; + * @return this + */ + public SoldierSeasonInfo clearNewbies() { + bitField0_ &= ~0x00000080; + newbies.clear(); + return this; + } + + /** + * repeated .NewbieInfo Newbies = 7; + * + * 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 #getMutableNewbies()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getNewbies() { + return newbies; + } + + /** + * repeated .NewbieInfo Newbies = 7; + * + * 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 getMutableNewbies() { + bitField0_ |= 0x00000080; + return newbies; + } + + /** + * repeated .NewbieInfo Newbies = 7; + * @param value the newbies to add + * @return this + */ + public SoldierSeasonInfo addNewbies(final Public.NewbieInfo value) { + bitField0_ |= 0x00000080; + newbies.add(value); + return this; + } + + /** + * repeated .NewbieInfo Newbies = 7; + * @param values the newbies to add + * @return this + */ + public SoldierSeasonInfo addAllNewbies(final Public.NewbieInfo... values) { + bitField0_ |= 0x00000080; + newbies.addAll(values); + return this; + } + + @Override + public SoldierSeasonInfo copyFrom(final SoldierSeasonInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + seasonId = other.seasonId; + rewardLv = other.rewardLv; + rewardExp = other.rewardExp; + curGradeChallengeId = other.curGradeChallengeId; + curGradeExp = other.curGradeExp; + curRewardLv = other.curRewardLv; + nextPackage.copyFrom(other.nextPackage); + newbies.copyFrom(other.newbies); + } + return this; + } + + @Override + public SoldierSeasonInfo mergeFrom(final SoldierSeasonInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSeasonId()) { + setSeasonId(other.seasonId); + } + if (other.hasRewardLv()) { + setRewardLv(other.rewardLv); + } + if (other.hasRewardExp()) { + setRewardExp(other.rewardExp); + } + if (other.hasCurGradeChallengeId()) { + setCurGradeChallengeId(other.curGradeChallengeId); + } + if (other.hasCurGradeExp()) { + setCurGradeExp(other.curGradeExp); + } + if (other.hasCurRewardLv()) { + setCurRewardLv(other.curRewardLv); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasNewbies()) { + getMutableNewbies().addAll(other.newbies); + } + return this; + } + + @Override + public SoldierSeasonInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + seasonId = 0; + rewardLv = 0; + rewardExp = 0; + curGradeChallengeId = 0; + curGradeExp = 0; + curRewardLv = 0; + nextPackage.clear(); + newbies.clear(); + return this; + } + + @Override + public SoldierSeasonInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + newbies.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierSeasonInfo)) { + return false; + } + SoldierSeasonInfo other = (SoldierSeasonInfo) o; + return bitField0_ == other.bitField0_ + && (!hasSeasonId() || seasonId == other.seasonId) + && (!hasRewardLv() || rewardLv == other.rewardLv) + && (!hasRewardExp() || rewardExp == other.rewardExp) + && (!hasCurGradeChallengeId() || curGradeChallengeId == other.curGradeChallengeId) + && (!hasCurGradeExp() || curGradeExp == other.curGradeExp) + && (!hasCurRewardLv() || curRewardLv == other.curRewardLv) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasNewbies() || newbies.equals(other.newbies)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(seasonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rewardLv); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(rewardExp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(curGradeExp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(curRewardLv); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < newbies.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(newbies.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardLv); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardExp); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curGradeChallengeId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curGradeExp); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curRewardLv); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * newbies.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(newbies); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierSeasonInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // seasonId + seasonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // rewardLv + rewardLv = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // rewardExp + rewardExp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // curGradeChallengeId + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // curGradeExp + curGradeExp = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // curRewardLv + curRewardLv = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // newbies + tag = input.readRepeatedMessage(newbies, tag); + bitField0_ |= 0x00000080; + 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.seasonId, seasonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rewardLv, rewardLv); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rewardExp, rewardExp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.curGradeChallengeId, curGradeChallengeId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.curGradeExp, curGradeExp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.curRewardLv, curRewardLv); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.newbies, newbies); + } + output.endObject(); + } + + @Override + public SoldierSeasonInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 954575742: { + if (input.isAtField(FieldNames.seasonId)) { + if (!input.trySkipNullValue()) { + seasonId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -174936775: { + if (input.isAtField(FieldNames.rewardLv)) { + if (!input.trySkipNullValue()) { + rewardLv = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1128079282: { + if (input.isAtField(FieldNames.rewardExp)) { + if (!input.trySkipNullValue()) { + rewardExp = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 750219975: { + if (input.isAtField(FieldNames.curGradeChallengeId)) { + if (!input.trySkipNullValue()) { + curGradeChallengeId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1391133434: { + if (input.isAtField(FieldNames.curGradeExp)) { + if (!input.trySkipNullValue()) { + curGradeExp = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1720215719: { + if (input.isAtField(FieldNames.curRewardLv)) { + if (!input.trySkipNullValue()) { + curRewardLv = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -784689995: { + if (input.isAtField(FieldNames.newbies)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(newbies); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierSeasonInfo clone() { + return new SoldierSeasonInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierSeasonInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierSeasonInfo(), data).checkInitialized(); + } + + public static SoldierSeasonInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierSeasonInfo(), input).checkInitialized(); + } + + public static SoldierSeasonInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierSeasonInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierSeasonInfo messages + */ + public static MessageFactory getFactory() { + return SoldierSeasonInfoFactory.INSTANCE; + } + + private enum SoldierSeasonInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierSeasonInfo create() { + return SoldierSeasonInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName seasonId = FieldName.forField("SeasonId"); + + static final FieldName rewardLv = FieldName.forField("RewardLv"); + + static final FieldName rewardExp = FieldName.forField("RewardExp"); + + static final FieldName curGradeChallengeId = FieldName.forField("CurGradeChallengeId"); + + static final FieldName curGradeExp = FieldName.forField("CurGradeExp"); + + static final FieldName curRewardLv = FieldName.forField("CurRewardLv"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName newbies = FieldName.forField("Newbies"); + } + } + + /** + * Protobuf type {@code SoldierEventChessReward} + */ + public static final class SoldierEventChessReward extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 Qty = 3; + */ + private int qty; + + /** + * optional uint32 Tid = 1; + */ + private int tid; + + /** + * optional uint32 Star = 2; + */ + private int star; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierEventChessReward() { + } + + /** + * @return a new empty instance of {@code SoldierEventChessReward} + */ + public static SoldierEventChessReward newInstance() { + return new SoldierEventChessReward(); + } + + /** + * optional int32 Qty = 3; + * @return whether the qty field is set + */ + public boolean hasQty() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 Qty = 3; + * @return this + */ + public SoldierEventChessReward clearQty() { + bitField0_ &= ~0x00000001; + qty = 0; + return this; + } + + /** + * optional int32 Qty = 3; + * @return the qty + */ + public int getQty() { + return qty; + } + + /** + * optional int32 Qty = 3; + * @param value the qty to set + * @return this + */ + public SoldierEventChessReward setQty(final int value) { + bitField0_ |= 0x00000001; + qty = value; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Tid = 1; + * @return this + */ + public SoldierEventChessReward clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 Tid = 1; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 Tid = 1; + * @param value the tid to set + * @return this + */ + public SoldierEventChessReward setTid(final int value) { + bitField0_ |= 0x00000002; + tid = value; + return this; + } + + /** + * optional uint32 Star = 2; + * @return whether the star field is set + */ + public boolean hasStar() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 Star = 2; + * @return this + */ + public SoldierEventChessReward clearStar() { + bitField0_ &= ~0x00000004; + star = 0; + return this; + } + + /** + * optional uint32 Star = 2; + * @return the star + */ + public int getStar() { + return star; + } + + /** + * optional uint32 Star = 2; + * @param value the star to set + * @return this + */ + public SoldierEventChessReward setStar(final int value) { + bitField0_ |= 0x00000004; + star = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEventChessReward clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEventChessReward addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEventChessReward addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEventChessReward setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierEventChessReward copyFrom(final SoldierEventChessReward other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + qty = other.qty; + tid = other.tid; + star = other.star; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEventChessReward mergeFrom(final SoldierEventChessReward other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQty()) { + setQty(other.qty); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasStar()) { + setStar(other.star); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierEventChessReward clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + qty = 0; + tid = 0; + star = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierEventChessReward 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 SoldierEventChessReward)) { + return false; + } + SoldierEventChessReward other = (SoldierEventChessReward) o; + return bitField0_ == other.bitField0_ + && (!hasQty() || qty == other.qty) + && (!hasTid() || tid == other.tid) + && (!hasStar() || star == other.star) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt32NoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(star); + } + 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.computeInt32SizeNoTag(qty); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(star); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEventChessReward mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // qty + qty = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // star + star = 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.writeInt32(FieldNames.qty, qty); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.star, star); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierEventChessReward mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 81558: { + if (input.isAtField(FieldNames.qty)) { + if (!input.trySkipNullValue()) { + qty = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 84079: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2587250: { + if (input.isAtField(FieldNames.star)) { + if (!input.trySkipNullValue()) { + star = 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 SoldierEventChessReward clone() { + return new SoldierEventChessReward().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEventChessReward parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEventChessReward(), data).checkInitialized(); + } + + public static SoldierEventChessReward parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEventChessReward(), input).checkInitialized(); + } + + public static SoldierEventChessReward parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEventChessReward(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEventChessReward messages + */ + public static MessageFactory getFactory() { + return SoldierEventChessRewardFactory.INSTANCE; + } + + private enum SoldierEventChessRewardFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEventChessReward create() { + return SoldierEventChessReward.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName qty = FieldName.forField("Qty"); + + static final FieldName tid = FieldName.forField("Tid"); + + static final FieldName star = FieldName.forField("Star"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierEventResRewards} + */ + public static final class SoldierEventResRewards extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierRes ResRewards = 1; + */ + private final RepeatedMessage resRewards = RepeatedMessage.newEmptyInstance(SoldierRes.getFactory()); + + private SoldierEventResRewards() { + } + + /** + * @return a new empty instance of {@code SoldierEventResRewards} + */ + public static SoldierEventResRewards newInstance() { + return new SoldierEventResRewards(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEventResRewards clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEventResRewards addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEventResRewards addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEventResRewards setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierRes ResRewards = 1; + * @return whether the resRewards field is set + */ + public boolean hasResRewards() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierRes ResRewards = 1; + * @return this + */ + public SoldierEventResRewards clearResRewards() { + bitField0_ &= ~0x00000002; + resRewards.clear(); + return this; + } + + /** + * repeated .SoldierRes ResRewards = 1; + * + * 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 #getMutableResRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getResRewards() { + return resRewards; + } + + /** + * repeated .SoldierRes ResRewards = 1; + * + * 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 getMutableResRewards() { + bitField0_ |= 0x00000002; + return resRewards; + } + + /** + * repeated .SoldierRes ResRewards = 1; + * @param value the resRewards to add + * @return this + */ + public SoldierEventResRewards addResRewards(final SoldierRes value) { + bitField0_ |= 0x00000002; + resRewards.add(value); + return this; + } + + /** + * repeated .SoldierRes ResRewards = 1; + * @param values the resRewards to add + * @return this + */ + public SoldierEventResRewards addAllResRewards(final SoldierRes... values) { + bitField0_ |= 0x00000002; + resRewards.addAll(values); + return this; + } + + @Override + public SoldierEventResRewards copyFrom(final SoldierEventResRewards other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + resRewards.copyFrom(other.resRewards); + } + return this; + } + + @Override + public SoldierEventResRewards mergeFrom(final SoldierEventResRewards other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasResRewards()) { + getMutableResRewards().addAll(other.resRewards); + } + return this; + } + + @Override + public SoldierEventResRewards clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + resRewards.clear(); + return this; + } + + @Override + public SoldierEventResRewards clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + resRewards.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEventResRewards)) { + return false; + } + SoldierEventResRewards other = (SoldierEventResRewards) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasResRewards() || resRewards.equals(other.resRewards)); + } + + @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 < resRewards.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(resRewards.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * resRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(resRewards); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEventResRewards mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // resRewards + tag = input.readRepeatedMessage(resRewards, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.resRewards, resRewards); + } + output.endObject(); + } + + @Override + public SoldierEventResRewards 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 226516612: { + if (input.isAtField(FieldNames.resRewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(resRewards); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierEventResRewards clone() { + return new SoldierEventResRewards().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEventResRewards parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEventResRewards(), data).checkInitialized(); + } + + public static SoldierEventResRewards parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEventResRewards(), input).checkInitialized(); + } + + public static SoldierEventResRewards parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEventResRewards(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEventResRewards messages + */ + public static MessageFactory getFactory() { + return SoldierEventResRewardsFactory.INSTANCE; + } + + private enum SoldierEventResRewardsFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEventResRewards create() { + return SoldierEventResRewards.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName resRewards = FieldName.forField("ResRewards"); + } + } + + /** + * Protobuf type {@code SoldierEventChessRewards} + */ + public static final class SoldierEventChessRewards extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + */ + private final RepeatedMessage chessRewards = RepeatedMessage.newEmptyInstance(SoldierEventChessReward.getFactory()); + + private SoldierEventChessRewards() { + } + + /** + * @return a new empty instance of {@code SoldierEventChessRewards} + */ + public static SoldierEventChessRewards newInstance() { + return new SoldierEventChessRewards(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierEventChessRewards clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierEventChessRewards addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierEventChessRewards addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierEventChessRewards setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + * @return whether the chessRewards field is set + */ + public boolean hasChessRewards() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + * @return this + */ + public SoldierEventChessRewards clearChessRewards() { + bitField0_ &= ~0x00000002; + chessRewards.clear(); + return this; + } + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + * + * 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 #getMutableChessRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChessRewards() { + return chessRewards; + } + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + * + * 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 getMutableChessRewards() { + bitField0_ |= 0x00000002; + return chessRewards; + } + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + * @param value the chessRewards to add + * @return this + */ + public SoldierEventChessRewards addChessRewards(final SoldierEventChessReward value) { + bitField0_ |= 0x00000002; + chessRewards.add(value); + return this; + } + + /** + * repeated .SoldierEventChessReward ChessRewards = 1; + * @param values the chessRewards to add + * @return this + */ + public SoldierEventChessRewards addAllChessRewards(final SoldierEventChessReward... values) { + bitField0_ |= 0x00000002; + chessRewards.addAll(values); + return this; + } + + @Override + public SoldierEventChessRewards copyFrom(final SoldierEventChessRewards other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + chessRewards.copyFrom(other.chessRewards); + } + return this; + } + + @Override + public SoldierEventChessRewards mergeFrom(final SoldierEventChessRewards other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasChessRewards()) { + getMutableChessRewards().addAll(other.chessRewards); + } + return this; + } + + @Override + public SoldierEventChessRewards clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chessRewards.clear(); + return this; + } + + @Override + public SoldierEventChessRewards clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + chessRewards.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierEventChessRewards)) { + return false; + } + SoldierEventChessRewards other = (SoldierEventChessRewards) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasChessRewards() || chessRewards.equals(other.chessRewards)); + } + + @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 < chessRewards.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(chessRewards.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * chessRewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chessRewards); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierEventChessRewards mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // chessRewards + tag = input.readRepeatedMessage(chessRewards, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.chessRewards, chessRewards); + } + output.endObject(); + } + + @Override + public SoldierEventChessRewards 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 -887571420: { + if (input.isAtField(FieldNames.chessRewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chessRewards); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierEventChessRewards clone() { + return new SoldierEventChessRewards().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierEventChessRewards parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierEventChessRewards(), data).checkInitialized(); + } + + public static SoldierEventChessRewards parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEventChessRewards(), input).checkInitialized(); + } + + public static SoldierEventChessRewards parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierEventChessRewards(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierEventChessRewards messages + */ + public static MessageFactory getFactory() { + return SoldierEventChessRewardsFactory.INSTANCE; + } + + private enum SoldierEventChessRewardsFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierEventChessRewards create() { + return SoldierEventChessRewards.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName chessRewards = FieldName.forField("ChessRewards"); + } + } + + /** + * Protobuf type {@code SoldierStoryEventRewardShow} + */ + public static final class SoldierStoryEventRewardShow extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 Hp = 4; + */ + private int hp; + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + */ + private int rewardType; + + /** + * optional .SoldierEventResRewards Resource = 2; + */ + private final SoldierEventResRewards resource = SoldierEventResRewards.newInstance(); + + /** + * optional .SoldierEventChessRewards Chess = 3; + */ + private final SoldierEventChessRewards chess = SoldierEventChessRewards.newInstance(); + + /** + * optional .UI32s Ids = 5; + */ + private final Public.UI32s ids = Public.UI32s.newInstance(); + + /** + * optional .Nil Nil = 6; + */ + private final Public.Nil nil = Public.Nil.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierStoryEventRewardShow() { + } + + /** + * @return a new empty instance of {@code SoldierStoryEventRewardShow} + */ + public static SoldierStoryEventRewardShow newInstance() { + return new SoldierStoryEventRewardShow(); + } + + /** + * optional int32 Hp = 4; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 Hp = 4; + * @return this + */ + public SoldierStoryEventRewardShow clearHp() { + bitField0_ &= ~0x00000001; + hp = 0; + return this; + } + + /** + * optional int32 Hp = 4; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional int32 Hp = 4; + * @param value the hp to set + * @return this + */ + public SoldierStoryEventRewardShow setHp(final int value) { + bitField0_ |= 0x00000001; + hp = value; + return this; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @return whether the rewardType field is set + */ + public boolean hasRewardType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @return this + */ + public SoldierStoryEventRewardShow clearRewardType() { + bitField0_ &= ~0x00000002; + rewardType = 0; + return this; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @return the rewardType + */ + public SoldierEventEffectRewardType getRewardType() { + return SoldierEventEffectRewardType.forNumber(rewardType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierStoryEventRewardShow#getRewardType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRewardTypeValue() { + return rewardType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEventEffectRewardType}. Setting an invalid value + * can cause {@link SoldierStoryEventRewardShow#getRewardType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierStoryEventRewardShow setRewardTypeValue(final int value) { + bitField0_ |= 0x00000002; + rewardType = value; + return this; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @param value the rewardType to set + * @return this + */ + public SoldierStoryEventRewardShow setRewardType(final SoldierEventEffectRewardType value) { + bitField0_ |= 0x00000002; + rewardType = value.getNumber(); + return this; + } + + /** + * optional .SoldierEventResRewards Resource = 2; + * @return whether the resource field is set + */ + public boolean hasResource() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEventResRewards Resource = 2; + * @return this + */ + public SoldierStoryEventRewardShow clearResource() { + bitField0_ &= ~0x00000004; + resource.clear(); + return this; + } + + /** + * optional .SoldierEventResRewards Resource = 2; + * + * 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 #getMutableResource()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEventResRewards getResource() { + return resource; + } + + /** + * optional .SoldierEventResRewards Resource = 2; + * + * 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 SoldierEventResRewards getMutableResource() { + bitField0_ |= 0x00000004; + return resource; + } + + /** + * optional .SoldierEventResRewards Resource = 2; + * @param value the resource to set + * @return this + */ + public SoldierStoryEventRewardShow setResource(final SoldierEventResRewards value) { + bitField0_ |= 0x00000004; + resource.copyFrom(value); + return this; + } + + /** + * optional .SoldierEventChessRewards Chess = 3; + * @return whether the chess field is set + */ + public boolean hasChess() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierEventChessRewards Chess = 3; + * @return this + */ + public SoldierStoryEventRewardShow clearChess() { + bitField0_ &= ~0x00000008; + chess.clear(); + return this; + } + + /** + * optional .SoldierEventChessRewards Chess = 3; + * + * 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 #getMutableChess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierEventChessRewards getChess() { + return chess; + } + + /** + * optional .SoldierEventChessRewards Chess = 3; + * + * 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 SoldierEventChessRewards getMutableChess() { + bitField0_ |= 0x00000008; + return chess; + } + + /** + * optional .SoldierEventChessRewards Chess = 3; + * @param value the chess to set + * @return this + */ + public SoldierStoryEventRewardShow setChess(final SoldierEventChessRewards value) { + bitField0_ |= 0x00000008; + chess.copyFrom(value); + return this; + } + + /** + * optional .UI32s Ids = 5; + * @return whether the ids field is set + */ + public boolean hasIds() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .UI32s Ids = 5; + * @return this + */ + public SoldierStoryEventRewardShow clearIds() { + bitField0_ &= ~0x00000010; + ids.clear(); + return this; + } + + /** + * optional .UI32s Ids = 5; + * + * 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 #getMutableIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UI32s getIds() { + return ids; + } + + /** + * optional .UI32s Ids = 5; + * + * 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.UI32s getMutableIds() { + bitField0_ |= 0x00000010; + return ids; + } + + /** + * optional .UI32s Ids = 5; + * @param value the ids to set + * @return this + */ + public SoldierStoryEventRewardShow setIds(final Public.UI32s value) { + bitField0_ |= 0x00000010; + ids.copyFrom(value); + return this; + } + + /** + * optional .Nil Nil = 6; + * @return whether the nil field is set + */ + public boolean hasNil() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .Nil Nil = 6; + * @return this + */ + public SoldierStoryEventRewardShow clearNil() { + bitField0_ &= ~0x00000020; + nil.clear(); + return this; + } + + /** + * optional .Nil Nil = 6; + * + * 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 #getMutableNil()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Nil getNil() { + return nil; + } + + /** + * optional .Nil Nil = 6; + * + * 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.Nil getMutableNil() { + bitField0_ |= 0x00000020; + return nil; + } + + /** + * optional .Nil Nil = 6; + * @param value the nil to set + * @return this + */ + public SoldierStoryEventRewardShow setNil(final Public.Nil value) { + bitField0_ |= 0x00000020; + nil.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierStoryEventRewardShow clearNextPackage() { + bitField0_ &= ~0x00000040; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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_ |= 0x00000040; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierStoryEventRewardShow addNextPackage(final byte value) { + bitField0_ |= 0x00000040; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStoryEventRewardShow addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStoryEventRewardShow setNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierStoryEventRewardShow copyFrom(final SoldierStoryEventRewardShow other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hp = other.hp; + rewardType = other.rewardType; + resource.copyFrom(other.resource); + chess.copyFrom(other.chess); + ids.copyFrom(other.ids); + nil.copyFrom(other.nil); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventRewardShow mergeFrom(final SoldierStoryEventRewardShow other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasRewardType()) { + setRewardTypeValue(other.rewardType); + } + if (other.hasResource()) { + getMutableResource().mergeFrom(other.resource); + } + if (other.hasChess()) { + getMutableChess().mergeFrom(other.chess); + } + if (other.hasIds()) { + getMutableIds().mergeFrom(other.ids); + } + if (other.hasNil()) { + getMutableNil().mergeFrom(other.nil); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventRewardShow clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hp = 0; + rewardType = 0; + resource.clear(); + chess.clear(); + ids.clear(); + nil.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierStoryEventRewardShow clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + resource.clearQuick(); + chess.clearQuick(); + ids.clearQuick(); + nil.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStoryEventRewardShow)) { + return false; + } + SoldierStoryEventRewardShow other = (SoldierStoryEventRewardShow) o; + return bitField0_ == other.bitField0_ + && (!hasHp() || hp == other.hp) + && (!hasRewardType() || rewardType == other.rewardType) + && (!hasResource() || resource.equals(other.resource)) + && (!hasChess() || chess.equals(other.chess)) + && (!hasIds() || ids.equals(other.ids)) + && (!hasNil() || nil.equals(other.nil)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeInt32NoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(rewardType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(resource); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(chess); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(ids); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(nil); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(rewardType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(resource); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chess); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(ids); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nil); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStoryEventRewardShow mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // hp + hp = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // rewardType + final int value = input.readInt32(); + if (SoldierEventEffectRewardType.forNumber(value) != null) { + rewardType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // resource + input.readMessage(resource); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // chess + input.readMessage(chess); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // ids + input.readMessage(ids); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // nil + input.readMessage(nil); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + 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.writeInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.rewardType, rewardType, SoldierEventEffectRewardType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.resource, resource); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.chess, chess); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.ids, ids); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.nil, nil); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierStoryEventRewardShow mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2344: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -610271447: { + if (input.isAtField(FieldNames.rewardType)) { + if (!input.trySkipNullValue()) { + final SoldierEventEffectRewardType value = input.readEnum(SoldierEventEffectRewardType.converter()); + if (value != null) { + rewardType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -276420562: { + if (input.isAtField(FieldNames.resource)) { + if (!input.trySkipNullValue()) { + input.readMessage(resource); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 65074912: { + if (input.isAtField(FieldNames.chess)) { + if (!input.trySkipNullValue()) { + input.readMessage(chess); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 73368: { + if (input.isAtField(FieldNames.ids)) { + if (!input.trySkipNullValue()) { + input.readMessage(ids); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 78321: { + if (input.isAtField(FieldNames.nil)) { + if (!input.trySkipNullValue()) { + input.readMessage(nil); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierStoryEventRewardShow clone() { + return new SoldierStoryEventRewardShow().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStoryEventRewardShow parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStoryEventRewardShow(), data).checkInitialized(); + } + + public static SoldierStoryEventRewardShow parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventRewardShow(), input).checkInitialized(); + } + + public static SoldierStoryEventRewardShow parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventRewardShow(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStoryEventRewardShow messages + */ + public static MessageFactory getFactory() { + return SoldierStoryEventRewardShowFactory.INSTANCE; + } + + private enum SoldierStoryEventRewardShowFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStoryEventRewardShow create() { + return SoldierStoryEventRewardShow.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hp = FieldName.forField("Hp"); + + static final FieldName rewardType = FieldName.forField("RewardType"); + + static final FieldName resource = FieldName.forField("Resource"); + + static final FieldName chess = FieldName.forField("Chess"); + + static final FieldName ids = FieldName.forField("Ids"); + + static final FieldName nil = FieldName.forField("Nil"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierStoryEventOption} + */ + public static final class SoldierStoryEventOption extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 PersonalityOptionId = 1; + */ + private int personalityOptionId; + + /** + * optional bool Select = 3; + */ + private boolean select; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + */ + private final RepeatedMessage rewards = RepeatedMessage.newEmptyInstance(SoldierStoryEventRewardShow.getFactory()); + + private SoldierStoryEventOption() { + } + + /** + * @return a new empty instance of {@code SoldierStoryEventOption} + */ + public static SoldierStoryEventOption newInstance() { + return new SoldierStoryEventOption(); + } + + /** + * optional uint32 PersonalityOptionId = 1; + * @return whether the personalityOptionId field is set + */ + public boolean hasPersonalityOptionId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 PersonalityOptionId = 1; + * @return this + */ + public SoldierStoryEventOption clearPersonalityOptionId() { + bitField0_ &= ~0x00000001; + personalityOptionId = 0; + return this; + } + + /** + * optional uint32 PersonalityOptionId = 1; + * @return the personalityOptionId + */ + public int getPersonalityOptionId() { + return personalityOptionId; + } + + /** + * optional uint32 PersonalityOptionId = 1; + * @param value the personalityOptionId to set + * @return this + */ + public SoldierStoryEventOption setPersonalityOptionId(final int value) { + bitField0_ |= 0x00000001; + personalityOptionId = value; + return this; + } + + /** + * optional bool Select = 3; + * @return whether the select field is set + */ + public boolean hasSelect() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Select = 3; + * @return this + */ + public SoldierStoryEventOption clearSelect() { + bitField0_ &= ~0x00000002; + select = false; + return this; + } + + /** + * optional bool Select = 3; + * @return the select + */ + public boolean getSelect() { + return select; + } + + /** + * optional bool Select = 3; + * @param value the select to set + * @return this + */ + public SoldierStoryEventOption setSelect(final boolean value) { + bitField0_ |= 0x00000002; + select = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierStoryEventOption clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierStoryEventOption addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStoryEventOption addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStoryEventOption setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + * @return whether the rewards field is set + */ + public boolean hasRewards() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + * @return this + */ + public SoldierStoryEventOption clearRewards() { + bitField0_ &= ~0x00000008; + rewards.clear(); + return this; + } + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + * + * 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 #getMutableRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRewards() { + return rewards; + } + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + * + * 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 getMutableRewards() { + bitField0_ |= 0x00000008; + return rewards; + } + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + * @param value the rewards to add + * @return this + */ + public SoldierStoryEventOption addRewards(final SoldierStoryEventRewardShow value) { + bitField0_ |= 0x00000008; + rewards.add(value); + return this; + } + + /** + * repeated .SoldierStoryEventRewardShow Rewards = 2; + * @param values the rewards to add + * @return this + */ + public SoldierStoryEventOption addAllRewards(final SoldierStoryEventRewardShow... values) { + bitField0_ |= 0x00000008; + rewards.addAll(values); + return this; + } + + @Override + public SoldierStoryEventOption copyFrom(final SoldierStoryEventOption other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + personalityOptionId = other.personalityOptionId; + select = other.select; + nextPackage.copyFrom(other.nextPackage); + rewards.copyFrom(other.rewards); + } + return this; + } + + @Override + public SoldierStoryEventOption mergeFrom(final SoldierStoryEventOption other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPersonalityOptionId()) { + setPersonalityOptionId(other.personalityOptionId); + } + if (other.hasSelect()) { + setSelect(other.select); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRewards()) { + getMutableRewards().addAll(other.rewards); + } + return this; + } + + @Override + public SoldierStoryEventOption clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + personalityOptionId = 0; + select = false; + nextPackage.clear(); + rewards.clear(); + return this; + } + + @Override + public SoldierStoryEventOption clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + rewards.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStoryEventOption)) { + return false; + } + SoldierStoryEventOption other = (SoldierStoryEventOption) o; + return bitField0_ == other.bitField0_ + && (!hasPersonalityOptionId() || personalityOptionId == other.personalityOptionId) + && (!hasSelect() || select == other.select) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRewards() || rewards.equals(other.rewards)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(personalityOptionId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(select); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < rewards.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rewards.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(personalityOptionId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * rewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rewards); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStoryEventOption mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // personalityOptionId + personalityOptionId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // select + select = input.readBool(); + 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: { + // rewards + tag = input.readRepeatedMessage(rewards, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.personalityOptionId, personalityOptionId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.select, select); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.rewards, rewards); + } + output.endObject(); + } + + @Override + public SoldierStoryEventOption mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1953435426: { + if (input.isAtField(FieldNames.personalityOptionId)) { + if (!input.trySkipNullValue()) { + personalityOptionId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1822154468: { + if (input.isAtField(FieldNames.select)) { + if (!input.trySkipNullValue()) { + select = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1529663740: { + if (input.isAtField(FieldNames.rewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rewards); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierStoryEventOption clone() { + return new SoldierStoryEventOption().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStoryEventOption parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOption(), data).checkInitialized(); + } + + public static SoldierStoryEventOption parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOption(), input).checkInitialized(); + } + + public static SoldierStoryEventOption parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOption(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStoryEventOption messages + */ + public static MessageFactory getFactory() { + return SoldierStoryEventOptionFactory.INSTANCE; + } + + private enum SoldierStoryEventOptionFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStoryEventOption create() { + return SoldierStoryEventOption.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName personalityOptionId = FieldName.forField("PersonalityOptionId"); + + static final FieldName select = FieldName.forField("Select"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName rewards = FieldName.forField("Rewards"); + } + } + + /** + * Protobuf type {@code SoldierStoryEventOptions} + */ + public static final class SoldierStoryEventOptions extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierStoryEventOption Options = 1; + */ + private final RepeatedMessage options = RepeatedMessage.newEmptyInstance(SoldierStoryEventOption.getFactory()); + + private SoldierStoryEventOptions() { + } + + /** + * @return a new empty instance of {@code SoldierStoryEventOptions} + */ + public static SoldierStoryEventOptions newInstance() { + return new SoldierStoryEventOptions(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierStoryEventOptions clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierStoryEventOptions addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStoryEventOptions addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStoryEventOptions setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierStoryEventOption Options = 1; + * @return whether the options field is set + */ + public boolean hasOptions() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierStoryEventOption Options = 1; + * @return this + */ + public SoldierStoryEventOptions clearOptions() { + bitField0_ &= ~0x00000002; + options.clear(); + return this; + } + + /** + * repeated .SoldierStoryEventOption Options = 1; + * + * 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 #getMutableOptions()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOptions() { + return options; + } + + /** + * repeated .SoldierStoryEventOption Options = 1; + * + * 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 getMutableOptions() { + bitField0_ |= 0x00000002; + return options; + } + + /** + * repeated .SoldierStoryEventOption Options = 1; + * @param value the options to add + * @return this + */ + public SoldierStoryEventOptions addOptions(final SoldierStoryEventOption value) { + bitField0_ |= 0x00000002; + options.add(value); + return this; + } + + /** + * repeated .SoldierStoryEventOption Options = 1; + * @param values the options to add + * @return this + */ + public SoldierStoryEventOptions addAllOptions(final SoldierStoryEventOption... values) { + bitField0_ |= 0x00000002; + options.addAll(values); + return this; + } + + @Override + public SoldierStoryEventOptions copyFrom(final SoldierStoryEventOptions other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + options.copyFrom(other.options); + } + return this; + } + + @Override + public SoldierStoryEventOptions mergeFrom(final SoldierStoryEventOptions other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasOptions()) { + getMutableOptions().addAll(other.options); + } + return this; + } + + @Override + public SoldierStoryEventOptions clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + options.clear(); + return this; + } + + @Override + public SoldierStoryEventOptions clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + options.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStoryEventOptions)) { + return false; + } + SoldierStoryEventOptions other = (SoldierStoryEventOptions) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasOptions() || options.equals(other.options)); + } + + @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 < options.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(options.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * options.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(options); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStoryEventOptions mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // options + tag = input.readRepeatedMessage(options, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.options, options); + } + output.endObject(); + } + + @Override + public SoldierStoryEventOptions 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 415178366: { + if (input.isAtField(FieldNames.options)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(options); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierStoryEventOptions clone() { + return new SoldierStoryEventOptions().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStoryEventOptions parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOptions(), data).checkInitialized(); + } + + public static SoldierStoryEventOptions parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOptions(), input).checkInitialized(); + } + + public static SoldierStoryEventOptions parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOptions(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStoryEventOptions messages + */ + public static MessageFactory getFactory() { + return SoldierStoryEventOptionsFactory.INSTANCE; + } + + private enum SoldierStoryEventOptionsFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStoryEventOptions create() { + return SoldierStoryEventOptions.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName options = FieldName.forField("Options"); + } + } + + /** + * Protobuf type {@code SoldierStoryEventOfPersonalityCaseData} + */ + public static final class SoldierStoryEventOfPersonalityCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 PersonalityStoryId = 1; + */ + private int personalityStoryId; + + /** + * optional uint32 Index = 3; + */ + private int index; + + /** + * optional uint32 DicePoint = 4; + */ + private int dicePoint; + + /** + * optional uint32 PreOptionId = 6; + */ + private int preOptionId; + + /** + * optional bool TwoDice = 5; + */ + private boolean twoDice; + + /** + * optional .SoldierStoryEventOptions Options = 2; + */ + private final SoldierStoryEventOptions options = SoldierStoryEventOptions.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierStoryEventOfPersonalityCaseData() { + } + + /** + * @return a new empty instance of {@code SoldierStoryEventOfPersonalityCaseData} + */ + public static SoldierStoryEventOfPersonalityCaseData newInstance() { + return new SoldierStoryEventOfPersonalityCaseData(); + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @return whether the personalityStoryId field is set + */ + public boolean hasPersonalityStoryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearPersonalityStoryId() { + bitField0_ &= ~0x00000001; + personalityStoryId = 0; + return this; + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @return the personalityStoryId + */ + public int getPersonalityStoryId() { + return personalityStoryId; + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @param value the personalityStoryId to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setPersonalityStoryId(final int value) { + bitField0_ |= 0x00000001; + personalityStoryId = value; + return this; + } + + /** + * optional uint32 Index = 3; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Index = 3; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 Index = 3; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 Index = 3; + * @param value the index to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional uint32 DicePoint = 4; + * @return whether the dicePoint field is set + */ + public boolean hasDicePoint() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 DicePoint = 4; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearDicePoint() { + bitField0_ &= ~0x00000004; + dicePoint = 0; + return this; + } + + /** + * optional uint32 DicePoint = 4; + * @return the dicePoint + */ + public int getDicePoint() { + return dicePoint; + } + + /** + * optional uint32 DicePoint = 4; + * @param value the dicePoint to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setDicePoint(final int value) { + bitField0_ |= 0x00000004; + dicePoint = value; + return this; + } + + /** + * optional uint32 PreOptionId = 6; + * @return whether the preOptionId field is set + */ + public boolean hasPreOptionId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 PreOptionId = 6; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearPreOptionId() { + bitField0_ &= ~0x00000008; + preOptionId = 0; + return this; + } + + /** + * optional uint32 PreOptionId = 6; + * @return the preOptionId + */ + public int getPreOptionId() { + return preOptionId; + } + + /** + * optional uint32 PreOptionId = 6; + * @param value the preOptionId to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setPreOptionId(final int value) { + bitField0_ |= 0x00000008; + preOptionId = value; + return this; + } + + /** + * optional bool TwoDice = 5; + * @return whether the twoDice field is set + */ + public boolean hasTwoDice() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool TwoDice = 5; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearTwoDice() { + bitField0_ &= ~0x00000010; + twoDice = false; + return this; + } + + /** + * optional bool TwoDice = 5; + * @return the twoDice + */ + public boolean getTwoDice() { + return twoDice; + } + + /** + * optional bool TwoDice = 5; + * @param value the twoDice to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setTwoDice(final boolean value) { + bitField0_ |= 0x00000010; + twoDice = value; + return this; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * @return whether the options field is set + */ + public boolean hasOptions() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearOptions() { + bitField0_ &= ~0x00000020; + options.clear(); + return this; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * + * 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 #getMutableOptions()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierStoryEventOptions getOptions() { + return options; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * + * 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 SoldierStoryEventOptions getMutableOptions() { + bitField0_ |= 0x00000020; + return options; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * @param value the options to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setOptions(final SoldierStoryEventOptions value) { + bitField0_ |= 0x00000020; + options.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData clearNextPackage() { + bitField0_ &= ~0x00000040; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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_ |= 0x00000040; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000040; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStoryEventOfPersonalityCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000040; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierStoryEventOfPersonalityCaseData copyFrom( + final SoldierStoryEventOfPersonalityCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + personalityStoryId = other.personalityStoryId; + index = other.index; + dicePoint = other.dicePoint; + preOptionId = other.preOptionId; + twoDice = other.twoDice; + options.copyFrom(other.options); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventOfPersonalityCaseData mergeFrom( + final SoldierStoryEventOfPersonalityCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPersonalityStoryId()) { + setPersonalityStoryId(other.personalityStoryId); + } + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasDicePoint()) { + setDicePoint(other.dicePoint); + } + if (other.hasPreOptionId()) { + setPreOptionId(other.preOptionId); + } + if (other.hasTwoDice()) { + setTwoDice(other.twoDice); + } + if (other.hasOptions()) { + getMutableOptions().mergeFrom(other.options); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventOfPersonalityCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + personalityStoryId = 0; + index = 0; + dicePoint = 0; + preOptionId = 0; + twoDice = false; + options.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierStoryEventOfPersonalityCaseData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + options.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStoryEventOfPersonalityCaseData)) { + return false; + } + SoldierStoryEventOfPersonalityCaseData other = (SoldierStoryEventOfPersonalityCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasPersonalityStoryId() || personalityStoryId == other.personalityStoryId) + && (!hasIndex() || index == other.index) + && (!hasDicePoint() || dicePoint == other.dicePoint) + && (!hasPreOptionId() || preOptionId == other.preOptionId) + && (!hasTwoDice() || twoDice == other.twoDice) + && (!hasOptions() || options.equals(other.options)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(personalityStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(dicePoint); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(preOptionId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(twoDice); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(options); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(personalityStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dicePoint); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(preOptionId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(options); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStoryEventOfPersonalityCaseData mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // personalityStoryId + personalityStoryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // dicePoint + dicePoint = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // preOptionId + preOptionId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // twoDice + twoDice = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // options + input.readMessage(options); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + 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.personalityStoryId, personalityStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.index, index); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.dicePoint, dicePoint); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.preOptionId, preOptionId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.twoDice, twoDice); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.options, options); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierStoryEventOfPersonalityCaseData mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1529075006: { + if (input.isAtField(FieldNames.personalityStoryId)) { + if (!input.trySkipNullValue()) { + personalityStoryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70793394: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 596027913: { + if (input.isAtField(FieldNames.dicePoint)) { + if (!input.trySkipNullValue()) { + dicePoint = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -833571821: { + if (input.isAtField(FieldNames.preOptionId)) { + if (!input.trySkipNullValue()) { + preOptionId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 752407539: { + if (input.isAtField(FieldNames.twoDice)) { + if (!input.trySkipNullValue()) { + twoDice = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 415178366: { + if (input.isAtField(FieldNames.options)) { + if (!input.trySkipNullValue()) { + input.readMessage(options); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierStoryEventOfPersonalityCaseData clone() { + return new SoldierStoryEventOfPersonalityCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStoryEventOfPersonalityCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOfPersonalityCaseData(), data).checkInitialized(); + } + + public static SoldierStoryEventOfPersonalityCaseData parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOfPersonalityCaseData(), input).checkInitialized(); + } + + public static SoldierStoryEventOfPersonalityCaseData parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOfPersonalityCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStoryEventOfPersonalityCaseData messages + */ + public static MessageFactory getFactory() { + return SoldierStoryEventOfPersonalityCaseDataFactory.INSTANCE; + } + + private enum SoldierStoryEventOfPersonalityCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStoryEventOfPersonalityCaseData create() { + return SoldierStoryEventOfPersonalityCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName personalityStoryId = FieldName.forField("PersonalityStoryId"); + + static final FieldName index = FieldName.forField("Index"); + + static final FieldName dicePoint = FieldName.forField("DicePoint"); + + static final FieldName preOptionId = FieldName.forField("PreOptionId"); + + static final FieldName twoDice = FieldName.forField("TwoDice"); + + static final FieldName options = FieldName.forField("Options"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code SoldierStoryEventOfCostlyCaseData} + */ + public static final class SoldierStoryEventOfCostlyCaseData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 PersonalityStoryId = 1; + */ + private int personalityStoryId; + + /** + * optional uint32 PreOptionId = 6; + */ + private int preOptionId; + + /** + * optional .SoldierStoryEventOptions Options = 2; + */ + private final SoldierStoryEventOptions options = SoldierStoryEventOptions.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierStoryEventOfCostlyCaseData() { + } + + /** + * @return a new empty instance of {@code SoldierStoryEventOfCostlyCaseData} + */ + public static SoldierStoryEventOfCostlyCaseData newInstance() { + return new SoldierStoryEventOfCostlyCaseData(); + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @return whether the personalityStoryId field is set + */ + public boolean hasPersonalityStoryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @return this + */ + public SoldierStoryEventOfCostlyCaseData clearPersonalityStoryId() { + bitField0_ &= ~0x00000001; + personalityStoryId = 0; + return this; + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @return the personalityStoryId + */ + public int getPersonalityStoryId() { + return personalityStoryId; + } + + /** + * optional uint32 PersonalityStoryId = 1; + * @param value the personalityStoryId to set + * @return this + */ + public SoldierStoryEventOfCostlyCaseData setPersonalityStoryId(final int value) { + bitField0_ |= 0x00000001; + personalityStoryId = value; + return this; + } + + /** + * optional uint32 PreOptionId = 6; + * @return whether the preOptionId field is set + */ + public boolean hasPreOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 PreOptionId = 6; + * @return this + */ + public SoldierStoryEventOfCostlyCaseData clearPreOptionId() { + bitField0_ &= ~0x00000002; + preOptionId = 0; + return this; + } + + /** + * optional uint32 PreOptionId = 6; + * @return the preOptionId + */ + public int getPreOptionId() { + return preOptionId; + } + + /** + * optional uint32 PreOptionId = 6; + * @param value the preOptionId to set + * @return this + */ + public SoldierStoryEventOfCostlyCaseData setPreOptionId(final int value) { + bitField0_ |= 0x00000002; + preOptionId = value; + return this; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * @return whether the options field is set + */ + public boolean hasOptions() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * @return this + */ + public SoldierStoryEventOfCostlyCaseData clearOptions() { + bitField0_ &= ~0x00000004; + options.clear(); + return this; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * + * 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 #getMutableOptions()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierStoryEventOptions getOptions() { + return options; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * + * 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 SoldierStoryEventOptions getMutableOptions() { + bitField0_ |= 0x00000004; + return options; + } + + /** + * optional .SoldierStoryEventOptions Options = 2; + * @param value the options to set + * @return this + */ + public SoldierStoryEventOfCostlyCaseData setOptions(final SoldierStoryEventOptions value) { + bitField0_ |= 0x00000004; + options.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierStoryEventOfCostlyCaseData clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierStoryEventOfCostlyCaseData addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStoryEventOfCostlyCaseData addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStoryEventOfCostlyCaseData setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierStoryEventOfCostlyCaseData copyFrom( + final SoldierStoryEventOfCostlyCaseData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + personalityStoryId = other.personalityStoryId; + preOptionId = other.preOptionId; + options.copyFrom(other.options); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventOfCostlyCaseData mergeFrom( + final SoldierStoryEventOfCostlyCaseData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPersonalityStoryId()) { + setPersonalityStoryId(other.personalityStoryId); + } + if (other.hasPreOptionId()) { + setPreOptionId(other.preOptionId); + } + if (other.hasOptions()) { + getMutableOptions().mergeFrom(other.options); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventOfCostlyCaseData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + personalityStoryId = 0; + preOptionId = 0; + options.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierStoryEventOfCostlyCaseData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + options.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStoryEventOfCostlyCaseData)) { + return false; + } + SoldierStoryEventOfCostlyCaseData other = (SoldierStoryEventOfCostlyCaseData) o; + return bitField0_ == other.bitField0_ + && (!hasPersonalityStoryId() || personalityStoryId == other.personalityStoryId) + && (!hasPreOptionId() || preOptionId == other.preOptionId) + && (!hasOptions() || options.equals(other.options)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(personalityStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(preOptionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(options); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(personalityStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(preOptionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(options); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStoryEventOfCostlyCaseData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // personalityStoryId + personalityStoryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // preOptionId + preOptionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // options + input.readMessage(options); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.personalityStoryId, personalityStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.preOptionId, preOptionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.options, options); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierStoryEventOfCostlyCaseData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1529075006: { + if (input.isAtField(FieldNames.personalityStoryId)) { + if (!input.trySkipNullValue()) { + personalityStoryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -833571821: { + if (input.isAtField(FieldNames.preOptionId)) { + if (!input.trySkipNullValue()) { + preOptionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 415178366: { + if (input.isAtField(FieldNames.options)) { + if (!input.trySkipNullValue()) { + input.readMessage(options); + 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 SoldierStoryEventOfCostlyCaseData clone() { + return new SoldierStoryEventOfCostlyCaseData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStoryEventOfCostlyCaseData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOfCostlyCaseData(), data).checkInitialized(); + } + + public static SoldierStoryEventOfCostlyCaseData parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOfCostlyCaseData(), input).checkInitialized(); + } + + public static SoldierStoryEventOfCostlyCaseData parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventOfCostlyCaseData(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStoryEventOfCostlyCaseData messages + */ + public static MessageFactory getFactory() { + return SoldierStoryEventOfCostlyCaseDataFactory.INSTANCE; + } + + private enum SoldierStoryEventOfCostlyCaseDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStoryEventOfCostlyCaseData create() { + return SoldierStoryEventOfCostlyCaseData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName personalityStoryId = FieldName.forField("PersonalityStoryId"); + + static final FieldName preOptionId = FieldName.forField("PreOptionId"); + + static final FieldName options = FieldName.forField("Options"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractStoryEventOfPersonalitySelectReq} + */ + public static final class InteractStoryEventOfPersonalitySelectReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Index = 1; + */ + private int index; + + /** + * optional bool ThrowDice = 2; + */ + private boolean throwDice; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractStoryEventOfPersonalitySelectReq() { + } + + /** + * @return a new empty instance of {@code InteractStoryEventOfPersonalitySelectReq} + */ + public static InteractStoryEventOfPersonalitySelectReq newInstance() { + return new InteractStoryEventOfPersonalitySelectReq(); + } + + /** + * optional uint32 Index = 1; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Index = 1; + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 Index = 1; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 Index = 1; + * @param value the index to set + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional bool ThrowDice = 2; + * @return whether the throwDice field is set + */ + public boolean hasThrowDice() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool ThrowDice = 2; + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq clearThrowDice() { + bitField0_ &= ~0x00000002; + throwDice = false; + return this; + } + + /** + * optional bool ThrowDice = 2; + * @return the throwDice + */ + public boolean getThrowDice() { + return throwDice; + } + + /** + * optional bool ThrowDice = 2; + * @param value the throwDice to set + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq setThrowDice(final boolean value) { + bitField0_ |= 0x00000002; + throwDice = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractStoryEventOfPersonalitySelectReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectReq copyFrom( + final InteractStoryEventOfPersonalitySelectReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + throwDice = other.throwDice; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectReq mergeFrom( + final InteractStoryEventOfPersonalitySelectReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasThrowDice()) { + setThrowDice(other.throwDice); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + throwDice = false; + nextPackage.clear(); + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectReq 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 InteractStoryEventOfPersonalitySelectReq)) { + return false; + } + InteractStoryEventOfPersonalitySelectReq other = (InteractStoryEventOfPersonalitySelectReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasThrowDice() || throwDice == other.throwDice) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(throwDice); + } + 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(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractStoryEventOfPersonalitySelectReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // throwDice + throwDice = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.index, index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.throwDice, throwDice); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractStoryEventOfPersonalitySelectReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 70793394: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 747398029: { + if (input.isAtField(FieldNames.throwDice)) { + if (!input.trySkipNullValue()) { + throwDice = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectReq clone() { + return new InteractStoryEventOfPersonalitySelectReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractStoryEventOfPersonalitySelectReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfPersonalitySelectReq(), data).checkInitialized(); + } + + public static InteractStoryEventOfPersonalitySelectReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfPersonalitySelectReq(), input).checkInitialized(); + } + + public static InteractStoryEventOfPersonalitySelectReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfPersonalitySelectReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractStoryEventOfPersonalitySelectReq messages + */ + public static MessageFactory getFactory() { + return InteractStoryEventOfPersonalitySelectReqFactory.INSTANCE; + } + + private enum InteractStoryEventOfPersonalitySelectReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractStoryEventOfPersonalitySelectReq create() { + return InteractStoryEventOfPersonalitySelectReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("Index"); + + static final FieldName throwDice = FieldName.forField("ThrowDice"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractStoryEventOfPersonalitySelectResp} + */ + public static final class InteractStoryEventOfPersonalitySelectResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .Nil Success = 1; + */ + private final Public.Nil success = Public.Nil.newInstance(); + + /** + * optional .InteractStoryEventOfPersonalitySelectResp.OptionReward Reward = 2; + */ + private final OptionReward reward = OptionReward.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private InteractStoryEventOfPersonalitySelectResp() { + } + + /** + * @return a new empty instance of {@code InteractStoryEventOfPersonalitySelectResp} + */ + public static InteractStoryEventOfPersonalitySelectResp newInstance() { + return new InteractStoryEventOfPersonalitySelectResp(); + } + + /** + * optional .Nil Success = 1; + * @return whether the success field is set + */ + public boolean hasSuccess() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .Nil Success = 1; + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp clearSuccess() { + bitField0_ &= ~0x00000001; + success.clear(); + return this; + } + + /** + * optional .Nil Success = 1; + * + * 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 #getMutableSuccess()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.Nil getSuccess() { + return success; + } + + /** + * optional .Nil Success = 1; + * + * 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.Nil getMutableSuccess() { + bitField0_ |= 0x00000001; + return success; + } + + /** + * optional .Nil Success = 1; + * @param value the success to set + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp setSuccess(final Public.Nil value) { + bitField0_ |= 0x00000001; + success.copyFrom(value); + return this; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp.OptionReward Reward = 2; + * @return whether the reward field is set + */ + public boolean hasReward() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp.OptionReward Reward = 2; + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp clearReward() { + bitField0_ &= ~0x00000002; + reward.clear(); + return this; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp.OptionReward Reward = 2; + * + * 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 #getMutableReward()} if you want to modify it. + * + * @return internal storage object for reading + */ + public OptionReward getReward() { + return reward; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp.OptionReward Reward = 2; + * + * 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 OptionReward getMutableReward() { + bitField0_ |= 0x00000002; + return reward; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp.OptionReward Reward = 2; + * @param value the reward to set + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp setReward(final OptionReward value) { + bitField0_ |= 0x00000002; + reward.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractStoryEventOfPersonalitySelectResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectResp copyFrom( + final InteractStoryEventOfPersonalitySelectResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + success.copyFrom(other.success); + reward.copyFrom(other.reward); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectResp mergeFrom( + final InteractStoryEventOfPersonalitySelectResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSuccess()) { + getMutableSuccess().mergeFrom(other.success); + } + if (other.hasReward()) { + getMutableReward().mergeFrom(other.reward); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + success.clear(); + reward.clear(); + nextPackage.clear(); + return this; + } + + @Override + public InteractStoryEventOfPersonalitySelectResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + success.clearQuick(); + reward.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractStoryEventOfPersonalitySelectResp)) { + return false; + } + InteractStoryEventOfPersonalitySelectResp other = (InteractStoryEventOfPersonalitySelectResp) o; + return bitField0_ == other.bitField0_ + && (!hasSuccess() || success.equals(other.success)) + && (!hasReward() || reward.equals(other.reward)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(success); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(reward); + } + 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.computeMessageSizeNoTag(success); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractStoryEventOfPersonalitySelectResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // success + input.readMessage(success); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // reward + input.readMessage(reward); + 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.writeMessage(FieldNames.success, success); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.reward, reward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public InteractStoryEventOfPersonalitySelectResp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -202516509: { + if (input.isAtField(FieldNames.success)) { + if (!input.trySkipNullValue()) { + input.readMessage(success); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1850459313: { + if (input.isAtField(FieldNames.reward)) { + if (!input.trySkipNullValue()) { + input.readMessage(reward); + 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 InteractStoryEventOfPersonalitySelectResp clone() { + return new InteractStoryEventOfPersonalitySelectResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractStoryEventOfPersonalitySelectResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfPersonalitySelectResp(), data).checkInitialized(); + } + + public static InteractStoryEventOfPersonalitySelectResp parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfPersonalitySelectResp(), input).checkInitialized(); + } + + public static InteractStoryEventOfPersonalitySelectResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfPersonalitySelectResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractStoryEventOfPersonalitySelectResp messages + */ + public static MessageFactory getFactory() { + return InteractStoryEventOfPersonalitySelectRespFactory.INSTANCE; + } + + /** + * Protobuf type {@code OptionReward} + */ + public static final class OptionReward extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Point = 1; + */ + private int point; + + /** + * optional bool Result = 2; + */ + private boolean result; + + /** + * repeated uint32 TwoDicePoint = 4; + */ + private final RepeatedInt twoDicePoint = RepeatedInt.newEmptyInstance(); + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + */ + private final RepeatedMessage rewards = RepeatedMessage.newEmptyInstance(SoldierStoryEventEffectReward.getFactory()); + + private OptionReward() { + } + + /** + * @return a new empty instance of {@code OptionReward} + */ + public static OptionReward newInstance() { + return new OptionReward(); + } + + /** + * optional uint32 Point = 1; + * @return whether the point field is set + */ + public boolean hasPoint() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Point = 1; + * @return this + */ + public OptionReward clearPoint() { + bitField0_ &= ~0x00000001; + point = 0; + return this; + } + + /** + * optional uint32 Point = 1; + * @return the point + */ + public int getPoint() { + return point; + } + + /** + * optional uint32 Point = 1; + * @param value the point to set + * @return this + */ + public OptionReward setPoint(final int value) { + bitField0_ |= 0x00000001; + point = value; + return this; + } + + /** + * optional bool Result = 2; + * @return whether the result field is set + */ + public boolean hasResult() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool Result = 2; + * @return this + */ + public OptionReward clearResult() { + bitField0_ &= ~0x00000002; + result = false; + return this; + } + + /** + * optional bool Result = 2; + * @return the result + */ + public boolean getResult() { + return result; + } + + /** + * optional bool Result = 2; + * @param value the result to set + * @return this + */ + public OptionReward setResult(final boolean value) { + bitField0_ |= 0x00000002; + result = value; + return this; + } + + /** + * repeated uint32 TwoDicePoint = 4; + * @return whether the twoDicePoint field is set + */ + public boolean hasTwoDicePoint() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 TwoDicePoint = 4; + * @return this + */ + public OptionReward clearTwoDicePoint() { + bitField0_ &= ~0x00000004; + twoDicePoint.clear(); + return this; + } + + /** + * repeated uint32 TwoDicePoint = 4; + * + * 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 #getMutableTwoDicePoint()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTwoDicePoint() { + return twoDicePoint; + } + + /** + * repeated uint32 TwoDicePoint = 4; + * + * 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 getMutableTwoDicePoint() { + bitField0_ |= 0x00000004; + return twoDicePoint; + } + + /** + * repeated uint32 TwoDicePoint = 4; + * @param value the twoDicePoint to add + * @return this + */ + public OptionReward addTwoDicePoint(final int value) { + bitField0_ |= 0x00000004; + twoDicePoint.add(value); + return this; + } + + /** + * repeated uint32 TwoDicePoint = 4; + * @param values the twoDicePoint to add + * @return this + */ + public OptionReward addAllTwoDicePoint(final int... values) { + bitField0_ |= 0x00000004; + twoDicePoint.addAll(values); + return this; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + * @return whether the rewards field is set + */ + public boolean hasRewards() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + * @return this + */ + public OptionReward clearRewards() { + bitField0_ &= ~0x00000008; + rewards.clear(); + return this; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + * + * 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 #getMutableRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRewards() { + return rewards; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + * + * 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 getMutableRewards() { + bitField0_ |= 0x00000008; + return rewards; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + * @param value the rewards to add + * @return this + */ + public OptionReward addRewards(final SoldierStoryEventEffectReward value) { + bitField0_ |= 0x00000008; + rewards.add(value); + return this; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 3; + * @param values the rewards to add + * @return this + */ + public OptionReward addAllRewards(final SoldierStoryEventEffectReward... values) { + bitField0_ |= 0x00000008; + rewards.addAll(values); + return this; + } + + @Override + public OptionReward copyFrom(final OptionReward other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + point = other.point; + result = other.result; + twoDicePoint.copyFrom(other.twoDicePoint); + rewards.copyFrom(other.rewards); + } + return this; + } + + @Override + public OptionReward mergeFrom(final OptionReward other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPoint()) { + setPoint(other.point); + } + if (other.hasResult()) { + setResult(other.result); + } + if (other.hasTwoDicePoint()) { + getMutableTwoDicePoint().addAll(other.twoDicePoint); + } + if (other.hasRewards()) { + getMutableRewards().addAll(other.rewards); + } + return this; + } + + @Override + public OptionReward clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + point = 0; + result = false; + twoDicePoint.clear(); + rewards.clear(); + return this; + } + + @Override + public OptionReward clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + twoDicePoint.clear(); + rewards.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof OptionReward)) { + return false; + } + OptionReward other = (OptionReward) o; + return bitField0_ == other.bitField0_ + && (!hasPoint() || point == other.point) + && (!hasResult() || result == other.result) + && (!hasTwoDicePoint() || twoDicePoint.equals(other.twoDicePoint)) + && (!hasRewards() || rewards.equals(other.rewards)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(result); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < twoDicePoint.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(twoDicePoint.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < rewards.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(rewards.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(point); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * twoDicePoint.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(twoDicePoint); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * rewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rewards); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public OptionReward mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // point + point = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // result + result = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // twoDicePoint [packed=true] + input.readPackedUInt32(twoDicePoint, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // rewards + tag = input.readRepeatedMessage(rewards, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // twoDicePoint [packed=false] + tag = input.readRepeatedUInt32(twoDicePoint, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.point, point); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.result, result); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.twoDicePoint, twoDicePoint); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.rewards, rewards); + } + output.endObject(); + } + + @Override + public OptionReward mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 77292912: { + if (input.isAtField(FieldNames.point)) { + if (!input.trySkipNullValue()) { + point = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1850559427: { + if (input.isAtField(FieldNames.result)) { + if (!input.trySkipNullValue()) { + result = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -872935075: { + if (input.isAtField(FieldNames.twoDicePoint)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(twoDicePoint); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1529663740: { + if (input.isAtField(FieldNames.rewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rewards); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public OptionReward clone() { + return new OptionReward().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static OptionReward parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new OptionReward(), data).checkInitialized(); + } + + public static OptionReward parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new OptionReward(), input).checkInitialized(); + } + + public static OptionReward parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new OptionReward(), input).checkInitialized(); + } + + /** + * @return factory for creating OptionReward messages + */ + public static MessageFactory getFactory() { + return OptionRewardFactory.INSTANCE; + } + + private enum OptionRewardFactory implements MessageFactory { + INSTANCE; + + @Override + public OptionReward create() { + return OptionReward.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName point = FieldName.forField("Point"); + + static final FieldName result = FieldName.forField("Result"); + + static final FieldName twoDicePoint = FieldName.forField("TwoDicePoint"); + + static final FieldName rewards = FieldName.forField("Rewards"); + } + } + + private enum InteractStoryEventOfPersonalitySelectRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractStoryEventOfPersonalitySelectResp create() { + return InteractStoryEventOfPersonalitySelectResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName success = FieldName.forField("Success"); + + static final FieldName reward = FieldName.forField("Reward"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code InteractStoryEventOfCostlySelectResp} + */ + public static final class InteractStoryEventOfCostlySelectResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + */ + private final RepeatedMessage rewards = RepeatedMessage.newEmptyInstance(SoldierStoryEventEffectReward.getFactory()); + + private InteractStoryEventOfCostlySelectResp() { + } + + /** + * @return a new empty instance of {@code InteractStoryEventOfCostlySelectResp} + */ + public static InteractStoryEventOfCostlySelectResp newInstance() { + return new InteractStoryEventOfCostlySelectResp(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public InteractStoryEventOfCostlySelectResp clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public InteractStoryEventOfCostlySelectResp addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public InteractStoryEventOfCostlySelectResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public InteractStoryEventOfCostlySelectResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + * @return whether the rewards field is set + */ + public boolean hasRewards() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + * @return this + */ + public InteractStoryEventOfCostlySelectResp clearRewards() { + bitField0_ &= ~0x00000002; + rewards.clear(); + return this; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + * + * 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 #getMutableRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRewards() { + return rewards; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + * + * 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 getMutableRewards() { + bitField0_ |= 0x00000002; + return rewards; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + * @param value the rewards to add + * @return this + */ + public InteractStoryEventOfCostlySelectResp addRewards( + final SoldierStoryEventEffectReward value) { + bitField0_ |= 0x00000002; + rewards.add(value); + return this; + } + + /** + * repeated .SoldierStoryEventEffectReward Rewards = 1; + * @param values the rewards to add + * @return this + */ + public InteractStoryEventOfCostlySelectResp addAllRewards( + final SoldierStoryEventEffectReward... values) { + bitField0_ |= 0x00000002; + rewards.addAll(values); + return this; + } + + @Override + public InteractStoryEventOfCostlySelectResp copyFrom( + final InteractStoryEventOfCostlySelectResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + rewards.copyFrom(other.rewards); + } + return this; + } + + @Override + public InteractStoryEventOfCostlySelectResp mergeFrom( + final InteractStoryEventOfCostlySelectResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRewards()) { + getMutableRewards().addAll(other.rewards); + } + return this; + } + + @Override + public InteractStoryEventOfCostlySelectResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + rewards.clear(); + return this; + } + + @Override + public InteractStoryEventOfCostlySelectResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + rewards.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof InteractStoryEventOfCostlySelectResp)) { + return false; + } + InteractStoryEventOfCostlySelectResp other = (InteractStoryEventOfCostlySelectResp) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRewards() || rewards.equals(other.rewards)); + } + + @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 < rewards.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(rewards.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * rewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rewards); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractStoryEventOfCostlySelectResp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rewards + tag = input.readRepeatedMessage(rewards, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.rewards, rewards); + } + output.endObject(); + } + + @Override + public InteractStoryEventOfCostlySelectResp 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 -1529663740: { + if (input.isAtField(FieldNames.rewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rewards); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractStoryEventOfCostlySelectResp clone() { + return new InteractStoryEventOfCostlySelectResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractStoryEventOfCostlySelectResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfCostlySelectResp(), data).checkInitialized(); + } + + public static InteractStoryEventOfCostlySelectResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfCostlySelectResp(), input).checkInitialized(); + } + + public static InteractStoryEventOfCostlySelectResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new InteractStoryEventOfCostlySelectResp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractStoryEventOfCostlySelectResp messages + */ + public static MessageFactory getFactory() { + return InteractStoryEventOfCostlySelectRespFactory.INSTANCE; + } + + private enum InteractStoryEventOfCostlySelectRespFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractStoryEventOfCostlySelectResp create() { + return InteractStoryEventOfCostlySelectResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName rewards = FieldName.forField("Rewards"); + } + } + + /** + * Protobuf type {@code SoldierStoryEventEffectReward} + */ + public static final class SoldierStoryEventEffectReward extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 Hp = 2; + */ + private int hp; + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + */ + private int rewardType; + + /** + * optional .SoldierEventResRewards Res = 3; + */ + private final SoldierEventResRewards res = SoldierEventResRewards.newInstance(); + + /** + * optional .SoldierChessList ChessList = 4; + */ + private final SoldierChessList chessList = SoldierChessList.newInstance(); + + /** + * optional .UI32s CardIds = 5; + */ + private final Public.UI32s cardIds = Public.UI32s.newInstance(); + + /** + * optional .UI32s CardEffectIds = 6; + */ + private final Public.UI32s cardEffectIds = Public.UI32s.newInstance(); + + /** + * optional .SoldierStoryEventOptions NextOptions = 7; + */ + private final SoldierStoryEventOptions nextOptions = SoldierStoryEventOptions.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierStoryEventEffectReward() { + } + + /** + * @return a new empty instance of {@code SoldierStoryEventEffectReward} + */ + public static SoldierStoryEventEffectReward newInstance() { + return new SoldierStoryEventEffectReward(); + } + + /** + * optional int32 Hp = 2; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 Hp = 2; + * @return this + */ + public SoldierStoryEventEffectReward clearHp() { + bitField0_ &= ~0x00000001; + hp = 0; + return this; + } + + /** + * optional int32 Hp = 2; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional int32 Hp = 2; + * @param value the hp to set + * @return this + */ + public SoldierStoryEventEffectReward setHp(final int value) { + bitField0_ |= 0x00000001; + hp = value; + return this; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @return whether the rewardType field is set + */ + public boolean hasRewardType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @return this + */ + public SoldierStoryEventEffectReward clearRewardType() { + bitField0_ &= ~0x00000002; + rewardType = 0; + return this; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @return the rewardType + */ + public SoldierEventEffectRewardType getRewardType() { + return SoldierEventEffectRewardType.forNumber(rewardType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SoldierStoryEventEffectReward#getRewardType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRewardTypeValue() { + return rewardType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SoldierEventEffectRewardType}. Setting an invalid value + * can cause {@link SoldierStoryEventEffectReward#getRewardType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SoldierStoryEventEffectReward setRewardTypeValue(final int value) { + bitField0_ |= 0x00000002; + rewardType = value; + return this; + } + + /** + * optional .SoldierEventEffectRewardType RewardType = 1; + * @param value the rewardType to set + * @return this + */ + public SoldierStoryEventEffectReward setRewardType(final SoldierEventEffectRewardType value) { + bitField0_ |= 0x00000002; + rewardType = value.getNumber(); + return this; + } + + /** + * optional .SoldierEventResRewards Res = 3; + * @return whether the res field is set + */ + public boolean hasRes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SoldierEventResRewards Res = 3; + * @return this + */ + public SoldierStoryEventEffectReward clearRes() { + bitField0_ &= ~0x00000004; + res.clear(); + return this; + } + + /** + * optional .SoldierEventResRewards Res = 3; + * + * 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 SoldierEventResRewards getRes() { + return res; + } + + /** + * optional .SoldierEventResRewards Res = 3; + * + * 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 SoldierEventResRewards getMutableRes() { + bitField0_ |= 0x00000004; + return res; + } + + /** + * optional .SoldierEventResRewards Res = 3; + * @param value the res to set + * @return this + */ + public SoldierStoryEventEffectReward setRes(final SoldierEventResRewards value) { + bitField0_ |= 0x00000004; + res.copyFrom(value); + return this; + } + + /** + * optional .SoldierChessList ChessList = 4; + * @return whether the chessList field is set + */ + public boolean hasChessList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SoldierChessList ChessList = 4; + * @return this + */ + public SoldierStoryEventEffectReward clearChessList() { + bitField0_ &= ~0x00000008; + chessList.clear(); + return this; + } + + /** + * optional .SoldierChessList ChessList = 4; + * + * 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 #getMutableChessList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierChessList getChessList() { + return chessList; + } + + /** + * optional .SoldierChessList ChessList = 4; + * + * 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 SoldierChessList getMutableChessList() { + bitField0_ |= 0x00000008; + return chessList; + } + + /** + * optional .SoldierChessList ChessList = 4; + * @param value the chessList to set + * @return this + */ + public SoldierStoryEventEffectReward setChessList(final SoldierChessList value) { + bitField0_ |= 0x00000008; + chessList.copyFrom(value); + return this; + } + + /** + * optional .UI32s CardIds = 5; + * @return whether the cardIds field is set + */ + public boolean hasCardIds() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .UI32s CardIds = 5; + * @return this + */ + public SoldierStoryEventEffectReward clearCardIds() { + bitField0_ &= ~0x00000010; + cardIds.clear(); + return this; + } + + /** + * optional .UI32s CardIds = 5; + * + * 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 #getMutableCardIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UI32s getCardIds() { + return cardIds; + } + + /** + * optional .UI32s CardIds = 5; + * + * 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.UI32s getMutableCardIds() { + bitField0_ |= 0x00000010; + return cardIds; + } + + /** + * optional .UI32s CardIds = 5; + * @param value the cardIds to set + * @return this + */ + public SoldierStoryEventEffectReward setCardIds(final Public.UI32s value) { + bitField0_ |= 0x00000010; + cardIds.copyFrom(value); + return this; + } + + /** + * optional .UI32s CardEffectIds = 6; + * @return whether the cardEffectIds field is set + */ + public boolean hasCardEffectIds() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .UI32s CardEffectIds = 6; + * @return this + */ + public SoldierStoryEventEffectReward clearCardEffectIds() { + bitField0_ &= ~0x00000020; + cardEffectIds.clear(); + return this; + } + + /** + * optional .UI32s CardEffectIds = 6; + * + * 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 #getMutableCardEffectIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UI32s getCardEffectIds() { + return cardEffectIds; + } + + /** + * optional .UI32s CardEffectIds = 6; + * + * 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.UI32s getMutableCardEffectIds() { + bitField0_ |= 0x00000020; + return cardEffectIds; + } + + /** + * optional .UI32s CardEffectIds = 6; + * @param value the cardEffectIds to set + * @return this + */ + public SoldierStoryEventEffectReward setCardEffectIds(final Public.UI32s value) { + bitField0_ |= 0x00000020; + cardEffectIds.copyFrom(value); + return this; + } + + /** + * optional .SoldierStoryEventOptions NextOptions = 7; + * @return whether the nextOptions field is set + */ + public boolean hasNextOptions() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .SoldierStoryEventOptions NextOptions = 7; + * @return this + */ + public SoldierStoryEventEffectReward clearNextOptions() { + bitField0_ &= ~0x00000040; + nextOptions.clear(); + return this; + } + + /** + * optional .SoldierStoryEventOptions NextOptions = 7; + * + * 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 #getMutableNextOptions()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SoldierStoryEventOptions getNextOptions() { + return nextOptions; + } + + /** + * optional .SoldierStoryEventOptions NextOptions = 7; + * + * 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 SoldierStoryEventOptions getMutableNextOptions() { + bitField0_ |= 0x00000040; + return nextOptions; + } + + /** + * optional .SoldierStoryEventOptions NextOptions = 7; + * @param value the nextOptions to set + * @return this + */ + public SoldierStoryEventEffectReward setNextOptions(final SoldierStoryEventOptions value) { + bitField0_ |= 0x00000040; + nextOptions.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierStoryEventEffectReward clearNextPackage() { + bitField0_ &= ~0x00000080; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableNextPackage() { + bitField0_ |= 0x00000080; + return nextPackage; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierStoryEventEffectReward addNextPackage(final byte value) { + bitField0_ |= 0x00000080; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierStoryEventEffectReward addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000080; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierStoryEventEffectReward setNextPackage(final byte... values) { + bitField0_ |= 0x00000080; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierStoryEventEffectReward copyFrom(final SoldierStoryEventEffectReward other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hp = other.hp; + rewardType = other.rewardType; + res.copyFrom(other.res); + chessList.copyFrom(other.chessList); + cardIds.copyFrom(other.cardIds); + cardEffectIds.copyFrom(other.cardEffectIds); + nextOptions.copyFrom(other.nextOptions); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventEffectReward mergeFrom(final SoldierStoryEventEffectReward other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasRewardType()) { + setRewardTypeValue(other.rewardType); + } + if (other.hasRes()) { + getMutableRes().mergeFrom(other.res); + } + if (other.hasChessList()) { + getMutableChessList().mergeFrom(other.chessList); + } + if (other.hasCardIds()) { + getMutableCardIds().mergeFrom(other.cardIds); + } + if (other.hasCardEffectIds()) { + getMutableCardEffectIds().mergeFrom(other.cardEffectIds); + } + if (other.hasNextOptions()) { + getMutableNextOptions().mergeFrom(other.nextOptions); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierStoryEventEffectReward clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hp = 0; + rewardType = 0; + res.clear(); + chessList.clear(); + cardIds.clear(); + cardEffectIds.clear(); + nextOptions.clear(); + nextPackage.clear(); + return this; + } + + @Override + public SoldierStoryEventEffectReward clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + res.clearQuick(); + chessList.clearQuick(); + cardIds.clearQuick(); + cardEffectIds.clearQuick(); + nextOptions.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierStoryEventEffectReward)) { + return false; + } + SoldierStoryEventEffectReward other = (SoldierStoryEventEffectReward) o; + return bitField0_ == other.bitField0_ + && (!hasHp() || hp == other.hp) + && (!hasRewardType() || rewardType == other.rewardType) + && (!hasRes() || res.equals(other.res)) + && (!hasChessList() || chessList.equals(other.chessList)) + && (!hasCardIds() || cardIds.equals(other.cardIds)) + && (!hasCardEffectIds() || cardEffectIds.equals(other.cardEffectIds)) + && (!hasNextOptions() || nextOptions.equals(other.nextOptions)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(rewardType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(res); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(chessList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(cardIds); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(cardEffectIds); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(nextOptions); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(rewardType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(res); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chessList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cardIds); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cardEffectIds); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nextOptions); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierStoryEventEffectReward mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // hp + hp = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // rewardType + final int value = input.readInt32(); + if (SoldierEventEffectRewardType.forNumber(value) != null) { + rewardType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // res + input.readMessage(res); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // chessList + input.readMessage(chessList); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // cardIds + input.readMessage(cardIds); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // cardEffectIds + input.readMessage(cardEffectIds); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // nextOptions + input.readMessage(nextOptions); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.rewardType, rewardType, SoldierEventEffectRewardType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.res, res); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.chessList, chessList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.cardIds, cardIds); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.cardEffectIds, cardEffectIds); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.nextOptions, nextOptions); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierStoryEventEffectReward mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2344: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -610271447: { + if (input.isAtField(FieldNames.rewardType)) { + if (!input.trySkipNullValue()) { + final SoldierEventEffectRewardType value = input.readEnum(SoldierEventEffectRewardType.converter()); + if (value != null) { + rewardType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 82048: { + if (input.isAtField(FieldNames.res)) { + if (!input.trySkipNullValue()) { + input.readMessage(res); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1427199074: { + if (input.isAtField(FieldNames.chessList)) { + if (!input.trySkipNullValue()) { + input.readMessage(chessList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2076401304: { + if (input.isAtField(FieldNames.cardIds)) { + if (!input.trySkipNullValue()) { + input.readMessage(cardIds); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 822736407: { + if (input.isAtField(FieldNames.cardEffectIds)) { + if (!input.trySkipNullValue()) { + input.readMessage(cardEffectIds); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1770230795: { + if (input.isAtField(FieldNames.nextOptions)) { + if (!input.trySkipNullValue()) { + input.readMessage(nextOptions); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierStoryEventEffectReward clone() { + return new SoldierStoryEventEffectReward().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierStoryEventEffectReward parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierStoryEventEffectReward(), data).checkInitialized(); + } + + public static SoldierStoryEventEffectReward parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventEffectReward(), input).checkInitialized(); + } + + public static SoldierStoryEventEffectReward parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierStoryEventEffectReward(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierStoryEventEffectReward messages + */ + public static MessageFactory getFactory() { + return SoldierStoryEventEffectRewardFactory.INSTANCE; + } + + private enum SoldierStoryEventEffectRewardFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierStoryEventEffectReward create() { + return SoldierStoryEventEffectReward.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hp = FieldName.forField("Hp"); + + static final FieldName rewardType = FieldName.forField("RewardType"); + + static final FieldName res = FieldName.forField("Res"); + + static final FieldName chessList = FieldName.forField("ChessList"); + + static final FieldName cardIds = FieldName.forField("CardIds"); + + static final FieldName cardEffectIds = FieldName.forField("CardEffectIds"); + + static final FieldName nextOptions = FieldName.forField("NextOptions"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } } diff --git a/src/generated/main/emu/nebula/proto/PublicStarTower.java b/src/generated/main/emu/nebula/proto/PublicStarTower.java index 4ffbbf6..9b59855 100644 --- a/src/generated/main/emu/nebula/proto/PublicStarTower.java +++ b/src/generated/main/emu/nebula/proto/PublicStarTower.java @@ -15167,6 +15167,11 @@ public final class PublicStarTower { */ private boolean reRoll; + /** + * optional bool Auto = 3; + */ + private boolean auto; + /** * optional bytes NextPackage = 2047; */ @@ -15256,12 +15261,49 @@ public final class PublicStarTower { return this; } + /** + * optional bool Auto = 3; + * @return whether the auto field is set + */ + public boolean hasAuto() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool Auto = 3; + * @return this + */ + public InteractHawkerReq clearAuto() { + bitField0_ &= ~0x00000004; + auto = false; + return this; + } + + /** + * optional bool Auto = 3; + * @return the auto + */ + public boolean getAuto() { + return auto; + } + + /** + * optional bool Auto = 3; + * @param value the auto to set + * @return this + */ + public InteractHawkerReq setAuto(final boolean value) { + bitField0_ |= 0x00000004; + auto = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -15269,7 +15311,7 @@ public final class PublicStarTower { * @return this */ public InteractHawkerReq clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -15298,7 +15340,7 @@ public final class PublicStarTower { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -15308,7 +15350,7 @@ public final class PublicStarTower { * @return this */ public InteractHawkerReq addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -15319,7 +15361,7 @@ public final class PublicStarTower { * @return this */ public InteractHawkerReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -15330,7 +15372,7 @@ public final class PublicStarTower { * @return this */ public InteractHawkerReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -15342,6 +15384,7 @@ public final class PublicStarTower { bitField0_ = other.bitField0_; sid = other.sid; reRoll = other.reRoll; + auto = other.auto; nextPackage.copyFrom(other.nextPackage); } return this; @@ -15359,6 +15402,9 @@ public final class PublicStarTower { if (other.hasReRoll()) { setReRoll(other.reRoll); } + if (other.hasAuto()) { + setAuto(other.auto); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -15374,6 +15420,7 @@ public final class PublicStarTower { bitField0_ = 0; sid = 0; reRoll = false; + auto = false; nextPackage.clear(); return this; } @@ -15401,6 +15448,7 @@ public final class PublicStarTower { return bitField0_ == other.bitField0_ && (!hasSid() || sid == other.sid) && (!hasReRoll() || reRoll == other.reRoll) + && (!hasAuto() || auto == other.auto) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -15415,6 +15463,10 @@ public final class PublicStarTower { output.writeBoolNoTag(reRoll); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(auto); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -15430,6 +15482,9 @@ public final class PublicStarTower { size += 2; } if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -15456,6 +15511,15 @@ public final class PublicStarTower { reRoll = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // auto + auto = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -15463,7 +15527,7 @@ public final class PublicStarTower { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -15493,6 +15557,9 @@ public final class PublicStarTower { output.writeBool(FieldNames.reRoll, reRoll); } if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.auto, auto); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -15527,11 +15594,22 @@ public final class PublicStarTower { } break; } + case 2052559: { + if (input.isAtField(FieldNames.auto)) { + if (!input.trySkipNullValue()) { + auto = input.readBool(); + 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(); @@ -15595,6 +15673,8 @@ public final class PublicStarTower { static final FieldName reRoll = FieldName.forField("ReRoll"); + static final FieldName auto = FieldName.forField("Auto"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -21157,6 +21237,11 @@ public final class PublicStarTower { */ private boolean reRoll; + /** + * optional bool Auto = 3; + */ + private boolean auto; + /** * optional bytes NextPackage = 2047; */ @@ -21246,12 +21331,49 @@ public final class PublicStarTower { return this; } + /** + * optional bool Auto = 3; + * @return whether the auto field is set + */ + public boolean hasAuto() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool Auto = 3; + * @return this + */ + public InteractSelectReq clearAuto() { + bitField0_ &= ~0x00000004; + auto = false; + return this; + } + + /** + * optional bool Auto = 3; + * @return the auto + */ + public boolean getAuto() { + return auto; + } + + /** + * optional bool Auto = 3; + * @param value the auto to set + * @return this + */ + public InteractSelectReq setAuto(final boolean value) { + bitField0_ |= 0x00000004; + auto = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -21259,7 +21381,7 @@ public final class PublicStarTower { * @return this */ public InteractSelectReq clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -21288,7 +21410,7 @@ public final class PublicStarTower { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -21298,7 +21420,7 @@ public final class PublicStarTower { * @return this */ public InteractSelectReq addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -21309,7 +21431,7 @@ public final class PublicStarTower { * @return this */ public InteractSelectReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -21320,7 +21442,7 @@ public final class PublicStarTower { * @return this */ public InteractSelectReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -21332,6 +21454,7 @@ public final class PublicStarTower { bitField0_ = other.bitField0_; index = other.index; reRoll = other.reRoll; + auto = other.auto; nextPackage.copyFrom(other.nextPackage); } return this; @@ -21349,6 +21472,9 @@ public final class PublicStarTower { if (other.hasReRoll()) { setReRoll(other.reRoll); } + if (other.hasAuto()) { + setAuto(other.auto); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -21364,6 +21490,7 @@ public final class PublicStarTower { bitField0_ = 0; index = 0; reRoll = false; + auto = false; nextPackage.clear(); return this; } @@ -21391,6 +21518,7 @@ public final class PublicStarTower { return bitField0_ == other.bitField0_ && (!hasIndex() || index == other.index) && (!hasReRoll() || reRoll == other.reRoll) + && (!hasAuto() || auto == other.auto) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -21405,6 +21533,10 @@ public final class PublicStarTower { output.writeBoolNoTag(reRoll); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(auto); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -21420,6 +21552,9 @@ public final class PublicStarTower { size += 2; } if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -21446,6 +21581,15 @@ public final class PublicStarTower { reRoll = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // auto + auto = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -21453,7 +21597,7 @@ public final class PublicStarTower { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -21483,6 +21627,9 @@ public final class PublicStarTower { output.writeBool(FieldNames.reRoll, reRoll); } if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.auto, auto); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -21517,11 +21664,22 @@ public final class PublicStarTower { } break; } + case 2052559: { + if (input.isAtField(FieldNames.auto)) { + if (!input.trySkipNullValue()) { + auto = input.readBool(); + 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(); @@ -21585,6 +21743,8 @@ public final class PublicStarTower { static final FieldName reRoll = FieldName.forField("ReRoll"); + static final FieldName auto = FieldName.forField("Auto"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } @@ -29806,6 +29966,11 @@ public final class PublicStarTower { public static final class StarTowerBuildDetail extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional uint32 ModifierState = 4; + */ + private int modifierState; + /** * optional bytes NextPackage = 2047; */ @@ -29836,12 +30001,49 @@ public final class PublicStarTower { return new StarTowerBuildDetail(); } + /** + * optional uint32 ModifierState = 4; + * @return whether the modifierState field is set + */ + public boolean hasModifierState() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ModifierState = 4; + * @return this + */ + public StarTowerBuildDetail clearModifierState() { + bitField0_ &= ~0x00000001; + modifierState = 0; + return this; + } + + /** + * optional uint32 ModifierState = 4; + * @return the modifierState + */ + public int getModifierState() { + return modifierState; + } + + /** + * optional uint32 ModifierState = 4; + * @param value the modifierState to set + * @return this + */ + public StarTowerBuildDetail setModifierState(final int value) { + bitField0_ |= 0x00000001; + modifierState = value; + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -29849,7 +30051,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail clearNextPackage() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; nextPackage.clear(); return this; } @@ -29878,7 +30080,7 @@ public final class PublicStarTower { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; return nextPackage; } @@ -29888,7 +30090,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addNextPackage(final byte value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; nextPackage.add(value); return this; } @@ -29899,7 +30101,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; nextPackage.addAll(values); return this; } @@ -29910,7 +30112,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail setNextPackage(final byte... values) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; nextPackage.copyFrom(values); return this; } @@ -29920,7 +30122,7 @@ public final class PublicStarTower { * @return whether the activeSecondaryIds field is set */ public boolean hasActiveSecondaryIds() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -29928,7 +30130,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail clearActiveSecondaryIds() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; activeSecondaryIds.clear(); return this; } @@ -29957,7 +30159,7 @@ public final class PublicStarTower { * @return internal storage object for modifications */ public RepeatedInt getMutableActiveSecondaryIds() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; return activeSecondaryIds; } @@ -29967,7 +30169,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addActiveSecondaryIds(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; activeSecondaryIds.add(value); return this; } @@ -29978,7 +30180,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addAllActiveSecondaryIds(final int... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; activeSecondaryIds.addAll(values); return this; } @@ -29988,7 +30190,7 @@ public final class PublicStarTower { * @return whether the potentials field is set */ public boolean hasPotentials() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -29996,7 +30198,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail clearPotentials() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; potentials.clear(); return this; } @@ -30025,7 +30227,7 @@ public final class PublicStarTower { * @return internal storage object for modifications */ public RepeatedMessage getMutablePotentials() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return potentials; } @@ -30035,7 +30237,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addPotentials(final BuildPotential value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; potentials.add(value); return this; } @@ -30046,7 +30248,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addAllPotentials(final BuildPotential... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; potentials.addAll(values); return this; } @@ -30056,7 +30258,7 @@ public final class PublicStarTower { * @return whether the subNoteSkills field is set */ public boolean hasSubNoteSkills() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -30064,7 +30266,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail clearSubNoteSkills() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; subNoteSkills.clear(); return this; } @@ -30093,7 +30295,7 @@ public final class PublicStarTower { * @return internal storage object for modifications */ public RepeatedMessage getMutableSubNoteSkills() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return subNoteSkills; } @@ -30103,7 +30305,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addSubNoteSkills(final Public.ItemTpl value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; subNoteSkills.add(value); return this; } @@ -30114,7 +30316,7 @@ public final class PublicStarTower { * @return this */ public StarTowerBuildDetail addAllSubNoteSkills(final Public.ItemTpl... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; subNoteSkills.addAll(values); return this; } @@ -30124,6 +30326,7 @@ public final class PublicStarTower { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + modifierState = other.modifierState; nextPackage.copyFrom(other.nextPackage); activeSecondaryIds.copyFrom(other.activeSecondaryIds); potentials.copyFrom(other.potentials); @@ -30138,6 +30341,9 @@ public final class PublicStarTower { return this; } cachedSize = -1; + if (other.hasModifierState()) { + setModifierState(other.modifierState); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -30160,6 +30366,7 @@ public final class PublicStarTower { } cachedSize = -1; bitField0_ = 0; + modifierState = 0; nextPackage.clear(); activeSecondaryIds.clear(); potentials.clear(); @@ -30191,6 +30398,7 @@ public final class PublicStarTower { } StarTowerBuildDetail other = (StarTowerBuildDetail) o; return bitField0_ == other.bitField0_ + && (!hasModifierState() || modifierState == other.modifierState) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasActiveSecondaryIds() || activeSecondaryIds.equals(other.activeSecondaryIds)) && (!hasPotentials() || potentials.equals(other.potentials)) @@ -30200,22 +30408,26 @@ public final class PublicStarTower { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(modifierState); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000002) != 0) { + if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < activeSecondaryIds.length(); i++) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(activeSecondaryIds.array()[i]); } } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < potentials.length(); i++) { output.writeRawByte((byte) 10); output.writeMessageNoTag(potentials.get(i)); } } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < subNoteSkills.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(subNoteSkills.get(i)); @@ -30227,15 +30439,18 @@ public final class PublicStarTower { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeUInt32SizeNoTag(modifierState); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds); + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * potentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(potentials); + size += (1 * activeSecondaryIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(activeSecondaryIds); } if ((bitField0_ & 0x00000008) != 0) { + size += (1 * potentials.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(potentials); + } + if ((bitField0_ & 0x00000010) != 0) { size += (1 * subNoteSkills.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subNoteSkills); } return size; @@ -30248,10 +30463,19 @@ public final class PublicStarTower { int tag = input.readTag(); while (true) { switch (tag) { + case 32: { + // modifierState + modifierState = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 26) { break; @@ -30260,7 +30484,7 @@ public final class PublicStarTower { case 26: { // activeSecondaryIds [packed=true] input.readPackedUInt32(activeSecondaryIds, tag); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 10) { break; @@ -30269,7 +30493,7 @@ public final class PublicStarTower { case 10: { // potentials tag = input.readRepeatedMessage(potentials, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; if (tag != 18) { break; } @@ -30277,7 +30501,7 @@ public final class PublicStarTower { case 18: { // subNoteSkills tag = input.readRepeatedMessage(subNoteSkills, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -30295,7 +30519,7 @@ public final class PublicStarTower { case 24: { // activeSecondaryIds [packed=false] tag = input.readRepeatedUInt32(activeSecondaryIds, tag); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } } @@ -30306,15 +30530,18 @@ public final class PublicStarTower { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeUInt32(FieldNames.modifierState, modifierState); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds); + output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.potentials, potentials); + output.writeRepeatedUInt32(FieldNames.activeSecondaryIds, activeSecondaryIds); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.potentials, potentials); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.subNoteSkills, subNoteSkills); } output.endObject(); @@ -30327,11 +30554,22 @@ public final class PublicStarTower { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -1012256806: { + if (input.isAtField(FieldNames.modifierState)) { + if (!input.trySkipNullValue()) { + modifierState = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -30342,7 +30580,7 @@ public final class PublicStarTower { if (input.isAtField(FieldNames.activeSecondaryIds)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(activeSecondaryIds); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -30353,7 +30591,7 @@ public final class PublicStarTower { if (input.isAtField(FieldNames.potentials)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(potentials); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -30364,7 +30602,7 @@ public final class PublicStarTower { if (input.isAtField(FieldNames.subNoteSkills)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(subNoteSkills); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -30424,6 +30662,8 @@ public final class PublicStarTower { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName modifierState = FieldName.forField("ModifierState"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName activeSecondaryIds = FieldName.forField("ActiveSecondaryIds"); diff --git a/src/generated/main/emu/nebula/proto/QuestDormRewardRecevie.java b/src/generated/main/emu/nebula/proto/QuestDormRewardRecevie.java new file mode 100644 index 0000000..40b5110 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/QuestDormRewardRecevie.java @@ -0,0 +1,509 @@ +// 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 QuestDormRewardRecevie { + /** + * Protobuf type {@code QuestDormRewardReceiveSucceedAck} + */ + public static final class QuestDormRewardReceiveSucceedAck extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo change_info = 1; + */ + private final Public.ChangeInfo changeInfo = Public.ChangeInfo.newInstance(); + + /** + * optional .UI32V TaskGroup = 2; + */ + private final Public.UI32V taskGroup = Public.UI32V.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private QuestDormRewardReceiveSucceedAck() { + } + + /** + * @return a new empty instance of {@code QuestDormRewardReceiveSucceedAck} + */ + public static QuestDormRewardReceiveSucceedAck newInstance() { + return new QuestDormRewardReceiveSucceedAck(); + } + + /** + * optional .ChangeInfo change_info = 1; + * @return whether the changeInfo field is set + */ + public boolean hasChangeInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo change_info = 1; + * @return this + */ + public QuestDormRewardReceiveSucceedAck clearChangeInfo() { + bitField0_ &= ~0x00000001; + changeInfo.clear(); + return this; + } + + /** + * optional .ChangeInfo change_info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChangeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ChangeInfo getChangeInfo() { + return changeInfo; + } + + /** + * optional .ChangeInfo change_info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public Public.ChangeInfo getMutableChangeInfo() { + bitField0_ |= 0x00000001; + return changeInfo; + } + + /** + * optional .ChangeInfo change_info = 1; + * @param value the changeInfo to set + * @return this + */ + public QuestDormRewardReceiveSucceedAck setChangeInfo(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + changeInfo.copyFrom(value); + return this; + } + + /** + * optional .UI32V TaskGroup = 2; + * @return whether the taskGroup field is set + */ + public boolean hasTaskGroup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UI32V TaskGroup = 2; + * @return this + */ + public QuestDormRewardReceiveSucceedAck clearTaskGroup() { + bitField0_ &= ~0x00000002; + taskGroup.clear(); + return this; + } + + /** + * optional .UI32V TaskGroup = 2; + * + * 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 #getMutableTaskGroup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UI32V getTaskGroup() { + return taskGroup; + } + + /** + * optional .UI32V TaskGroup = 2; + * + * 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.UI32V getMutableTaskGroup() { + bitField0_ |= 0x00000002; + return taskGroup; + } + + /** + * optional .UI32V TaskGroup = 2; + * @param value the taskGroup to set + * @return this + */ + public QuestDormRewardReceiveSucceedAck setTaskGroup(final Public.UI32V value) { + bitField0_ |= 0x00000002; + taskGroup.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public QuestDormRewardReceiveSucceedAck clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public QuestDormRewardReceiveSucceedAck addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public QuestDormRewardReceiveSucceedAck addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public QuestDormRewardReceiveSucceedAck setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public QuestDormRewardReceiveSucceedAck copyFrom(final QuestDormRewardReceiveSucceedAck other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + changeInfo.copyFrom(other.changeInfo); + taskGroup.copyFrom(other.taskGroup); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public QuestDormRewardReceiveSucceedAck mergeFrom( + final QuestDormRewardReceiveSucceedAck other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChangeInfo()) { + getMutableChangeInfo().mergeFrom(other.changeInfo); + } + if (other.hasTaskGroup()) { + getMutableTaskGroup().mergeFrom(other.taskGroup); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public QuestDormRewardReceiveSucceedAck clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clear(); + taskGroup.clear(); + nextPackage.clear(); + return this; + } + + @Override + public QuestDormRewardReceiveSucceedAck clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + changeInfo.clearQuick(); + taskGroup.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof QuestDormRewardReceiveSucceedAck)) { + return false; + } + QuestDormRewardReceiveSucceedAck other = (QuestDormRewardReceiveSucceedAck) o; + return bitField0_ == other.bitField0_ + && (!hasChangeInfo() || changeInfo.equals(other.changeInfo)) + && (!hasTaskGroup() || taskGroup.equals(other.taskGroup)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(changeInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(taskGroup); + } + 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.computeMessageSizeNoTag(changeInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(taskGroup); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public QuestDormRewardReceiveSucceedAck mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // changeInfo + input.readMessage(changeInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // taskGroup + input.readMessage(taskGroup); + 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.writeMessage(FieldNames.changeInfo, changeInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.taskGroup, taskGroup); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public QuestDormRewardReceiveSucceedAck mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2132241282: + case -1654794275: { + if (input.isAtField(FieldNames.changeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(changeInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2132304934: { + if (input.isAtField(FieldNames.taskGroup)) { + if (!input.trySkipNullValue()) { + input.readMessage(taskGroup); + 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 QuestDormRewardReceiveSucceedAck clone() { + return new QuestDormRewardReceiveSucceedAck().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static QuestDormRewardReceiveSucceedAck parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new QuestDormRewardReceiveSucceedAck(), data).checkInitialized(); + } + + public static QuestDormRewardReceiveSucceedAck parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new QuestDormRewardReceiveSucceedAck(), input).checkInitialized(); + } + + public static QuestDormRewardReceiveSucceedAck parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new QuestDormRewardReceiveSucceedAck(), input).checkInitialized(); + } + + /** + * @return factory for creating QuestDormRewardReceiveSucceedAck messages + */ + public static MessageFactory getFactory() { + return QuestDormRewardReceiveSucceedAckFactory.INSTANCE; + } + + private enum QuestDormRewardReceiveSucceedAckFactory implements MessageFactory { + INSTANCE; + + @Override + public QuestDormRewardReceiveSucceedAck create() { + return QuestDormRewardReceiveSucceedAck.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName changeInfo = FieldName.forField("changeInfo", "change_info"); + + static final FieldName taskGroup = FieldName.forField("TaskGroup"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/RegionBossLevelApply.java b/src/generated/main/emu/nebula/proto/RegionBossLevelApply.java index f79cbd7..bf65d47 100644 --- a/src/generated/main/emu/nebula/proto/RegionBossLevelApply.java +++ b/src/generated/main/emu/nebula/proto/RegionBossLevelApply.java @@ -19,16 +19,16 @@ public final class RegionBossLevelApply { public static final class RegionBossLevelApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 Id = 1; */ private int id; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -44,49 +44,12 @@ public final class RegionBossLevelApply { return new RegionBossLevelApplyReq(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public RegionBossLevelApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public RegionBossLevelApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -94,7 +57,7 @@ public final class RegionBossLevelApply { * @return this */ public RegionBossLevelApplyReq clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -113,11 +76,68 @@ public final class RegionBossLevelApply { * @return this */ public RegionBossLevelApplyReq setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public RegionBossLevelApplyReq clearBuild() { + bitField0_ &= ~0x00000002; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000002; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public RegionBossLevelApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000002; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -202,8 +222,8 @@ public final class RegionBossLevelApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -215,12 +235,12 @@ public final class RegionBossLevelApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -234,8 +254,8 @@ public final class RegionBossLevelApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; + build.clear(); nextPackage.clear(); return this; } @@ -247,6 +267,7 @@ public final class RegionBossLevelApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -261,21 +282,21 @@ public final class RegionBossLevelApply { } RegionBossLevelApplyReq other = (RegionBossLevelApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -286,10 +307,10 @@ public final class RegionBossLevelApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -304,18 +325,18 @@ public final class RegionBossLevelApply { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { @@ -349,10 +370,10 @@ public final class RegionBossLevelApply { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -367,10 +388,10 @@ public final class RegionBossLevelApply { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 2363: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -378,10 +399,10 @@ public final class RegionBossLevelApply { } break; } - case 2363: { - if (input.isAtField(FieldNames.id)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + input.readMessage(build); bitField0_ |= 0x00000002; } } else { @@ -453,10 +474,10 @@ public final class RegionBossLevelApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/SkillInstanceApply.java b/src/generated/main/emu/nebula/proto/SkillInstanceApply.java index 41d3bb0..dc07854 100644 --- a/src/generated/main/emu/nebula/proto/SkillInstanceApply.java +++ b/src/generated/main/emu/nebula/proto/SkillInstanceApply.java @@ -19,16 +19,16 @@ public final class SkillInstanceApply { public static final class SkillInstanceApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 Id = 1; */ private int id; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -44,49 +44,12 @@ public final class SkillInstanceApply { return new SkillInstanceApplyReq(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public SkillInstanceApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public SkillInstanceApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -94,7 +57,7 @@ public final class SkillInstanceApply { * @return this */ public SkillInstanceApplyReq clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -113,11 +76,68 @@ public final class SkillInstanceApply { * @return this */ public SkillInstanceApplyReq setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public SkillInstanceApplyReq clearBuild() { + bitField0_ &= ~0x00000002; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000002; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public SkillInstanceApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000002; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -202,8 +222,8 @@ public final class SkillInstanceApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -215,12 +235,12 @@ public final class SkillInstanceApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -234,8 +254,8 @@ public final class SkillInstanceApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; + build.clear(); nextPackage.clear(); return this; } @@ -247,6 +267,7 @@ public final class SkillInstanceApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -261,21 +282,21 @@ public final class SkillInstanceApply { } SkillInstanceApplyReq other = (SkillInstanceApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -286,10 +307,10 @@ public final class SkillInstanceApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -304,18 +325,18 @@ public final class SkillInstanceApply { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { @@ -349,10 +370,10 @@ public final class SkillInstanceApply { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -367,10 +388,10 @@ public final class SkillInstanceApply { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 2363: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -378,10 +399,10 @@ public final class SkillInstanceApply { } break; } - case 2363: { - if (input.isAtField(FieldNames.id)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + input.readMessage(build); bitField0_ |= 0x00000002; } } else { @@ -453,10 +474,10 @@ public final class SkillInstanceApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/SoldierApply.java b/src/generated/main/emu/nebula/proto/SoldierApply.java index d5525f0..e7d1681 100644 --- a/src/generated/main/emu/nebula/proto/SoldierApply.java +++ b/src/generated/main/emu/nebula/proto/SoldierApply.java @@ -478,6 +478,11 @@ public final class SoldierApply { */ private final PublicSoldier.SoldierInfo info = PublicSoldier.SoldierInfo.newInstance(); + /** + * optional .ChangeInfo Change = 4; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -592,12 +597,69 @@ public final class SoldierApply { return this; } + /** + * optional .ChangeInfo Change = 4; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChangeInfo Change = 4; + * @return this + */ + public SoldierApplyResp clearChange() { + bitField0_ &= ~0x00000004; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 4; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 4; + * + * 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_ |= 0x00000004; + return change; + } + + /** + * optional .ChangeInfo Change = 4; + * @param value the change to set + * @return this + */ + public SoldierApplyResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000004; + change.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -605,7 +667,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp clearNextPackage() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } @@ -634,7 +696,7 @@ public final class SoldierApply { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return nextPackage; } @@ -644,7 +706,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp addNextPackage(final byte value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.add(value); return this; } @@ -655,7 +717,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } @@ -666,7 +728,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } @@ -676,7 +738,7 @@ public final class SoldierApply { * @return whether the chess field is set */ public boolean hasChess() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -684,7 +746,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp clearChess() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; chess.clear(); return this; } @@ -713,7 +775,7 @@ public final class SoldierApply { * @return internal storage object for modifications */ public RepeatedMessage getMutableChess() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return chess; } @@ -723,7 +785,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp addChess(final PublicSoldier.SoldierChess value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; chess.add(value); return this; } @@ -734,7 +796,7 @@ public final class SoldierApply { * @return this */ public SoldierApplyResp addAllChess(final PublicSoldier.SoldierChess... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; chess.addAll(values); return this; } @@ -746,6 +808,7 @@ public final class SoldierApply { bitField0_ = other.bitField0_; coinQty = other.coinQty; info.copyFrom(other.info); + change.copyFrom(other.change); nextPackage.copyFrom(other.nextPackage); chess.copyFrom(other.chess); } @@ -764,6 +827,9 @@ public final class SoldierApply { if (other.hasInfo()) { getMutableInfo().mergeFrom(other.info); } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -782,6 +848,7 @@ public final class SoldierApply { bitField0_ = 0; coinQty = 0; info.clear(); + change.clear(); nextPackage.clear(); chess.clear(); return this; @@ -795,6 +862,7 @@ public final class SoldierApply { cachedSize = -1; bitField0_ = 0; info.clearQuick(); + change.clearQuick(); nextPackage.clear(); chess.clearQuick(); return this; @@ -812,6 +880,7 @@ public final class SoldierApply { return bitField0_ == other.bitField0_ && (!hasCoinQty() || coinQty == other.coinQty) && (!hasInfo() || info.equals(other.info)) + && (!hasChange() || change.equals(other.change)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasChess() || chess.equals(other.chess)); } @@ -827,10 +896,14 @@ public final class SoldierApply { output.writeMessageNoTag(info); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < chess.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(chess.get(i)); @@ -848,9 +921,12 @@ public final class SoldierApply { size += 1 + ProtoSink.computeMessageSizeNoTag(info); } if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(change); } if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { size += (1 * chess.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chess); } return size; @@ -877,6 +953,15 @@ public final class SoldierApply { input.readMessage(info); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // change + input.readMessage(change); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 16378) { break; } @@ -884,7 +969,7 @@ public final class SoldierApply { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 18) { break; @@ -893,7 +978,7 @@ public final class SoldierApply { case 18: { // chess tag = input.readRepeatedMessage(chess, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -922,9 +1007,12 @@ public final class SoldierApply { output.writeMessage(FieldNames.info, info); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.change, change); } if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.chess, chess); } output.endObject(); @@ -959,11 +1047,22 @@ public final class SoldierApply { } break; } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + 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(); @@ -974,7 +1073,7 @@ public final class SoldierApply { if (input.isAtField(FieldNames.chess)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chess); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -1038,6 +1137,8 @@ public final class SoldierApply { static final FieldName info = FieldName.forField("Info"); + static final FieldName change = FieldName.forField("Change"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName chess = FieldName.forField("Chess"); diff --git a/src/generated/main/emu/nebula/proto/SoldierBattleReportFavorite.java b/src/generated/main/emu/nebula/proto/SoldierBattleReportFavorite.java new file mode 100644 index 0000000..76a5624 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierBattleReportFavorite.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class SoldierBattleReportFavorite { +} diff --git a/src/generated/main/emu/nebula/proto/SoldierBattleReportFavoriteListOuterClass.java b/src/generated/main/emu/nebula/proto/SoldierBattleReportFavoriteListOuterClass.java new file mode 100644 index 0000000..01208b8 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierBattleReportFavoriteListOuterClass.java @@ -0,0 +1,420 @@ +// 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 SoldierBattleReportFavoriteListOuterClass { + /** + * Protobuf type {@code SoldierBattleReportFavoriteList} + */ + public static final class SoldierBattleReportFavoriteList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierBattleReport Reports = 1; + */ + private final RepeatedMessage reports = RepeatedMessage.newEmptyInstance(Public.SoldierBattleReport.getFactory()); + + private SoldierBattleReportFavoriteList() { + } + + /** + * @return a new empty instance of {@code SoldierBattleReportFavoriteList} + */ + public static SoldierBattleReportFavoriteList newInstance() { + return new SoldierBattleReportFavoriteList(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierBattleReportFavoriteList clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierBattleReportFavoriteList addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierBattleReportFavoriteList addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierBattleReportFavoriteList setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @return whether the reports field is set + */ + public boolean hasReports() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @return this + */ + public SoldierBattleReportFavoriteList clearReports() { + bitField0_ &= ~0x00000002; + reports.clear(); + return this; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * + * 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 #getMutableReports()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getReports() { + return reports; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * + * 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 getMutableReports() { + bitField0_ |= 0x00000002; + return reports; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @param value the reports to add + * @return this + */ + public SoldierBattleReportFavoriteList addReports(final Public.SoldierBattleReport value) { + bitField0_ |= 0x00000002; + reports.add(value); + return this; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @param values the reports to add + * @return this + */ + public SoldierBattleReportFavoriteList addAllReports( + final Public.SoldierBattleReport... values) { + bitField0_ |= 0x00000002; + reports.addAll(values); + return this; + } + + @Override + public SoldierBattleReportFavoriteList copyFrom(final SoldierBattleReportFavoriteList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + reports.copyFrom(other.reports); + } + return this; + } + + @Override + public SoldierBattleReportFavoriteList mergeFrom(final SoldierBattleReportFavoriteList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasReports()) { + getMutableReports().addAll(other.reports); + } + return this; + } + + @Override + public SoldierBattleReportFavoriteList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + reports.clear(); + return this; + } + + @Override + public SoldierBattleReportFavoriteList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + reports.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierBattleReportFavoriteList)) { + return false; + } + SoldierBattleReportFavoriteList other = (SoldierBattleReportFavoriteList) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasReports() || reports.equals(other.reports)); + } + + @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 < reports.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(reports.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * reports.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(reports); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierBattleReportFavoriteList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // reports + tag = input.readRepeatedMessage(reports, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.reports, reports); + } + output.endObject(); + } + + @Override + public SoldierBattleReportFavoriteList 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 -1535710817: { + if (input.isAtField(FieldNames.reports)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(reports); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierBattleReportFavoriteList clone() { + return new SoldierBattleReportFavoriteList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierBattleReportFavoriteList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBattleReportFavoriteList(), data).checkInitialized(); + } + + public static SoldierBattleReportFavoriteList parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReportFavoriteList(), input).checkInitialized(); + } + + public static SoldierBattleReportFavoriteList parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReportFavoriteList(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierBattleReportFavoriteList messages + */ + public static MessageFactory getFactory() { + return SoldierBattleReportFavoriteListFactory.INSTANCE; + } + + private enum SoldierBattleReportFavoriteListFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierBattleReportFavoriteList create() { + return SoldierBattleReportFavoriteList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName reports = FieldName.forField("Reports"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierBattleReportRecentListOuterClass.java b/src/generated/main/emu/nebula/proto/SoldierBattleReportRecentListOuterClass.java new file mode 100644 index 0000000..de5df09 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierBattleReportRecentListOuterClass.java @@ -0,0 +1,419 @@ +// 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 SoldierBattleReportRecentListOuterClass { + /** + * Protobuf type {@code SoldierBattleReportRecentList} + */ + public static final class SoldierBattleReportRecentList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .SoldierBattleReport Reports = 1; + */ + private final RepeatedMessage reports = RepeatedMessage.newEmptyInstance(Public.SoldierBattleReport.getFactory()); + + private SoldierBattleReportRecentList() { + } + + /** + * @return a new empty instance of {@code SoldierBattleReportRecentList} + */ + public static SoldierBattleReportRecentList newInstance() { + return new SoldierBattleReportRecentList(); + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierBattleReportRecentList clearNextPackage() { + bitField0_ &= ~0x00000001; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierBattleReportRecentList addNextPackage(final byte value) { + bitField0_ |= 0x00000001; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierBattleReportRecentList addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierBattleReportRecentList setNextPackage(final byte... values) { + bitField0_ |= 0x00000001; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @return whether the reports field is set + */ + public boolean hasReports() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @return this + */ + public SoldierBattleReportRecentList clearReports() { + bitField0_ &= ~0x00000002; + reports.clear(); + return this; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * + * 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 #getMutableReports()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getReports() { + return reports; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * + * 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 getMutableReports() { + bitField0_ |= 0x00000002; + return reports; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @param value the reports to add + * @return this + */ + public SoldierBattleReportRecentList addReports(final Public.SoldierBattleReport value) { + bitField0_ |= 0x00000002; + reports.add(value); + return this; + } + + /** + * repeated .SoldierBattleReport Reports = 1; + * @param values the reports to add + * @return this + */ + public SoldierBattleReportRecentList addAllReports(final Public.SoldierBattleReport... values) { + bitField0_ |= 0x00000002; + reports.addAll(values); + return this; + } + + @Override + public SoldierBattleReportRecentList copyFrom(final SoldierBattleReportRecentList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nextPackage.copyFrom(other.nextPackage); + reports.copyFrom(other.reports); + } + return this; + } + + @Override + public SoldierBattleReportRecentList mergeFrom(final SoldierBattleReportRecentList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasReports()) { + getMutableReports().addAll(other.reports); + } + return this; + } + + @Override + public SoldierBattleReportRecentList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + reports.clear(); + return this; + } + + @Override + public SoldierBattleReportRecentList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + reports.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierBattleReportRecentList)) { + return false; + } + SoldierBattleReportRecentList other = (SoldierBattleReportRecentList) o; + return bitField0_ == other.bitField0_ + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasReports() || reports.equals(other.reports)); + } + + @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 < reports.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(reports.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * reports.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(reports); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierBattleReportRecentList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // reports + tag = input.readRepeatedMessage(reports, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.reports, reports); + } + output.endObject(); + } + + @Override + public SoldierBattleReportRecentList 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 -1535710817: { + if (input.isAtField(FieldNames.reports)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(reports); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierBattleReportRecentList clone() { + return new SoldierBattleReportRecentList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierBattleReportRecentList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierBattleReportRecentList(), data).checkInitialized(); + } + + public static SoldierBattleReportRecentList parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReportRecentList(), input).checkInitialized(); + } + + public static SoldierBattleReportRecentList parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierBattleReportRecentList(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierBattleReportRecentList messages + */ + public static MessageFactory getFactory() { + return SoldierBattleReportRecentListFactory.INSTANCE; + } + + private enum SoldierBattleReportRecentListFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierBattleReportRecentList create() { + return SoldierBattleReportRecentList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName reports = FieldName.forField("Reports"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierBattleReportUnfavorite.java b/src/generated/main/emu/nebula/proto/SoldierBattleReportUnfavorite.java new file mode 100644 index 0000000..355b181 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierBattleReportUnfavorite.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class SoldierBattleReportUnfavorite { +} diff --git a/src/generated/main/emu/nebula/proto/SoldierGiveUp.java b/src/generated/main/emu/nebula/proto/SoldierGiveUp.java index 3c2050b..61175a8 100644 --- a/src/generated/main/emu/nebula/proto/SoldierGiveUp.java +++ b/src/generated/main/emu/nebula/proto/SoldierGiveUp.java @@ -1,463 +1,5 @@ // Code generated by protocol buffer compiler. Do not edit! package emu.nebula.proto; -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedByte; - public final class SoldierGiveUp { - /** - * Protobuf type {@code SoldierGiveUpResp} - */ - public static final class SoldierGiveUpResp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 TotalScore = 1; - */ - private int totalScore; - - /** - * optional uint32 RewardScore = 2; - */ - private int rewardScore; - - /** - * optional bytes NextPackage = 2047; - */ - private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - - private SoldierGiveUpResp() { - } - - /** - * @return a new empty instance of {@code SoldierGiveUpResp} - */ - public static SoldierGiveUpResp newInstance() { - return new SoldierGiveUpResp(); - } - - /** - * optional uint32 TotalScore = 1; - * @return whether the totalScore field is set - */ - public boolean hasTotalScore() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 TotalScore = 1; - * @return this - */ - public SoldierGiveUpResp clearTotalScore() { - bitField0_ &= ~0x00000001; - totalScore = 0; - return this; - } - - /** - * optional uint32 TotalScore = 1; - * @return the totalScore - */ - public int getTotalScore() { - return totalScore; - } - - /** - * optional uint32 TotalScore = 1; - * @param value the totalScore to set - * @return this - */ - public SoldierGiveUpResp setTotalScore(final int value) { - bitField0_ |= 0x00000001; - totalScore = value; - return this; - } - - /** - * optional uint32 RewardScore = 2; - * @return whether the rewardScore field is set - */ - public boolean hasRewardScore() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 RewardScore = 2; - * @return this - */ - public SoldierGiveUpResp clearRewardScore() { - bitField0_ &= ~0x00000002; - rewardScore = 0; - return this; - } - - /** - * optional uint32 RewardScore = 2; - * @return the rewardScore - */ - public int getRewardScore() { - return rewardScore; - } - - /** - * optional uint32 RewardScore = 2; - * @param value the rewardScore to set - * @return this - */ - public SoldierGiveUpResp setRewardScore(final int value) { - bitField0_ |= 0x00000002; - rewardScore = value; - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @return whether the nextPackage field is set - */ - public boolean hasNextPackage() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bytes NextPackage = 2047; - * @return this - */ - public SoldierGiveUpResp clearNextPackage() { - bitField0_ &= ~0x00000004; - nextPackage.clear(); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * @param value the nextPackage to add - * @return this - */ - public SoldierGiveUpResp addNextPackage(final byte value) { - bitField0_ |= 0x00000004; - nextPackage.add(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to add - * @return this - */ - public SoldierGiveUpResp addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000004; - nextPackage.addAll(values); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to set - * @return this - */ - public SoldierGiveUpResp setNextPackage(final byte... values) { - bitField0_ |= 0x00000004; - nextPackage.copyFrom(values); - return this; - } - - @Override - public SoldierGiveUpResp copyFrom(final SoldierGiveUpResp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - totalScore = other.totalScore; - rewardScore = other.rewardScore; - nextPackage.copyFrom(other.nextPackage); - } - return this; - } - - @Override - public SoldierGiveUpResp mergeFrom(final SoldierGiveUpResp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasTotalScore()) { - setTotalScore(other.totalScore); - } - if (other.hasRewardScore()) { - setRewardScore(other.rewardScore); - } - if (other.hasNextPackage()) { - getMutableNextPackage().copyFrom(other.nextPackage); - } - return this; - } - - @Override - public SoldierGiveUpResp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - totalScore = 0; - rewardScore = 0; - nextPackage.clear(); - return this; - } - - @Override - public SoldierGiveUpResp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nextPackage.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SoldierGiveUpResp)) { - return false; - } - SoldierGiveUpResp other = (SoldierGiveUpResp) o; - return bitField0_ == other.bitField0_ - && (!hasTotalScore() || totalScore == other.totalScore) - && (!hasRewardScore() || rewardScore == other.rewardScore) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(totalScore); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(rewardScore); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawLittleEndian16((short) 32762); - output.writeBytesNoTag(nextPackage); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardScore); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SoldierGiveUpResp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // totalScore - totalScore = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // rewardScore - rewardScore = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 16378) { - break; - } - } - case 16378: { - // nextPackage - input.readBytes(nextPackage); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.totalScore, totalScore); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rewardScore, rewardScore); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); - } - output.endObject(); - } - - @Override - public SoldierGiveUpResp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1276492238: { - if (input.isAtField(FieldNames.totalScore)) { - if (!input.trySkipNullValue()) { - totalScore = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1740125053: { - if (input.isAtField(FieldNames.rewardScore)) { - if (!input.trySkipNullValue()) { - rewardScore = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2082324045: { - if (input.isAtField(FieldNames.nextPackage)) { - if (!input.trySkipNullValue()) { - input.readBytes(nextPackage); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SoldierGiveUpResp clone() { - return new SoldierGiveUpResp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SoldierGiveUpResp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), data).checkInitialized(); - } - - public static SoldierGiveUpResp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), input).checkInitialized(); - } - - public static SoldierGiveUpResp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierGiveUpResp(), input).checkInitialized(); - } - - /** - * @return factory for creating SoldierGiveUpResp messages - */ - public static MessageFactory getFactory() { - return SoldierGiveUpRespFactory.INSTANCE; - } - - private enum SoldierGiveUpRespFactory implements MessageFactory { - INSTANCE; - - @Override - public SoldierGiveUpResp create() { - return SoldierGiveUpResp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName totalScore = FieldName.forField("TotalScore"); - - static final FieldName rewardScore = FieldName.forField("RewardScore"); - - static final FieldName nextPackage = FieldName.forField("NextPackage"); - } - } } diff --git a/src/generated/main/emu/nebula/proto/SoldierInteract.java b/src/generated/main/emu/nebula/proto/SoldierInteract.java index ac3a781..b7c98ac 100644 --- a/src/generated/main/emu/nebula/proto/SoldierInteract.java +++ b/src/generated/main/emu/nebula/proto/SoldierInteract.java @@ -55,6 +55,21 @@ public final class SoldierInteract { */ private final PublicSoldier.InteractEventSettlementOfDisputeBattleReq eventSettlementOfDisputeBattleReq = PublicSoldier.InteractEventSettlementOfDisputeBattleReq.newInstance(); + /** + * optional .InteractSelectBossAbilityReq SelectBossAbilityReq = 8; + */ + private final PublicSoldier.InteractSelectBossAbilityReq selectBossAbilityReq = PublicSoldier.InteractSelectBossAbilityReq.newInstance(); + + /** + * optional .InteractCheckStageSettleReq CheckStageSettleReq = 9; + */ + private final PublicSoldier.InteractCheckStageSettleReq checkStageSettleReq = PublicSoldier.InteractCheckStageSettleReq.newInstance(); + + /** + * optional .InteractStoryEventOfPersonalitySelectReq StoryEventOfPersonalitySelectReq = 10; + */ + private final PublicSoldier.InteractStoryEventOfPersonalitySelectReq storyEventOfPersonalitySelectReq = PublicSoldier.InteractStoryEventOfPersonalitySelectReq.newInstance(); + /** * optional .InteractDeploySyncReq DeploySyncReq = 14; */ @@ -464,12 +479,188 @@ public final class SoldierInteract { return this; } + /** + * optional .InteractSelectBossAbilityReq SelectBossAbilityReq = 8; + * @return whether the selectBossAbilityReq field is set + */ + public boolean hasSelectBossAbilityReq() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .InteractSelectBossAbilityReq SelectBossAbilityReq = 8; + * @return this + */ + public SoldierInteractReq clearSelectBossAbilityReq() { + bitField0_ &= ~0x00000080; + selectBossAbilityReq.clear(); + return this; + } + + /** + * optional .InteractSelectBossAbilityReq SelectBossAbilityReq = 8; + * + * 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 #getMutableSelectBossAbilityReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractSelectBossAbilityReq getSelectBossAbilityReq() { + return selectBossAbilityReq; + } + + /** + * optional .InteractSelectBossAbilityReq SelectBossAbilityReq = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractSelectBossAbilityReq getMutableSelectBossAbilityReq() { + bitField0_ |= 0x00000080; + return selectBossAbilityReq; + } + + /** + * optional .InteractSelectBossAbilityReq SelectBossAbilityReq = 8; + * @param value the selectBossAbilityReq to set + * @return this + */ + public SoldierInteractReq setSelectBossAbilityReq( + final PublicSoldier.InteractSelectBossAbilityReq value) { + bitField0_ |= 0x00000080; + selectBossAbilityReq.copyFrom(value); + return this; + } + + /** + * optional .InteractCheckStageSettleReq CheckStageSettleReq = 9; + * @return whether the checkStageSettleReq field is set + */ + public boolean hasCheckStageSettleReq() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .InteractCheckStageSettleReq CheckStageSettleReq = 9; + * @return this + */ + public SoldierInteractReq clearCheckStageSettleReq() { + bitField0_ &= ~0x00000100; + checkStageSettleReq.clear(); + return this; + } + + /** + * optional .InteractCheckStageSettleReq CheckStageSettleReq = 9; + * + * 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 #getMutableCheckStageSettleReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractCheckStageSettleReq getCheckStageSettleReq() { + return checkStageSettleReq; + } + + /** + * optional .InteractCheckStageSettleReq CheckStageSettleReq = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractCheckStageSettleReq getMutableCheckStageSettleReq() { + bitField0_ |= 0x00000100; + return checkStageSettleReq; + } + + /** + * optional .InteractCheckStageSettleReq CheckStageSettleReq = 9; + * @param value the checkStageSettleReq to set + * @return this + */ + public SoldierInteractReq setCheckStageSettleReq( + final PublicSoldier.InteractCheckStageSettleReq value) { + bitField0_ |= 0x00000100; + checkStageSettleReq.copyFrom(value); + return this; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectReq StoryEventOfPersonalitySelectReq = 10; + * @return whether the storyEventOfPersonalitySelectReq field is set + */ + public boolean hasStoryEventOfPersonalitySelectReq() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectReq StoryEventOfPersonalitySelectReq = 10; + * @return this + */ + public SoldierInteractReq clearStoryEventOfPersonalitySelectReq() { + bitField0_ &= ~0x00000200; + storyEventOfPersonalitySelectReq.clear(); + return this; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectReq StoryEventOfPersonalitySelectReq = 10; + * + * 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 #getMutableStoryEventOfPersonalitySelectReq()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractStoryEventOfPersonalitySelectReq getStoryEventOfPersonalitySelectReq( + ) { + return storyEventOfPersonalitySelectReq; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectReq StoryEventOfPersonalitySelectReq = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractStoryEventOfPersonalitySelectReq getMutableStoryEventOfPersonalitySelectReq( + ) { + bitField0_ |= 0x00000200; + return storyEventOfPersonalitySelectReq; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectReq StoryEventOfPersonalitySelectReq = 10; + * @param value the storyEventOfPersonalitySelectReq to set + * @return this + */ + public SoldierInteractReq setStoryEventOfPersonalitySelectReq( + final PublicSoldier.InteractStoryEventOfPersonalitySelectReq value) { + bitField0_ |= 0x00000200; + storyEventOfPersonalitySelectReq.copyFrom(value); + return this; + } + /** * optional .InteractDeploySyncReq DeploySyncReq = 14; * @return whether the deploySyncReq field is set */ public boolean hasDeploySyncReq() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -477,7 +668,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq clearDeploySyncReq() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000400; deploySyncReq.clear(); return this; } @@ -506,7 +697,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public PublicSoldier.InteractDeploySyncReq getMutableDeploySyncReq() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; return deploySyncReq; } @@ -516,7 +707,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq setDeploySyncReq(final PublicSoldier.InteractDeploySyncReq value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; deploySyncReq.copyFrom(value); return this; } @@ -526,7 +717,7 @@ public final class SoldierInteract { * @return whether the clientEventReq field is set */ public boolean hasClientEventReq() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -534,7 +725,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq clearClientEventReq() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000800; clientEventReq.clear(); return this; } @@ -563,7 +754,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public PublicSoldier.InteractClientEventReq getMutableClientEventReq() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return clientEventReq; } @@ -573,7 +764,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq setClientEventReq(final PublicSoldier.InteractClientEventReq value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; clientEventReq.copyFrom(value); return this; } @@ -583,7 +774,7 @@ public final class SoldierInteract { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -591,7 +782,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq clearNextPackage() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00001000; nextPackage.clear(); return this; } @@ -620,7 +811,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return nextPackage; } @@ -630,7 +821,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq addNextPackage(final byte value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; nextPackage.add(value); return this; } @@ -641,7 +832,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; nextPackage.addAll(values); return this; } @@ -652,7 +843,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; nextPackage.copyFrom(values); return this; } @@ -669,6 +860,9 @@ public final class SoldierInteract { selectReq.copyFrom(other.selectReq); eventSettlementOfDisputeReq.copyFrom(other.eventSettlementOfDisputeReq); eventSettlementOfDisputeBattleReq.copyFrom(other.eventSettlementOfDisputeBattleReq); + selectBossAbilityReq.copyFrom(other.selectBossAbilityReq); + checkStageSettleReq.copyFrom(other.checkStageSettleReq); + storyEventOfPersonalitySelectReq.copyFrom(other.storyEventOfPersonalitySelectReq); deploySyncReq.copyFrom(other.deploySyncReq); clientEventReq.copyFrom(other.clientEventReq); nextPackage.copyFrom(other.nextPackage); @@ -703,6 +897,15 @@ public final class SoldierInteract { if (other.hasEventSettlementOfDisputeBattleReq()) { getMutableEventSettlementOfDisputeBattleReq().mergeFrom(other.eventSettlementOfDisputeBattleReq); } + if (other.hasSelectBossAbilityReq()) { + getMutableSelectBossAbilityReq().mergeFrom(other.selectBossAbilityReq); + } + if (other.hasCheckStageSettleReq()) { + getMutableCheckStageSettleReq().mergeFrom(other.checkStageSettleReq); + } + if (other.hasStoryEventOfPersonalitySelectReq()) { + getMutableStoryEventOfPersonalitySelectReq().mergeFrom(other.storyEventOfPersonalitySelectReq); + } if (other.hasDeploySyncReq()) { getMutableDeploySyncReq().mergeFrom(other.deploySyncReq); } @@ -729,6 +932,9 @@ public final class SoldierInteract { selectReq.clear(); eventSettlementOfDisputeReq.clear(); eventSettlementOfDisputeBattleReq.clear(); + selectBossAbilityReq.clear(); + checkStageSettleReq.clear(); + storyEventOfPersonalitySelectReq.clear(); deploySyncReq.clear(); clientEventReq.clear(); nextPackage.clear(); @@ -748,6 +954,9 @@ public final class SoldierInteract { selectReq.clearQuick(); eventSettlementOfDisputeReq.clearQuick(); eventSettlementOfDisputeBattleReq.clearQuick(); + selectBossAbilityReq.clearQuick(); + checkStageSettleReq.clearQuick(); + storyEventOfPersonalitySelectReq.clearQuick(); deploySyncReq.clearQuick(); clientEventReq.clearQuick(); nextPackage.clear(); @@ -771,6 +980,9 @@ public final class SoldierInteract { && (!hasSelectReq() || selectReq.equals(other.selectReq)) && (!hasEventSettlementOfDisputeReq() || eventSettlementOfDisputeReq.equals(other.eventSettlementOfDisputeReq)) && (!hasEventSettlementOfDisputeBattleReq() || eventSettlementOfDisputeBattleReq.equals(other.eventSettlementOfDisputeBattleReq)) + && (!hasSelectBossAbilityReq() || selectBossAbilityReq.equals(other.selectBossAbilityReq)) + && (!hasCheckStageSettleReq() || checkStageSettleReq.equals(other.checkStageSettleReq)) + && (!hasStoryEventOfPersonalitySelectReq() || storyEventOfPersonalitySelectReq.equals(other.storyEventOfPersonalitySelectReq)) && (!hasDeploySyncReq() || deploySyncReq.equals(other.deploySyncReq)) && (!hasClientEventReq() || clientEventReq.equals(other.clientEventReq)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); @@ -807,14 +1019,26 @@ public final class SoldierInteract { output.writeMessageNoTag(eventSettlementOfDisputeBattleReq); } if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(selectBossAbilityReq); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(checkStageSettleReq); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(storyEventOfPersonalitySelectReq); + } + if ((bitField0_ & 0x00000400) != 0) { output.writeRawByte((byte) 114); output.writeMessageNoTag(deploySyncReq); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000800) != 0) { output.writeRawByte((byte) 122); output.writeMessageNoTag(clientEventReq); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00001000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } @@ -845,12 +1069,21 @@ public final class SoldierInteract { size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeBattleReq); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(deploySyncReq); + size += 1 + ProtoSink.computeMessageSizeNoTag(selectBossAbilityReq); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(clientEventReq); + size += 1 + ProtoSink.computeMessageSizeNoTag(checkStageSettleReq); } if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(storyEventOfPersonalitySelectReq); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(deploySyncReq); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(clientEventReq); + } + if ((bitField0_ & 0x00001000) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; @@ -922,6 +1155,33 @@ public final class SoldierInteract { input.readMessage(eventSettlementOfDisputeBattleReq); bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // selectBossAbilityReq + input.readMessage(selectBossAbilityReq); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // checkStageSettleReq + input.readMessage(checkStageSettleReq); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // storyEventOfPersonalitySelectReq + input.readMessage(storyEventOfPersonalitySelectReq); + bitField0_ |= 0x00000200; + tag = input.readTag(); if (tag != 114) { break; } @@ -929,7 +1189,7 @@ public final class SoldierInteract { case 114: { // deploySyncReq input.readMessage(deploySyncReq); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 122) { break; @@ -938,7 +1198,7 @@ public final class SoldierInteract { case 122: { // clientEventReq input.readMessage(clientEventReq); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 16378) { break; @@ -947,7 +1207,7 @@ public final class SoldierInteract { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; tag = input.readTag(); if (tag != 0) { break; @@ -992,12 +1252,21 @@ public final class SoldierInteract { output.writeMessage(FieldNames.eventSettlementOfDisputeBattleReq, eventSettlementOfDisputeBattleReq); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.deploySyncReq, deploySyncReq); + output.writeMessage(FieldNames.selectBossAbilityReq, selectBossAbilityReq); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.clientEventReq, clientEventReq); + output.writeMessage(FieldNames.checkStageSettleReq, checkStageSettleReq); } if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.storyEventOfPersonalitySelectReq, storyEventOfPersonalitySelectReq); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.deploySyncReq, deploySyncReq); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeMessage(FieldNames.clientEventReq, clientEventReq); + } + if ((bitField0_ & 0x00001000) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); @@ -1087,11 +1356,44 @@ public final class SoldierInteract { } break; } + case 1572455069: { + if (input.isAtField(FieldNames.selectBossAbilityReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(selectBossAbilityReq); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1610642179: { + if (input.isAtField(FieldNames.checkStageSettleReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(checkStageSettleReq); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 437521616: { + if (input.isAtField(FieldNames.storyEventOfPersonalitySelectReq)) { + if (!input.trySkipNullValue()) { + input.readMessage(storyEventOfPersonalitySelectReq); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } case -177983236: { if (input.isAtField(FieldNames.deploySyncReq)) { if (!input.trySkipNullValue()) { input.readMessage(deploySyncReq); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -1102,7 +1404,7 @@ public final class SoldierInteract { if (input.isAtField(FieldNames.clientEventReq)) { if (!input.trySkipNullValue()) { input.readMessage(clientEventReq); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -1113,7 +1415,7 @@ public final class SoldierInteract { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -1187,6 +1489,12 @@ public final class SoldierInteract { static final FieldName eventSettlementOfDisputeBattleReq = FieldName.forField("EventSettlementOfDisputeBattleReq"); + static final FieldName selectBossAbilityReq = FieldName.forField("SelectBossAbilityReq"); + + static final FieldName checkStageSettleReq = FieldName.forField("CheckStageSettleReq"); + + static final FieldName storyEventOfPersonalitySelectReq = FieldName.forField("StoryEventOfPersonalitySelectReq"); + static final FieldName deploySyncReq = FieldName.forField("DeploySyncReq"); static final FieldName clientEventReq = FieldName.forField("ClientEventReq"); @@ -1221,6 +1529,11 @@ public final class SoldierInteract { */ private final PublicSoldier.SoldierSyncData syncData = PublicSoldier.SoldierSyncData.newInstance(); + /** + * optional .SoldierSettleDataResp Settle = 7; + */ + private final PublicSoldier.SoldierSettleDataResp settle = PublicSoldier.SoldierSettleDataResp.newInstance(); + /** * optional .InteractShopResp ShopResp = 8; */ @@ -1237,24 +1550,34 @@ public final class SoldierInteract { private final PublicSoldier.InteractSoldierSelectResp selectResp = PublicSoldier.InteractSoldierSelectResp.newInstance(); /** - * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; - */ - private final PublicSoldier.InteractEventSettlementOfDisputeResp eventSettlementOfDisputeResp = PublicSoldier.InteractEventSettlementOfDisputeResp.newInstance(); - - /** - * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 11; */ private final PublicSoldier.InteractEventSettlementOfDisputeBattleResp eventSettlementOfDisputeBattleResp = PublicSoldier.InteractEventSettlementOfDisputeBattleResp.newInstance(); /** - * optional .Nil NilResp = 14; + * optional .InteractCheckStageSettleResp CheckStageSettleResp = 12; + */ + private final PublicSoldier.InteractCheckStageSettleResp checkStageSettleResp = PublicSoldier.InteractCheckStageSettleResp.newInstance(); + + /** + * optional .InteractDeploySyncResp DeploySyncResp = 13; + */ + private final PublicSoldier.InteractDeploySyncResp deploySyncResp = PublicSoldier.InteractDeploySyncResp.newInstance(); + + /** + * optional .InteractStoryEventOfPersonalitySelectResp StoryEventOfPersonalitySelectResp = 14; + */ + private final PublicSoldier.InteractStoryEventOfPersonalitySelectResp storyEventOfPersonalitySelectResp = PublicSoldier.InteractStoryEventOfPersonalitySelectResp.newInstance(); + + /** + * optional .Nil NilResp = 16; */ private final Public.Nil nilResp = Public.Nil.newInstance(); /** - * optional .SoldierSettleDataResp Settle = 15; + * optional .InteractStoryEventOfCostlySelectResp StoryEventOfCostlySelectResp = 17; */ - private final PublicSoldier.SoldierSettleDataResp settle = PublicSoldier.SoldierSettleDataResp.newInstance(); + private final PublicSoldier.InteractStoryEventOfCostlySelectResp storyEventOfCostlySelectResp = PublicSoldier.InteractStoryEventOfCostlySelectResp.newInstance(); /** * optional bytes NextPackage = 2047; @@ -1271,6 +1594,11 @@ public final class SoldierInteract { */ private final RepeatedMessage effects = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierEffect.getFactory()); + /** + * repeated .SoldierBuffProgress Progress = 15; + */ + private final RepeatedMessage progress = RepeatedMessage.newEmptyInstance(PublicSoldier.SoldierBuffProgress.getFactory()); + private SoldierInteractResp() { } @@ -1489,12 +1817,69 @@ public final class SoldierInteract { return this; } + /** + * optional .SoldierSettleDataResp Settle = 7; + * @return whether the settle field is set + */ + public boolean hasSettle() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SoldierSettleDataResp Settle = 7; + * @return this + */ + public SoldierInteractResp clearSettle() { + bitField0_ &= ~0x00000010; + settle.clear(); + return this; + } + + /** + * optional .SoldierSettleDataResp Settle = 7; + * + * 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 #getMutableSettle()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.SoldierSettleDataResp getSettle() { + return settle; + } + + /** + * optional .SoldierSettleDataResp Settle = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.SoldierSettleDataResp getMutableSettle() { + bitField0_ |= 0x00000010; + return settle; + } + + /** + * optional .SoldierSettleDataResp Settle = 7; + * @param value the settle to set + * @return this + */ + public SoldierInteractResp setSettle(final PublicSoldier.SoldierSettleDataResp value) { + bitField0_ |= 0x00000010; + settle.copyFrom(value); + return this; + } + /** * optional .InteractShopResp ShopResp = 8; * @return whether the shopResp field is set */ public boolean hasShopResp() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -1502,7 +1887,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp clearShopResp() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; shopResp.clear(); return this; } @@ -1531,7 +1916,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public PublicSoldier.InteractShopResp getMutableShopResp() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return shopResp; } @@ -1541,7 +1926,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp setShopResp(final PublicSoldier.InteractShopResp value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; shopResp.copyFrom(value); return this; } @@ -1551,7 +1936,7 @@ public final class SoldierInteract { * @return whether the battleResp field is set */ public boolean hasBattleResp() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -1559,7 +1944,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp clearBattleResp() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000040; battleResp.clear(); return this; } @@ -1588,7 +1973,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public PublicSoldier.InteractSoldierBattleResp getMutableBattleResp() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return battleResp; } @@ -1598,7 +1983,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp setBattleResp(final PublicSoldier.InteractSoldierBattleResp value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; battleResp.copyFrom(value); return this; } @@ -1608,7 +1993,7 @@ public final class SoldierInteract { * @return whether the selectResp field is set */ public boolean hasSelectResp() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -1616,7 +2001,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp clearSelectResp() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000080; selectResp.clear(); return this; } @@ -1645,7 +2030,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public PublicSoldier.InteractSoldierSelectResp getMutableSelectResp() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return selectResp; } @@ -1655,72 +2040,13 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp setSelectResp(final PublicSoldier.InteractSoldierSelectResp value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; selectResp.copyFrom(value); return this; } /** - * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; - * @return whether the eventSettlementOfDisputeResp field is set - */ - public boolean hasEventSettlementOfDisputeResp() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; - * @return this - */ - public SoldierInteractResp clearEventSettlementOfDisputeResp() { - bitField0_ &= ~0x00000080; - eventSettlementOfDisputeResp.clear(); - return this; - } - - /** - * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; - * - * 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 #getMutableEventSettlementOfDisputeResp()} if you want to modify it. - * - * @return internal storage object for reading - */ - public PublicSoldier.InteractEventSettlementOfDisputeResp getEventSettlementOfDisputeResp() { - return eventSettlementOfDisputeResp; - } - - /** - * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public PublicSoldier.InteractEventSettlementOfDisputeResp getMutableEventSettlementOfDisputeResp( - ) { - bitField0_ |= 0x00000080; - return eventSettlementOfDisputeResp; - } - - /** - * optional .InteractEventSettlementOfDisputeResp EventSettlementOfDisputeResp = 11; - * @param value the eventSettlementOfDisputeResp to set - * @return this - */ - public SoldierInteractResp setEventSettlementOfDisputeResp( - final PublicSoldier.InteractEventSettlementOfDisputeResp value) { - bitField0_ |= 0x00000080; - eventSettlementOfDisputeResp.copyFrom(value); - return this; - } - - /** - * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 11; * @return whether the eventSettlementOfDisputeBattleResp field is set */ public boolean hasEventSettlementOfDisputeBattleResp() { @@ -1728,7 +2054,7 @@ public final class SoldierInteract { } /** - * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 11; * @return this */ public SoldierInteractResp clearEventSettlementOfDisputeBattleResp() { @@ -1738,7 +2064,7 @@ public final class SoldierInteract { } /** - * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 11; * * 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. @@ -1753,7 +2079,7 @@ public final class SoldierInteract { } /** - * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -1768,7 +2094,7 @@ public final class SoldierInteract { } /** - * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 12; + * optional .InteractEventSettlementOfDisputeBattleResp EventSettlementOfDisputeBattleResp = 11; * @param value the eventSettlementOfDisputeBattleResp to set * @return this */ @@ -1780,25 +2106,200 @@ public final class SoldierInteract { } /** - * optional .Nil NilResp = 14; - * @return whether the nilResp field is set + * optional .InteractCheckStageSettleResp CheckStageSettleResp = 12; + * @return whether the checkStageSettleResp field is set */ - public boolean hasNilResp() { + public boolean hasCheckStageSettleResp() { return (bitField0_ & 0x00000200) != 0; } /** - * optional .Nil NilResp = 14; + * optional .InteractCheckStageSettleResp CheckStageSettleResp = 12; + * @return this + */ + public SoldierInteractResp clearCheckStageSettleResp() { + bitField0_ &= ~0x00000200; + checkStageSettleResp.clear(); + return this; + } + + /** + * optional .InteractCheckStageSettleResp CheckStageSettleResp = 12; + * + * 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 #getMutableCheckStageSettleResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractCheckStageSettleResp getCheckStageSettleResp() { + return checkStageSettleResp; + } + + /** + * optional .InteractCheckStageSettleResp CheckStageSettleResp = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractCheckStageSettleResp getMutableCheckStageSettleResp() { + bitField0_ |= 0x00000200; + return checkStageSettleResp; + } + + /** + * optional .InteractCheckStageSettleResp CheckStageSettleResp = 12; + * @param value the checkStageSettleResp to set + * @return this + */ + public SoldierInteractResp setCheckStageSettleResp( + final PublicSoldier.InteractCheckStageSettleResp value) { + bitField0_ |= 0x00000200; + checkStageSettleResp.copyFrom(value); + return this; + } + + /** + * optional .InteractDeploySyncResp DeploySyncResp = 13; + * @return whether the deploySyncResp field is set + */ + public boolean hasDeploySyncResp() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .InteractDeploySyncResp DeploySyncResp = 13; + * @return this + */ + public SoldierInteractResp clearDeploySyncResp() { + bitField0_ &= ~0x00000400; + deploySyncResp.clear(); + return this; + } + + /** + * optional .InteractDeploySyncResp DeploySyncResp = 13; + * + * 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 #getMutableDeploySyncResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractDeploySyncResp getDeploySyncResp() { + return deploySyncResp; + } + + /** + * optional .InteractDeploySyncResp DeploySyncResp = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractDeploySyncResp getMutableDeploySyncResp() { + bitField0_ |= 0x00000400; + return deploySyncResp; + } + + /** + * optional .InteractDeploySyncResp DeploySyncResp = 13; + * @param value the deploySyncResp to set + * @return this + */ + public SoldierInteractResp setDeploySyncResp(final PublicSoldier.InteractDeploySyncResp value) { + bitField0_ |= 0x00000400; + deploySyncResp.copyFrom(value); + return this; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp StoryEventOfPersonalitySelectResp = 14; + * @return whether the storyEventOfPersonalitySelectResp field is set + */ + public boolean hasStoryEventOfPersonalitySelectResp() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp StoryEventOfPersonalitySelectResp = 14; + * @return this + */ + public SoldierInteractResp clearStoryEventOfPersonalitySelectResp() { + bitField0_ &= ~0x00000800; + storyEventOfPersonalitySelectResp.clear(); + return this; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp StoryEventOfPersonalitySelectResp = 14; + * + * 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 #getMutableStoryEventOfPersonalitySelectResp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicSoldier.InteractStoryEventOfPersonalitySelectResp getStoryEventOfPersonalitySelectResp( + ) { + return storyEventOfPersonalitySelectResp; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp StoryEventOfPersonalitySelectResp = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PublicSoldier.InteractStoryEventOfPersonalitySelectResp getMutableStoryEventOfPersonalitySelectResp( + ) { + bitField0_ |= 0x00000800; + return storyEventOfPersonalitySelectResp; + } + + /** + * optional .InteractStoryEventOfPersonalitySelectResp StoryEventOfPersonalitySelectResp = 14; + * @param value the storyEventOfPersonalitySelectResp to set + * @return this + */ + public SoldierInteractResp setStoryEventOfPersonalitySelectResp( + final PublicSoldier.InteractStoryEventOfPersonalitySelectResp value) { + bitField0_ |= 0x00000800; + storyEventOfPersonalitySelectResp.copyFrom(value); + return this; + } + + /** + * optional .Nil NilResp = 16; + * @return whether the nilResp field is set + */ + public boolean hasNilResp() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional .Nil NilResp = 16; * @return this */ public SoldierInteractResp clearNilResp() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00001000; nilResp.clear(); return this; } /** - * optional .Nil NilResp = 14; + * optional .Nil NilResp = 16; * * 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. @@ -1812,7 +2313,7 @@ public final class SoldierInteract { } /** - * optional .Nil NilResp = 14; + * optional .Nil NilResp = 16; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -1821,55 +2322,55 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public Public.Nil getMutableNilResp() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return nilResp; } /** - * optional .Nil NilResp = 14; + * optional .Nil NilResp = 16; * @param value the nilResp to set * @return this */ public SoldierInteractResp setNilResp(final Public.Nil value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; nilResp.copyFrom(value); return this; } /** - * optional .SoldierSettleDataResp Settle = 15; - * @return whether the settle field is set + * optional .InteractStoryEventOfCostlySelectResp StoryEventOfCostlySelectResp = 17; + * @return whether the storyEventOfCostlySelectResp field is set */ - public boolean hasSettle() { - return (bitField0_ & 0x00000400) != 0; + public boolean hasStoryEventOfCostlySelectResp() { + return (bitField0_ & 0x00002000) != 0; } /** - * optional .SoldierSettleDataResp Settle = 15; + * optional .InteractStoryEventOfCostlySelectResp StoryEventOfCostlySelectResp = 17; * @return this */ - public SoldierInteractResp clearSettle() { - bitField0_ &= ~0x00000400; - settle.clear(); + public SoldierInteractResp clearStoryEventOfCostlySelectResp() { + bitField0_ &= ~0x00002000; + storyEventOfCostlySelectResp.clear(); return this; } /** - * optional .SoldierSettleDataResp Settle = 15; + * optional .InteractStoryEventOfCostlySelectResp StoryEventOfCostlySelectResp = 17; * * 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 #getMutableSettle()} if you want to modify it. + * Use {@link #getMutableStoryEventOfCostlySelectResp()} if you want to modify it. * * @return internal storage object for reading */ - public PublicSoldier.SoldierSettleDataResp getSettle() { - return settle; + public PublicSoldier.InteractStoryEventOfCostlySelectResp getStoryEventOfCostlySelectResp() { + return storyEventOfCostlySelectResp; } /** - * optional .SoldierSettleDataResp Settle = 15; + * optional .InteractStoryEventOfCostlySelectResp StoryEventOfCostlySelectResp = 17; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -1877,19 +2378,21 @@ public final class SoldierInteract { * * @return internal storage object for modifications */ - public PublicSoldier.SoldierSettleDataResp getMutableSettle() { - bitField0_ |= 0x00000400; - return settle; + public PublicSoldier.InteractStoryEventOfCostlySelectResp getMutableStoryEventOfCostlySelectResp( + ) { + bitField0_ |= 0x00002000; + return storyEventOfCostlySelectResp; } /** - * optional .SoldierSettleDataResp Settle = 15; - * @param value the settle to set + * optional .InteractStoryEventOfCostlySelectResp StoryEventOfCostlySelectResp = 17; + * @param value the storyEventOfCostlySelectResp to set * @return this */ - public SoldierInteractResp setSettle(final PublicSoldier.SoldierSettleDataResp value) { - bitField0_ |= 0x00000400; - settle.copyFrom(value); + public SoldierInteractResp setStoryEventOfCostlySelectResp( + final PublicSoldier.InteractStoryEventOfCostlySelectResp value) { + bitField0_ |= 0x00002000; + storyEventOfCostlySelectResp.copyFrom(value); return this; } @@ -1898,7 +2401,7 @@ public final class SoldierInteract { * @return whether the nextPackage field is set */ public boolean hasNextPackage() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00004000) != 0; } /** @@ -1906,7 +2409,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp clearNextPackage() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00004000; nextPackage.clear(); return this; } @@ -1935,7 +2438,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; return nextPackage; } @@ -1945,7 +2448,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp addNextPackage(final byte value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; nextPackage.add(value); return this; } @@ -1956,7 +2459,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; nextPackage.addAll(values); return this; } @@ -1967,7 +2470,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp setNextPackage(final byte... values) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; nextPackage.copyFrom(values); return this; } @@ -1977,7 +2480,7 @@ public final class SoldierInteract { * @return whether the cases field is set */ public boolean hasCases() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00008000) != 0; } /** @@ -1985,7 +2488,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp clearCases() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00008000; cases.clear(); return this; } @@ -2014,7 +2517,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public RepeatedMessage getMutableCases() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; return cases; } @@ -2024,7 +2527,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp addCases(final PublicSoldier.SoldierCase value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; cases.add(value); return this; } @@ -2035,7 +2538,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp addAllCases(final PublicSoldier.SoldierCase... values) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; cases.addAll(values); return this; } @@ -2045,7 +2548,7 @@ public final class SoldierInteract { * @return whether the effects field is set */ public boolean hasEffects() { - return (bitField0_ & 0x00002000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** @@ -2053,7 +2556,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp clearEffects() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00010000; effects.clear(); return this; } @@ -2082,7 +2585,7 @@ public final class SoldierInteract { * @return internal storage object for modifications */ public RepeatedMessage getMutableEffects() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; return effects; } @@ -2092,7 +2595,7 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp addEffects(final PublicSoldier.SoldierEffect value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; effects.add(value); return this; } @@ -2103,11 +2606,79 @@ public final class SoldierInteract { * @return this */ public SoldierInteractResp addAllEffects(final PublicSoldier.SoldierEffect... values) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; effects.addAll(values); return this; } + /** + * repeated .SoldierBuffProgress Progress = 15; + * @return whether the progress field is set + */ + public boolean hasProgress() { + return (bitField0_ & 0x00020000) != 0; + } + + /** + * repeated .SoldierBuffProgress Progress = 15; + * @return this + */ + public SoldierInteractResp clearProgress() { + bitField0_ &= ~0x00020000; + progress.clear(); + return this; + } + + /** + * repeated .SoldierBuffProgress Progress = 15; + * + * 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 #getMutableProgress()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getProgress() { + return progress; + } + + /** + * repeated .SoldierBuffProgress Progress = 15; + * + * 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 getMutableProgress() { + bitField0_ |= 0x00020000; + return progress; + } + + /** + * repeated .SoldierBuffProgress Progress = 15; + * @param value the progress to add + * @return this + */ + public SoldierInteractResp addProgress(final PublicSoldier.SoldierBuffProgress value) { + bitField0_ |= 0x00020000; + progress.add(value); + return this; + } + + /** + * repeated .SoldierBuffProgress Progress = 15; + * @param values the progress to add + * @return this + */ + public SoldierInteractResp addAllProgress(final PublicSoldier.SoldierBuffProgress... values) { + bitField0_ |= 0x00020000; + progress.addAll(values); + return this; + } + @Override public SoldierInteractResp copyFrom(final SoldierInteractResp other) { cachedSize = other.cachedSize; @@ -2117,16 +2688,20 @@ public final class SoldierInteract { change.copyFrom(other.change); node.copyFrom(other.node); syncData.copyFrom(other.syncData); + settle.copyFrom(other.settle); shopResp.copyFrom(other.shopResp); battleResp.copyFrom(other.battleResp); selectResp.copyFrom(other.selectResp); - eventSettlementOfDisputeResp.copyFrom(other.eventSettlementOfDisputeResp); eventSettlementOfDisputeBattleResp.copyFrom(other.eventSettlementOfDisputeBattleResp); + checkStageSettleResp.copyFrom(other.checkStageSettleResp); + deploySyncResp.copyFrom(other.deploySyncResp); + storyEventOfPersonalitySelectResp.copyFrom(other.storyEventOfPersonalitySelectResp); nilResp.copyFrom(other.nilResp); - settle.copyFrom(other.settle); + storyEventOfCostlySelectResp.copyFrom(other.storyEventOfCostlySelectResp); nextPackage.copyFrom(other.nextPackage); cases.copyFrom(other.cases); effects.copyFrom(other.effects); + progress.copyFrom(other.progress); } return this; } @@ -2149,6 +2724,9 @@ public final class SoldierInteract { if (other.hasSyncData()) { getMutableSyncData().mergeFrom(other.syncData); } + if (other.hasSettle()) { + getMutableSettle().mergeFrom(other.settle); + } if (other.hasShopResp()) { getMutableShopResp().mergeFrom(other.shopResp); } @@ -2158,17 +2736,23 @@ public final class SoldierInteract { if (other.hasSelectResp()) { getMutableSelectResp().mergeFrom(other.selectResp); } - if (other.hasEventSettlementOfDisputeResp()) { - getMutableEventSettlementOfDisputeResp().mergeFrom(other.eventSettlementOfDisputeResp); - } if (other.hasEventSettlementOfDisputeBattleResp()) { getMutableEventSettlementOfDisputeBattleResp().mergeFrom(other.eventSettlementOfDisputeBattleResp); } + if (other.hasCheckStageSettleResp()) { + getMutableCheckStageSettleResp().mergeFrom(other.checkStageSettleResp); + } + if (other.hasDeploySyncResp()) { + getMutableDeploySyncResp().mergeFrom(other.deploySyncResp); + } + if (other.hasStoryEventOfPersonalitySelectResp()) { + getMutableStoryEventOfPersonalitySelectResp().mergeFrom(other.storyEventOfPersonalitySelectResp); + } if (other.hasNilResp()) { getMutableNilResp().mergeFrom(other.nilResp); } - if (other.hasSettle()) { - getMutableSettle().mergeFrom(other.settle); + if (other.hasStoryEventOfCostlySelectResp()) { + getMutableStoryEventOfCostlySelectResp().mergeFrom(other.storyEventOfCostlySelectResp); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); @@ -2179,6 +2763,9 @@ public final class SoldierInteract { if (other.hasEffects()) { getMutableEffects().addAll(other.effects); } + if (other.hasProgress()) { + getMutableProgress().addAll(other.progress); + } return this; } @@ -2193,16 +2780,20 @@ public final class SoldierInteract { change.clear(); node.clear(); syncData.clear(); + settle.clear(); shopResp.clear(); battleResp.clear(); selectResp.clear(); - eventSettlementOfDisputeResp.clear(); eventSettlementOfDisputeBattleResp.clear(); + checkStageSettleResp.clear(); + deploySyncResp.clear(); + storyEventOfPersonalitySelectResp.clear(); nilResp.clear(); - settle.clear(); + storyEventOfCostlySelectResp.clear(); nextPackage.clear(); cases.clear(); effects.clear(); + progress.clear(); return this; } @@ -2216,16 +2807,20 @@ public final class SoldierInteract { change.clearQuick(); node.clearQuick(); syncData.clearQuick(); + settle.clearQuick(); shopResp.clearQuick(); battleResp.clearQuick(); selectResp.clearQuick(); - eventSettlementOfDisputeResp.clearQuick(); eventSettlementOfDisputeBattleResp.clearQuick(); + checkStageSettleResp.clearQuick(); + deploySyncResp.clearQuick(); + storyEventOfPersonalitySelectResp.clearQuick(); nilResp.clearQuick(); - settle.clearQuick(); + storyEventOfCostlySelectResp.clearQuick(); nextPackage.clear(); cases.clearQuick(); effects.clearQuick(); + progress.clearQuick(); return this; } @@ -2243,16 +2838,20 @@ public final class SoldierInteract { && (!hasChange() || change.equals(other.change)) && (!hasNode() || node.equals(other.node)) && (!hasSyncData() || syncData.equals(other.syncData)) + && (!hasSettle() || settle.equals(other.settle)) && (!hasShopResp() || shopResp.equals(other.shopResp)) && (!hasBattleResp() || battleResp.equals(other.battleResp)) && (!hasSelectResp() || selectResp.equals(other.selectResp)) - && (!hasEventSettlementOfDisputeResp() || eventSettlementOfDisputeResp.equals(other.eventSettlementOfDisputeResp)) && (!hasEventSettlementOfDisputeBattleResp() || eventSettlementOfDisputeBattleResp.equals(other.eventSettlementOfDisputeBattleResp)) + && (!hasCheckStageSettleResp() || checkStageSettleResp.equals(other.checkStageSettleResp)) + && (!hasDeploySyncResp() || deploySyncResp.equals(other.deploySyncResp)) + && (!hasStoryEventOfPersonalitySelectResp() || storyEventOfPersonalitySelectResp.equals(other.storyEventOfPersonalitySelectResp)) && (!hasNilResp() || nilResp.equals(other.nilResp)) - && (!hasSettle() || settle.equals(other.settle)) + && (!hasStoryEventOfCostlySelectResp() || storyEventOfCostlySelectResp.equals(other.storyEventOfCostlySelectResp)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasCases() || cases.equals(other.cases)) - && (!hasEffects() || effects.equals(other.effects)); + && (!hasEffects() || effects.equals(other.effects)) + && (!hasProgress() || progress.equals(other.progress)); } @Override @@ -2274,49 +2873,67 @@ public final class SoldierInteract { output.writeMessageNoTag(syncData); } if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(settle); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 66); output.writeMessageNoTag(shopResp); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 74); output.writeMessageNoTag(battleResp); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 82); output.writeMessageNoTag(selectResp); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(eventSettlementOfDisputeResp); - } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 90); output.writeMessageNoTag(eventSettlementOfDisputeBattleResp); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(nilResp); + output.writeRawByte((byte) 98); + output.writeMessageNoTag(checkStageSettleResp); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(settle); + output.writeRawByte((byte) 106); + output.writeMessageNoTag(deploySyncResp); } if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(storyEventOfPersonalitySelectResp); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawLittleEndian16((short) 386); + output.writeMessageNoTag(nilResp); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawLittleEndian16((short) 394); + output.writeMessageNoTag(storyEventOfCostlySelectResp); + } + if ((bitField0_ & 0x00004000) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00008000) != 0) { for (int i = 0; i < cases.length(); i++) { output.writeRawByte((byte) 18); output.writeMessageNoTag(cases.get(i)); } } - if ((bitField0_ & 0x00002000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { for (int i = 0; i < effects.length(); i++) { output.writeRawByte((byte) 50); output.writeMessageNoTag(effects.get(i)); } } + if ((bitField0_ & 0x00020000) != 0) { + for (int i = 0; i < progress.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(progress.get(i)); + } + } } @Override @@ -2335,35 +2952,47 @@ public final class SoldierInteract { size += 1 + ProtoSink.computeMessageSizeNoTag(syncData); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(shopResp); + size += 1 + ProtoSink.computeMessageSizeNoTag(settle); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(battleResp); + size += 1 + ProtoSink.computeMessageSizeNoTag(shopResp); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(selectResp); + size += 1 + ProtoSink.computeMessageSizeNoTag(battleResp); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeResp); + size += 1 + ProtoSink.computeMessageSizeNoTag(selectResp); } if ((bitField0_ & 0x00000100) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(eventSettlementOfDisputeBattleResp); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nilResp); + size += 1 + ProtoSink.computeMessageSizeNoTag(checkStageSettleResp); } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(settle); + size += 1 + ProtoSink.computeMessageSizeNoTag(deploySyncResp); } if ((bitField0_ & 0x00000800) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + size += 1 + ProtoSink.computeMessageSizeNoTag(storyEventOfPersonalitySelectResp); } if ((bitField0_ & 0x00001000) != 0) { - size += (1 * cases.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cases); + size += 2 + ProtoSink.computeMessageSizeNoTag(nilResp); } if ((bitField0_ & 0x00002000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(storyEventOfCostlySelectResp); + } + if ((bitField0_ & 0x00004000) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00008000) != 0) { + size += (1 * cases.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cases); + } + if ((bitField0_ & 0x00010000) != 0) { size += (1 * effects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(effects); } + if ((bitField0_ & 0x00020000) != 0) { + size += (1 * progress.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(progress); + } return size; } @@ -2406,6 +3035,15 @@ public final class SoldierInteract { input.readMessage(syncData); bitField0_ |= 0x00000008; tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // settle + input.readMessage(settle); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 66) { break; } @@ -2413,7 +3051,7 @@ public final class SoldierInteract { case 66: { // shopResp input.readMessage(shopResp); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 74) { break; @@ -2422,7 +3060,7 @@ public final class SoldierInteract { case 74: { // battleResp input.readMessage(battleResp); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 82) { break; @@ -2431,43 +3069,61 @@ public final class SoldierInteract { case 82: { // selectResp input.readMessage(selectResp); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 90) { break; } } case 90: { - // eventSettlementOfDisputeResp - input.readMessage(eventSettlementOfDisputeResp); - bitField0_ |= 0x00000080; + // eventSettlementOfDisputeBattleResp + input.readMessage(eventSettlementOfDisputeBattleResp); + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 98) { break; } } case 98: { - // eventSettlementOfDisputeBattleResp - input.readMessage(eventSettlementOfDisputeBattleResp); - bitField0_ |= 0x00000100; + // checkStageSettleResp + input.readMessage(checkStageSettleResp); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // deploySyncResp + input.readMessage(deploySyncResp); + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 114) { break; } } case 114: { - // nilResp - input.readMessage(nilResp); - bitField0_ |= 0x00000200; + // storyEventOfPersonalitySelectResp + input.readMessage(storyEventOfPersonalitySelectResp); + bitField0_ |= 0x00000800; tag = input.readTag(); - if (tag != 122) { + if (tag != 130) { break; } } - case 122: { - // settle - input.readMessage(settle); - bitField0_ |= 0x00000400; + case 130: { + // nilResp + input.readMessage(nilResp); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 138) { + break; + } + } + case 138: { + // storyEventOfCostlySelectResp + input.readMessage(storyEventOfCostlySelectResp); + bitField0_ |= 0x00002000; tag = input.readTag(); if (tag != 16378) { break; @@ -2476,7 +3132,7 @@ public final class SoldierInteract { case 16378: { // nextPackage input.readBytes(nextPackage); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 18) { break; @@ -2485,7 +3141,7 @@ public final class SoldierInteract { case 18: { // cases tag = input.readRepeatedMessage(cases, tag); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; if (tag != 50) { break; } @@ -2493,7 +3149,15 @@ public final class SoldierInteract { case 50: { // effects tag = input.readRepeatedMessage(effects, tag); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; + if (tag != 122) { + break; + } + } + case 122: { + // progress + tag = input.readRepeatedMessage(progress, tag); + bitField0_ |= 0x00020000; if (tag != 0) { break; } @@ -2528,35 +3192,47 @@ public final class SoldierInteract { output.writeMessage(FieldNames.syncData, syncData); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.shopResp, shopResp); + output.writeMessage(FieldNames.settle, settle); } if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.battleResp, battleResp); + output.writeMessage(FieldNames.shopResp, shopResp); } if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.selectResp, selectResp); + output.writeMessage(FieldNames.battleResp, battleResp); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.eventSettlementOfDisputeResp, eventSettlementOfDisputeResp); + output.writeMessage(FieldNames.selectResp, selectResp); } if ((bitField0_ & 0x00000100) != 0) { output.writeMessage(FieldNames.eventSettlementOfDisputeBattleResp, eventSettlementOfDisputeBattleResp); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.nilResp, nilResp); + output.writeMessage(FieldNames.checkStageSettleResp, checkStageSettleResp); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.settle, settle); + output.writeMessage(FieldNames.deploySyncResp, deploySyncResp); } if ((bitField0_ & 0x00000800) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); + output.writeMessage(FieldNames.storyEventOfPersonalitySelectResp, storyEventOfPersonalitySelectResp); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.cases, cases); + output.writeMessage(FieldNames.nilResp, nilResp); } if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.storyEventOfCostlySelectResp, storyEventOfCostlySelectResp); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeRepeatedMessage(FieldNames.cases, cases); + } + if ((bitField0_ & 0x00010000) != 0) { output.writeRepeatedMessage(FieldNames.effects, effects); } + if ((bitField0_ & 0x00020000) != 0) { + output.writeRepeatedMessage(FieldNames.progress, progress); + } output.endObject(); } @@ -2611,11 +3287,22 @@ public final class SoldierInteract { } break; } + case -1821901461: { + if (input.isAtField(FieldNames.settle)) { + if (!input.trySkipNullValue()) { + input.readMessage(settle); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case -280714234: { if (input.isAtField(FieldNames.shopResp)) { if (!input.trySkipNullValue()) { input.readMessage(shopResp); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -2626,7 +3313,7 @@ public final class SoldierInteract { if (input.isAtField(FieldNames.battleResp)) { if (!input.trySkipNullValue()) { input.readMessage(battleResp); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -2637,17 +3324,6 @@ public final class SoldierInteract { if (input.isAtField(FieldNames.selectResp)) { if (!input.trySkipNullValue()) { input.readMessage(selectResp); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -458021414: { - if (input.isAtField(FieldNames.eventSettlementOfDisputeResp)) { - if (!input.trySkipNullValue()) { - input.readMessage(eventSettlementOfDisputeResp); bitField0_ |= 0x00000080; } } else { @@ -2666,10 +3342,10 @@ public final class SoldierInteract { } break; } - case -680812191: { - if (input.isAtField(FieldNames.nilResp)) { + case 1609700177: { + if (input.isAtField(FieldNames.checkStageSettleResp)) { if (!input.trySkipNullValue()) { - input.readMessage(nilResp); + input.readMessage(checkStageSettleResp); bitField0_ |= 0x00000200; } } else { @@ -2677,10 +3353,10 @@ public final class SoldierInteract { } break; } - case -1821901461: { - if (input.isAtField(FieldNames.settle)) { + case -1222512846: { + if (input.isAtField(FieldNames.deploySyncResp)) { if (!input.trySkipNullValue()) { - input.readMessage(settle); + input.readMessage(deploySyncResp); bitField0_ |= 0x00000400; } } else { @@ -2688,11 +3364,44 @@ public final class SoldierInteract { } break; } + case 678268382: { + if (input.isAtField(FieldNames.storyEventOfPersonalitySelectResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(storyEventOfPersonalitySelectResp); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -680812191: { + if (input.isAtField(FieldNames.nilResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(nilResp); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1891657662: { + if (input.isAtField(FieldNames.storyEventOfCostlySelectResp)) { + if (!input.trySkipNullValue()) { + input.readMessage(storyEventOfCostlySelectResp); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -2703,7 +3412,7 @@ public final class SoldierInteract { if (input.isAtField(FieldNames.cases)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(cases); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -2714,7 +3423,18 @@ public final class SoldierInteract { if (input.isAtField(FieldNames.effects)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(effects); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -936434099: { + if (input.isAtField(FieldNames.progress)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(progress); + bitField0_ |= 0x00020000; } } else { input.skipUnknownField(); @@ -2782,25 +3502,33 @@ public final class SoldierInteract { static final FieldName syncData = FieldName.forField("SyncData"); + static final FieldName settle = FieldName.forField("Settle"); + static final FieldName shopResp = FieldName.forField("ShopResp"); static final FieldName battleResp = FieldName.forField("BattleResp"); static final FieldName selectResp = FieldName.forField("SelectResp"); - static final FieldName eventSettlementOfDisputeResp = FieldName.forField("EventSettlementOfDisputeResp"); - static final FieldName eventSettlementOfDisputeBattleResp = FieldName.forField("EventSettlementOfDisputeBattleResp"); + static final FieldName checkStageSettleResp = FieldName.forField("CheckStageSettleResp"); + + static final FieldName deploySyncResp = FieldName.forField("DeploySyncResp"); + + static final FieldName storyEventOfPersonalitySelectResp = FieldName.forField("StoryEventOfPersonalitySelectResp"); + static final FieldName nilResp = FieldName.forField("NilResp"); - static final FieldName settle = FieldName.forField("Settle"); + static final FieldName storyEventOfCostlySelectResp = FieldName.forField("StoryEventOfCostlySelectResp"); static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName cases = FieldName.forField("Cases"); static final FieldName effects = FieldName.forField("Effects"); + + static final FieldName progress = FieldName.forField("Progress"); } } } diff --git a/src/generated/main/emu/nebula/proto/SoldierLearn.java b/src/generated/main/emu/nebula/proto/SoldierLearn.java new file mode 100644 index 0000000..9e867db --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierLearn.java @@ -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 SoldierLearn { + /** + * Protobuf type {@code SoldierLearnReq} + */ + public static final class SoldierLearnReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 StepId = 3; + */ + private int stepId; + + /** + * optional uint32 Season = 1; + */ + private int season; + + /** + * optional uint32 GroupId = 2; + */ + private int groupId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private SoldierLearnReq() { + } + + /** + * @return a new empty instance of {@code SoldierLearnReq} + */ + public static SoldierLearnReq newInstance() { + return new SoldierLearnReq(); + } + + /** + * optional int32 StepId = 3; + * @return whether the stepId field is set + */ + public boolean hasStepId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 StepId = 3; + * @return this + */ + public SoldierLearnReq clearStepId() { + bitField0_ &= ~0x00000001; + stepId = 0; + return this; + } + + /** + * optional int32 StepId = 3; + * @return the stepId + */ + public int getStepId() { + return stepId; + } + + /** + * optional int32 StepId = 3; + * @param value the stepId to set + * @return this + */ + public SoldierLearnReq setStepId(final int value) { + bitField0_ |= 0x00000001; + stepId = value; + return this; + } + + /** + * optional uint32 Season = 1; + * @return whether the season field is set + */ + public boolean hasSeason() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 Season = 1; + * @return this + */ + public SoldierLearnReq clearSeason() { + bitField0_ &= ~0x00000002; + season = 0; + return this; + } + + /** + * optional uint32 Season = 1; + * @return the season + */ + public int getSeason() { + return season; + } + + /** + * optional uint32 Season = 1; + * @param value the season to set + * @return this + */ + public SoldierLearnReq setSeason(final int value) { + bitField0_ |= 0x00000002; + season = value; + return this; + } + + /** + * optional uint32 GroupId = 2; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 GroupId = 2; + * @return this + */ + public SoldierLearnReq clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 GroupId = 2; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 GroupId = 2; + * @param value the groupId to set + * @return this + */ + public SoldierLearnReq setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierLearnReq clearNextPackage() { + bitField0_ &= ~0x00000008; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierLearnReq addNextPackage(final byte value) { + bitField0_ |= 0x00000008; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierLearnReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierLearnReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000008; + nextPackage.copyFrom(values); + return this; + } + + @Override + public SoldierLearnReq copyFrom(final SoldierLearnReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + stepId = other.stepId; + season = other.season; + groupId = other.groupId; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierLearnReq mergeFrom(final SoldierLearnReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStepId()) { + setStepId(other.stepId); + } + if (other.hasSeason()) { + setSeason(other.season); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public SoldierLearnReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stepId = 0; + season = 0; + groupId = 0; + nextPackage.clear(); + return this; + } + + @Override + public SoldierLearnReq 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 SoldierLearnReq)) { + return false; + } + SoldierLearnReq other = (SoldierLearnReq) o; + return bitField0_ == other.bitField0_ + && (!hasStepId() || stepId == other.stepId) + && (!hasSeason() || season == other.season) + && (!hasGroupId() || groupId == other.groupId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt32NoTag(stepId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(season); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(stepId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(season); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierLearnReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // stepId + stepId = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // season + season = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt32(FieldNames.stepId, stepId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.season, season); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public SoldierLearnReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1808500441: { + if (input.isAtField(FieldNames.stepId)) { + if (!input.trySkipNullValue()) { + stepId = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1822468349: { + if (input.isAtField(FieldNames.season)) { + if (!input.trySkipNullValue()) { + season = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1958081498: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierLearnReq clone() { + return new SoldierLearnReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierLearnReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierLearnReq(), data).checkInitialized(); + } + + public static SoldierLearnReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierLearnReq(), input).checkInitialized(); + } + + public static SoldierLearnReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SoldierLearnReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierLearnReq messages + */ + public static MessageFactory getFactory() { + return SoldierLearnReqFactory.INSTANCE; + } + + private enum SoldierLearnReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierLearnReq create() { + return SoldierLearnReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName stepId = FieldName.forField("StepId"); + + static final FieldName season = FieldName.forField("Season"); + + static final FieldName groupId = FieldName.forField("GroupId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierSeasonInfo.java b/src/generated/main/emu/nebula/proto/SoldierSeasonInfo.java new file mode 100644 index 0000000..1da771f --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierSeasonInfo.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class SoldierSeasonInfo { +} diff --git a/src/generated/main/emu/nebula/proto/SoldierSeasonRewardReceive.java b/src/generated/main/emu/nebula/proto/SoldierSeasonRewardReceive.java new file mode 100644 index 0000000..8a489ae --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierSeasonRewardReceive.java @@ -0,0 +1,600 @@ +// 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 SoldierSeasonRewardReceive { + /** + * Protobuf type {@code SoldierSeasonRewardReceiveResp} + */ + public static final class SoldierSeasonRewardReceiveResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 CurRewardLv = 3; + */ + private int curRewardLv; + + /** + * optional .ChangeInfo Change = 2; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .ItemTpl Rewards = 1; + */ + private final RepeatedMessage rewards = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory()); + + private SoldierSeasonRewardReceiveResp() { + } + + /** + * @return a new empty instance of {@code SoldierSeasonRewardReceiveResp} + */ + public static SoldierSeasonRewardReceiveResp newInstance() { + return new SoldierSeasonRewardReceiveResp(); + } + + /** + * optional uint32 CurRewardLv = 3; + * @return whether the curRewardLv field is set + */ + public boolean hasCurRewardLv() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 CurRewardLv = 3; + * @return this + */ + public SoldierSeasonRewardReceiveResp clearCurRewardLv() { + bitField0_ &= ~0x00000001; + curRewardLv = 0; + return this; + } + + /** + * optional uint32 CurRewardLv = 3; + * @return the curRewardLv + */ + public int getCurRewardLv() { + return curRewardLv; + } + + /** + * optional uint32 CurRewardLv = 3; + * @param value the curRewardLv to set + * @return this + */ + public SoldierSeasonRewardReceiveResp setCurRewardLv(final int value) { + bitField0_ |= 0x00000001; + curRewardLv = value; + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 2; + * @return this + */ + public SoldierSeasonRewardReceiveResp clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 2; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 2; + * + * 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_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 2; + * @param value the change to set + * @return this + */ + public SoldierSeasonRewardReceiveResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public SoldierSeasonRewardReceiveResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public SoldierSeasonRewardReceiveResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public SoldierSeasonRewardReceiveResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public SoldierSeasonRewardReceiveResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .ItemTpl Rewards = 1; + * @return whether the rewards field is set + */ + public boolean hasRewards() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ItemTpl Rewards = 1; + * @return this + */ + public SoldierSeasonRewardReceiveResp clearRewards() { + bitField0_ &= ~0x00000008; + rewards.clear(); + return this; + } + + /** + * repeated .ItemTpl Rewards = 1; + * + * 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 #getMutableRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRewards() { + return rewards; + } + + /** + * repeated .ItemTpl Rewards = 1; + * + * 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 getMutableRewards() { + bitField0_ |= 0x00000008; + return rewards; + } + + /** + * repeated .ItemTpl Rewards = 1; + * @param value the rewards to add + * @return this + */ + public SoldierSeasonRewardReceiveResp addRewards(final Public.ItemTpl value) { + bitField0_ |= 0x00000008; + rewards.add(value); + return this; + } + + /** + * repeated .ItemTpl Rewards = 1; + * @param values the rewards to add + * @return this + */ + public SoldierSeasonRewardReceiveResp addAllRewards(final Public.ItemTpl... values) { + bitField0_ |= 0x00000008; + rewards.addAll(values); + return this; + } + + @Override + public SoldierSeasonRewardReceiveResp copyFrom(final SoldierSeasonRewardReceiveResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curRewardLv = other.curRewardLv; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + rewards.copyFrom(other.rewards); + } + return this; + } + + @Override + public SoldierSeasonRewardReceiveResp mergeFrom(final SoldierSeasonRewardReceiveResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurRewardLv()) { + setCurRewardLv(other.curRewardLv); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasRewards()) { + getMutableRewards().addAll(other.rewards); + } + return this; + } + + @Override + public SoldierSeasonRewardReceiveResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curRewardLv = 0; + change.clear(); + nextPackage.clear(); + rewards.clear(); + return this; + } + + @Override + public SoldierSeasonRewardReceiveResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + rewards.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SoldierSeasonRewardReceiveResp)) { + return false; + } + SoldierSeasonRewardReceiveResp other = (SoldierSeasonRewardReceiveResp) o; + return bitField0_ == other.bitField0_ + && (!hasCurRewardLv() || curRewardLv == other.curRewardLv) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasRewards() || rewards.equals(other.rewards)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(curRewardLv); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < rewards.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(rewards.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curRewardLv); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * rewards.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rewards); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SoldierSeasonRewardReceiveResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // curRewardLv + curRewardLv = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // change + input.readMessage(change); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rewards + tag = input.readRepeatedMessage(rewards, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.curRewardLv, curRewardLv); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.rewards, rewards); + } + output.endObject(); + } + + @Override + public SoldierSeasonRewardReceiveResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1720215719: { + if (input.isAtField(FieldNames.curRewardLv)) { + if (!input.trySkipNullValue()) { + curRewardLv = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + 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 -1529663740: { + if (input.isAtField(FieldNames.rewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rewards); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SoldierSeasonRewardReceiveResp clone() { + return new SoldierSeasonRewardReceiveResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SoldierSeasonRewardReceiveResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SoldierSeasonRewardReceiveResp(), data).checkInitialized(); + } + + public static SoldierSeasonRewardReceiveResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierSeasonRewardReceiveResp(), input).checkInitialized(); + } + + public static SoldierSeasonRewardReceiveResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SoldierSeasonRewardReceiveResp(), input).checkInitialized(); + } + + /** + * @return factory for creating SoldierSeasonRewardReceiveResp messages + */ + public static MessageFactory getFactory() { + return SoldierSeasonRewardReceiveRespFactory.INSTANCE; + } + + private enum SoldierSeasonRewardReceiveRespFactory implements MessageFactory { + INSTANCE; + + @Override + public SoldierSeasonRewardReceiveResp create() { + return SoldierSeasonRewardReceiveResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curRewardLv = FieldName.forField("CurRewardLv"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName rewards = FieldName.forField("Rewards"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/SoldierStepOut.java b/src/generated/main/emu/nebula/proto/SoldierStepOut.java index bd14df6..942625f 100644 --- a/src/generated/main/emu/nebula/proto/SoldierStepOut.java +++ b/src/generated/main/emu/nebula/proto/SoldierStepOut.java @@ -1,404 +1,5 @@ // Code generated by protocol buffer compiler. Do not edit! package emu.nebula.proto; -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedByte; - public final class SoldierStepOut { - /** - * Protobuf type {@code SoldierStepOutReq} - */ - public static final class SoldierStepOutReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .SoldierDeploy Deploy = 1; - */ - private final PublicSoldier.SoldierDeploy deploy = PublicSoldier.SoldierDeploy.newInstance(); - - /** - * optional bytes NextPackage = 2047; - */ - private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); - - private SoldierStepOutReq() { - } - - /** - * @return a new empty instance of {@code SoldierStepOutReq} - */ - public static SoldierStepOutReq newInstance() { - return new SoldierStepOutReq(); - } - - /** - * optional .SoldierDeploy Deploy = 1; - * @return whether the deploy field is set - */ - public boolean hasDeploy() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * @return this - */ - public SoldierStepOutReq clearDeploy() { - bitField0_ &= ~0x00000001; - deploy.clear(); - return this; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDeploy()} if you want to modify it. - * - * @return internal storage object for reading - */ - public PublicSoldier.SoldierDeploy getDeploy() { - return deploy; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public PublicSoldier.SoldierDeploy getMutableDeploy() { - bitField0_ |= 0x00000001; - return deploy; - } - - /** - * optional .SoldierDeploy Deploy = 1; - * @param value the deploy to set - * @return this - */ - public SoldierStepOutReq setDeploy(final PublicSoldier.SoldierDeploy value) { - bitField0_ |= 0x00000001; - deploy.copyFrom(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @return whether the nextPackage field is set - */ - public boolean hasNextPackage() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bytes NextPackage = 2047; - * @return this - */ - public SoldierStepOutReq clearNextPackage() { - bitField0_ &= ~0x00000002; - nextPackage.clear(); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * - * 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; - } - - /** - * optional bytes NextPackage = 2047; - * @param value the nextPackage to add - * @return this - */ - public SoldierStepOutReq addNextPackage(final byte value) { - bitField0_ |= 0x00000002; - nextPackage.add(value); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to add - * @return this - */ - public SoldierStepOutReq addAllNextPackage(final byte... values) { - bitField0_ |= 0x00000002; - nextPackage.addAll(values); - return this; - } - - /** - * optional bytes NextPackage = 2047; - * @param values the nextPackage to set - * @return this - */ - public SoldierStepOutReq setNextPackage(final byte... values) { - bitField0_ |= 0x00000002; - nextPackage.copyFrom(values); - return this; - } - - @Override - public SoldierStepOutReq copyFrom(final SoldierStepOutReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - deploy.copyFrom(other.deploy); - nextPackage.copyFrom(other.nextPackage); - } - return this; - } - - @Override - public SoldierStepOutReq mergeFrom(final SoldierStepOutReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDeploy()) { - getMutableDeploy().mergeFrom(other.deploy); - } - if (other.hasNextPackage()) { - getMutableNextPackage().copyFrom(other.nextPackage); - } - return this; - } - - @Override - public SoldierStepOutReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - deploy.clear(); - nextPackage.clear(); - return this; - } - - @Override - public SoldierStepOutReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - deploy.clearQuick(); - nextPackage.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SoldierStepOutReq)) { - return false; - } - SoldierStepOutReq other = (SoldierStepOutReq) o; - return bitField0_ == other.bitField0_ - && (!hasDeploy() || deploy.equals(other.deploy)) - && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(deploy); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawLittleEndian16((short) 32762); - output.writeBytesNoTag(nextPackage); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(deploy); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SoldierStepOutReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 10: { - // deploy - input.readMessage(deploy); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16378) { - break; - } - } - case 16378: { - // nextPackage - input.readBytes(nextPackage); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.deploy, deploy); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBytes(FieldNames.nextPackage, nextPackage); - } - output.endObject(); - } - - @Override - public SoldierStepOutReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 2043501831: { - if (input.isAtField(FieldNames.deploy)) { - if (!input.trySkipNullValue()) { - input.readMessage(deploy); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2082324045: { - if (input.isAtField(FieldNames.nextPackage)) { - if (!input.trySkipNullValue()) { - input.readBytes(nextPackage); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SoldierStepOutReq clone() { - return new SoldierStepOutReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SoldierStepOutReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SoldierStepOutReq(), data).checkInitialized(); - } - - public static SoldierStepOutReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierStepOutReq(), input).checkInitialized(); - } - - public static SoldierStepOutReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SoldierStepOutReq(), input).checkInitialized(); - } - - /** - * @return factory for creating SoldierStepOutReq messages - */ - public static MessageFactory getFactory() { - return SoldierStepOutReqFactory.INSTANCE; - } - - private enum SoldierStepOutReqFactory implements MessageFactory { - INSTANCE; - - @Override - public SoldierStepOutReq create() { - return SoldierStepOutReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName deploy = FieldName.forField("Deploy"); - - static final FieldName nextPackage = FieldName.forField("NextPackage"); - } - } } diff --git a/src/generated/main/emu/nebula/proto/SoldierTechnologyInfo.java b/src/generated/main/emu/nebula/proto/SoldierTechnologyInfo.java new file mode 100644 index 0000000..508af38 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierTechnologyInfo.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class SoldierTechnologyInfo { +} diff --git a/src/generated/main/emu/nebula/proto/SoldierTechnologyNodeUnlock.java b/src/generated/main/emu/nebula/proto/SoldierTechnologyNodeUnlock.java new file mode 100644 index 0000000..ddd4bb1 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/SoldierTechnologyNodeUnlock.java @@ -0,0 +1,5 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +public final class SoldierTechnologyNodeUnlock { +} diff --git a/src/generated/main/emu/nebula/proto/StarTowerBuildNoteModify.java b/src/generated/main/emu/nebula/proto/StarTowerBuildNoteModify.java new file mode 100644 index 0000000..1b871b5 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/StarTowerBuildNoteModify.java @@ -0,0 +1,977 @@ +// 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 StarTowerBuildNoteModify { + /** + * Protobuf type {@code StarTowerBuildNoteModifyReq} + */ + public static final class StarTowerBuildNoteModifyReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 1; + */ + private long buildId; + + /** + * optional .ItemTpls NoteChange = 2; + */ + private final Public.ItemTpls noteChange = Public.ItemTpls.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private StarTowerBuildNoteModifyReq() { + } + + /** + * @return a new empty instance of {@code StarTowerBuildNoteModifyReq} + */ + public static StarTowerBuildNoteModifyReq newInstance() { + return new StarTowerBuildNoteModifyReq(); + } + + /** + * optional uint64 BuildId = 1; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 BuildId = 1; + * @return this + */ + public StarTowerBuildNoteModifyReq clearBuildId() { + bitField0_ &= ~0x00000001; + buildId = 0L; + return this; + } + + /** + * optional uint64 BuildId = 1; + * @return the buildId + */ + public long getBuildId() { + return buildId; + } + + /** + * optional uint64 BuildId = 1; + * @param value the buildId to set + * @return this + */ + public StarTowerBuildNoteModifyReq setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional .ItemTpls NoteChange = 2; + * @return whether the noteChange field is set + */ + public boolean hasNoteChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemTpls NoteChange = 2; + * @return this + */ + public StarTowerBuildNoteModifyReq clearNoteChange() { + bitField0_ &= ~0x00000002; + noteChange.clear(); + return this; + } + + /** + * optional .ItemTpls NoteChange = 2; + * + * 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 #getMutableNoteChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ItemTpls getNoteChange() { + return noteChange; + } + + /** + * optional .ItemTpls NoteChange = 2; + * + * 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.ItemTpls getMutableNoteChange() { + bitField0_ |= 0x00000002; + return noteChange; + } + + /** + * optional .ItemTpls NoteChange = 2; + * @param value the noteChange to set + * @return this + */ + public StarTowerBuildNoteModifyReq setNoteChange(final Public.ItemTpls value) { + bitField0_ |= 0x00000002; + noteChange.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public StarTowerBuildNoteModifyReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public StarTowerBuildNoteModifyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public StarTowerBuildNoteModifyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public StarTowerBuildNoteModifyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public StarTowerBuildNoteModifyReq copyFrom(final StarTowerBuildNoteModifyReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + noteChange.copyFrom(other.noteChange); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildNoteModifyReq mergeFrom(final StarTowerBuildNoteModifyReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasNoteChange()) { + getMutableNoteChange().mergeFrom(other.noteChange); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildNoteModifyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + noteChange.clear(); + nextPackage.clear(); + return this; + } + + @Override + public StarTowerBuildNoteModifyReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + noteChange.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StarTowerBuildNoteModifyReq)) { + return false; + } + StarTowerBuildNoteModifyReq other = (StarTowerBuildNoteModifyReq) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasNoteChange() || noteChange.equals(other.noteChange)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(noteChange); + } + 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.computeUInt64SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(noteChange); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StarTowerBuildNoteModifyReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // noteChange + input.readMessage(noteChange); + 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.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.noteChange, noteChange); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public StarTowerBuildNoteModifyReq 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 556158562: { + if (input.isAtField(FieldNames.noteChange)) { + if (!input.trySkipNullValue()) { + input.readMessage(noteChange); + 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 StarTowerBuildNoteModifyReq clone() { + return new StarTowerBuildNoteModifyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StarTowerBuildNoteModifyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StarTowerBuildNoteModifyReq(), data).checkInitialized(); + } + + public static StarTowerBuildNoteModifyReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildNoteModifyReq(), input).checkInitialized(); + } + + public static StarTowerBuildNoteModifyReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildNoteModifyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating StarTowerBuildNoteModifyReq messages + */ + public static MessageFactory getFactory() { + return StarTowerBuildNoteModifyReqFactory.INSTANCE; + } + + private enum StarTowerBuildNoteModifyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public StarTowerBuildNoteModifyReq create() { + return StarTowerBuildNoteModifyReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName noteChange = FieldName.forField("NoteChange"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code StarTowerBuildNoteModifyResp} + */ + public static final class StarTowerBuildNoteModifyResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo Change = 1; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional .StarTowerBuildInfo Info = 2; + */ + private final PublicStarTower.StarTowerBuildInfo info = PublicStarTower.StarTowerBuildInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private StarTowerBuildNoteModifyResp() { + } + + /** + * @return a new empty instance of {@code StarTowerBuildNoteModifyResp} + */ + public static StarTowerBuildNoteModifyResp newInstance() { + return new StarTowerBuildNoteModifyResp(); + } + + /** + * optional .ChangeInfo Change = 1; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo Change = 1; + * @return this + */ + public StarTowerBuildNoteModifyResp clearChange() { + bitField0_ &= ~0x00000001; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public StarTowerBuildNoteModifyResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + change.copyFrom(value); + return this; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * @return this + */ + public StarTowerBuildNoteModifyResp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * + * 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicStarTower.StarTowerBuildInfo getInfo() { + return info; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * + * 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 getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * @param value the info to set + * @return this + */ + public StarTowerBuildNoteModifyResp setInfo(final PublicStarTower.StarTowerBuildInfo value) { + bitField0_ |= 0x00000002; + info.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public StarTowerBuildNoteModifyResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public StarTowerBuildNoteModifyResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public StarTowerBuildNoteModifyResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public StarTowerBuildNoteModifyResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public StarTowerBuildNoteModifyResp copyFrom(final StarTowerBuildNoteModifyResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + change.copyFrom(other.change); + info.copyFrom(other.info); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildNoteModifyResp mergeFrom(final StarTowerBuildNoteModifyResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildNoteModifyResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clear(); + info.clear(); + nextPackage.clear(); + return this; + } + + @Override + public StarTowerBuildNoteModifyResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + info.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StarTowerBuildNoteModifyResp)) { + return false; + } + StarTowerBuildNoteModifyResp other = (StarTowerBuildNoteModifyResp) o; + return bitField0_ == other.bitField0_ + && (!hasChange() || change.equals(other.change)) + && (!hasInfo() || info.equals(other.info)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @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) 18); + output.writeMessageNoTag(info); + } + 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.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StarTowerBuildNoteModifyResp 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 != 18) { + break; + } + } + case 18: { + // info + input.readMessage(info); + 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.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public StarTowerBuildNoteModifyResp 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 2283726: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + 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 StarTowerBuildNoteModifyResp clone() { + return new StarTowerBuildNoteModifyResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StarTowerBuildNoteModifyResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StarTowerBuildNoteModifyResp(), data).checkInitialized(); + } + + public static StarTowerBuildNoteModifyResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildNoteModifyResp(), input).checkInitialized(); + } + + public static StarTowerBuildNoteModifyResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildNoteModifyResp(), input).checkInitialized(); + } + + /** + * @return factory for creating StarTowerBuildNoteModifyResp messages + */ + public static MessageFactory getFactory() { + return StarTowerBuildNoteModifyRespFactory.INSTANCE; + } + + private enum StarTowerBuildNoteModifyRespFactory implements MessageFactory { + INSTANCE; + + @Override + public StarTowerBuildNoteModifyResp create() { + return StarTowerBuildNoteModifyResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName change = FieldName.forField("Change"); + + static final FieldName info = FieldName.forField("Info"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/StarTowerBuildPotentialModify.java b/src/generated/main/emu/nebula/proto/StarTowerBuildPotentialModify.java new file mode 100644 index 0000000..1261dcd --- /dev/null +++ b/src/generated/main/emu/nebula/proto/StarTowerBuildPotentialModify.java @@ -0,0 +1,982 @@ +// 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 StarTowerBuildPotentialModify { + /** + * Protobuf type {@code StarTowerBuildPotentialModifyReq} + */ + public static final class StarTowerBuildPotentialModifyReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 BuildId = 1; + */ + private long buildId; + + /** + * optional .ItemTpls PotentialChange = 2; + */ + private final Public.ItemTpls potentialChange = Public.ItemTpls.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private StarTowerBuildPotentialModifyReq() { + } + + /** + * @return a new empty instance of {@code StarTowerBuildPotentialModifyReq} + */ + public static StarTowerBuildPotentialModifyReq newInstance() { + return new StarTowerBuildPotentialModifyReq(); + } + + /** + * optional uint64 BuildId = 1; + * @return whether the buildId field is set + */ + public boolean hasBuildId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 BuildId = 1; + * @return this + */ + public StarTowerBuildPotentialModifyReq clearBuildId() { + bitField0_ &= ~0x00000001; + buildId = 0L; + return this; + } + + /** + * optional uint64 BuildId = 1; + * @return the buildId + */ + public long getBuildId() { + return buildId; + } + + /** + * optional uint64 BuildId = 1; + * @param value the buildId to set + * @return this + */ + public StarTowerBuildPotentialModifyReq setBuildId(final long value) { + bitField0_ |= 0x00000001; + buildId = value; + return this; + } + + /** + * optional .ItemTpls PotentialChange = 2; + * @return whether the potentialChange field is set + */ + public boolean hasPotentialChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemTpls PotentialChange = 2; + * @return this + */ + public StarTowerBuildPotentialModifyReq clearPotentialChange() { + bitField0_ &= ~0x00000002; + potentialChange.clear(); + return this; + } + + /** + * optional .ItemTpls PotentialChange = 2; + * + * 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 #getMutablePotentialChange()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.ItemTpls getPotentialChange() { + return potentialChange; + } + + /** + * optional .ItemTpls PotentialChange = 2; + * + * 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.ItemTpls getMutablePotentialChange() { + bitField0_ |= 0x00000002; + return potentialChange; + } + + /** + * optional .ItemTpls PotentialChange = 2; + * @param value the potentialChange to set + * @return this + */ + public StarTowerBuildPotentialModifyReq setPotentialChange(final Public.ItemTpls value) { + bitField0_ |= 0x00000002; + potentialChange.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public StarTowerBuildPotentialModifyReq clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public StarTowerBuildPotentialModifyReq addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public StarTowerBuildPotentialModifyReq addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public StarTowerBuildPotentialModifyReq setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public StarTowerBuildPotentialModifyReq copyFrom(final StarTowerBuildPotentialModifyReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buildId = other.buildId; + potentialChange.copyFrom(other.potentialChange); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildPotentialModifyReq mergeFrom( + final StarTowerBuildPotentialModifyReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuildId()) { + setBuildId(other.buildId); + } + if (other.hasPotentialChange()) { + getMutablePotentialChange().mergeFrom(other.potentialChange); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildPotentialModifyReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buildId = 0L; + potentialChange.clear(); + nextPackage.clear(); + return this; + } + + @Override + public StarTowerBuildPotentialModifyReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + potentialChange.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StarTowerBuildPotentialModifyReq)) { + return false; + } + StarTowerBuildPotentialModifyReq other = (StarTowerBuildPotentialModifyReq) o; + return bitField0_ == other.bitField0_ + && (!hasBuildId() || buildId == other.buildId) + && (!hasPotentialChange() || potentialChange.equals(other.potentialChange)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(potentialChange); + } + 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.computeUInt64SizeNoTag(buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(potentialChange); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StarTowerBuildPotentialModifyReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // buildId + buildId = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // potentialChange + input.readMessage(potentialChange); + 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.writeUInt64(FieldNames.buildId, buildId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.potentialChange, potentialChange); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public StarTowerBuildPotentialModifyReq 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 -1048745650: { + if (input.isAtField(FieldNames.potentialChange)) { + if (!input.trySkipNullValue()) { + input.readMessage(potentialChange); + 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 StarTowerBuildPotentialModifyReq clone() { + return new StarTowerBuildPotentialModifyReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StarTowerBuildPotentialModifyReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StarTowerBuildPotentialModifyReq(), data).checkInitialized(); + } + + public static StarTowerBuildPotentialModifyReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildPotentialModifyReq(), input).checkInitialized(); + } + + public static StarTowerBuildPotentialModifyReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildPotentialModifyReq(), input).checkInitialized(); + } + + /** + * @return factory for creating StarTowerBuildPotentialModifyReq messages + */ + public static MessageFactory getFactory() { + return StarTowerBuildPotentialModifyReqFactory.INSTANCE; + } + + private enum StarTowerBuildPotentialModifyReqFactory implements MessageFactory { + INSTANCE; + + @Override + public StarTowerBuildPotentialModifyReq create() { + return StarTowerBuildPotentialModifyReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buildId = FieldName.forField("BuildId"); + + static final FieldName potentialChange = FieldName.forField("PotentialChange"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } + + /** + * Protobuf type {@code StarTowerBuildPotentialModifyResp} + */ + public static final class StarTowerBuildPotentialModifyResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChangeInfo Change = 1; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional .StarTowerBuildInfo Info = 2; + */ + private final PublicStarTower.StarTowerBuildInfo info = PublicStarTower.StarTowerBuildInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private StarTowerBuildPotentialModifyResp() { + } + + /** + * @return a new empty instance of {@code StarTowerBuildPotentialModifyResp} + */ + public static StarTowerBuildPotentialModifyResp newInstance() { + return new StarTowerBuildPotentialModifyResp(); + } + + /** + * optional .ChangeInfo Change = 1; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChangeInfo Change = 1; + * @return this + */ + public StarTowerBuildPotentialModifyResp clearChange() { + bitField0_ &= ~0x00000001; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public StarTowerBuildPotentialModifyResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000001; + change.copyFrom(value); + return this; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * @return this + */ + public StarTowerBuildPotentialModifyResp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * + * 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PublicStarTower.StarTowerBuildInfo getInfo() { + return info; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * + * 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 getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .StarTowerBuildInfo Info = 2; + * @param value the info to set + * @return this + */ + public StarTowerBuildPotentialModifyResp setInfo( + final PublicStarTower.StarTowerBuildInfo value) { + bitField0_ |= 0x00000002; + info.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public StarTowerBuildPotentialModifyResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public StarTowerBuildPotentialModifyResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public StarTowerBuildPotentialModifyResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public StarTowerBuildPotentialModifyResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public StarTowerBuildPotentialModifyResp copyFrom( + final StarTowerBuildPotentialModifyResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + change.copyFrom(other.change); + info.copyFrom(other.info); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildPotentialModifyResp mergeFrom( + final StarTowerBuildPotentialModifyResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public StarTowerBuildPotentialModifyResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clear(); + info.clear(); + nextPackage.clear(); + return this; + } + + @Override + public StarTowerBuildPotentialModifyResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + info.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StarTowerBuildPotentialModifyResp)) { + return false; + } + StarTowerBuildPotentialModifyResp other = (StarTowerBuildPotentialModifyResp) o; + return bitField0_ == other.bitField0_ + && (!hasChange() || change.equals(other.change)) + && (!hasInfo() || info.equals(other.info)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @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) 18); + output.writeMessageNoTag(info); + } + 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.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StarTowerBuildPotentialModifyResp 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 != 18) { + break; + } + } + case 18: { + // info + input.readMessage(info); + 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.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public StarTowerBuildPotentialModifyResp 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 2283726: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + 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 StarTowerBuildPotentialModifyResp clone() { + return new StarTowerBuildPotentialModifyResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StarTowerBuildPotentialModifyResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StarTowerBuildPotentialModifyResp(), data).checkInitialized(); + } + + public static StarTowerBuildPotentialModifyResp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildPotentialModifyResp(), input).checkInitialized(); + } + + public static StarTowerBuildPotentialModifyResp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new StarTowerBuildPotentialModifyResp(), input).checkInitialized(); + } + + /** + * @return factory for creating StarTowerBuildPotentialModifyResp messages + */ + public static MessageFactory getFactory() { + return StarTowerBuildPotentialModifyRespFactory.INSTANCE; + } + + private enum StarTowerBuildPotentialModifyRespFactory implements MessageFactory { + INSTANCE; + + @Override + public StarTowerBuildPotentialModifyResp create() { + return StarTowerBuildPotentialModifyResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName change = FieldName.forField("Change"); + + static final FieldName info = FieldName.forField("Info"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/StoryApply.java b/src/generated/main/emu/nebula/proto/StoryApply.java index ddc7ba5..77531c0 100644 --- a/src/generated/main/emu/nebula/proto/StoryApply.java +++ b/src/generated/main/emu/nebula/proto/StoryApply.java @@ -19,16 +19,16 @@ public final class StoryApply { public static final class StoryApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 Idx = 1; */ private int idx; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -44,49 +44,12 @@ public final class StoryApply { return new StoryApplyReq(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public StoryApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public StoryApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Idx = 1; * @return whether the idx field is set */ public boolean hasIdx() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -94,7 +57,7 @@ public final class StoryApply { * @return this */ public StoryApplyReq clearIdx() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; idx = 0; return this; } @@ -113,11 +76,68 @@ public final class StoryApply { * @return this */ public StoryApplyReq setIdx(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; idx = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public StoryApplyReq clearBuild() { + bitField0_ &= ~0x00000002; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000002; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public StoryApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000002; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -202,8 +222,8 @@ public final class StoryApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; idx = other.idx; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -215,12 +235,12 @@ public final class StoryApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasIdx()) { setIdx(other.idx); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -234,8 +254,8 @@ public final class StoryApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; idx = 0; + build.clear(); nextPackage.clear(); return this; } @@ -247,6 +267,7 @@ public final class StoryApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -261,21 +282,21 @@ public final class StoryApply { } StoryApplyReq other = (StoryApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasIdx() || idx == other.idx) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(idx); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -286,10 +307,10 @@ public final class StoryApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(idx); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(idx); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -304,18 +325,18 @@ public final class StoryApply { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // idx idx = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { @@ -349,10 +370,10 @@ public final class StoryApply { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeUInt32(FieldNames.idx, idx); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.idx, idx); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -367,10 +388,10 @@ public final class StoryApply { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 73373: { + if (input.isAtField(FieldNames.idx)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + idx = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -378,10 +399,10 @@ public final class StoryApply { } break; } - case 73373: { - if (input.isAtField(FieldNames.idx)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - idx = input.readUInt32(); + input.readMessage(build); bitField0_ |= 0x00000002; } } else { @@ -452,10 +473,10 @@ public final class StoryApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName idx = FieldName.forField("Idx"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/TowerVitaEnergyBuy.java b/src/generated/main/emu/nebula/proto/TowerVitaEnergyBuy.java new file mode 100644 index 0000000..b79a845 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TowerVitaEnergyBuy.java @@ -0,0 +1,484 @@ +// 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 TowerVitaEnergyBuy { + /** + * Protobuf type {@code TowerVitaEnergyBuyResp} + */ + public static final class TowerVitaEnergyBuyResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Energy = 2; + */ + private int energy; + + /** + * optional .ChangeInfo Change = 1; + */ + private final Public.ChangeInfo change = Public.ChangeInfo.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TowerVitaEnergyBuyResp() { + } + + /** + * @return a new empty instance of {@code TowerVitaEnergyBuyResp} + */ + public static TowerVitaEnergyBuyResp newInstance() { + return new TowerVitaEnergyBuyResp(); + } + + /** + * optional uint32 Energy = 2; + * @return whether the energy field is set + */ + public boolean hasEnergy() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Energy = 2; + * @return this + */ + public TowerVitaEnergyBuyResp clearEnergy() { + bitField0_ &= ~0x00000001; + energy = 0; + return this; + } + + /** + * optional uint32 Energy = 2; + * @return the energy + */ + public int getEnergy() { + return energy; + } + + /** + * optional uint32 Energy = 2; + * @param value the energy to set + * @return this + */ + public TowerVitaEnergyBuyResp setEnergy(final int value) { + bitField0_ |= 0x00000001; + energy = value; + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * @return whether the change field is set + */ + public boolean hasChange() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChangeInfo Change = 1; + * @return this + */ + public TowerVitaEnergyBuyResp clearChange() { + bitField0_ &= ~0x00000002; + change.clear(); + return this; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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; + } + + /** + * optional .ChangeInfo Change = 1; + * + * 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_ |= 0x00000002; + return change; + } + + /** + * optional .ChangeInfo Change = 1; + * @param value the change to set + * @return this + */ + public TowerVitaEnergyBuyResp setChange(final Public.ChangeInfo value) { + bitField0_ |= 0x00000002; + change.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaEnergyBuyResp clearNextPackage() { + bitField0_ &= ~0x00000004; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaEnergyBuyResp addNextPackage(final byte value) { + bitField0_ |= 0x00000004; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaEnergyBuyResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaEnergyBuyResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000004; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TowerVitaEnergyBuyResp copyFrom(final TowerVitaEnergyBuyResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + energy = other.energy; + change.copyFrom(other.change); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaEnergyBuyResp mergeFrom(final TowerVitaEnergyBuyResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEnergy()) { + setEnergy(other.energy); + } + if (other.hasChange()) { + getMutableChange().mergeFrom(other.change); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaEnergyBuyResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + energy = 0; + change.clear(); + nextPackage.clear(); + return this; + } + + @Override + public TowerVitaEnergyBuyResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + change.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TowerVitaEnergyBuyResp)) { + return false; + } + TowerVitaEnergyBuyResp other = (TowerVitaEnergyBuyResp) o; + return bitField0_ == other.bitField0_ + && (!hasEnergy() || energy == other.energy) + && (!hasChange() || change.equals(other.change)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(energy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(change); + } + 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(energy); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(change); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaEnergyBuyResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // energy + energy = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // change + input.readMessage(change); + 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.energy, energy); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.change, change); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TowerVitaEnergyBuyResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2080120488: { + if (input.isAtField(FieldNames.energy)) { + if (!input.trySkipNullValue()) { + energy = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2017198032: { + if (input.isAtField(FieldNames.change)) { + if (!input.trySkipNullValue()) { + input.readMessage(change); + 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 TowerVitaEnergyBuyResp clone() { + return new TowerVitaEnergyBuyResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaEnergyBuyResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaEnergyBuyResp(), data).checkInitialized(); + } + + public static TowerVitaEnergyBuyResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaEnergyBuyResp(), input).checkInitialized(); + } + + public static TowerVitaEnergyBuyResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaEnergyBuyResp(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaEnergyBuyResp messages + */ + public static MessageFactory getFactory() { + return TowerVitaEnergyBuyRespFactory.INSTANCE; + } + + private enum TowerVitaEnergyBuyRespFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaEnergyBuyResp create() { + return TowerVitaEnergyBuyResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName energy = FieldName.forField("Energy"); + + static final FieldName change = FieldName.forField("Change"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TowerVitaProjectList.java b/src/generated/main/emu/nebula/proto/TowerVitaProjectList.java new file mode 100644 index 0000000..107fd3d --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TowerVitaProjectList.java @@ -0,0 +1,497 @@ +// 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 TowerVitaProjectList { + /** + * Protobuf type {@code TowerVitaProjectListResp} + */ + public static final class TowerVitaProjectListResp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 UseId = 2; + */ + private int useId; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * repeated .TowerVitaProject Projects = 1; + */ + private final RepeatedMessage projects = RepeatedMessage.newEmptyInstance(Public.TowerVitaProject.getFactory()); + + private TowerVitaProjectListResp() { + } + + /** + * @return a new empty instance of {@code TowerVitaProjectListResp} + */ + public static TowerVitaProjectListResp newInstance() { + return new TowerVitaProjectListResp(); + } + + /** + * optional uint32 UseId = 2; + * @return whether the useId field is set + */ + public boolean hasUseId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 UseId = 2; + * @return this + */ + public TowerVitaProjectListResp clearUseId() { + bitField0_ &= ~0x00000001; + useId = 0; + return this; + } + + /** + * optional uint32 UseId = 2; + * @return the useId + */ + public int getUseId() { + return useId; + } + + /** + * optional uint32 UseId = 2; + * @param value the useId to set + * @return this + */ + public TowerVitaProjectListResp setUseId(final int value) { + bitField0_ |= 0x00000001; + useId = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaProjectListResp clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaProjectListResp addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaProjectListResp addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaProjectListResp setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * repeated .TowerVitaProject Projects = 1; + * @return whether the projects field is set + */ + public boolean hasProjects() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .TowerVitaProject Projects = 1; + * @return this + */ + public TowerVitaProjectListResp clearProjects() { + bitField0_ &= ~0x00000004; + projects.clear(); + return this; + } + + /** + * repeated .TowerVitaProject Projects = 1; + * + * 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 #getMutableProjects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getProjects() { + return projects; + } + + /** + * repeated .TowerVitaProject Projects = 1; + * + * 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 getMutableProjects() { + bitField0_ |= 0x00000004; + return projects; + } + + /** + * repeated .TowerVitaProject Projects = 1; + * @param value the projects to add + * @return this + */ + public TowerVitaProjectListResp addProjects(final Public.TowerVitaProject value) { + bitField0_ |= 0x00000004; + projects.add(value); + return this; + } + + /** + * repeated .TowerVitaProject Projects = 1; + * @param values the projects to add + * @return this + */ + public TowerVitaProjectListResp addAllProjects(final Public.TowerVitaProject... values) { + bitField0_ |= 0x00000004; + projects.addAll(values); + return this; + } + + @Override + public TowerVitaProjectListResp copyFrom(final TowerVitaProjectListResp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + useId = other.useId; + nextPackage.copyFrom(other.nextPackage); + projects.copyFrom(other.projects); + } + return this; + } + + @Override + public TowerVitaProjectListResp mergeFrom(final TowerVitaProjectListResp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUseId()) { + setUseId(other.useId); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasProjects()) { + getMutableProjects().addAll(other.projects); + } + return this; + } + + @Override + public TowerVitaProjectListResp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + useId = 0; + nextPackage.clear(); + projects.clear(); + return this; + } + + @Override + public TowerVitaProjectListResp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + projects.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TowerVitaProjectListResp)) { + return false; + } + TowerVitaProjectListResp other = (TowerVitaProjectListResp) o; + return bitField0_ == other.bitField0_ + && (!hasUseId() || useId == other.useId) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasProjects() || projects.equals(other.projects)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(useId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < projects.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(projects.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(useId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * projects.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(projects); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaProjectListResp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // useId + useId = input.readUInt32(); + 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: { + // projects + tag = input.readRepeatedMessage(projects, 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.writeUInt32(FieldNames.useId, useId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.projects, projects); + } + output.endObject(); + } + + @Override + public TowerVitaProjectListResp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 82024674: { + if (input.isAtField(FieldNames.useId)) { + if (!input.trySkipNullValue()) { + useId = input.readUInt32(); + 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 -934052710: { + if (input.isAtField(FieldNames.projects)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(projects); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TowerVitaProjectListResp clone() { + return new TowerVitaProjectListResp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaProjectListResp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaProjectListResp(), data).checkInitialized(); + } + + public static TowerVitaProjectListResp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectListResp(), input).checkInitialized(); + } + + public static TowerVitaProjectListResp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectListResp(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaProjectListResp messages + */ + public static MessageFactory getFactory() { + return TowerVitaProjectListRespFactory.INSTANCE; + } + + private enum TowerVitaProjectListRespFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaProjectListResp create() { + return TowerVitaProjectListResp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName useId = FieldName.forField("UseId"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName projects = FieldName.forField("Projects"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TowerVitaProjectNameUpdate.java b/src/generated/main/emu/nebula/proto/TowerVitaProjectNameUpdate.java new file mode 100644 index 0000000..3643144 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TowerVitaProjectNameUpdate.java @@ -0,0 +1,495 @@ +// 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.Utf8String; + +public final class TowerVitaProjectNameUpdate { + /** + * Protobuf type {@code TowerVitaProjectNameUpdateRep} + */ + public static final class TowerVitaProjectNameUpdateRep extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + /** + * optional string Name = 2; + */ + private final Utf8String name = Utf8String.newEmptyInstance(); + + private TowerVitaProjectNameUpdateRep() { + } + + /** + * @return a new empty instance of {@code TowerVitaProjectNameUpdateRep} + */ + public static TowerVitaProjectNameUpdateRep newInstance() { + return new TowerVitaProjectNameUpdateRep(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public TowerVitaProjectNameUpdateRep clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public TowerVitaProjectNameUpdateRep setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaProjectNameUpdateRep clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaProjectNameUpdateRep addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaProjectNameUpdateRep addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaProjectNameUpdateRep setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + /** + * optional string Name = 2; + * @return whether the name field is set + */ + public boolean hasName() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string Name = 2; + * @return this + */ + public TowerVitaProjectNameUpdateRep clearName() { + bitField0_ &= ~0x00000004; + name.clear(); + return this; + } + + /** + * optional string Name = 2; + * @return the name + */ + public String getName() { + return name.getString(); + } + + /** + * optional string Name = 2; + * @return internal {@code Utf8String} representation of name for reading + */ + public Utf8String getNameBytes() { + return this.name; + } + + /** + * optional string Name = 2; + * @return internal {@code Utf8String} representation of name for modifications + */ + public Utf8String getMutableNameBytes() { + bitField0_ |= 0x00000004; + return this.name; + } + + /** + * optional string Name = 2; + * @param value the name to set + * @return this + */ + public TowerVitaProjectNameUpdateRep setName(final CharSequence value) { + bitField0_ |= 0x00000004; + name.copyFrom(value); + return this; + } + + /** + * optional string Name = 2; + * @param value the name to set + * @return this + */ + public TowerVitaProjectNameUpdateRep setName(final Utf8String value) { + bitField0_ |= 0x00000004; + name.copyFrom(value); + return this; + } + + @Override + public TowerVitaProjectNameUpdateRep copyFrom(final TowerVitaProjectNameUpdateRep other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + nextPackage.copyFrom(other.nextPackage); + name.copyFrom(other.name); + } + return this; + } + + @Override + public TowerVitaProjectNameUpdateRep mergeFrom(final TowerVitaProjectNameUpdateRep other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + if (other.hasName()) { + getMutableNameBytes().copyFrom(other.name); + } + return this; + } + + @Override + public TowerVitaProjectNameUpdateRep clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + nextPackage.clear(); + name.clear(); + return this; + } + + @Override + public TowerVitaProjectNameUpdateRep clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nextPackage.clear(); + name.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TowerVitaProjectNameUpdateRep)) { + return false; + } + TowerVitaProjectNameUpdateRep other = (TowerVitaProjectNameUpdateRep) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) + && (!hasName() || name.equals(other.name)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(name); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(name); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaProjectNameUpdateRep mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + 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: { + // name + input.readString(name); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.name, name); + } + output.endObject(); + } + + @Override + public TowerVitaProjectNameUpdateRep mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + 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 2420395: { + if (input.isAtField(FieldNames.name)) { + if (!input.trySkipNullValue()) { + input.readString(name); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TowerVitaProjectNameUpdateRep clone() { + return new TowerVitaProjectNameUpdateRep().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaProjectNameUpdateRep parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaProjectNameUpdateRep(), data).checkInitialized(); + } + + public static TowerVitaProjectNameUpdateRep parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectNameUpdateRep(), input).checkInitialized(); + } + + public static TowerVitaProjectNameUpdateRep parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectNameUpdateRep(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaProjectNameUpdateRep messages + */ + public static MessageFactory getFactory() { + return TowerVitaProjectNameUpdateRepFactory.INSTANCE; + } + + private enum TowerVitaProjectNameUpdateRepFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaProjectNameUpdateRep create() { + return TowerVitaProjectNameUpdateRep.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + + static final FieldName name = FieldName.forField("Name"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TowerVitaProjectSet.java b/src/generated/main/emu/nebula/proto/TowerVitaProjectSet.java new file mode 100644 index 0000000..e01ccd8 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TowerVitaProjectSet.java @@ -0,0 +1,383 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class TowerVitaProjectSet { + /** + * Protobuf type {@code TowerVitaProjectSetRep} + */ + public static final class TowerVitaProjectSetRep extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 Id = 1; + */ + private int id; + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TowerVitaProjectSetRep() { + } + + /** + * @return a new empty instance of {@code TowerVitaProjectSetRep} + */ + public static TowerVitaProjectSetRep newInstance() { + return new TowerVitaProjectSetRep(); + } + + /** + * optional uint32 Id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 Id = 1; + * @return this + */ + public TowerVitaProjectSetRep clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 Id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 Id = 1; + * @param value the id to set + * @return this + */ + public TowerVitaProjectSetRep setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaProjectSetRep clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaProjectSetRep addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaProjectSetRep addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaProjectSetRep setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TowerVitaProjectSetRep copyFrom(final TowerVitaProjectSetRep other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaProjectSetRep mergeFrom(final TowerVitaProjectSetRep other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaProjectSetRep clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + nextPackage.clear(); + return this; + } + + @Override + public TowerVitaProjectSetRep 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 TowerVitaProjectSetRep)) { + return false; + } + TowerVitaProjectSetRep other = (TowerVitaProjectSetRep) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaProjectSetRep mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TowerVitaProjectSetRep mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2363: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TowerVitaProjectSetRep clone() { + return new TowerVitaProjectSetRep().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaProjectSetRep parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaProjectSetRep(), data).checkInitialized(); + } + + public static TowerVitaProjectSetRep parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectSetRep(), input).checkInitialized(); + } + + public static TowerVitaProjectSetRep parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectSetRep(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaProjectSetRep messages + */ + public static MessageFactory getFactory() { + return TowerVitaProjectSetRepFactory.INSTANCE; + } + + private enum TowerVitaProjectSetRepFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaProjectSetRep create() { + return TowerVitaProjectSetRep.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("Id"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TowerVitaProjectUpdate.java b/src/generated/main/emu/nebula/proto/TowerVitaProjectUpdate.java new file mode 100644 index 0000000..87f6d08 --- /dev/null +++ b/src/generated/main/emu/nebula/proto/TowerVitaProjectUpdate.java @@ -0,0 +1,404 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.nebula.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class TowerVitaProjectUpdate { + /** + * Protobuf type {@code TowerVitaProjectUpdateRep} + */ + public static final class TowerVitaProjectUpdateRep extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .TowerVitaProject Projects = 1; + */ + private final Public.TowerVitaProject projects = Public.TowerVitaProject.newInstance(); + + /** + * optional bytes NextPackage = 2047; + */ + private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); + + private TowerVitaProjectUpdateRep() { + } + + /** + * @return a new empty instance of {@code TowerVitaProjectUpdateRep} + */ + public static TowerVitaProjectUpdateRep newInstance() { + return new TowerVitaProjectUpdateRep(); + } + + /** + * optional .TowerVitaProject Projects = 1; + * @return whether the projects field is set + */ + public boolean hasProjects() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .TowerVitaProject Projects = 1; + * @return this + */ + public TowerVitaProjectUpdateRep clearProjects() { + bitField0_ &= ~0x00000001; + projects.clear(); + return this; + } + + /** + * optional .TowerVitaProject Projects = 1; + * + * 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 #getMutableProjects()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.TowerVitaProject getProjects() { + return projects; + } + + /** + * optional .TowerVitaProject Projects = 1; + * + * 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.TowerVitaProject getMutableProjects() { + bitField0_ |= 0x00000001; + return projects; + } + + /** + * optional .TowerVitaProject Projects = 1; + * @param value the projects to set + * @return this + */ + public TowerVitaProjectUpdateRep setProjects(final Public.TowerVitaProject value) { + bitField0_ |= 0x00000001; + projects.copyFrom(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @return whether the nextPackage field is set + */ + public boolean hasNextPackage() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes NextPackage = 2047; + * @return this + */ + public TowerVitaProjectUpdateRep clearNextPackage() { + bitField0_ &= ~0x00000002; + nextPackage.clear(); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * + * 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; + } + + /** + * optional bytes NextPackage = 2047; + * @param value the nextPackage to add + * @return this + */ + public TowerVitaProjectUpdateRep addNextPackage(final byte value) { + bitField0_ |= 0x00000002; + nextPackage.add(value); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to add + * @return this + */ + public TowerVitaProjectUpdateRep addAllNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.addAll(values); + return this; + } + + /** + * optional bytes NextPackage = 2047; + * @param values the nextPackage to set + * @return this + */ + public TowerVitaProjectUpdateRep setNextPackage(final byte... values) { + bitField0_ |= 0x00000002; + nextPackage.copyFrom(values); + return this; + } + + @Override + public TowerVitaProjectUpdateRep copyFrom(final TowerVitaProjectUpdateRep other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + projects.copyFrom(other.projects); + nextPackage.copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaProjectUpdateRep mergeFrom(final TowerVitaProjectUpdateRep other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasProjects()) { + getMutableProjects().mergeFrom(other.projects); + } + if (other.hasNextPackage()) { + getMutableNextPackage().copyFrom(other.nextPackage); + } + return this; + } + + @Override + public TowerVitaProjectUpdateRep clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + projects.clear(); + nextPackage.clear(); + return this; + } + + @Override + public TowerVitaProjectUpdateRep clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + projects.clearQuick(); + nextPackage.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TowerVitaProjectUpdateRep)) { + return false; + } + TowerVitaProjectUpdateRep other = (TowerVitaProjectUpdateRep) o; + return bitField0_ == other.bitField0_ + && (!hasProjects() || projects.equals(other.projects)) + && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(projects); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 32762); + output.writeBytesNoTag(nextPackage); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(projects); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TowerVitaProjectUpdateRep mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // projects + input.readMessage(projects); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16378) { + break; + } + } + case 16378: { + // nextPackage + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.projects, projects); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.nextPackage, nextPackage); + } + output.endObject(); + } + + @Override + public TowerVitaProjectUpdateRep mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -934052710: { + if (input.isAtField(FieldNames.projects)) { + if (!input.trySkipNullValue()) { + input.readMessage(projects); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2082324045: { + if (input.isAtField(FieldNames.nextPackage)) { + if (!input.trySkipNullValue()) { + input.readBytes(nextPackage); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TowerVitaProjectUpdateRep clone() { + return new TowerVitaProjectUpdateRep().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TowerVitaProjectUpdateRep parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TowerVitaProjectUpdateRep(), data).checkInitialized(); + } + + public static TowerVitaProjectUpdateRep parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectUpdateRep(), input).checkInitialized(); + } + + public static TowerVitaProjectUpdateRep parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TowerVitaProjectUpdateRep(), input).checkInitialized(); + } + + /** + * @return factory for creating TowerVitaProjectUpdateRep messages + */ + public static MessageFactory getFactory() { + return TowerVitaProjectUpdateRepFactory.INSTANCE; + } + + private enum TowerVitaProjectUpdateRepFactory implements MessageFactory { + INSTANCE; + + @Override + public TowerVitaProjectUpdateRep create() { + return TowerVitaProjectUpdateRep.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName projects = FieldName.forField("Projects"); + + static final FieldName nextPackage = FieldName.forField("NextPackage"); + } + } +} diff --git a/src/generated/main/emu/nebula/proto/TraceHuntApply.java b/src/generated/main/emu/nebula/proto/TraceHuntApply.java index 07c6db5..9765fb9 100644 --- a/src/generated/main/emu/nebula/proto/TraceHuntApply.java +++ b/src/generated/main/emu/nebula/proto/TraceHuntApply.java @@ -29,11 +29,6 @@ public final class TraceHuntApply { */ private long ownerUID; - /** - * optional uint64 BuildID = 3; - */ - private long buildID; - /** * optional uint32 BossID = 2; */ @@ -44,6 +39,11 @@ public final class TraceHuntApply { */ private int difficulty; + /** + * optional .UseBuild Build = 3; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -133,49 +133,12 @@ public final class TraceHuntApply { return this; } - /** - * optional uint64 BuildID = 3; - * @return whether the buildID field is set - */ - public boolean hasBuildID() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint64 BuildID = 3; - * @return this - */ - public TraceHuntApplyReq clearBuildID() { - bitField0_ &= ~0x00000004; - buildID = 0L; - return this; - } - - /** - * optional uint64 BuildID = 3; - * @return the buildID - */ - public long getBuildID() { - return buildID; - } - - /** - * optional uint64 BuildID = 3; - * @param value the buildID to set - * @return this - */ - public TraceHuntApplyReq setBuildID(final long value) { - bitField0_ |= 0x00000004; - buildID = value; - return this; - } - /** * optional uint32 BossID = 2; * @return whether the bossID field is set */ public boolean hasBossID() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -183,7 +146,7 @@ public final class TraceHuntApply { * @return this */ public TraceHuntApplyReq clearBossID() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; bossID = 0; return this; } @@ -202,7 +165,7 @@ public final class TraceHuntApply { * @return this */ public TraceHuntApplyReq setBossID(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; bossID = value; return this; } @@ -212,7 +175,7 @@ public final class TraceHuntApply { * @return whether the difficulty field is set */ public boolean hasDifficulty() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -220,7 +183,7 @@ public final class TraceHuntApply { * @return this */ public TraceHuntApplyReq clearDifficulty() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; difficulty = 0; return this; } @@ -239,11 +202,68 @@ public final class TraceHuntApply { * @return this */ public TraceHuntApplyReq setDifficulty(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; difficulty = value; return this; } + /** + * optional .UseBuild Build = 3; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .UseBuild Build = 3; + * @return this + */ + public TraceHuntApplyReq clearBuild() { + bitField0_ &= ~0x00000010; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 3; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 3; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000010; + return build; + } + + /** + * optional .UseBuild Build = 3; + * @param value the build to set + * @return this + */ + public TraceHuntApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000010; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -330,9 +350,9 @@ public final class TraceHuntApply { bitField0_ = other.bitField0_; bossCreateTime = other.bossCreateTime; ownerUID = other.ownerUID; - buildID = other.buildID; bossID = other.bossID; difficulty = other.difficulty; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -350,15 +370,15 @@ public final class TraceHuntApply { if (other.hasOwnerUID()) { setOwnerUID(other.ownerUID); } - if (other.hasBuildID()) { - setBuildID(other.buildID); - } if (other.hasBossID()) { setBossID(other.bossID); } if (other.hasDifficulty()) { setDifficulty(other.difficulty); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -374,9 +394,9 @@ public final class TraceHuntApply { bitField0_ = 0; bossCreateTime = 0L; ownerUID = 0L; - buildID = 0L; bossID = 0; difficulty = 0; + build.clear(); nextPackage.clear(); return this; } @@ -388,6 +408,7 @@ public final class TraceHuntApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -404,9 +425,9 @@ public final class TraceHuntApply { return bitField0_ == other.bitField0_ && (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime) && (!hasOwnerUID() || ownerUID == other.ownerUID) - && (!hasBuildID() || buildID == other.buildID) && (!hasBossID() || bossID == other.bossID) && (!hasDifficulty() || difficulty == other.difficulty) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @@ -421,17 +442,17 @@ public final class TraceHuntApply { output.writeUInt64NoTag(ownerUID); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt64NoTag(buildID); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(bossID); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(difficulty); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -448,14 +469,14 @@ public final class TraceHuntApply { size += 1 + ProtoSink.computeUInt64SizeNoTag(ownerUID); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildID); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(difficulty); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000020) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -483,15 +504,6 @@ public final class TraceHuntApply { ownerUID = input.readUInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // buildID - buildID = input.readUInt64(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 16) { break; } @@ -499,7 +511,7 @@ public final class TraceHuntApply { case 16: { // bossID bossID = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 40) { break; @@ -508,6 +520,15 @@ public final class TraceHuntApply { case 40: { // difficulty difficulty = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // build + input.readMessage(build); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 16378) { @@ -547,14 +568,14 @@ public final class TraceHuntApply { output.writeUInt64(FieldNames.ownerUID, ownerUID); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt64(FieldNames.buildID, buildID); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.bossID, bossID); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.difficulty, difficulty); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000020) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -590,22 +611,11 @@ public final class TraceHuntApply { } break; } - case 1895597033: { - if (input.isAtField(FieldNames.buildID)) { - if (!input.trySkipNullValue()) { - buildID = input.readUInt64(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 1995573608: { if (input.isAtField(FieldNames.bossID)) { if (!input.trySkipNullValue()) { bossID = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -616,6 +626,17 @@ public final class TraceHuntApply { if (input.isAtField(FieldNames.difficulty)) { if (!input.trySkipNullValue()) { difficulty = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000010; } } else { @@ -691,12 +712,12 @@ public final class TraceHuntApply { static final FieldName ownerUID = FieldName.forField("OwnerUID"); - static final FieldName buildID = FieldName.forField("BuildID"); - static final FieldName bossID = FieldName.forField("BossID"); static final FieldName difficulty = FieldName.forField("Difficulty"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java b/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java index 3b8e73f..7716a71 100644 --- a/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java +++ b/src/generated/main/emu/nebula/proto/TraceHuntInfoOuterClass.java @@ -25,11 +25,6 @@ public final class TraceHuntInfoOuterClass { */ private long bossCreateTime; - /** - * optional uint64 BuildID = 9; - */ - private long buildID; - /** * optional uint32 ControlID = 1; */ @@ -65,6 +60,11 @@ public final class TraceHuntInfoOuterClass { */ private int selfHuntTimes; + /** + * optional .UseBuild Build = 9; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -132,49 +132,12 @@ public final class TraceHuntInfoOuterClass { return this; } - /** - * optional uint64 BuildID = 9; - * @return whether the buildID field is set - */ - public boolean hasBuildID() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint64 BuildID = 9; - * @return this - */ - public TraceHuntInfo clearBuildID() { - bitField0_ &= ~0x00000002; - buildID = 0L; - return this; - } - - /** - * optional uint64 BuildID = 9; - * @return the buildID - */ - public long getBuildID() { - return buildID; - } - - /** - * optional uint64 BuildID = 9; - * @param value the buildID to set - * @return this - */ - public TraceHuntInfo setBuildID(final long value) { - bitField0_ |= 0x00000002; - buildID = value; - return this; - } - /** * optional uint32 ControlID = 1; * @return whether the controlID field is set */ public boolean hasControlID() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -182,7 +145,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearControlID() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; controlID = 0; return this; } @@ -201,7 +164,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setControlID(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; controlID = value; return this; } @@ -211,7 +174,7 @@ public final class TraceHuntInfoOuterClass { * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -219,7 +182,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearLevel() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; level = 0; return this; } @@ -238,7 +201,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setLevel(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; level = value; return this; } @@ -248,7 +211,7 @@ public final class TraceHuntInfoOuterClass { * @return whether the exp field is set */ public boolean hasExp() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -256,7 +219,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearExp() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; exp = 0; return this; } @@ -275,7 +238,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setExp(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; exp = value; return this; } @@ -285,7 +248,7 @@ public final class TraceHuntInfoOuterClass { * @return whether the bossID field is set */ public boolean hasBossID() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -293,7 +256,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearBossID() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; bossID = 0; return this; } @@ -312,7 +275,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setBossID(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; bossID = value; return this; } @@ -322,7 +285,7 @@ public final class TraceHuntInfoOuterClass { * @return whether the traceProgress field is set */ public boolean hasTraceProgress() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -330,7 +293,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearTraceProgress() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; traceProgress = 0; return this; } @@ -349,7 +312,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setTraceProgress(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; traceProgress = value; return this; } @@ -359,7 +322,7 @@ public final class TraceHuntInfoOuterClass { * @return whether the huntProgress field is set */ public boolean hasHuntProgress() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000040) != 0; } /** @@ -367,7 +330,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearHuntProgress() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000040; huntProgress = 0; return this; } @@ -386,7 +349,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setHuntProgress(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; huntProgress = value; return this; } @@ -396,7 +359,7 @@ public final class TraceHuntInfoOuterClass { * @return whether the selfHuntTimes field is set */ public boolean hasSelfHuntTimes() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -404,7 +367,7 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo clearSelfHuntTimes() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000080; selfHuntTimes = 0; return this; } @@ -423,11 +386,68 @@ public final class TraceHuntInfoOuterClass { * @return this */ public TraceHuntInfo setSelfHuntTimes(final int value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; selfHuntTimes = value; return this; } + /** + * optional .UseBuild Build = 9; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .UseBuild Build = 9; + * @return this + */ + public TraceHuntInfo clearBuild() { + bitField0_ &= ~0x00000100; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 9; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 9; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000100; + return build; + } + + /** + * optional .UseBuild Build = 9; + * @param value the build to set + * @return this + */ + public TraceHuntInfo setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000100; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -717,7 +737,6 @@ public final class TraceHuntInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; bossCreateTime = other.bossCreateTime; - buildID = other.buildID; controlID = other.controlID; level = other.level; exp = other.exp; @@ -725,6 +744,7 @@ public final class TraceHuntInfoOuterClass { traceProgress = other.traceProgress; huntProgress = other.huntProgress; selfHuntTimes = other.selfHuntTimes; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); bossCollections.copyFrom(other.bossCollections); traceLog.copyFrom(other.traceLog); @@ -742,9 +762,6 @@ public final class TraceHuntInfoOuterClass { if (other.hasBossCreateTime()) { setBossCreateTime(other.bossCreateTime); } - if (other.hasBuildID()) { - setBuildID(other.buildID); - } if (other.hasControlID()) { setControlID(other.controlID); } @@ -766,6 +783,9 @@ public final class TraceHuntInfoOuterClass { if (other.hasSelfHuntTimes()) { setSelfHuntTimes(other.selfHuntTimes); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -789,7 +809,6 @@ public final class TraceHuntInfoOuterClass { cachedSize = -1; bitField0_ = 0; bossCreateTime = 0L; - buildID = 0L; controlID = 0; level = 0; exp = 0; @@ -797,6 +816,7 @@ public final class TraceHuntInfoOuterClass { traceProgress = 0; huntProgress = 0; selfHuntTimes = 0; + build.clear(); nextPackage.clear(); bossCollections.clear(); traceLog.clear(); @@ -811,6 +831,7 @@ public final class TraceHuntInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); bossCollections.clearQuick(); traceLog.clearQuick(); @@ -829,7 +850,6 @@ public final class TraceHuntInfoOuterClass { TraceHuntInfo other = (TraceHuntInfo) o; return bitField0_ == other.bitField0_ && (!hasBossCreateTime() || bossCreateTime == other.bossCreateTime) - && (!hasBuildID() || buildID == other.buildID) && (!hasControlID() || controlID == other.controlID) && (!hasLevel() || level == other.level) && (!hasExp() || exp == other.exp) @@ -837,6 +857,7 @@ public final class TraceHuntInfoOuterClass { && (!hasTraceProgress() || traceProgress == other.traceProgress) && (!hasHuntProgress() || huntProgress == other.huntProgress) && (!hasSelfHuntTimes() || selfHuntTimes == other.selfHuntTimes) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasBossCollections() || bossCollections.equals(other.bossCollections)) && (!hasTraceLog() || traceLog.equals(other.traceLog)) @@ -850,37 +871,37 @@ public final class TraceHuntInfoOuterClass { output.writeInt64NoTag(bossCreateTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt64NoTag(buildID); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(controlID); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(level); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(exp); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(bossID); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(traceProgress); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 48); output.writeUInt32NoTag(huntProgress); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(selfHuntTimes); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000200) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -912,29 +933,29 @@ public final class TraceHuntInfoOuterClass { size += 1 + ProtoSink.computeInt64SizeNoTag(bossCreateTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildID); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(controlID); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(traceProgress); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(huntProgress); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(selfHuntTimes); } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000200) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -962,15 +983,6 @@ public final class TraceHuntInfoOuterClass { bossCreateTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // buildID - buildID = input.readUInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 8) { break; } @@ -978,7 +990,7 @@ public final class TraceHuntInfoOuterClass { case 8: { // controlID controlID = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16) { break; @@ -987,7 +999,7 @@ public final class TraceHuntInfoOuterClass { case 16: { // level level = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 24) { break; @@ -996,7 +1008,7 @@ public final class TraceHuntInfoOuterClass { case 24: { // exp exp = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 32) { break; @@ -1005,7 +1017,7 @@ public final class TraceHuntInfoOuterClass { case 32: { // bossID bossID = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 40) { break; @@ -1014,7 +1026,7 @@ public final class TraceHuntInfoOuterClass { case 40: { // traceProgress traceProgress = input.readUInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 48) { break; @@ -1023,7 +1035,7 @@ public final class TraceHuntInfoOuterClass { case 48: { // huntProgress huntProgress = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 64) { break; @@ -1032,6 +1044,15 @@ public final class TraceHuntInfoOuterClass { case 64: { // selfHuntTimes selfHuntTimes = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // build + input.readMessage(build); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 16378) { @@ -1092,29 +1113,29 @@ public final class TraceHuntInfoOuterClass { output.writeInt64(FieldNames.bossCreateTime, bossCreateTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt64(FieldNames.buildID, buildID); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.controlID, controlID); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.level, level); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.exp, exp); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.bossID, bossID); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.traceProgress, traceProgress); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeUInt32(FieldNames.huntProgress, huntProgress); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeUInt32(FieldNames.selfHuntTimes, selfHuntTimes); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000200) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -1148,22 +1169,11 @@ public final class TraceHuntInfoOuterClass { } break; } - case 1895597033: { - if (input.isAtField(FieldNames.buildID)) { - if (!input.trySkipNullValue()) { - buildID = input.readUInt64(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case 1608887064: { if (input.isAtField(FieldNames.controlID)) { if (!input.trySkipNullValue()) { controlID = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -1174,7 +1184,7 @@ public final class TraceHuntInfoOuterClass { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -1185,7 +1195,7 @@ public final class TraceHuntInfoOuterClass { if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { exp = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -1196,7 +1206,7 @@ public final class TraceHuntInfoOuterClass { if (input.isAtField(FieldNames.bossID)) { if (!input.trySkipNullValue()) { bossID = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -1207,7 +1217,7 @@ public final class TraceHuntInfoOuterClass { if (input.isAtField(FieldNames.traceProgress)) { if (!input.trySkipNullValue()) { traceProgress = input.readUInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -1218,7 +1228,7 @@ public final class TraceHuntInfoOuterClass { if (input.isAtField(FieldNames.huntProgress)) { if (!input.trySkipNullValue()) { huntProgress = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -1229,6 +1239,17 @@ public final class TraceHuntInfoOuterClass { if (input.isAtField(FieldNames.selfHuntTimes)) { if (!input.trySkipNullValue()) { selfHuntTimes = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000100; } } else { @@ -1334,8 +1355,6 @@ public final class TraceHuntInfoOuterClass { static class FieldNames { static final FieldName bossCreateTime = FieldName.forField("BossCreateTime"); - static final FieldName buildID = FieldName.forField("BuildID"); - static final FieldName controlID = FieldName.forField("ControlID"); static final FieldName level = FieldName.forField("Level"); @@ -1350,6 +1369,8 @@ public final class TraceHuntInfoOuterClass { static final FieldName selfHuntTimes = FieldName.forField("SelfHuntTimes"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName bossCollections = FieldName.forField("BossCollections"); diff --git a/src/generated/main/emu/nebula/proto/VampireSurvivorApply.java b/src/generated/main/emu/nebula/proto/VampireSurvivorApply.java index cbf0252..163360e 100644 --- a/src/generated/main/emu/nebula/proto/VampireSurvivorApply.java +++ b/src/generated/main/emu/nebula/proto/VampireSurvivorApply.java @@ -11,7 +11,6 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedByte; -import us.hebi.quickbuf.RepeatedLong; import us.hebi.quickbuf.RepeatedMessage; public final class VampireSurvivorApply { @@ -32,9 +31,9 @@ public final class VampireSurvivorApply { private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** - * repeated uint64 BuildIds = 2; + * repeated .UseBuild Builds = 2; */ - private final RepeatedLong buildIds = RepeatedLong.newEmptyInstance(); + private final RepeatedMessage builds = RepeatedMessage.newEmptyInstance(Public.UseBuild.getFactory()); private VampireSurvivorApplyReq() { } @@ -163,39 +162,39 @@ public final class VampireSurvivorApply { } /** - * repeated uint64 BuildIds = 2; - * @return whether the buildIds field is set + * repeated .UseBuild Builds = 2; + * @return whether the builds field is set */ - public boolean hasBuildIds() { + public boolean hasBuilds() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint64 BuildIds = 2; + * repeated .UseBuild Builds = 2; * @return this */ - public VampireSurvivorApplyReq clearBuildIds() { + public VampireSurvivorApplyReq clearBuilds() { bitField0_ &= ~0x00000004; - buildIds.clear(); + builds.clear(); return this; } /** - * repeated uint64 BuildIds = 2; + * repeated .UseBuild Builds = 2; * * 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 #getMutableBuildIds()} if you want to modify it. + * Use {@link #getMutableBuilds()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedLong getBuildIds() { - return buildIds; + public RepeatedMessage getBuilds() { + return builds; } /** - * repeated uint64 BuildIds = 2; + * repeated .UseBuild Builds = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -203,30 +202,30 @@ public final class VampireSurvivorApply { * * @return internal storage object for modifications */ - public RepeatedLong getMutableBuildIds() { + public RepeatedMessage getMutableBuilds() { bitField0_ |= 0x00000004; - return buildIds; + return builds; } /** - * repeated uint64 BuildIds = 2; - * @param value the buildIds to add + * repeated .UseBuild Builds = 2; + * @param value the builds to add * @return this */ - public VampireSurvivorApplyReq addBuildIds(final long value) { + public VampireSurvivorApplyReq addBuilds(final Public.UseBuild value) { bitField0_ |= 0x00000004; - buildIds.add(value); + builds.add(value); return this; } /** - * repeated uint64 BuildIds = 2; - * @param values the buildIds to add + * repeated .UseBuild Builds = 2; + * @param values the builds to add * @return this */ - public VampireSurvivorApplyReq addAllBuildIds(final long... values) { + public VampireSurvivorApplyReq addAllBuilds(final Public.UseBuild... values) { bitField0_ |= 0x00000004; - buildIds.addAll(values); + builds.addAll(values); return this; } @@ -237,7 +236,7 @@ public final class VampireSurvivorApply { bitField0_ = other.bitField0_; id = other.id; nextPackage.copyFrom(other.nextPackage); - buildIds.copyFrom(other.buildIds); + builds.copyFrom(other.builds); } return this; } @@ -254,8 +253,8 @@ public final class VampireSurvivorApply { if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } - if (other.hasBuildIds()) { - getMutableBuildIds().addAll(other.buildIds); + if (other.hasBuilds()) { + getMutableBuilds().addAll(other.builds); } return this; } @@ -269,7 +268,7 @@ public final class VampireSurvivorApply { bitField0_ = 0; id = 0; nextPackage.clear(); - buildIds.clear(); + builds.clear(); return this; } @@ -281,7 +280,7 @@ public final class VampireSurvivorApply { cachedSize = -1; bitField0_ = 0; nextPackage.clear(); - buildIds.clear(); + builds.clearQuick(); return this; } @@ -297,7 +296,7 @@ public final class VampireSurvivorApply { return bitField0_ == other.bitField0_ && (!hasId() || id == other.id) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) - && (!hasBuildIds() || buildIds.equals(other.buildIds)); + && (!hasBuilds() || builds.equals(other.builds)); } @Override @@ -311,9 +310,9 @@ public final class VampireSurvivorApply { output.writeBytesNoTag(nextPackage); } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < buildIds.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildIds.array()[i]); + for (int i = 0; i < builds.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(builds.get(i)); } } } @@ -328,7 +327,7 @@ public final class VampireSurvivorApply { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * buildIds.length()) + ProtoSink.computeRepeatedUInt64SizeNoTag(buildIds); + size += (1 * builds.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(builds); } return size; } @@ -359,10 +358,9 @@ public final class VampireSurvivorApply { } } case 18: { - // buildIds [packed=true] - input.readPackedUInt64(buildIds, tag); + // builds + tag = input.readRepeatedMessage(builds, tag); bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 0) { break; } @@ -377,12 +375,6 @@ public final class VampireSurvivorApply { tag = input.readTag(); break; } - case 16: { - // buildIds [packed=false] - tag = input.readRepeatedUInt64(buildIds, tag); - bitField0_ |= 0x00000004; - break; - } } } } @@ -397,7 +389,7 @@ public final class VampireSurvivorApply { output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt64(FieldNames.buildIds, buildIds); + output.writeRepeatedMessage(FieldNames.builds, builds); } output.endObject(); } @@ -431,10 +423,10 @@ public final class VampireSurvivorApply { } break; } - case -1366033014: { - if (input.isAtField(FieldNames.buildIds)) { + case 2000810981: { + if (input.isAtField(FieldNames.builds)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt64(buildIds); + input.readRepeatedMessage(builds); bitField0_ |= 0x00000004; } } else { @@ -499,7 +491,7 @@ public final class VampireSurvivorApply { static final FieldName nextPackage = FieldName.forField("NextPackage"); - static final FieldName buildIds = FieldName.forField("BuildIds"); + static final FieldName builds = FieldName.forField("Builds"); } } diff --git a/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java b/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java index e57a481..d591ecc 100644 --- a/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java +++ b/src/generated/main/emu/nebula/proto/VampireSurvivorInfo.java @@ -937,11 +937,6 @@ public final class VampireSurvivorInfo { public static final class VampireSceneInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 SceneType = 1; */ @@ -952,6 +947,11 @@ public final class VampireSurvivorInfo { */ private int time; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -972,49 +972,12 @@ public final class VampireSurvivorInfo { return new VampireSceneInfo(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public VampireSceneInfo clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public VampireSceneInfo setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 SceneType = 1; * @return whether the sceneType field is set */ public boolean hasSceneType() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -1022,7 +985,7 @@ public final class VampireSurvivorInfo { * @return this */ public VampireSceneInfo clearSceneType() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; sceneType = 0; return this; } @@ -1041,7 +1004,7 @@ public final class VampireSurvivorInfo { * @return this */ public VampireSceneInfo setSceneType(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; sceneType = value; return this; } @@ -1051,7 +1014,7 @@ public final class VampireSurvivorInfo { * @return whether the time field is set */ public boolean hasTime() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -1059,7 +1022,7 @@ public final class VampireSurvivorInfo { * @return this */ public VampireSceneInfo clearTime() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; time = 0; return this; } @@ -1078,11 +1041,68 @@ public final class VampireSurvivorInfo { * @return this */ public VampireSceneInfo setTime(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; time = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public VampireSceneInfo clearBuild() { + bitField0_ &= ~0x00000004; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000004; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public VampireSceneInfo setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000004; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -1235,9 +1255,9 @@ public final class VampireSurvivorInfo { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; sceneType = other.sceneType; time = other.time; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); killCount.copyFrom(other.killCount); } @@ -1250,15 +1270,15 @@ public final class VampireSurvivorInfo { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasSceneType()) { setSceneType(other.sceneType); } if (other.hasTime()) { setTime(other.time); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -1275,9 +1295,9 @@ public final class VampireSurvivorInfo { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; sceneType = 0; time = 0; + build.clear(); nextPackage.clear(); killCount.clear(); return this; @@ -1290,6 +1310,7 @@ public final class VampireSurvivorInfo { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); killCount.clear(); return this; @@ -1305,9 +1326,9 @@ public final class VampireSurvivorInfo { } VampireSceneInfo other = (VampireSceneInfo) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasSceneType() || sceneType == other.sceneType) && (!hasTime() || time == other.time) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasKillCount() || killCount.equals(other.killCount)); } @@ -1315,17 +1336,17 @@ public final class VampireSurvivorInfo { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(sceneType); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(time); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -1342,14 +1363,14 @@ public final class VampireSurvivorInfo { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(sceneType); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(time); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(build); + } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } @@ -1366,19 +1387,10 @@ public final class VampireSurvivorInfo { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // sceneType sceneType = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { break; @@ -1387,6 +1399,15 @@ public final class VampireSurvivorInfo { case 32: { // time time = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 16378) { @@ -1435,14 +1456,14 @@ public final class VampireSurvivorInfo { 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.sceneType, sceneType); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.time, time); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.build, build); + } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } @@ -1459,22 +1480,11 @@ public final class VampireSurvivorInfo { } 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 -561637946: { if (input.isAtField(FieldNames.sceneType)) { if (!input.trySkipNullValue()) { sceneType = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -1485,6 +1495,17 @@ public final class VampireSurvivorInfo { if (input.isAtField(FieldNames.time)) { if (!input.trySkipNullValue()) { time = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 64542286: { + if (input.isAtField(FieldNames.build)) { + if (!input.trySkipNullValue()) { + input.readMessage(build); bitField0_ |= 0x00000004; } } else { @@ -1567,12 +1588,12 @@ public final class VampireSurvivorInfo { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName sceneType = FieldName.forField("SceneType"); static final FieldName time = FieldName.forField("Time"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName killCount = FieldName.forField("KillCount"); diff --git a/src/generated/main/emu/nebula/proto/WeekBossApply.java b/src/generated/main/emu/nebula/proto/WeekBossApply.java index f4207ef..2842685 100644 --- a/src/generated/main/emu/nebula/proto/WeekBossApply.java +++ b/src/generated/main/emu/nebula/proto/WeekBossApply.java @@ -19,16 +19,16 @@ public final class WeekBossApply { public static final class WeekBossApplyReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint64 BuildId = 2; - */ - private long buildId; - /** * optional uint32 Id = 1; */ private int id; + /** + * optional .UseBuild Build = 2; + */ + private final Public.UseBuild build = Public.UseBuild.newInstance(); + /** * optional bytes NextPackage = 2047; */ @@ -44,49 +44,12 @@ public final class WeekBossApply { return new WeekBossApplyReq(); } - /** - * optional uint64 BuildId = 2; - * @return whether the buildId field is set - */ - public boolean hasBuildId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 BuildId = 2; - * @return this - */ - public WeekBossApplyReq clearBuildId() { - bitField0_ &= ~0x00000001; - buildId = 0L; - return this; - } - - /** - * optional uint64 BuildId = 2; - * @return the buildId - */ - public long getBuildId() { - return buildId; - } - - /** - * optional uint64 BuildId = 2; - * @param value the buildId to set - * @return this - */ - public WeekBossApplyReq setBuildId(final long value) { - bitField0_ |= 0x00000001; - buildId = value; - return this; - } - /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -94,7 +57,7 @@ public final class WeekBossApply { * @return this */ public WeekBossApplyReq clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -113,11 +76,68 @@ public final class WeekBossApply { * @return this */ public WeekBossApplyReq setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } + /** + * optional .UseBuild Build = 2; + * @return whether the build field is set + */ + public boolean hasBuild() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .UseBuild Build = 2; + * @return this + */ + public WeekBossApplyReq clearBuild() { + bitField0_ &= ~0x00000002; + build.clear(); + return this; + } + + /** + * optional .UseBuild Build = 2; + * + * 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 #getMutableBuild()} if you want to modify it. + * + * @return internal storage object for reading + */ + public Public.UseBuild getBuild() { + return build; + } + + /** + * optional .UseBuild Build = 2; + * + * 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.UseBuild getMutableBuild() { + bitField0_ |= 0x00000002; + return build; + } + + /** + * optional .UseBuild Build = 2; + * @param value the build to set + * @return this + */ + public WeekBossApplyReq setBuild(final Public.UseBuild value) { + bitField0_ |= 0x00000002; + build.copyFrom(value); + return this; + } + /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set @@ -202,8 +222,8 @@ public final class WeekBossApply { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buildId = other.buildId; id = other.id; + build.copyFrom(other.build); nextPackage.copyFrom(other.nextPackage); } return this; @@ -215,12 +235,12 @@ public final class WeekBossApply { return this; } cachedSize = -1; - if (other.hasBuildId()) { - setBuildId(other.buildId); - } if (other.hasId()) { setId(other.id); } + if (other.hasBuild()) { + getMutableBuild().mergeFrom(other.build); + } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } @@ -234,8 +254,8 @@ public final class WeekBossApply { } cachedSize = -1; bitField0_ = 0; - buildId = 0L; id = 0; + build.clear(); nextPackage.clear(); return this; } @@ -247,6 +267,7 @@ public final class WeekBossApply { } cachedSize = -1; bitField0_ = 0; + build.clearQuick(); nextPackage.clear(); return this; } @@ -261,21 +282,21 @@ public final class WeekBossApply { } WeekBossApplyReq other = (WeekBossApplyReq) o; return bitField0_ == other.bitField0_ - && (!hasBuildId() || buildId == other.buildId) && (!hasId() || id == other.id) + && (!hasBuild() || build.equals(other.build)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt64NoTag(buildId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(build); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); @@ -286,10 +307,10 @@ public final class WeekBossApply { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeMessageSizeNoTag(build); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); @@ -304,18 +325,18 @@ public final class WeekBossApply { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // buildId - buildId = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } case 8: { // id id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // build + input.readMessage(build); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { @@ -349,10 +370,10 @@ public final class WeekBossApply { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.buildId, buildId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeMessage(FieldNames.build, build); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); @@ -367,10 +388,10 @@ public final class WeekBossApply { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1895597065: { - if (input.isAtField(FieldNames.buildId)) { + case 2363: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - buildId = input.readUInt64(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -378,10 +399,10 @@ public final class WeekBossApply { } break; } - case 2363: { - if (input.isAtField(FieldNames.id)) { + case 64542286: { + if (input.isAtField(FieldNames.build)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + input.readMessage(build); bitField0_ |= 0x00000002; } } else { @@ -453,10 +474,10 @@ public final class WeekBossApply { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buildId = FieldName.forField("BuildId"); - static final FieldName id = FieldName.forField("Id"); + static final FieldName build = FieldName.forField("Build"); + static final FieldName nextPackage = FieldName.forField("NextPackage"); } } diff --git a/src/main/java/emu/nebula/GameConstants.java b/src/main/java/emu/nebula/GameConstants.java index 20edb77..bf56278 100644 --- a/src/main/java/emu/nebula/GameConstants.java +++ b/src/main/java/emu/nebula/GameConstants.java @@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap; import emu.nebula.util.WeightedList; public class GameConstants { - public static final String VERSION = "1.16.0"; + public static final String VERSION = "2.0.0"; public static int DATA_VERSION = 0; public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); @@ -17,6 +17,7 @@ public class GameConstants { public static final int INTRO_GUIDE_ID = 1; public static final int DEFAULT_HONOR_ID = 111001; + // Item ids public static final int GOLD_ITEM_ID = 1; public static final int STELLANITE_DUST_ITEM_ID = 2; public static final int PAID_STELLANITE_LUMINA_ITEM_ID = 3; @@ -26,9 +27,11 @@ public class GameConstants { public static final int WEEKLY_ENTRY_ITEM_ID = 28; public static final int JOINT_DRILL_TICKET_ID = 36; + // Energy public static final int MAX_ENERGY = 240; public static final int ENERGY_REGEN_TIME = 360; // Timeunit = Seconds + // Characters public static final int CHARACTER_MAX_GEMS_PER_SLOT = 4; public static final int CHARACTER_MAX_GEM_PRESETS = 3; public static final int CHARACTER_MAX_GEM_SLOTS = 3; @@ -40,22 +43,26 @@ public class GameConstants { public static final int AFFINITY_HONOR_UNLOCK_LEVEL = 10; + // Client limits public static final int MAX_FORMATIONS = 6; public static final int MAX_SHOWCASE_IDS = 5; public static final int MAX_BUILDS = 100; public static final int MAX_PRESETS = 50; - - public static final int BATTLE_PASS_ID = 1; // Default battle pass - public static final int BATTLE_PASS_UNLOCK_LEVEL = 3; - + public static final int MAX_FRIENDSHIPS = 50; public static final int MAX_PENDING_FRIENDSHIPS = 30; + // Battle Pass + public static final int BATTLE_PASS_ID = 1; // Default battle pass + public static final int BATTLE_PASS_UNLOCK_LEVEL = 3; + + // Star Tower (Monolith) public static final int TOWER_COIN_ITEM_ID = 11; public static final int[] TOWER_EVENTS_IDS = new int[] { 101, 102, 104, 105, 106, 107, 108, 114, 115, 116, 126, 127, 128 }; + // Trace Hunt public static final int TRACE_HUNT_TOKEN_ID = 37; public static final int TRACE_HUNT_REQUEST_ITEM_ID = 38; public static final int TRACE_HUNT_PERMIT_ITEM_ID = 39; @@ -65,6 +72,7 @@ public class GameConstants { public static final int TRACE_HUNT_MAX_TRACE_PROGRESS = 10_000; public static final int TRACE_HUNT_MAX_HUNT_PROGRESS = 10_000; + // Etc public static final int REFRESH_TYPE_DAILY = 1; public static final int REFRESH_TYPE_WEEKLY = 2; public static final int REFRESH_TYPE_MONTHLY = 3; @@ -83,7 +91,6 @@ public class GameConstants { public static final int UNLIMITED_STOCK = Integer.MAX_VALUE; // Daily gifts (Custom) - public static final WeightedList DAILY_SHOP_GIFTS = new WeightedList<>(); public static final WeightedList DAILY_MALL_GIFTS = new WeightedList<>(); diff --git a/src/main/java/emu/nebula/data/resources/HonorDef.java b/src/main/java/emu/nebula/data/resources/HonorDef.java index b59434d..0f5ab26 100644 --- a/src/main/java/emu/nebula/data/resources/HonorDef.java +++ b/src/main/java/emu/nebula/data/resources/HonorDef.java @@ -62,6 +62,10 @@ public class HonorDef extends BaseDef { // Levels this.valid = true; } + case 5 -> { + // Dorm + this.valid = true; + } default -> { // Unknown honor type Nebula.getLogger().warn("Honor " + this.getId() + " has an unknown type (" + this.getType() + ")"); diff --git a/src/main/java/emu/nebula/game/achievement/AchievementCondition.java b/src/main/java/emu/nebula/game/achievement/AchievementCondition.java index 8e0346f..5b6fbce 100644 --- a/src/main/java/emu/nebula/game/achievement/AchievementCondition.java +++ b/src/main/java/emu/nebula/game/achievement/AchievementCondition.java @@ -101,6 +101,19 @@ public enum AchievementCondition { WeekBossClearTotal (123), TraceHuntTraceComplete (159), TraceHuntAssistHunt (160), + DormFurnitureAcquire (161), + DormRewardReceive (162), + DormUnlockRoom (163), + DormPlaceFurniture (164), + DormRoleInteractionReward (165), + DormFurnitureCollect (166), + DormDailyReceiveReward (171), + DormSendGift (172), + ActivityStoryPass (173), + SoldierClearTotal (174), + SoldierClearTotalWithSeason (175), + SoldierSpecificRankWithSeason (176), + DormSaveRoom (177), ClientReport (200), TowerBattleTimes (501), TowerBossChallengeSpecificHighRewardWithTotal (502), diff --git a/src/main/java/emu/nebula/game/activity/ActivityModule.java b/src/main/java/emu/nebula/game/activity/ActivityModule.java index 872b109..8a6e63e 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityModule.java +++ b/src/main/java/emu/nebula/game/activity/ActivityModule.java @@ -86,9 +86,14 @@ public class ActivityModule extends GameContextModule { //this.activities.add(1011104); // A Monolith Too Far - this.activities.add(1011201); - this.activities.add(1011203); - this.activities.add(1011204); + //this.activities.add(1011201); + //this.activities.add(1011203); + //this.activities.add(1011204); + + // Wholeness at Reunion's Dawn + this.activities.add(2010401); + this.activities.add(2010403); + this.activities.add(2010404); // ===== Joint Drills (Finale Echoing) ===== //this.activities.add(510003); // Causes soft lock in event screen @@ -96,9 +101,10 @@ public class ActivityModule extends GameContextModule { // ===== Etc Events ===== // Trial activities - this.activities.add(700128); - this.activities.add(700129); - + this.activities.add(700131); + this.activities.add(700132); + this.activities.add(700133); + // Tower defense activity //this.activities.add(102002); // Missing image on client - probably removed @@ -112,7 +118,7 @@ public class ActivityModule extends GameContextModule { //this.activities.add(800001); // Causes soft lock in event screen // Through Hostile Depths (beta) - this.activities.add(900001); + //this.activities.add(900001); // Causes soft lock in event screen // Trekker versus (broken) //this.activities.add(600001); diff --git a/src/main/java/emu/nebula/game/activity/ActivityType.java b/src/main/java/emu/nebula/game/activity/ActivityType.java index a86dfa0..6d6878e 100644 --- a/src/main/java/emu/nebula/game/activity/ActivityType.java +++ b/src/main/java/emu/nebula/game/activity/ActivityType.java @@ -31,7 +31,12 @@ public enum ActivityType { IceCream (23), FollowSocialMedia (24), Soldier (25), - NewStory (30); + Reengagement (26), + MathParkour (27), + MailBind (28), + NewStory (30), + MallLogin (31), + SignIn (32); @Getter private final int value; diff --git a/src/main/java/emu/nebula/game/activity/type/LevelsActivity.java b/src/main/java/emu/nebula/game/activity/type/LevelsActivity.java index a681f65..6d9367b 100644 --- a/src/main/java/emu/nebula/game/activity/type/LevelsActivity.java +++ b/src/main/java/emu/nebula/game/activity/type/LevelsActivity.java @@ -18,7 +18,7 @@ import emu.nebula.game.player.PlayerChangeInfo; import emu.nebula.game.quest.QuestCondition; import emu.nebula.proto.ActivityDetail.ActivityMsg; import emu.nebula.proto.Public.ActivityLevel; - +import emu.nebula.proto.Public.UseBuild; import lombok.Getter; import lombok.Setter; @@ -201,7 +201,7 @@ public class LevelsActivity extends GameActivity { public ActivityLevel toProto() { var proto = ActivityLevel.newInstance() .setStar(this.getStar()) - .setBuildId(this.getBuildId()); + .setBuild(UseBuild.newInstance().setBuildId(this.getBuildId()).setTypeValue(1)); return proto; } diff --git a/src/main/java/emu/nebula/game/activity/type/SoldierActivity.java b/src/main/java/emu/nebula/game/activity/type/SoldierActivity.java index 6c1e045..b2cf607 100644 --- a/src/main/java/emu/nebula/game/activity/type/SoldierActivity.java +++ b/src/main/java/emu/nebula/game/activity/type/SoldierActivity.java @@ -21,7 +21,6 @@ import emu.nebula.game.player.PlayerChangeInfo; import emu.nebula.proto.ActivityDetail.ActivityMsg; import emu.nebula.proto.PublicSoldier; import emu.nebula.proto.SoldierApply.SoldierApplyResp; -import emu.nebula.proto.SoldierGiveUp.SoldierGiveUpResp; import emu.nebula.proto.SoldierInteract.SoldierInteractReq; import emu.nebula.proto.SoldierInteract.SoldierInteractResp; import emu.nebula.util.Utils; @@ -164,9 +163,12 @@ public class SoldierActivity extends GameActivity { @Override public synchronized void onLogin() { - if (inProgress() && migrateLegacyRun()) save(); + // TODO fix later + //if (inProgress() && migrateLegacyRun()) save(); } + // TODO fix later + /* public synchronized SoldierApplyResp apply(int seasonId, int challengeId) { if (inProgress() || seasonId != getId()) return null; @@ -1194,6 +1196,8 @@ public class SoldierActivity extends GameActivity { return PublicSoldier.SoldierCard.newInstance().setId(id) .setType(PublicSoldier.SoldierCardType.Strategy); } + + */ @Override public void encodeActivityMsg(ActivityMsg msg) { diff --git a/src/main/java/emu/nebula/game/activity/type/StoryActivity.java b/src/main/java/emu/nebula/game/activity/type/StoryActivity.java index bffdc7c..4d8ce7a 100644 --- a/src/main/java/emu/nebula/game/activity/type/StoryActivity.java +++ b/src/main/java/emu/nebula/game/activity/type/StoryActivity.java @@ -14,7 +14,7 @@ import emu.nebula.proto.ActivityDetail.ActivityMsg; import emu.nebula.proto.ActivityStorySettleOuterClass.ActivityStorySettle; import emu.nebula.proto.Public.ActivityStory; import emu.nebula.proto.Public.ActivityStoryChoice; - +import emu.nebula.proto.Public.UseBuild; import it.unimi.dsi.fastutil.ints.Int2IntMap; import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; @@ -128,7 +128,7 @@ public class StoryActivity extends GameActivity { @Override public void encodeActivityMsg(ActivityMsg msg) { var proto = msg.getMutableStoryChapter() - .setBuildId(this.getBuildId()); + .setBuild(UseBuild.newInstance().setBuildId(this.getBuildId()).setTypeValue(1)); for (int i : this.getEvidences()) { proto.addEvidences(i); diff --git a/src/main/java/emu/nebula/game/gacha/NewbieGachaModule.java b/src/main/java/emu/nebula/game/gacha/NewbieGachaModule.java index 2e0111d..e1cc028 100644 --- a/src/main/java/emu/nebula/game/gacha/NewbieGachaModule.java +++ b/src/main/java/emu/nebula/game/gacha/NewbieGachaModule.java @@ -6,7 +6,7 @@ import emu.nebula.game.inventory.ItemAcquireMap; import emu.nebula.game.player.Player; import emu.nebula.game.player.PlayerChangeInfo; import emu.nebula.proto.GachaNewbieInfoOuterClass.GachaNewbieInfo; -import emu.nebula.proto.GachaNewbieInfoOuterClass.UI32s; +import emu.nebula.proto.Public.UI32s; import it.unimi.dsi.fastutil.ints.IntArrayList; import java.util.ArrayList; diff --git a/src/main/java/emu/nebula/game/inventory/ItemSubType.java b/src/main/java/emu/nebula/game/inventory/ItemSubType.java index 544507a..bc4a834 100644 --- a/src/main/java/emu/nebula/game/inventory/ItemSubType.java +++ b/src/main/java/emu/nebula/game/inventory/ItemSubType.java @@ -38,7 +38,15 @@ public enum ItemSubType { CharacterSkin (46), SouvenirEnergyItem (47), Build (48), - Chess (49); + Chess (49), + DormHonor (50), + DormFurniture (51), + DormKit (52), + DormScene (53), + DormSkin (54), + DormRoom (55), + DormLayout (56), + TokenItem (57); @Getter private final int value; diff --git a/src/main/java/emu/nebula/game/inventory/ItemType.java b/src/main/java/emu/nebula/game/inventory/ItemType.java index 65485a1..63d0574 100644 --- a/src/main/java/emu/nebula/game/inventory/ItemType.java +++ b/src/main/java/emu/nebula/game/inventory/ItemType.java @@ -21,7 +21,9 @@ public enum ItemType { LevelHonor (15), TraceRequest (16), HuntPermit (17), - SoldierItem (18); + SoldierItem (18), + DormFurniture (19), + DormHonor (20); @Getter private final int value; diff --git a/src/main/java/emu/nebula/game/quest/QuestCondition.java b/src/main/java/emu/nebula/game/quest/QuestCondition.java index 543b9cd..2163b42 100644 --- a/src/main/java/emu/nebula/game/quest/QuestCondition.java +++ b/src/main/java/emu/nebula/game/quest/QuestCondition.java @@ -98,6 +98,18 @@ public enum QuestCondition { WeekBossClearTotal (123), ActivityStoryReadStory (124), ActivitySoldierScore (158), + DormRewardReceive (162), + DormUnlockRoom (163), + DormPlaceFurniture (164), + DormRoleInteractionReward (165), + DormFurnitureCollect (166), + DormDailyReceiveReward (171), + DormSendGift (172), + ActivityStoryPass (173), + SoldierClearTotal (174), + SoldierClearTotalWithSeason (175), + SoldierSpecificRankWithSeason (176), + DormSaveRoom (177), ClientReport (200), TowerBattleTimes (501), TowerBossChallengeSpecificHighRewardWithTotal (502), diff --git a/src/main/java/emu/nebula/game/tracehunt/TraceHuntManager.java b/src/main/java/emu/nebula/game/tracehunt/TraceHuntManager.java index 836e210..8dffd31 100644 --- a/src/main/java/emu/nebula/game/tracehunt/TraceHuntManager.java +++ b/src/main/java/emu/nebula/game/tracehunt/TraceHuntManager.java @@ -18,6 +18,7 @@ import emu.nebula.game.player.PlayerChangeInfo; import emu.nebula.game.player.PlayerManager; import emu.nebula.net.NetMsgId; import emu.nebula.proto.Public.TraceHuntItem; +import emu.nebula.proto.Public.UseBuild; import emu.nebula.proto.TraceHuntInfoOuterClass.TraceHuntInfo; import emu.nebula.util.Utils; import lombok.Getter; @@ -503,7 +504,7 @@ public class TraceHuntManager extends PlayerManager implements GameDatabaseObjec .setExp(this.getExp()) .setBossID(this.getBossId()) .setBossCreateTime(this.getBossCreateTime()) - .setBuildID(this.getBuildId()) + .setBuild(UseBuild.newInstance().setBuildId(this.getBuildId()).setTypeValue(1)) .setTraceProgress(this.getTraceProgress()) .setHuntProgress(this.getHuntProgress()) .setSelfHuntTimes(this.getHuntCount()); diff --git a/src/main/java/emu/nebula/game/vampire/VampireSurvivorManager.java b/src/main/java/emu/nebula/game/vampire/VampireSurvivorManager.java index 1526a2a..d720d47 100644 --- a/src/main/java/emu/nebula/game/vampire/VampireSurvivorManager.java +++ b/src/main/java/emu/nebula/game/vampire/VampireSurvivorManager.java @@ -10,10 +10,15 @@ import emu.nebula.game.player.Player; import emu.nebula.game.player.PlayerManager; import emu.nebula.game.player.PlayerProgress; import emu.nebula.net.NetMsgId; +import emu.nebula.proto.Public.UseBuild; import emu.nebula.proto.VampireTalentDetail.VampireTalentDetailResp; import emu.nebula.util.Bitset; + +import it.unimi.dsi.fastutil.longs.LongArrayList; + import lombok.Getter; -import us.hebi.quickbuf.RepeatedLong; + +import us.hebi.quickbuf.RepeatedMessage; @Getter public class VampireSurvivorManager extends PlayerManager { @@ -104,7 +109,7 @@ public class VampireSurvivorManager extends PlayerManager { Nebula.getGameDatabase().update(this.getProgress(), this.getPlayerUid(), "vampireTalents", this.getTalents()); } - public VampireSurvivorGame apply(int levelId, RepeatedLong builds) { + public VampireSurvivorGame apply(int levelId, RepeatedMessage builds) { // Get data var data = GameData.getVampireSurvivorDataTable().get(levelId); if (data == null) { @@ -121,16 +126,23 @@ public class VampireSurvivorManager extends PlayerManager { return null; } + // Create build ids + var buildIds = new LongArrayList(); + // Make sure our builds exist - for (long buildId : builds) { + for (var build : builds) { + long buildId = build.getBuildId(); boolean hasBuild = this.getPlayer().getStarTowerManager().hasBuild(buildId); + if (hasBuild == false) { return null; } + + buildIds.add(buildId); } // Create game - this.game = new VampireSurvivorGame(this, data, builds.toArray()); + this.game = new VampireSurvivorGame(this, data, buildIds.toLongArray()); // Success return this.game; diff --git a/src/main/java/emu/nebula/net/NetMsgId.java b/src/main/java/emu/nebula/net/NetMsgId.java index b1c6dbc..4b143c8 100644 --- a/src/main/java/emu/nebula/net/NetMsgId.java +++ b/src/main/java/emu/nebula/net/NetMsgId.java @@ -3,12 +3,14 @@ package emu.nebula.net; public class NetMsgId { public static final int none = 0; + public static final int handbook_complete_notify = -10059; + public static final int clear_all_activity_mathParkour_levels_notify = -10058; public static final int clear_all_activity_iceCream_levels_notify = -10057; public static final int sd_soldier_effect_notify = -10056; public static final int sd_soldier_info_notify = -10055; public static final int sd_shop_data_notify = -10054; public static final int sd_item_change_notify = -10053; - public static final int sd_buff_card_add_notify = -10052; + public static final int sd_buff_notify = -10052; public static final int clear_all_activity_golden_spy_levels_notify = -10051; public static final int clear_all_activity_breakout_levels_notify = -10050; public static final int clear_story_set_notify = -10049; @@ -330,6 +332,9 @@ public class NetMsgId { public static final int quest_assist_group_reward_receive_req = 4228; public static final int quest_assist_group_reward_receive_succeed_ack = 4229; public static final int quest_assist_group_reward_receive_failed_ack = 4230; + public static final int quest_dorm_reward_receive_req = 4231; + public static final int quest_dorm_reward_receive_succeed_ack = 4232; + public static final int quest_dorm_reward_receive_failed_ack = 4233; public static final int activity_task_reward_receive_req = 4301; public static final int activity_task_reward_receive_succeed_ack = 4302; public static final int activity_task_reward_receive_failed_ack = 4303; @@ -408,6 +413,27 @@ public class NetMsgId { public static final int potential_preselection_delete_req = 4737; public static final int potential_preselection_delete_succeed_ack = 4738; public static final int potential_preselection_delete_failed_ack = 4739; + public static final int tower_vita_energy_buy_req = 4740; + public static final int tower_vita_energy_buy_succeed_ack = 4741; + public static final int tower_vita_energy_buy_failed_ack = 4742; + public static final int tower_vita_project_list_req = 4743; + public static final int tower_vita_project_list_succeed_ack = 4744; + public static final int tower_vita_project_list_failed_ack = 4745; + public static final int tower_vita_project_update_req = 4746; + public static final int tower_vita_project_update_succeed_ack = 4747; + public static final int tower_vita_project_update_failed_ack = 4748; + public static final int tower_vita_project_name_update_req = 4749; + public static final int tower_vita_project_name_update_succeed_ack = 4750; + public static final int tower_vita_project_name_update_failed_ack = 4751; + public static final int tower_vita_project_set_req = 4752; + public static final int tower_vita_project_set_succeed_ack = 4753; + public static final int tower_vita_project_set_failed_ack = 4754; + public static final int star_tower_build_potential_modify_req = 4755; + public static final int star_tower_build_potential_modify_succeed_ack = 4756; + public static final int star_tower_build_potential_modify_failed_ack = 4757; + public static final int star_tower_build_note_modify_req = 4758; + public static final int star_tower_build_note_modify_succeed_ack = 4759; + public static final int star_tower_build_note_modify_failed_ack = 4760; public static final int build_convert_detail_list_get_req = 4801; public static final int build_convert_detail_list_get_succeed_ack = 4802; public static final int build_convert_detail_list_get_failed_ack = 4803; @@ -471,6 +497,12 @@ public class NetMsgId { public static final int mall_shop_order_req = 5128; public static final int mall_shop_order_succeed_ack = 5129; public static final int mall_shop_order_failed_ack = 5130; + public static final int mall_activity_list_req = 5131; + public static final int mall_activity_list_succeed_ack = 5132; + public static final int mall_activity_list_failed_ack = 5133; + public static final int mall_activity_order_req = 5134; + public static final int mall_activity_order_succeed_ack = 5135; + public static final int mall_activity_order_failed_ack = 5136; public static final int trace_hunt_info_req = 5201; public static final int trace_hunt_info_succeed_ack = 5202; public static final int trace_hunt_info_failed_ack = 5203; @@ -507,6 +539,33 @@ public class NetMsgId { public static final int soldier_partner_trace_req = 5316; public static final int soldier_partner_trace_succeed_ack = 5317; public static final int soldier_partner_trace_failed_ack = 5318; + public static final int soldier_season_info_req = 5319; + public static final int soldier_season_info_succeed_ack = 5320; + public static final int soldier_season_info_failed_ack = 5321; + public static final int soldier_season_reward_receive_req = 5322; + public static final int soldier_season_reward_receive_succeed_ack = 5323; + public static final int soldier_season_reward_receive_failed_ack = 5324; + public static final int soldier_learn_req = 5325; + public static final int soldier_learn_succeed_ack = 5326; + public static final int soldier_learn_failed_ack = 5327; + public static final int soldier_technology_info_req = 5401; + public static final int soldier_technology_info_succeed_ack = 5402; + public static final int soldier_technology_info_failed_ack = 5403; + public static final int soldier_technology_node_unlock_req = 5404; + public static final int soldier_technology_node_unlock_succeed_ack = 5405; + public static final int soldier_technology_node_unlock_failed_ack = 5406; + public static final int soldier_battle_report_favorite_req = 5407; + public static final int soldier_battle_report_favorite_succeed_ack = 5408; + public static final int soldier_battle_report_favorite_failed_ack = 5409; + public static final int soldier_battle_report_unfavorite_req = 5410; + public static final int soldier_battle_report_unfavorite_succeed_ack = 5411; + public static final int soldier_battle_report_unfavorite_failed_ack = 5412; + public static final int soldier_battle_report_favorite_list_req = 5413; + public static final int soldier_battle_report_favorite_list_succeed_ack = 5414; + public static final int soldier_battle_report_favorite_list_failed_ack = 5415; + public static final int soldier_battle_report_recent_list_req = 5416; + public static final int soldier_battle_report_recent_list_succeed_ack = 5417; + public static final int soldier_battle_report_recent_list_failed_ack = 5418; public static final int gacha_spin_req = 6001; public static final int gacha_spin_succeed_ack = 6002; public static final int gacha_spin_failed_ack = 6003; @@ -757,6 +816,57 @@ public class NetMsgId { public static final int activity_penguin_card_endless_level_save_req = 8416; public static final int activity_penguin_card_endless_level_save_succeed_ack = 8417; public static final int activity_penguin_card_endless_level_save_failed_ack = 8418; + public static final int guide_mission_info_req = 8419; + public static final int guide_mission_info_succeed_ack = 8420; + public static final int guide_mission_info_failed_ack = 8421; + public static final int guide_mission_quest_reward_receive_req = 8422; + public static final int guide_mission_quest_reward_receive_succeed_ack = 8423; + public static final int guide_mission_quest_reward_receive_failed_ack = 8424; + public static final int activity_math_parkour_level_settle_req = 8430; + public static final int activity_math_parkour_level_settle_succeed_ack = 8431; + public static final int activity_math_parkour_level_settle_failed_ack = 8432; + public static final int activity_returnee_info_req = 8501; + public static final int activity_returnee_info_succeed_ack = 8502; + public static final int activity_returnee_info_failed_ack = 8503; + public static final int activity_returnee_reunion_reward_req = 8504; + public static final int activity_returnee_reunion_reward_succeed_ack = 8505; + public static final int activity_returnee_reunion_reward_failed_ack = 8506; + public static final int activity_returnee_quest_point_reward_receive_req = 8507; + public static final int activity_returnee_quest_point_reward_receive_succeed_ack = 8508; + public static final int activity_returnee_quest_point_reward_receive_failed_ack = 8509; + public static final int activity_returnee_avg_req = 8510; + public static final int activity_returnee_avg_succeed_ack = 8511; + public static final int activity_returnee_avg_failed_ack = 8512; + public static final int activity_returnee_quest_reward_receive_req = 8513; + public static final int activity_returnee_quest_reward_receive_succeed_ack = 8514; + public static final int activity_returnee_quest_reward_receive_failed_ack = 8515; + public static final int activity_returnee_login_reward_receive_req = 8516; + public static final int activity_returnee_login_reward_receive_succeed_ack = 8517; + public static final int activity_returnee_login_reward_receive_failed_ack = 8518; + public static final int activity_returnee_card_reward_receive_req = 8519; + public static final int activity_returnee_card_reward_receive_succeed_ack = 8520; + public static final int activity_returnee_card_reward_receive_failed_ack = 8521; + public static final int activity_returnee_card_order_req = 8522; + public static final int activity_returnee_card_order_succeed_ack = 8523; + public static final int activity_returnee_card_order_failed_ack = 8524; + public static final int activity_returnee_pack_order_req = 8525; + public static final int activity_returnee_pack_order_succeed_ack = 8526; + public static final int activity_returnee_pack_order_failed_ack = 8527; + public static final int activity_archive_story_apply_req = 8601; + public static final int activity_archive_story_apply_succeed_ack = 8602; + public static final int activity_archive_story_apply_failed_ack = 8603; + public static final int activity_archive_story_settle_req = 8604; + public static final int activity_archive_story_settle_succeed_ack = 8605; + public static final int activity_archive_story_settle_failed_ack = 8606; + public static final int activity_archive_story_info_req = 8607; + public static final int activity_archive_story_info_succeed_ack = 8608; + public static final int activity_archive_story_info_failed_ack = 8609; + public static final int activity_mail_bind_reward_receive_req = 8610; + public static final int activity_mail_bind_reward_receive_succeed_ack = 8611; + public static final int activity_mail_bind_reward_receive_failed_ack = 8612; + public static final int activity_archive_story_chapter_pass_req = 8613; + public static final int activity_archive_story_chapter_pass_succeed_ack = 8614; + public static final int activity_archive_story_chapter_pass_failed_ack = 8615; public static final int mail_list_req = 9001; public static final int mail_list_succeed_ack = 9002; public static final int mail_list_failed_ack = 9003; @@ -817,6 +927,9 @@ public class NetMsgId { public static final int activity_trekker_versus_schedule_reward_receive_req = 9143; public static final int activity_trekker_versus_schedule_reward_receive_succeed_ack = 9144; public static final int activity_trekker_versus_schedule_reward_receive_failed_ack = 9145; + public static final int activity_malllogin_reward_receive_req = 9146; + public static final int activity_malllogin_reward_receive_succeed_ack = 9147; + public static final int activity_malllogin_reward_receive_failed_ack = 9148; public static final int phone_contacts_info_req = 9201; public static final int phone_contacts_info_succeed_ack = 9202; public static final int phone_contacts_info_failed_ack = 9203; @@ -850,6 +963,69 @@ public class NetMsgId { public static final int activity_cg_read_req = 9501; public static final int activity_cg_read_succeed_ack = 9502; public static final int activity_cg_read_failed_ack = 9503; + public static final int dorm_info_list_req = 9510; + public static final int dorm_info_list_succeed_ack = 9511; + public static final int dorm_info_list_failed_ack = 9512; + public static final int dorm_furniture_preset_list_req = 9513; + public static final int dorm_furniture_preset_list_succeed_ack = 9514; + public static final int dorm_furniture_preset_list_failed_ack = 9515; + public static final int dorm_bag_list_req = 9516; + public static final int dorm_bag_list_succeed_ack = 9517; + public static final int dorm_bag_list_failed_ack = 9518; + public static final int dorm_furniture_preset_delete_req = 9519; + public static final int dorm_furniture_preset_delete_succeed_ack = 9520; + public static final int dorm_furniture_preset_delete_failed_ack = 9521; + public static final int dorm_furniture_save_req = 9522; + public static final int dorm_furniture_save_succeed_ack = 9523; + public static final int dorm_furniture_save_failed_ack = 9524; + public static final int dorm_info_update_name_req = 9525; + public static final int dorm_info_update_name_succeed_ack = 9526; + public static final int dorm_info_update_name_failed_ack = 9527; + public static final int dorm_invitation_role_req = 9528; + public static final int dorm_invitation_role_succeed_ack = 9529; + public static final int dorm_invitation_role_failed_ack = 9530; + public static final int dorm_reward_receive_req = 9531; + public static final int dorm_reward_receive_succeed_ack = 9532; + public static final int dorm_reward_receive_failed_ack = 9533; + public static final int dorm_role_interaction_req = 9534; + public static final int dorm_role_interaction_succeed_ack = 9535; + public static final int dorm_role_interaction_failed_ack = 9536; + public static final int dorm_affinity_gift_send_req = 9537; + public static final int dorm_affinity_gift_send_succeed_ack = 9538; + public static final int dorm_affinity_gift_send_failed_ack = 9539; + public static final int dorm_friend_list_req = 9540; + public static final int dorm_friend_list_succeed_ack = 9541; + public static final int dorm_friend_list_failed_ack = 9542; + public static final int dorm_friend_visit_req = 9543; + public static final int dorm_friend_visit_succeed_ack = 9544; + public static final int dorm_friend_visit_failed_ack = 9545; + public static final int dorm_layout_reward_receive_req = 9547; + public static final int dorm_layout_reward_receive_succeed_ack = 9548; + public static final int dorm_layout_reward_receive_failed_ack = 9549; + public static final int dorm_room_bgm_req = 9550; + public static final int dorm_room_bgm_succeed_ack = 9551; + public static final int dorm_room_bgm_failed_ack = 9552; + public static final int dorm_friend_like_req = 9553; + public static final int dorm_friend_like_succeed_ack = 9554; + public static final int dorm_friend_like_failed_ack = 9555; + public static final int dorm_update_preset_name_req = 9556; + public static final int dorm_update_preset_name_succeed_ack = 9557; + public static final int dorm_update_preset_name_failed_ack = 9558; + public static final int dorm_set_room_scene_req = 9559; + public static final int dorm_set_room_scene_succeed_ack = 9560; + public static final int dorm_set_room_scene_failed_ack = 9561; + public static final int dorm_achievement_reward_receive_req = 9562; + public static final int dorm_achievement_reward_receive_succeed_ack = 9563; + public static final int dorm_achievement_reward_receive_failed_ack = 9564; + public static final int dorm_blocks_convert_req = 9565; + public static final int dorm_blocks_convert_succeed_ack = 9566; + public static final int dorm_blocks_convert_failed_ack = 9567; + public static final int dorm_get_change_data_req = 9568; + public static final int dorm_get_change_data_succeed_ack = 9569; + public static final int dorm_get_change_data_failed_ack = 9570; + public static final int dorm_learn_req = 9571; + public static final int dorm_learn_succeed_ack = 9572; + public static final int dorm_learn_failed_ack = 9573; public static final int activity_levels_apply_req = 9601; public static final int activity_levels_apply_succeed_ack = 9602; public static final int activity_levels_apply_failed_ack = 9603; @@ -947,6 +1123,12 @@ public class NetMsgId { public static final int trace_hunt_state_notify = 10058; public static final int trace_hunt_item_change_notify = 10060; public static final int score_boss_reset_score_notify = 10061; + public static final int activity_returnee_state_notify = 10062; + public static final int activity_returnee_quest_change_notify = 10063; + public static final int dorm_room_unlock_notify = 10064; + public static final int guide_mission_state_notify = 10065; + public static final int activity_malllogin_rewards_notify = 10066; + public static final int achievement_complete_notify = 10067; public static final int activity_mining_apply_req = 11001; public static final int activity_mining_apply_succeed_ack = 11002; public static final int activity_mining_apply_failed_ack = 11003; diff --git a/src/main/java/emu/nebula/server/handlers/HandlerActivityLevelsApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerActivityLevelsApplyReq.java index 3d26df0..53e3dd2 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerActivityLevelsApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerActivityLevelsApplyReq.java @@ -23,7 +23,7 @@ public class HandlerActivityLevelsApplyReq extends NetHandler { } // Apply - boolean success = activity.apply(req.getLevelId(), req.getBuildId()); + boolean success = activity.apply(req.getLevelId(), req.getBuild().getBuildId()); if (success == false) { return session.encodeMsg(NetMsgId.activity_levels_apply_failed_ack); diff --git a/src/main/java/emu/nebula/server/handlers/HandlerActivityStoryApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerActivityStoryApplyReq.java index c4b959c..2fbc5c4 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerActivityStoryApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerActivityStoryApplyReq.java @@ -23,7 +23,7 @@ public class HandlerActivityStoryApplyReq extends NetHandler { } // Apply - boolean success = activity.apply(req.getStoryId(), req.getBuildId()); + boolean success = activity.apply(req.getStoryId(), req.getBuild().getBuildId()); if (success == false) { return session.encodeMsg(NetMsgId.activity_story_apply_failed_ack); diff --git a/src/main/java/emu/nebula/server/handlers/HandlerActivityTrekkerVersusApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerActivityTrekkerVersusApplyReq.java index fb8b60f..2d15b40 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerActivityTrekkerVersusApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerActivityTrekkerVersusApplyReq.java @@ -23,7 +23,7 @@ public class HandlerActivityTrekkerVersusApplyReq extends NetHandler { } // Apply - boolean result = activity.apply(req.getBuildId(), req.getAffixIds()); + boolean result = activity.apply(req.getBuild().getBuildId(), req.getAffixIds()); if (result == false) { return session.encodeMsg(NetMsgId.activity_trekker_versus_apply_failed_ack); diff --git a/src/main/java/emu/nebula/server/handlers/HandlerGuideMissionInfoReq.java b/src/main/java/emu/nebula/server/handlers/HandlerGuideMissionInfoReq.java new file mode 100644 index 0000000..f326f22 --- /dev/null +++ b/src/main/java/emu/nebula/server/handlers/HandlerGuideMissionInfoReq.java @@ -0,0 +1,21 @@ +package emu.nebula.server.handlers; + +import emu.nebula.net.NetHandler; +import emu.nebula.net.NetMsgId; +import emu.nebula.proto.GuideMissionInfoOuterClass.GuideMissionInfo; +import emu.nebula.net.HandlerId; +import emu.nebula.net.GameSession; + +@HandlerId(NetMsgId.guide_mission_info_req) +public class HandlerGuideMissionInfoReq extends NetHandler { + + @Override + public byte[] handle(GameSession session, byte[] message) throws Exception { + // Build response + var rsp = GuideMissionInfo.newInstance(); + + // Encode and send + return session.encodeMsg(NetMsgId.guide_mission_info_succeed_ack, rsp); + } + +} diff --git a/src/main/java/emu/nebula/server/handlers/HandlerInfinityTowerApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerInfinityTowerApplyReq.java index bd97287..4e8a237 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerInfinityTowerApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerInfinityTowerApplyReq.java @@ -15,7 +15,7 @@ public class HandlerInfinityTowerApplyReq extends NetHandler { var req = InfinityTowerApplyReq.parseFrom(message); // Apply - boolean success = session.getPlayer().getInfinityTowerManager().apply(req.getLevelId(), req.getBuildId()); + boolean success = session.getPlayer().getInfinityTowerManager().apply(req.getLevelId(), req.getBuild().getBuildId()); if (!success) { return session.encodeMsg(NetMsgId.infinity_tower_apply_failed_ack); diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierApplyReq.java index d5a5759..b7d0ce3 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerSoldierApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierApplyReq.java @@ -1,16 +1,15 @@ package emu.nebula.server.handlers; -import emu.nebula.game.activity.type.SoldierActivity; import emu.nebula.net.GameSession; import emu.nebula.net.HandlerId; import emu.nebula.net.NetHandler; import emu.nebula.net.NetMsgId; -import emu.nebula.proto.SoldierApply.SoldierApplyReq; @HandlerId(NetMsgId.soldier_apply_req) public class HandlerSoldierApplyReq extends NetHandler { @Override public byte[] handle(GameSession session, byte[] message) throws Exception { + /* var req = SoldierApplyReq.parseFrom(message); var activity = session.getPlayer().getActivityManager().getActivity( SoldierActivity.class, req.getSeasonId()); @@ -22,5 +21,8 @@ public class HandlerSoldierApplyReq extends NetHandler { return rsp == null ? session.encodeMsg(NetMsgId.soldier_apply_failed_ack) : session.encodeMsg(NetMsgId.soldier_apply_succeed_ack, rsp); + */ + + return session.encodeMsg(NetMsgId.soldier_apply_failed_ack); } } diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierGiveUpReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierGiveUpReq.java index 4751281..e003a06 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerSoldierGiveUpReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierGiveUpReq.java @@ -1,6 +1,5 @@ package emu.nebula.server.handlers; -import emu.nebula.game.activity.type.SoldierActivity; import emu.nebula.net.GameSession; import emu.nebula.net.HandlerId; import emu.nebula.net.NetHandler; @@ -10,10 +9,14 @@ import emu.nebula.net.NetMsgId; public class HandlerSoldierGiveUpReq extends NetHandler { @Override public byte[] handle(GameSession session, byte[] message) { + /* var activity = session.getPlayer().getActivityManager().getFirstActivity(SoldierActivity.class); var rsp = activity == null ? null : activity.giveUp(); return rsp == null ? session.encodeMsg(NetMsgId.soldier_give_up_failed_ack) : session.encodeMsg(NetMsgId.soldier_give_up_succeed_ack, rsp); + */ + + return session.encodeMsg(NetMsgId.soldier_give_up_failed_ack); } } diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierInfoReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierInfoReq.java index f02c78a..8ba4e38 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerSoldierInfoReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierInfoReq.java @@ -1,6 +1,5 @@ package emu.nebula.server.handlers; -import emu.nebula.game.activity.type.SoldierActivity; import emu.nebula.net.GameSession; import emu.nebula.net.HandlerId; import emu.nebula.net.NetHandler; @@ -10,10 +9,14 @@ import emu.nebula.net.NetMsgId; public class HandlerSoldierInfoReq extends NetHandler { @Override public byte[] handle(GameSession session, byte[] message) { + /* var activity = session.getPlayer().getActivityManager().getFirstActivity(SoldierActivity.class); var info = activity == null ? null : activity.info(); return info == null ? session.encodeMsg(NetMsgId.soldier_info_failed_ack) : session.encodeMsg(NetMsgId.soldier_info_succeed_ack, info); + */ + + return session.encodeMsg(NetMsgId.soldier_info_failed_ack); } } diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierInteractReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierInteractReq.java index 76b8918..16fb487 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerSoldierInteractReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierInteractReq.java @@ -1,21 +1,23 @@ package emu.nebula.server.handlers; -import emu.nebula.game.activity.type.SoldierActivity; import emu.nebula.net.GameSession; import emu.nebula.net.HandlerId; import emu.nebula.net.NetHandler; import emu.nebula.net.NetMsgId; -import emu.nebula.proto.SoldierInteract.SoldierInteractReq; @HandlerId(NetMsgId.soldier_interact_req) public class HandlerSoldierInteractReq extends NetHandler { @Override public byte[] handle(GameSession session, byte[] message) throws Exception { + /* var req = SoldierInteractReq.parseFrom(message); var activity = session.getPlayer().getActivityManager().getFirstActivity(SoldierActivity.class); var rsp = activity == null ? null : activity.interact(req); return rsp == null ? session.encodeMsg(NetMsgId.soldier_interact_failed_ack) : session.encodeMsg(NetMsgId.soldier_interact_succeed_ack, rsp); + */ + + return session.encodeMsg(NetMsgId.soldier_interact_failed_ack); } } diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierPartnerTraceReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierPartnerTraceReq.java index 7fc6914..ed62b4c 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerSoldierPartnerTraceReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierPartnerTraceReq.java @@ -1,21 +1,24 @@ package emu.nebula.server.handlers; -import emu.nebula.game.activity.type.SoldierActivity; import emu.nebula.net.GameSession; import emu.nebula.net.HandlerId; import emu.nebula.net.NetHandler; import emu.nebula.net.NetMsgId; -import emu.nebula.proto.SoldierPartnerTrace.SoldierPartnerTraceReq; @HandlerId(NetMsgId.soldier_partner_trace_req) public class HandlerSoldierPartnerTraceReq extends NetHandler { @Override public byte[] handle(GameSession session, byte[] message) throws Exception { + /* var req = SoldierPartnerTraceReq.parseFrom(message); var activity = session.getPlayer().getActivityManager().getFirstActivity(SoldierActivity.class); if (activity == null || !activity.setPartnerTrace(req.getPartnerType(), req.getTrace())) { return session.encodeMsg(NetMsgId.soldier_partner_trace_failed_ack); } + return session.encodeMsg(NetMsgId.soldier_partner_trace_succeed_ack); + */ + + return session.encodeMsg(NetMsgId.soldier_partner_trace_failed_ack); } } diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierSeasonInfoReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierSeasonInfoReq.java new file mode 100644 index 0000000..685995c --- /dev/null +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierSeasonInfoReq.java @@ -0,0 +1,20 @@ +package emu.nebula.server.handlers; + +import emu.nebula.net.GameSession; +import emu.nebula.net.HandlerId; +import emu.nebula.net.NetHandler; +import emu.nebula.net.NetMsgId; +import emu.nebula.proto.PublicSoldier.SoldierSeasonInfo; + +@HandlerId(NetMsgId.soldier_season_info_req) +public class HandlerSoldierSeasonInfoReq extends NetHandler { + @Override + public byte[] handle(GameSession session, byte[] message) { + // Template response to get rid of errors + var rsp = SoldierSeasonInfo.newInstance() + .setSeasonId(1); + + // Encode and send + return session.encodeMsg(NetMsgId.soldier_season_info_succeed_ack, rsp); + } +} diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierStepOutReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierStepOutReq.java index 650a845..a1f52f0 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerSoldierStepOutReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierStepOutReq.java @@ -1,21 +1,23 @@ package emu.nebula.server.handlers; -import emu.nebula.game.activity.type.SoldierActivity; import emu.nebula.net.GameSession; import emu.nebula.net.HandlerId; import emu.nebula.net.NetHandler; import emu.nebula.net.NetMsgId; -import emu.nebula.proto.SoldierStepOut.SoldierStepOutReq; @HandlerId(NetMsgId.soldier_step_out_req) public class HandlerSoldierStepOutReq extends NetHandler { @Override public byte[] handle(GameSession session, byte[] message) throws Exception { + /* var req = SoldierStepOutReq.parseFrom(message); var activity = session.getPlayer().getActivityManager().getFirstActivity(SoldierActivity.class); if (activity == null || !req.hasDeploy() || !activity.stepOut(req.getDeploy())) { return session.encodeMsg(NetMsgId.soldier_step_out_failed_ack); } return session.encodeMsg(NetMsgId.soldier_step_out_succeed_ack); + */ + + return session.encodeMsg(NetMsgId.soldier_step_out_failed_ack); } } diff --git a/src/main/java/emu/nebula/server/handlers/HandlerSoldierTechnologyInfoReq.java b/src/main/java/emu/nebula/server/handlers/HandlerSoldierTechnologyInfoReq.java new file mode 100644 index 0000000..faa81c4 --- /dev/null +++ b/src/main/java/emu/nebula/server/handlers/HandlerSoldierTechnologyInfoReq.java @@ -0,0 +1,19 @@ +package emu.nebula.server.handlers; + +import emu.nebula.net.GameSession; +import emu.nebula.net.HandlerId; +import emu.nebula.net.NetHandler; +import emu.nebula.net.NetMsgId; +import emu.nebula.proto.Public.Bytes; + +@HandlerId(NetMsgId.soldier_technology_info_req) +public class HandlerSoldierTechnologyInfoReq extends NetHandler { + @Override + public byte[] handle(GameSession session, byte[] message) { + // Template response to get rid of errors + var rsp = Bytes.newInstance(); + + // Encode and send + return session.encodeMsg(NetMsgId.soldier_technology_info_succeed_ack, rsp); + } +} diff --git a/src/main/java/emu/nebula/server/handlers/HandlerTowerVitaProjectListReq.java b/src/main/java/emu/nebula/server/handlers/HandlerTowerVitaProjectListReq.java new file mode 100644 index 0000000..153c04f --- /dev/null +++ b/src/main/java/emu/nebula/server/handlers/HandlerTowerVitaProjectListReq.java @@ -0,0 +1,21 @@ +package emu.nebula.server.handlers; + +import emu.nebula.net.NetHandler; +import emu.nebula.net.NetMsgId; +import emu.nebula.proto.TowerVitaProjectList.TowerVitaProjectListResp; +import emu.nebula.net.HandlerId; +import emu.nebula.net.GameSession; + +@HandlerId(NetMsgId.tower_vita_project_list_req) +public class HandlerTowerVitaProjectListReq extends NetHandler { + + @Override + public byte[] handle(GameSession session, byte[] message) throws Exception { + // Build response + var rsp = TowerVitaProjectListResp.newInstance(); + + // Encode and send + return session.encodeMsg(NetMsgId.tower_vita_project_list_succeed_ack, rsp); + } + +} diff --git a/src/main/java/emu/nebula/server/handlers/HandlerTraceHuntApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerTraceHuntApplyReq.java index 07ab86b..3c21d69 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerTraceHuntApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerTraceHuntApplyReq.java @@ -15,7 +15,7 @@ public class HandlerTraceHuntApplyReq extends NetHandler { var req = TraceHuntApplyReq.parseFrom(message); // Hunt - boolean success = session.getPlayer().getTraceHuntManager().apply(req.getOwnerUID(), req.getBossID(), req.getBuildID()); + boolean success = session.getPlayer().getTraceHuntManager().apply(req.getOwnerUID(), req.getBossID(), req.getBuild().getBuildId()); if (!success) { return session.encodeMsg(NetMsgId.trace_hunt_apply_failed_ack); diff --git a/src/main/java/emu/nebula/server/handlers/HandlerVampireSurvivorApplyReq.java b/src/main/java/emu/nebula/server/handlers/HandlerVampireSurvivorApplyReq.java index a938576..b5b5eb7 100644 --- a/src/main/java/emu/nebula/server/handlers/HandlerVampireSurvivorApplyReq.java +++ b/src/main/java/emu/nebula/server/handlers/HandlerVampireSurvivorApplyReq.java @@ -16,7 +16,7 @@ public class HandlerVampireSurvivorApplyReq extends NetHandler { var req = VampireSurvivorApplyReq.parseFrom(message); // Apply - var game = session.getPlayer().getVampireSurvivorManager().apply(req.getId(), req.getBuildIds()); + var game = session.getPlayer().getVampireSurvivorManager().apply(req.getId(), req.getBuilds()); if (game == null) { return session.encodeMsg(NetMsgId.vampire_survivor_apply_failed_ack); diff --git a/src/main/resources/versions.json b/src/main/resources/versions.json index f757c43..4396446 100644 --- a/src/main/resources/versions.json +++ b/src/main/resources/versions.json @@ -1,7 +1,7 @@ { - "global": 140, - "kr": 146, - "jp": 142, - "tw": 148, - "cn": 139 + "global": 141, + "kr": 147, + "jp": 143, + "tw": 149, + "cn": 140 } \ No newline at end of file