diff --git a/src/generated/main/emu/lunarcore/proto/AIAFLIFPJFPOuterClass.java b/src/generated/main/emu/lunarcore/proto/AIAFLIFPJFPOuterClass.java new file mode 100644 index 000000000..abdc960d0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AIAFLIFPJFPOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class AIAFLIFPJFPOuterClass { + /** + * Protobuf type {@code AIAFLIFPJFP} + */ + public static final class AIAFLIFPJFP extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 12; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 DAAEAJFCNKN = 8; + */ + private final RepeatedInt dAAEAJFCNKN = RepeatedInt.newEmptyInstance(); + + private AIAFLIFPJFP() { + } + + /** + * @return a new empty instance of {@code AIAFLIFPJFP} + */ + public static AIAFLIFPJFP newInstance() { + return new AIAFLIFPJFP(); + } + + /** + * optional uint32 DCECFOKFIHH = 12; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 12; + * @return this + */ + public AIAFLIFPJFP clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 12; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 12; + * @param value the dCECFOKFIHH to set + * @return this + */ + public AIAFLIFPJFP setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 DAAEAJFCNKN = 8; + * @return whether the dAAEAJFCNKN field is set + */ + public boolean hasDAAEAJFCNKN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 DAAEAJFCNKN = 8; + * @return this + */ + public AIAFLIFPJFP clearDAAEAJFCNKN() { + bitField0_ &= ~0x00000002; + dAAEAJFCNKN.clear(); + return this; + } + + /** + * repeated uint32 DAAEAJFCNKN = 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 #getMutableDAAEAJFCNKN()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDAAEAJFCNKN() { + return dAAEAJFCNKN; + } + + /** + * repeated uint32 DAAEAJFCNKN = 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 RepeatedInt getMutableDAAEAJFCNKN() { + bitField0_ |= 0x00000002; + return dAAEAJFCNKN; + } + + /** + * repeated uint32 DAAEAJFCNKN = 8; + * @param value the dAAEAJFCNKN to add + * @return this + */ + public AIAFLIFPJFP addDAAEAJFCNKN(final int value) { + bitField0_ |= 0x00000002; + dAAEAJFCNKN.add(value); + return this; + } + + /** + * repeated uint32 DAAEAJFCNKN = 8; + * @param values the dAAEAJFCNKN to add + * @return this + */ + public AIAFLIFPJFP addAllDAAEAJFCNKN(final int... values) { + bitField0_ |= 0x00000002; + dAAEAJFCNKN.addAll(values); + return this; + } + + @Override + public AIAFLIFPJFP copyFrom(final AIAFLIFPJFP other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + dAAEAJFCNKN.copyFrom(other.dAAEAJFCNKN); + } + return this; + } + + @Override + public AIAFLIFPJFP mergeFrom(final AIAFLIFPJFP other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasDAAEAJFCNKN()) { + getMutableDAAEAJFCNKN().addAll(other.dAAEAJFCNKN); + } + return this; + } + + @Override + public AIAFLIFPJFP clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + dAAEAJFCNKN.clear(); + return this; + } + + @Override + public AIAFLIFPJFP clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dAAEAJFCNKN.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AIAFLIFPJFP)) { + return false; + } + AIAFLIFPJFP other = (AIAFLIFPJFP) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasDAAEAJFCNKN() || dAAEAJFCNKN.equals(other.dAAEAJFCNKN)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < dAAEAJFCNKN.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(dAAEAJFCNKN.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * dAAEAJFCNKN.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dAAEAJFCNKN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AIAFLIFPJFP mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // dAAEAJFCNKN [packed=true] + input.readPackedUInt32(dAAEAJFCNKN, 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 64: { + // dAAEAJFCNKN [packed=false] + tag = input.readRepeatedUInt32(dAAEAJFCNKN, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.dAAEAJFCNKN, dAAEAJFCNKN); + } + output.endObject(); + } + + @Override + public AIAFLIFPJFP mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 690763082: { + if (input.isAtField(FieldNames.dAAEAJFCNKN)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(dAAEAJFCNKN); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AIAFLIFPJFP clone() { + return new AIAFLIFPJFP().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AIAFLIFPJFP parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AIAFLIFPJFP(), data).checkInitialized(); + } + + public static AIAFLIFPJFP parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AIAFLIFPJFP(), input).checkInitialized(); + } + + public static AIAFLIFPJFP parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AIAFLIFPJFP(), input).checkInitialized(); + } + + /** + * @return factory for creating AIAFLIFPJFP messages + */ + public static MessageFactory getFactory() { + return AIAFLIFPJFPFactory.INSTANCE; + } + + private enum AIAFLIFPJFPFactory implements MessageFactory { + INSTANCE; + + @Override + public AIAFLIFPJFP create() { + return AIAFLIFPJFP.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName dAAEAJFCNKN = FieldName.forField("DAAEAJFCNKN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CBEPEJDDBHKOuterClass.java b/src/generated/main/emu/lunarcore/proto/CBEPEJDDBHKOuterClass.java new file mode 100644 index 000000000..e0751fd13 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CBEPEJDDBHKOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class CBEPEJDDBHKOuterClass { + /** + * Protobuf type {@code CBEPEJDDBHK} + */ + public static final class CBEPEJDDBHK extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 formula_id = 7; + */ + private int formulaId; + + private CBEPEJDDBHK() { + } + + /** + * @return a new empty instance of {@code CBEPEJDDBHK} + */ + public static CBEPEJDDBHK newInstance() { + return new CBEPEJDDBHK(); + } + + /** + * optional uint32 formula_id = 7; + * @return whether the formulaId field is set + */ + public boolean hasFormulaId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 formula_id = 7; + * @return this + */ + public CBEPEJDDBHK clearFormulaId() { + bitField0_ &= ~0x00000001; + formulaId = 0; + return this; + } + + /** + * optional uint32 formula_id = 7; + * @return the formulaId + */ + public int getFormulaId() { + return formulaId; + } + + /** + * optional uint32 formula_id = 7; + * @param value the formulaId to set + * @return this + */ + public CBEPEJDDBHK setFormulaId(final int value) { + bitField0_ |= 0x00000001; + formulaId = value; + return this; + } + + @Override + public CBEPEJDDBHK copyFrom(final CBEPEJDDBHK other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + formulaId = other.formulaId; + } + return this; + } + + @Override + public CBEPEJDDBHK mergeFrom(final CBEPEJDDBHK other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFormulaId()) { + setFormulaId(other.formulaId); + } + return this; + } + + @Override + public CBEPEJDDBHK clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaId = 0; + return this; + } + + @Override + public CBEPEJDDBHK clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CBEPEJDDBHK)) { + return false; + } + CBEPEJDDBHK other = (CBEPEJDDBHK) o; + return bitField0_ == other.bitField0_ + && (!hasFormulaId() || formulaId == other.formulaId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(formulaId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(formulaId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CBEPEJDDBHK mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // formulaId + formulaId = input.readUInt32(); + 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.writeUInt32(FieldNames.formulaId, formulaId); + } + output.endObject(); + } + + @Override + public CBEPEJDDBHK mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1829804321: + case 889380500: { + if (input.isAtField(FieldNames.formulaId)) { + if (!input.trySkipNullValue()) { + formulaId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CBEPEJDDBHK clone() { + return new CBEPEJDDBHK().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CBEPEJDDBHK parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CBEPEJDDBHK(), data).checkInitialized(); + } + + public static CBEPEJDDBHK parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CBEPEJDDBHK(), input).checkInitialized(); + } + + public static CBEPEJDDBHK parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CBEPEJDDBHK(), input).checkInitialized(); + } + + /** + * @return factory for creating CBEPEJDDBHK messages + */ + public static MessageFactory getFactory() { + return CBEPEJDDBHKFactory.INSTANCE; + } + + private enum CBEPEJDDBHKFactory implements MessageFactory { + INSTANCE; + + @Override + public CBEPEJDDBHK create() { + return CBEPEJDDBHK.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName formulaId = FieldName.forField("formulaId", "formula_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CHKJICPBHPAOuterClass.java b/src/generated/main/emu/lunarcore/proto/CHKJICPBHPAOuterClass.java new file mode 100644 index 000000000..92fcc0791 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CHKJICPBHPAOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class CHKJICPBHPAOuterClass { + /** + * Protobuf type {@code CHKJICPBHPA} + */ + public static final class CHKJICPBHPA extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueFormulaSelectInfo rogue_formula_select_info = 2; + */ + private final RogueFormulaSelectInfoOuterClass.RogueFormulaSelectInfo rogueFormulaSelectInfo = RogueFormulaSelectInfoOuterClass.RogueFormulaSelectInfo.newInstance(); + + private CHKJICPBHPA() { + } + + /** + * @return a new empty instance of {@code CHKJICPBHPA} + */ + public static CHKJICPBHPA newInstance() { + return new CHKJICPBHPA(); + } + + /** + * optional .RogueFormulaSelectInfo rogue_formula_select_info = 2; + * @return whether the rogueFormulaSelectInfo field is set + */ + public boolean hasRogueFormulaSelectInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueFormulaSelectInfo rogue_formula_select_info = 2; + * @return this + */ + public CHKJICPBHPA clearRogueFormulaSelectInfo() { + bitField0_ &= ~0x00000001; + rogueFormulaSelectInfo.clear(); + return this; + } + + /** + * optional .RogueFormulaSelectInfo rogue_formula_select_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 #getMutableRogueFormulaSelectInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueFormulaSelectInfoOuterClass.RogueFormulaSelectInfo getRogueFormulaSelectInfo() { + return rogueFormulaSelectInfo; + } + + /** + * optional .RogueFormulaSelectInfo rogue_formula_select_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 RogueFormulaSelectInfoOuterClass.RogueFormulaSelectInfo getMutableRogueFormulaSelectInfo( + ) { + bitField0_ |= 0x00000001; + return rogueFormulaSelectInfo; + } + + /** + * optional .RogueFormulaSelectInfo rogue_formula_select_info = 2; + * @param value the rogueFormulaSelectInfo to set + * @return this + */ + public CHKJICPBHPA setRogueFormulaSelectInfo( + final RogueFormulaSelectInfoOuterClass.RogueFormulaSelectInfo value) { + bitField0_ |= 0x00000001; + rogueFormulaSelectInfo.copyFrom(value); + return this; + } + + @Override + public CHKJICPBHPA copyFrom(final CHKJICPBHPA other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueFormulaSelectInfo.copyFrom(other.rogueFormulaSelectInfo); + } + return this; + } + + @Override + public CHKJICPBHPA mergeFrom(final CHKJICPBHPA other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueFormulaSelectInfo()) { + getMutableRogueFormulaSelectInfo().mergeFrom(other.rogueFormulaSelectInfo); + } + return this; + } + + @Override + public CHKJICPBHPA clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueFormulaSelectInfo.clear(); + return this; + } + + @Override + public CHKJICPBHPA clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueFormulaSelectInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CHKJICPBHPA)) { + return false; + } + CHKJICPBHPA other = (CHKJICPBHPA) o; + return bitField0_ == other.bitField0_ + && (!hasRogueFormulaSelectInfo() || rogueFormulaSelectInfo.equals(other.rogueFormulaSelectInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rogueFormulaSelectInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueFormulaSelectInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CHKJICPBHPA mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // rogueFormulaSelectInfo + input.readMessage(rogueFormulaSelectInfo); + 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.writeMessage(FieldNames.rogueFormulaSelectInfo, rogueFormulaSelectInfo); + } + output.endObject(); + } + + @Override + public CHKJICPBHPA mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -405518570: + case 717948627: { + if (input.isAtField(FieldNames.rogueFormulaSelectInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueFormulaSelectInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CHKJICPBHPA clone() { + return new CHKJICPBHPA().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CHKJICPBHPA parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CHKJICPBHPA(), data).checkInitialized(); + } + + public static CHKJICPBHPA parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CHKJICPBHPA(), input).checkInitialized(); + } + + public static CHKJICPBHPA parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CHKJICPBHPA(), input).checkInitialized(); + } + + /** + * @return factory for creating CHKJICPBHPA messages + */ + public static MessageFactory getFactory() { + return CHKJICPBHPAFactory.INSTANCE; + } + + private enum CHKJICPBHPAFactory implements MessageFactory { + INSTANCE; + + @Override + public CHKJICPBHPA create() { + return CHKJICPBHPA.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueFormulaSelectInfo = FieldName.forField("rogueFormulaSelectInfo", "rogue_formula_select_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CellAdvanceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/CellAdvanceInfoOuterClass.java new file mode 100644 index 000000000..c3a5f5f5f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CellAdvanceInfoOuterClass.java @@ -0,0 +1,531 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class CellAdvanceInfoOuterClass { + /** + * Protobuf type {@code CellAdvanceInfo} + */ + public static final class CellAdvanceInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .HDGLNDMEMED APDAFMCMJJE = 6; + */ + private final HDGLNDMEMEDOuterClass.HDGLNDMEMED aPDAFMCMJJE = HDGLNDMEMEDOuterClass.HDGLNDMEMED.newInstance(); + + /** + * optional .CellMonsterInfo boss_info = 7; + */ + private final CellMonsterInfoOuterClass.CellMonsterInfo bossInfo = CellMonsterInfoOuterClass.CellMonsterInfo.newInstance(); + + /** + * optional .CellMonsterSelectInfo select_boss_info = 8; + */ + private final CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo selectBossInfo = CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo.newInstance(); + + private CellAdvanceInfo() { + } + + /** + * @return a new empty instance of {@code CellAdvanceInfo} + */ + public static CellAdvanceInfo newInstance() { + return new CellAdvanceInfo(); + } + + public boolean hasHBLKMDPJDKE() { + return (((bitField0_ & 0x00000007)) != 0); + } + + public CellAdvanceInfo clearHBLKMDPJDKE() { + if (hasHBLKMDPJDKE()) { + clearAPDAFMCMJJE(); + clearBossInfo(); + clearSelectBossInfo(); + } + return this; + } + + private void clearHBLKMDPJDKEOtherAPDAFMCMJJE() { + if ((((bitField0_ & 0x00000006)) != 0)) { + clearBossInfo(); + clearSelectBossInfo(); + } + } + + private void clearHBLKMDPJDKEOtherBossInfo() { + if ((((bitField0_ & 0x00000005)) != 0)) { + clearAPDAFMCMJJE(); + clearSelectBossInfo(); + } + } + + private void clearHBLKMDPJDKEOtherSelectBossInfo() { + if ((((bitField0_ & 0x00000003)) != 0)) { + clearAPDAFMCMJJE(); + clearBossInfo(); + } + } + + /** + * optional .HDGLNDMEMED APDAFMCMJJE = 6; + * @return whether the aPDAFMCMJJE field is set + */ + public boolean hasAPDAFMCMJJE() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .HDGLNDMEMED APDAFMCMJJE = 6; + * @return this + */ + public CellAdvanceInfo clearAPDAFMCMJJE() { + bitField0_ &= ~0x00000001; + aPDAFMCMJJE.clear(); + return this; + } + + /** + * optional .HDGLNDMEMED APDAFMCMJJE = 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 #getMutableAPDAFMCMJJE()} if you want to modify it. + * + * @return internal storage object for reading + */ + public HDGLNDMEMEDOuterClass.HDGLNDMEMED getAPDAFMCMJJE() { + return aPDAFMCMJJE; + } + + /** + * optional .HDGLNDMEMED APDAFMCMJJE = 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 HDGLNDMEMEDOuterClass.HDGLNDMEMED getMutableAPDAFMCMJJE() { + clearHBLKMDPJDKEOtherAPDAFMCMJJE(); + bitField0_ |= 0x00000001; + return aPDAFMCMJJE; + } + + /** + * optional .HDGLNDMEMED APDAFMCMJJE = 6; + * @param value the aPDAFMCMJJE to set + * @return this + */ + public CellAdvanceInfo setAPDAFMCMJJE(final HDGLNDMEMEDOuterClass.HDGLNDMEMED value) { + clearHBLKMDPJDKEOtherAPDAFMCMJJE(); + bitField0_ |= 0x00000001; + aPDAFMCMJJE.copyFrom(value); + return this; + } + + /** + * optional .CellMonsterInfo boss_info = 7; + * @return whether the bossInfo field is set + */ + public boolean hasBossInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .CellMonsterInfo boss_info = 7; + * @return this + */ + public CellAdvanceInfo clearBossInfo() { + bitField0_ &= ~0x00000002; + bossInfo.clear(); + return this; + } + + /** + * optional .CellMonsterInfo boss_info = 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 #getMutableBossInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellMonsterInfoOuterClass.CellMonsterInfo getBossInfo() { + return bossInfo; + } + + /** + * optional .CellMonsterInfo boss_info = 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 CellMonsterInfoOuterClass.CellMonsterInfo getMutableBossInfo() { + clearHBLKMDPJDKEOtherBossInfo(); + bitField0_ |= 0x00000002; + return bossInfo; + } + + /** + * optional .CellMonsterInfo boss_info = 7; + * @param value the bossInfo to set + * @return this + */ + public CellAdvanceInfo setBossInfo(final CellMonsterInfoOuterClass.CellMonsterInfo value) { + clearHBLKMDPJDKEOtherBossInfo(); + bitField0_ |= 0x00000002; + bossInfo.copyFrom(value); + return this; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 8; + * @return whether the selectBossInfo field is set + */ + public boolean hasSelectBossInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 8; + * @return this + */ + public CellAdvanceInfo clearSelectBossInfo() { + bitField0_ &= ~0x00000004; + selectBossInfo.clear(); + return this; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 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 #getMutableSelectBossInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo getSelectBossInfo() { + return selectBossInfo; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 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 CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo getMutableSelectBossInfo() { + clearHBLKMDPJDKEOtherSelectBossInfo(); + bitField0_ |= 0x00000004; + return selectBossInfo; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 8; + * @param value the selectBossInfo to set + * @return this + */ + public CellAdvanceInfo setSelectBossInfo( + final CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo value) { + clearHBLKMDPJDKEOtherSelectBossInfo(); + bitField0_ |= 0x00000004; + selectBossInfo.copyFrom(value); + return this; + } + + @Override + public CellAdvanceInfo copyFrom(final CellAdvanceInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aPDAFMCMJJE.copyFrom(other.aPDAFMCMJJE); + bossInfo.copyFrom(other.bossInfo); + selectBossInfo.copyFrom(other.selectBossInfo); + } + return this; + } + + @Override + public CellAdvanceInfo mergeFrom(final CellAdvanceInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAPDAFMCMJJE()) { + getMutableAPDAFMCMJJE().mergeFrom(other.aPDAFMCMJJE); + } + if (other.hasBossInfo()) { + getMutableBossInfo().mergeFrom(other.bossInfo); + } + if (other.hasSelectBossInfo()) { + getMutableSelectBossInfo().mergeFrom(other.selectBossInfo); + } + return this; + } + + @Override + public CellAdvanceInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aPDAFMCMJJE.clear(); + bossInfo.clear(); + selectBossInfo.clear(); + return this; + } + + @Override + public CellAdvanceInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aPDAFMCMJJE.clearQuick(); + bossInfo.clearQuick(); + selectBossInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CellAdvanceInfo)) { + return false; + } + CellAdvanceInfo other = (CellAdvanceInfo) o; + return bitField0_ == other.bitField0_ + && (!hasAPDAFMCMJJE() || aPDAFMCMJJE.equals(other.aPDAFMCMJJE)) + && (!hasBossInfo() || bossInfo.equals(other.bossInfo)) + && (!hasSelectBossInfo() || selectBossInfo.equals(other.selectBossInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(aPDAFMCMJJE); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(bossInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(selectBossInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(aPDAFMCMJJE); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(bossInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(selectBossInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CellAdvanceInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 50: { + // aPDAFMCMJJE + clearHBLKMDPJDKEOtherAPDAFMCMJJE(); + input.readMessage(aPDAFMCMJJE); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // bossInfo + clearHBLKMDPJDKEOtherBossInfo(); + input.readMessage(bossInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // selectBossInfo + clearHBLKMDPJDKEOtherSelectBossInfo(); + input.readMessage(selectBossInfo); + 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.aPDAFMCMJJE, aPDAFMCMJJE); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.bossInfo, bossInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.selectBossInfo, selectBossInfo); + } + output.endObject(); + } + + @Override + public CellAdvanceInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -443793528: { + if (input.isAtField(FieldNames.aPDAFMCMJJE)) { + if (!input.trySkipNullValue()) { + clearHBLKMDPJDKEOtherAPDAFMCMJJE(); + input.readMessage(aPDAFMCMJJE); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2126222779: + case 1508572736: { + if (input.isAtField(FieldNames.bossInfo)) { + if (!input.trySkipNullValue()) { + clearHBLKMDPJDKEOtherBossInfo(); + input.readMessage(bossInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1216449833: + case -1646648643: { + if (input.isAtField(FieldNames.selectBossInfo)) { + if (!input.trySkipNullValue()) { + clearHBLKMDPJDKEOtherSelectBossInfo(); + input.readMessage(selectBossInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CellAdvanceInfo clone() { + return new CellAdvanceInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CellAdvanceInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CellAdvanceInfo(), data).checkInitialized(); + } + + public static CellAdvanceInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellAdvanceInfo(), input).checkInitialized(); + } + + public static CellAdvanceInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellAdvanceInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating CellAdvanceInfo messages + */ + public static MessageFactory getFactory() { + return CellAdvanceInfoFactory.INSTANCE; + } + + private enum CellAdvanceInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public CellAdvanceInfo create() { + return CellAdvanceInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aPDAFMCMJJE = FieldName.forField("APDAFMCMJJE"); + + static final FieldName bossInfo = FieldName.forField("bossInfo", "boss_info"); + + static final FieldName selectBossInfo = FieldName.forField("selectBossInfo", "select_boss_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CellInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/CellInfoOuterClass.java new file mode 100644 index 000000000..5d5aa8589 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CellInfoOuterClass.java @@ -0,0 +1,615 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class CellInfoOuterClass { + /** + * Protobuf type {@code CellInfo} + */ + public static final class CellInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FGEOEOPLMCP = 5; + */ + private int fGEOEOPLMCP; + + /** + * optional uint32 start_cell_id = 7; + */ + private int startCellId; + + /** + * optional uint32 EPOELFJDPNI = 9; + */ + private int ePOELFJDPNI; + + /** + * optional uint32 end_cell_id = 10; + */ + private int endCellId; + + /** + * repeated .ChessRogueCell cell_list = 14; + */ + private final RepeatedMessage cellList = RepeatedMessage.newEmptyInstance(ChessRogueCellOuterClass.ChessRogueCell.getFactory()); + + private CellInfo() { + } + + /** + * @return a new empty instance of {@code CellInfo} + */ + public static CellInfo newInstance() { + return new CellInfo(); + } + + /** + * optional uint32 FGEOEOPLMCP = 5; + * @return whether the fGEOEOPLMCP field is set + */ + public boolean hasFGEOEOPLMCP() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FGEOEOPLMCP = 5; + * @return this + */ + public CellInfo clearFGEOEOPLMCP() { + bitField0_ &= ~0x00000001; + fGEOEOPLMCP = 0; + return this; + } + + /** + * optional uint32 FGEOEOPLMCP = 5; + * @return the fGEOEOPLMCP + */ + public int getFGEOEOPLMCP() { + return fGEOEOPLMCP; + } + + /** + * optional uint32 FGEOEOPLMCP = 5; + * @param value the fGEOEOPLMCP to set + * @return this + */ + public CellInfo setFGEOEOPLMCP(final int value) { + bitField0_ |= 0x00000001; + fGEOEOPLMCP = value; + return this; + } + + /** + * optional uint32 start_cell_id = 7; + * @return whether the startCellId field is set + */ + public boolean hasStartCellId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 start_cell_id = 7; + * @return this + */ + public CellInfo clearStartCellId() { + bitField0_ &= ~0x00000002; + startCellId = 0; + return this; + } + + /** + * optional uint32 start_cell_id = 7; + * @return the startCellId + */ + public int getStartCellId() { + return startCellId; + } + + /** + * optional uint32 start_cell_id = 7; + * @param value the startCellId to set + * @return this + */ + public CellInfo setStartCellId(final int value) { + bitField0_ |= 0x00000002; + startCellId = value; + return this; + } + + /** + * optional uint32 EPOELFJDPNI = 9; + * @return whether the ePOELFJDPNI field is set + */ + public boolean hasEPOELFJDPNI() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 EPOELFJDPNI = 9; + * @return this + */ + public CellInfo clearEPOELFJDPNI() { + bitField0_ &= ~0x00000004; + ePOELFJDPNI = 0; + return this; + } + + /** + * optional uint32 EPOELFJDPNI = 9; + * @return the ePOELFJDPNI + */ + public int getEPOELFJDPNI() { + return ePOELFJDPNI; + } + + /** + * optional uint32 EPOELFJDPNI = 9; + * @param value the ePOELFJDPNI to set + * @return this + */ + public CellInfo setEPOELFJDPNI(final int value) { + bitField0_ |= 0x00000004; + ePOELFJDPNI = value; + return this; + } + + /** + * optional uint32 end_cell_id = 10; + * @return whether the endCellId field is set + */ + public boolean hasEndCellId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 end_cell_id = 10; + * @return this + */ + public CellInfo clearEndCellId() { + bitField0_ &= ~0x00000008; + endCellId = 0; + return this; + } + + /** + * optional uint32 end_cell_id = 10; + * @return the endCellId + */ + public int getEndCellId() { + return endCellId; + } + + /** + * optional uint32 end_cell_id = 10; + * @param value the endCellId to set + * @return this + */ + public CellInfo setEndCellId(final int value) { + bitField0_ |= 0x00000008; + endCellId = value; + return this; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @return whether the cellList field is set + */ + public boolean hasCellList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @return this + */ + public CellInfo clearCellList() { + bitField0_ &= ~0x00000010; + cellList.clear(); + return this; + } + + /** + * repeated .ChessRogueCell cell_list = 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 #getMutableCellList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCellList() { + return cellList; + } + + /** + * repeated .ChessRogueCell cell_list = 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 RepeatedMessage getMutableCellList() { + bitField0_ |= 0x00000010; + return cellList; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @param value the cellList to add + * @return this + */ + public CellInfo addCellList(final ChessRogueCellOuterClass.ChessRogueCell value) { + bitField0_ |= 0x00000010; + cellList.add(value); + return this; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @param values the cellList to add + * @return this + */ + public CellInfo addAllCellList(final ChessRogueCellOuterClass.ChessRogueCell... values) { + bitField0_ |= 0x00000010; + cellList.addAll(values); + return this; + } + + @Override + public CellInfo copyFrom(final CellInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fGEOEOPLMCP = other.fGEOEOPLMCP; + startCellId = other.startCellId; + ePOELFJDPNI = other.ePOELFJDPNI; + endCellId = other.endCellId; + cellList.copyFrom(other.cellList); + } + return this; + } + + @Override + public CellInfo mergeFrom(final CellInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFGEOEOPLMCP()) { + setFGEOEOPLMCP(other.fGEOEOPLMCP); + } + if (other.hasStartCellId()) { + setStartCellId(other.startCellId); + } + if (other.hasEPOELFJDPNI()) { + setEPOELFJDPNI(other.ePOELFJDPNI); + } + if (other.hasEndCellId()) { + setEndCellId(other.endCellId); + } + if (other.hasCellList()) { + getMutableCellList().addAll(other.cellList); + } + return this; + } + + @Override + public CellInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fGEOEOPLMCP = 0; + startCellId = 0; + ePOELFJDPNI = 0; + endCellId = 0; + cellList.clear(); + return this; + } + + @Override + public CellInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CellInfo)) { + return false; + } + CellInfo other = (CellInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFGEOEOPLMCP() || fGEOEOPLMCP == other.fGEOEOPLMCP) + && (!hasStartCellId() || startCellId == other.startCellId) + && (!hasEPOELFJDPNI() || ePOELFJDPNI == other.ePOELFJDPNI) + && (!hasEndCellId() || endCellId == other.endCellId) + && (!hasCellList() || cellList.equals(other.cellList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(fGEOEOPLMCP); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(startCellId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(ePOELFJDPNI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(endCellId); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < cellList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(cellList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fGEOEOPLMCP); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(startCellId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(ePOELFJDPNI); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(endCellId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * cellList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cellList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CellInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // fGEOEOPLMCP + fGEOEOPLMCP = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // startCellId + startCellId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // ePOELFJDPNI + ePOELFJDPNI = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // endCellId + endCellId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // cellList + tag = input.readRepeatedMessage(cellList, tag); + bitField0_ |= 0x00000010; + 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.fGEOEOPLMCP, fGEOEOPLMCP); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.startCellId, startCellId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.ePOELFJDPNI, ePOELFJDPNI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.endCellId, endCellId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.cellList, cellList); + } + output.endObject(); + } + + @Override + public CellInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1228792841: { + if (input.isAtField(FieldNames.fGEOEOPLMCP)) { + if (!input.trySkipNullValue()) { + fGEOEOPLMCP = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1956716831: + case -1211122117: { + if (input.isAtField(FieldNames.startCellId)) { + if (!input.trySkipNullValue()) { + startCellId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1768332918: { + if (input.isAtField(FieldNames.ePOELFJDPNI)) { + if (!input.trySkipNullValue()) { + ePOELFJDPNI = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1137108696: + case 1419442612: { + if (input.isAtField(FieldNames.endCellId)) { + if (!input.trySkipNullValue()) { + endCellId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -917820128: + case 1629973851: { + if (input.isAtField(FieldNames.cellList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(cellList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CellInfo clone() { + return new CellInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CellInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CellInfo(), data).checkInitialized(); + } + + public static CellInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellInfo(), input).checkInitialized(); + } + + public static CellInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating CellInfo messages + */ + public static MessageFactory getFactory() { + return CellInfoFactory.INSTANCE; + } + + private enum CellInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public CellInfo create() { + return CellInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fGEOEOPLMCP = FieldName.forField("FGEOEOPLMCP"); + + static final FieldName startCellId = FieldName.forField("startCellId", "start_cell_id"); + + static final FieldName ePOELFJDPNI = FieldName.forField("EPOELFJDPNI"); + + static final FieldName endCellId = FieldName.forField("endCellId", "end_cell_id"); + + static final FieldName cellList = FieldName.forField("cellList", "cell_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CellMonsterInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/CellMonsterInfoOuterClass.java new file mode 100644 index 000000000..2782e7e62 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CellMonsterInfoOuterClass.java @@ -0,0 +1,455 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class CellMonsterInfoOuterClass { + /** + * Protobuf type {@code CellMonsterInfo} + */ + public static final class CellMonsterInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 select_boss_id = 13; + */ + private int selectBossId; + + /** + * optional bool confirm = 9; + */ + private boolean confirm; + + /** + * repeated .CellMonster monster_list = 3; + */ + private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(CellMonsterOuterClass.CellMonster.getFactory()); + + private CellMonsterInfo() { + } + + /** + * @return a new empty instance of {@code CellMonsterInfo} + */ + public static CellMonsterInfo newInstance() { + return new CellMonsterInfo(); + } + + /** + * optional uint32 select_boss_id = 13; + * @return whether the selectBossId field is set + */ + public boolean hasSelectBossId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 select_boss_id = 13; + * @return this + */ + public CellMonsterInfo clearSelectBossId() { + bitField0_ &= ~0x00000001; + selectBossId = 0; + return this; + } + + /** + * optional uint32 select_boss_id = 13; + * @return the selectBossId + */ + public int getSelectBossId() { + return selectBossId; + } + + /** + * optional uint32 select_boss_id = 13; + * @param value the selectBossId to set + * @return this + */ + public CellMonsterInfo setSelectBossId(final int value) { + bitField0_ |= 0x00000001; + selectBossId = value; + return this; + } + + /** + * optional bool confirm = 9; + * @return whether the confirm field is set + */ + public boolean hasConfirm() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool confirm = 9; + * @return this + */ + public CellMonsterInfo clearConfirm() { + bitField0_ &= ~0x00000002; + confirm = false; + return this; + } + + /** + * optional bool confirm = 9; + * @return the confirm + */ + public boolean getConfirm() { + return confirm; + } + + /** + * optional bool confirm = 9; + * @param value the confirm to set + * @return this + */ + public CellMonsterInfo setConfirm(final boolean value) { + bitField0_ |= 0x00000002; + confirm = value; + return this; + } + + /** + * repeated .CellMonster monster_list = 3; + * @return whether the monsterList field is set + */ + public boolean hasMonsterList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .CellMonster monster_list = 3; + * @return this + */ + public CellMonsterInfo clearMonsterList() { + bitField0_ &= ~0x00000004; + monsterList.clear(); + return this; + } + + /** + * repeated .CellMonster monster_list = 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 #getMutableMonsterList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMonsterList() { + return monsterList; + } + + /** + * repeated .CellMonster monster_list = 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 getMutableMonsterList() { + bitField0_ |= 0x00000004; + return monsterList; + } + + /** + * repeated .CellMonster monster_list = 3; + * @param value the monsterList to add + * @return this + */ + public CellMonsterInfo addMonsterList(final CellMonsterOuterClass.CellMonster value) { + bitField0_ |= 0x00000004; + monsterList.add(value); + return this; + } + + /** + * repeated .CellMonster monster_list = 3; + * @param values the monsterList to add + * @return this + */ + public CellMonsterInfo addAllMonsterList(final CellMonsterOuterClass.CellMonster... values) { + bitField0_ |= 0x00000004; + monsterList.addAll(values); + return this; + } + + @Override + public CellMonsterInfo copyFrom(final CellMonsterInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + selectBossId = other.selectBossId; + confirm = other.confirm; + monsterList.copyFrom(other.monsterList); + } + return this; + } + + @Override + public CellMonsterInfo mergeFrom(final CellMonsterInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSelectBossId()) { + setSelectBossId(other.selectBossId); + } + if (other.hasConfirm()) { + setConfirm(other.confirm); + } + if (other.hasMonsterList()) { + getMutableMonsterList().addAll(other.monsterList); + } + return this; + } + + @Override + public CellMonsterInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + selectBossId = 0; + confirm = false; + monsterList.clear(); + return this; + } + + @Override + public CellMonsterInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + monsterList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CellMonsterInfo)) { + return false; + } + CellMonsterInfo other = (CellMonsterInfo) o; + return bitField0_ == other.bitField0_ + && (!hasSelectBossId() || selectBossId == other.selectBossId) + && (!hasConfirm() || confirm == other.confirm) + && (!hasMonsterList() || monsterList.equals(other.monsterList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(selectBossId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(confirm); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < monsterList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(monsterList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBossId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CellMonsterInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // selectBossId + selectBossId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // confirm + confirm = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // monsterList + tag = input.readRepeatedMessage(monsterList, 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.selectBossId, selectBossId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.confirm, confirm); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.monsterList, monsterList); + } + output.endObject(); + } + + @Override + public CellMonsterInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1549570436: + case -980483350: { + if (input.isAtField(FieldNames.selectBossId)) { + if (!input.trySkipNullValue()) { + selectBossId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 951117504: { + if (input.isAtField(FieldNames.confirm)) { + if (!input.trySkipNullValue()) { + confirm = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1541271448: + case 552401379: { + if (input.isAtField(FieldNames.monsterList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(monsterList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CellMonsterInfo clone() { + return new CellMonsterInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CellMonsterInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CellMonsterInfo(), data).checkInitialized(); + } + + public static CellMonsterInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellMonsterInfo(), input).checkInitialized(); + } + + public static CellMonsterInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellMonsterInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating CellMonsterInfo messages + */ + public static MessageFactory getFactory() { + return CellMonsterInfoFactory.INSTANCE; + } + + private enum CellMonsterInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public CellMonsterInfo create() { + return CellMonsterInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName selectBossId = FieldName.forField("selectBossId", "select_boss_id"); + + static final FieldName confirm = FieldName.forField("confirm"); + + static final FieldName monsterList = FieldName.forField("monsterList", "monster_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CellMonsterOuterClass.java b/src/generated/main/emu/lunarcore/proto/CellMonsterOuterClass.java new file mode 100644 index 000000000..cd29b858b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CellMonsterOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class CellMonsterOuterClass { + /** + * Protobuf type {@code CellMonster} + */ + public static final class CellMonster extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 boss_decay_id = 11; + */ + private int bossDecayId; + + /** + * optional uint32 monster_id = 15; + */ + private int monsterId; + + private CellMonster() { + } + + /** + * @return a new empty instance of {@code CellMonster} + */ + public static CellMonster newInstance() { + return new CellMonster(); + } + + /** + * optional uint32 boss_decay_id = 11; + * @return whether the bossDecayId field is set + */ + public boolean hasBossDecayId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 boss_decay_id = 11; + * @return this + */ + public CellMonster clearBossDecayId() { + bitField0_ &= ~0x00000001; + bossDecayId = 0; + return this; + } + + /** + * optional uint32 boss_decay_id = 11; + * @return the bossDecayId + */ + public int getBossDecayId() { + return bossDecayId; + } + + /** + * optional uint32 boss_decay_id = 11; + * @param value the bossDecayId to set + * @return this + */ + public CellMonster setBossDecayId(final int value) { + bitField0_ |= 0x00000001; + bossDecayId = value; + return this; + } + + /** + * optional uint32 monster_id = 15; + * @return whether the monsterId field is set + */ + public boolean hasMonsterId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 monster_id = 15; + * @return this + */ + public CellMonster clearMonsterId() { + bitField0_ &= ~0x00000002; + monsterId = 0; + return this; + } + + /** + * optional uint32 monster_id = 15; + * @return the monsterId + */ + public int getMonsterId() { + return monsterId; + } + + /** + * optional uint32 monster_id = 15; + * @param value the monsterId to set + * @return this + */ + public CellMonster setMonsterId(final int value) { + bitField0_ |= 0x00000002; + monsterId = value; + return this; + } + + @Override + public CellMonster copyFrom(final CellMonster other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossDecayId = other.bossDecayId; + monsterId = other.monsterId; + } + return this; + } + + @Override + public CellMonster mergeFrom(final CellMonster other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossDecayId()) { + setBossDecayId(other.bossDecayId); + } + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); + } + return this; + } + + @Override + public CellMonster clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossDecayId = 0; + monsterId = 0; + return this; + } + + @Override + public CellMonster clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CellMonster)) { + return false; + } + CellMonster other = (CellMonster) o; + return bitField0_ == other.bitField0_ + && (!hasBossDecayId() || bossDecayId == other.bossDecayId) + && (!hasMonsterId() || monsterId == other.monsterId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(bossDecayId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(monsterId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bossDecayId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CellMonster mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // bossDecayId + bossDecayId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // monsterId + monsterId = input.readUInt32(); + 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.bossDecayId, bossDecayId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.monsterId, monsterId); + } + output.endObject(); + } + + @Override + public CellMonster mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -278154680: + case 1788381266: { + if (input.isAtField(FieldNames.bossDecayId)) { + if (!input.trySkipNullValue()) { + bossDecayId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { + if (!input.trySkipNullValue()) { + monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CellMonster clone() { + return new CellMonster().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CellMonster parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CellMonster(), data).checkInitialized(); + } + + public static CellMonster parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellMonster(), input).checkInitialized(); + } + + public static CellMonster parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellMonster(), input).checkInitialized(); + } + + /** + * @return factory for creating CellMonster messages + */ + public static MessageFactory getFactory() { + return CellMonsterFactory.INSTANCE; + } + + private enum CellMonsterFactory implements MessageFactory { + INSTANCE; + + @Override + public CellMonster create() { + return CellMonster.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossDecayId = FieldName.forField("bossDecayId", "boss_decay_id"); + + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CellMonsterSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/CellMonsterSelectInfoOuterClass.java new file mode 100644 index 000000000..2f4b5be4c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CellMonsterSelectInfoOuterClass.java @@ -0,0 +1,422 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class CellMonsterSelectInfoOuterClass { + /** + * Protobuf type {@code CellMonsterSelectInfo} + */ + public static final class CellMonsterSelectInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 maze_buff_list = 3; + */ + private final RepeatedInt mazeBuffList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 select_decay_id = 11; + */ + private final RepeatedInt selectDecayId = RepeatedInt.newEmptyInstance(); + + private CellMonsterSelectInfo() { + } + + /** + * @return a new empty instance of {@code CellMonsterSelectInfo} + */ + public static CellMonsterSelectInfo newInstance() { + return new CellMonsterSelectInfo(); + } + + /** + * repeated uint32 maze_buff_list = 3; + * @return whether the mazeBuffList field is set + */ + public boolean hasMazeBuffList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 maze_buff_list = 3; + * @return this + */ + public CellMonsterSelectInfo clearMazeBuffList() { + bitField0_ &= ~0x00000001; + mazeBuffList.clear(); + return this; + } + + /** + * repeated uint32 maze_buff_list = 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 #getMutableMazeBuffList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMazeBuffList() { + return mazeBuffList; + } + + /** + * repeated uint32 maze_buff_list = 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 getMutableMazeBuffList() { + bitField0_ |= 0x00000001; + return mazeBuffList; + } + + /** + * repeated uint32 maze_buff_list = 3; + * @param value the mazeBuffList to add + * @return this + */ + public CellMonsterSelectInfo addMazeBuffList(final int value) { + bitField0_ |= 0x00000001; + mazeBuffList.add(value); + return this; + } + + /** + * repeated uint32 maze_buff_list = 3; + * @param values the mazeBuffList to add + * @return this + */ + public CellMonsterSelectInfo addAllMazeBuffList(final int... values) { + bitField0_ |= 0x00000001; + mazeBuffList.addAll(values); + return this; + } + + /** + * repeated uint32 select_decay_id = 11; + * @return whether the selectDecayId field is set + */ + public boolean hasSelectDecayId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 select_decay_id = 11; + * @return this + */ + public CellMonsterSelectInfo clearSelectDecayId() { + bitField0_ &= ~0x00000002; + selectDecayId.clear(); + return this; + } + + /** + * repeated uint32 select_decay_id = 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 #getMutableSelectDecayId()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSelectDecayId() { + return selectDecayId; + } + + /** + * repeated uint32 select_decay_id = 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 RepeatedInt getMutableSelectDecayId() { + bitField0_ |= 0x00000002; + return selectDecayId; + } + + /** + * repeated uint32 select_decay_id = 11; + * @param value the selectDecayId to add + * @return this + */ + public CellMonsterSelectInfo addSelectDecayId(final int value) { + bitField0_ |= 0x00000002; + selectDecayId.add(value); + return this; + } + + /** + * repeated uint32 select_decay_id = 11; + * @param values the selectDecayId to add + * @return this + */ + public CellMonsterSelectInfo addAllSelectDecayId(final int... values) { + bitField0_ |= 0x00000002; + selectDecayId.addAll(values); + return this; + } + + @Override + public CellMonsterSelectInfo copyFrom(final CellMonsterSelectInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mazeBuffList.copyFrom(other.mazeBuffList); + selectDecayId.copyFrom(other.selectDecayId); + } + return this; + } + + @Override + public CellMonsterSelectInfo mergeFrom(final CellMonsterSelectInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMazeBuffList()) { + getMutableMazeBuffList().addAll(other.mazeBuffList); + } + if (other.hasSelectDecayId()) { + getMutableSelectDecayId().addAll(other.selectDecayId); + } + return this; + } + + @Override + public CellMonsterSelectInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mazeBuffList.clear(); + selectDecayId.clear(); + return this; + } + + @Override + public CellMonsterSelectInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mazeBuffList.clear(); + selectDecayId.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CellMonsterSelectInfo)) { + return false; + } + CellMonsterSelectInfo other = (CellMonsterSelectInfo) o; + return bitField0_ == other.bitField0_ + && (!hasMazeBuffList() || mazeBuffList.equals(other.mazeBuffList)) + && (!hasSelectDecayId() || selectDecayId.equals(other.selectDecayId)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < mazeBuffList.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(mazeBuffList.array()[i]); + } + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < selectDecayId.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(selectDecayId.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * mazeBuffList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mazeBuffList); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * selectDecayId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(selectDecayId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CellMonsterSelectInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // mazeBuffList [packed=true] + input.readPackedUInt32(mazeBuffList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // selectDecayId [packed=true] + input.readPackedUInt32(selectDecayId, 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 24: { + // mazeBuffList [packed=false] + tag = input.readRepeatedUInt32(mazeBuffList, tag); + bitField0_ |= 0x00000001; + break; + } + case 88: { + // selectDecayId [packed=false] + tag = input.readRepeatedUInt32(selectDecayId, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.mazeBuffList, mazeBuffList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.selectDecayId, selectDecayId); + } + output.endObject(); + } + + @Override + public CellMonsterSelectInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1147228272: + case -1634995062: { + if (input.isAtField(FieldNames.mazeBuffList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(mazeBuffList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2029475367: + case -1898586205: { + if (input.isAtField(FieldNames.selectDecayId)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(selectDecayId); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CellMonsterSelectInfo clone() { + return new CellMonsterSelectInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CellMonsterSelectInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CellMonsterSelectInfo(), data).checkInitialized(); + } + + public static CellMonsterSelectInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellMonsterSelectInfo(), input).checkInitialized(); + } + + public static CellMonsterSelectInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CellMonsterSelectInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating CellMonsterSelectInfo messages + */ + public static MessageFactory getFactory() { + return CellMonsterSelectInfoFactory.INSTANCE; + } + + private enum CellMonsterSelectInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public CellMonsterSelectInfo create() { + return CellMonsterSelectInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mazeBuffList = FieldName.forField("mazeBuffList", "maze_buff_list"); + + static final FieldName selectDecayId = FieldName.forField("selectDecayId", "select_decay_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueAeonInfoOuterClass.java new file mode 100644 index 000000000..79d0c4493 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueAeonInfoOuterClass.java @@ -0,0 +1,666 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueAeonInfoOuterClass { + /** + * Protobuf type {@code ChessRogueAeonInfo} + */ + public static final class ChessRogueAeonInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 KNIDGHHDIKJ = 10; + */ + private int kNIDGHHDIKJ; + + /** + * optional uint32 aeon_id = 1; + */ + private int aeonId; + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 2; + */ + private final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo chessAeonInfo = ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo.newInstance(); + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 15; + */ + private final ICNMLEMMHKLOuterClass.ICNMLEMMHKL fPGMAJOGPGG = ICNMLEMMHKLOuterClass.ICNMLEMMHKL.newInstance(); + + /** + * repeated uint32 aeon_id_list = 4; + */ + private final RepeatedInt aeonIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueAeonInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueAeonInfo} + */ + public static ChessRogueAeonInfo newInstance() { + return new ChessRogueAeonInfo(); + } + + /** + * optional int32 KNIDGHHDIKJ = 10; + * @return whether the kNIDGHHDIKJ field is set + */ + public boolean hasKNIDGHHDIKJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 KNIDGHHDIKJ = 10; + * @return this + */ + public ChessRogueAeonInfo clearKNIDGHHDIKJ() { + bitField0_ &= ~0x00000001; + kNIDGHHDIKJ = 0; + return this; + } + + /** + * optional int32 KNIDGHHDIKJ = 10; + * @return the kNIDGHHDIKJ + */ + public int getKNIDGHHDIKJ() { + return kNIDGHHDIKJ; + } + + /** + * optional int32 KNIDGHHDIKJ = 10; + * @param value the kNIDGHHDIKJ to set + * @return this + */ + public ChessRogueAeonInfo setKNIDGHHDIKJ(final int value) { + bitField0_ |= 0x00000001; + kNIDGHHDIKJ = value; + return this; + } + + /** + * optional uint32 aeon_id = 1; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 aeon_id = 1; + * @return this + */ + public ChessRogueAeonInfo clearAeonId() { + bitField0_ &= ~0x00000002; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 1; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 1; + * @param value the aeonId to set + * @return this + */ + public ChessRogueAeonInfo setAeonId(final int value) { + bitField0_ |= 0x00000002; + aeonId = value; + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 2; + * @return whether the chessAeonInfo field is set + */ + public boolean hasChessAeonInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 2; + * @return this + */ + public ChessRogueAeonInfo clearChessAeonInfo() { + bitField0_ &= ~0x00000004; + chessAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_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 #getMutableChessAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getChessAeonInfo() { + return chessAeonInfo; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_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 ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getMutableChessAeonInfo() { + bitField0_ |= 0x00000004; + return chessAeonInfo; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 2; + * @param value the chessAeonInfo to set + * @return this + */ + public ChessRogueAeonInfo setChessAeonInfo( + final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo value) { + bitField0_ |= 0x00000004; + chessAeonInfo.copyFrom(value); + return this; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 15; + * @return whether the fPGMAJOGPGG field is set + */ + public boolean hasFPGMAJOGPGG() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 15; + * @return this + */ + public ChessRogueAeonInfo clearFPGMAJOGPGG() { + bitField0_ &= ~0x00000008; + fPGMAJOGPGG.clear(); + return this; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 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 #getMutableFPGMAJOGPGG()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ICNMLEMMHKLOuterClass.ICNMLEMMHKL getFPGMAJOGPGG() { + return fPGMAJOGPGG; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 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 ICNMLEMMHKLOuterClass.ICNMLEMMHKL getMutableFPGMAJOGPGG() { + bitField0_ |= 0x00000008; + return fPGMAJOGPGG; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 15; + * @param value the fPGMAJOGPGG to set + * @return this + */ + public ChessRogueAeonInfo setFPGMAJOGPGG(final ICNMLEMMHKLOuterClass.ICNMLEMMHKL value) { + bitField0_ |= 0x00000008; + fPGMAJOGPGG.copyFrom(value); + return this; + } + + /** + * repeated uint32 aeon_id_list = 4; + * @return whether the aeonIdList field is set + */ + public boolean hasAeonIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 aeon_id_list = 4; + * @return this + */ + public ChessRogueAeonInfo clearAeonIdList() { + bitField0_ &= ~0x00000010; + aeonIdList.clear(); + return this; + } + + /** + * repeated uint32 aeon_id_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 #getMutableAeonIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAeonIdList() { + return aeonIdList; + } + + /** + * repeated uint32 aeon_id_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 RepeatedInt getMutableAeonIdList() { + bitField0_ |= 0x00000010; + return aeonIdList; + } + + /** + * repeated uint32 aeon_id_list = 4; + * @param value the aeonIdList to add + * @return this + */ + public ChessRogueAeonInfo addAeonIdList(final int value) { + bitField0_ |= 0x00000010; + aeonIdList.add(value); + return this; + } + + /** + * repeated uint32 aeon_id_list = 4; + * @param values the aeonIdList to add + * @return this + */ + public ChessRogueAeonInfo addAllAeonIdList(final int... values) { + bitField0_ |= 0x00000010; + aeonIdList.addAll(values); + return this; + } + + @Override + public ChessRogueAeonInfo copyFrom(final ChessRogueAeonInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kNIDGHHDIKJ = other.kNIDGHHDIKJ; + aeonId = other.aeonId; + chessAeonInfo.copyFrom(other.chessAeonInfo); + fPGMAJOGPGG.copyFrom(other.fPGMAJOGPGG); + aeonIdList.copyFrom(other.aeonIdList); + } + return this; + } + + @Override + public ChessRogueAeonInfo mergeFrom(final ChessRogueAeonInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKNIDGHHDIKJ()) { + setKNIDGHHDIKJ(other.kNIDGHHDIKJ); + } + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + if (other.hasChessAeonInfo()) { + getMutableChessAeonInfo().mergeFrom(other.chessAeonInfo); + } + if (other.hasFPGMAJOGPGG()) { + getMutableFPGMAJOGPGG().mergeFrom(other.fPGMAJOGPGG); + } + if (other.hasAeonIdList()) { + getMutableAeonIdList().addAll(other.aeonIdList); + } + return this; + } + + @Override + public ChessRogueAeonInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kNIDGHHDIKJ = 0; + aeonId = 0; + chessAeonInfo.clear(); + fPGMAJOGPGG.clear(); + aeonIdList.clear(); + return this; + } + + @Override + public ChessRogueAeonInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chessAeonInfo.clearQuick(); + fPGMAJOGPGG.clearQuick(); + aeonIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueAeonInfo)) { + return false; + } + ChessRogueAeonInfo other = (ChessRogueAeonInfo) o; + return bitField0_ == other.bitField0_ + && (!hasKNIDGHHDIKJ() || kNIDGHHDIKJ == other.kNIDGHHDIKJ) + && (!hasAeonId() || aeonId == other.aeonId) + && (!hasChessAeonInfo() || chessAeonInfo.equals(other.chessAeonInfo)) + && (!hasFPGMAJOGPGG() || fPGMAJOGPGG.equals(other.fPGMAJOGPGG)) + && (!hasAeonIdList() || aeonIdList.equals(other.aeonIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeInt32NoTag(kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(aeonId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chessAeonInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(fPGMAJOGPGG); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < aeonIdList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(aeonIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chessAeonInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(fPGMAJOGPGG); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * aeonIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aeonIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueAeonInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // kNIDGHHDIKJ + kNIDGHHDIKJ = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // aeonId + aeonId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // chessAeonInfo + input.readMessage(chessAeonInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // fPGMAJOGPGG + input.readMessage(fPGMAJOGPGG); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // aeonIdList [packed=true] + input.readPackedUInt32(aeonIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // aeonIdList [packed=false] + tag = input.readRepeatedUInt32(aeonIdList, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt32(FieldNames.kNIDGHHDIKJ, kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.aeonId, aeonId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.chessAeonInfo, chessAeonInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.fPGMAJOGPGG, fPGMAJOGPGG); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.aeonIdList, aeonIdList); + } + output.endObject(); + } + + @Override + public ChessRogueAeonInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 394421549: { + if (input.isAtField(FieldNames.kNIDGHHDIKJ)) { + if (!input.trySkipNullValue()) { + kNIDGHHDIKJ = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { + if (!input.trySkipNullValue()) { + aeonId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1969851249: + case 1965672427: { + if (input.isAtField(FieldNames.chessAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(chessAeonInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1550313631: { + if (input.isAtField(FieldNames.fPGMAJOGPGG)) { + if (!input.trySkipNullValue()) { + input.readMessage(fPGMAJOGPGG); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1452976956: + case 953805318: { + if (input.isAtField(FieldNames.aeonIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(aeonIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueAeonInfo clone() { + return new ChessRogueAeonInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueAeonInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueAeonInfo(), data).checkInitialized(); + } + + public static ChessRogueAeonInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueAeonInfo(), input).checkInitialized(); + } + + public static ChessRogueAeonInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueAeonInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueAeonInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueAeonInfoFactory.INSTANCE; + } + + private enum ChessRogueAeonInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueAeonInfo create() { + return ChessRogueAeonInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kNIDGHHDIKJ = FieldName.forField("KNIDGHHDIKJ"); + + static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); + + static final FieldName chessAeonInfo = FieldName.forField("chessAeonInfo", "chess_aeon_info"); + + static final FieldName fPGMAJOGPGG = FieldName.forField("FPGMAJOGPGG"); + + static final FieldName aeonIdList = FieldName.forField("aeonIdList", "aeon_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueAreaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueAreaInfoOuterClass.java new file mode 100644 index 000000000..28a581a16 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueAreaInfoOuterClass.java @@ -0,0 +1,899 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ChessRogueAreaInfoOuterClass { + /** + * Protobuf type {@code ChessRogueAreaInfo} + */ + public static final class ChessRogueAreaInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cur_id = 12; + */ + private int curId; + + /** + * optional uint32 cur_board_id = 15; + */ + private int curBoardId; + + /** + * optional .ChessRogueBoardCellStatus layer_status = 13; + */ + private int layerStatus; + + /** + * optional .JDIPIHPMEKN OJNCMJDAABJ = 1; + */ + private final JDIPIHPMEKNOuterClass.JDIPIHPMEKN oJNCMJDAABJ = JDIPIHPMEKNOuterClass.JDIPIHPMEKN.newInstance(); + + /** + * optional .CellInfo cell = 2; + */ + private final CellInfoOuterClass.CellInfo cell = CellInfoOuterClass.CellInfo.newInstance(); + + /** + * repeated uint32 allowed_select_cell_id_list = 10; + */ + private final RepeatedInt allowedSelectCellIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 7; + */ + private final RepeatedMessage historyCell = RepeatedMessage.newEmptyInstance(ChessRogueHistoryCellInfoOuterClass.ChessRogueHistoryCellInfo.getFactory()); + + private ChessRogueAreaInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueAreaInfo} + */ + public static ChessRogueAreaInfo newInstance() { + return new ChessRogueAreaInfo(); + } + + /** + * optional uint32 cur_id = 12; + * @return whether the curId field is set + */ + public boolean hasCurId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cur_id = 12; + * @return this + */ + public ChessRogueAreaInfo clearCurId() { + bitField0_ &= ~0x00000001; + curId = 0; + return this; + } + + /** + * optional uint32 cur_id = 12; + * @return the curId + */ + public int getCurId() { + return curId; + } + + /** + * optional uint32 cur_id = 12; + * @param value the curId to set + * @return this + */ + public ChessRogueAreaInfo setCurId(final int value) { + bitField0_ |= 0x00000001; + curId = value; + return this; + } + + /** + * optional uint32 cur_board_id = 15; + * @return whether the curBoardId field is set + */ + public boolean hasCurBoardId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_board_id = 15; + * @return this + */ + public ChessRogueAreaInfo clearCurBoardId() { + bitField0_ &= ~0x00000002; + curBoardId = 0; + return this; + } + + /** + * optional uint32 cur_board_id = 15; + * @return the curBoardId + */ + public int getCurBoardId() { + return curBoardId; + } + + /** + * optional uint32 cur_board_id = 15; + * @param value the curBoardId to set + * @return this + */ + public ChessRogueAreaInfo setCurBoardId(final int value) { + bitField0_ |= 0x00000002; + curBoardId = value; + return this; + } + + /** + * optional .ChessRogueBoardCellStatus layer_status = 13; + * @return whether the layerStatus field is set + */ + public boolean hasLayerStatus() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueBoardCellStatus layer_status = 13; + * @return this + */ + public ChessRogueAreaInfo clearLayerStatus() { + bitField0_ &= ~0x00000004; + layerStatus = 0; + return this; + } + + /** + * optional .ChessRogueBoardCellStatus layer_status = 13; + * @return the layerStatus + */ + public ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus getLayerStatus() { + return ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus.forNumber(layerStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueAreaInfo#getLayerStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getLayerStatusValue() { + return layerStatus; + } + + /** + * 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 ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus}. Setting an invalid value + * can cause {@link ChessRogueAreaInfo#getLayerStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueAreaInfo setLayerStatusValue(final int value) { + bitField0_ |= 0x00000004; + layerStatus = value; + return this; + } + + /** + * optional .ChessRogueBoardCellStatus layer_status = 13; + * @param value the layerStatus to set + * @return this + */ + public ChessRogueAreaInfo setLayerStatus( + final ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus value) { + bitField0_ |= 0x00000004; + layerStatus = value.getNumber(); + return this; + } + + /** + * optional .JDIPIHPMEKN OJNCMJDAABJ = 1; + * @return whether the oJNCMJDAABJ field is set + */ + public boolean hasOJNCMJDAABJ() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .JDIPIHPMEKN OJNCMJDAABJ = 1; + * @return this + */ + public ChessRogueAreaInfo clearOJNCMJDAABJ() { + bitField0_ &= ~0x00000008; + oJNCMJDAABJ.clear(); + return this; + } + + /** + * optional .JDIPIHPMEKN OJNCMJDAABJ = 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 #getMutableOJNCMJDAABJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public JDIPIHPMEKNOuterClass.JDIPIHPMEKN getOJNCMJDAABJ() { + return oJNCMJDAABJ; + } + + /** + * optional .JDIPIHPMEKN OJNCMJDAABJ = 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 JDIPIHPMEKNOuterClass.JDIPIHPMEKN getMutableOJNCMJDAABJ() { + bitField0_ |= 0x00000008; + return oJNCMJDAABJ; + } + + /** + * optional .JDIPIHPMEKN OJNCMJDAABJ = 1; + * @param value the oJNCMJDAABJ to set + * @return this + */ + public ChessRogueAreaInfo setOJNCMJDAABJ(final JDIPIHPMEKNOuterClass.JDIPIHPMEKN value) { + bitField0_ |= 0x00000008; + oJNCMJDAABJ.copyFrom(value); + return this; + } + + /** + * optional .CellInfo cell = 2; + * @return whether the cell field is set + */ + public boolean hasCell() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .CellInfo cell = 2; + * @return this + */ + public ChessRogueAreaInfo clearCell() { + bitField0_ &= ~0x00000010; + cell.clear(); + return this; + } + + /** + * optional .CellInfo cell = 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 #getMutableCell()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellInfoOuterClass.CellInfo getCell() { + return cell; + } + + /** + * optional .CellInfo cell = 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 CellInfoOuterClass.CellInfo getMutableCell() { + bitField0_ |= 0x00000010; + return cell; + } + + /** + * optional .CellInfo cell = 2; + * @param value the cell to set + * @return this + */ + public ChessRogueAreaInfo setCell(final CellInfoOuterClass.CellInfo value) { + bitField0_ |= 0x00000010; + cell.copyFrom(value); + return this; + } + + /** + * repeated uint32 allowed_select_cell_id_list = 10; + * @return whether the allowedSelectCellIdList field is set + */ + public boolean hasAllowedSelectCellIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 allowed_select_cell_id_list = 10; + * @return this + */ + public ChessRogueAreaInfo clearAllowedSelectCellIdList() { + bitField0_ &= ~0x00000020; + allowedSelectCellIdList.clear(); + return this; + } + + /** + * repeated uint32 allowed_select_cell_id_list = 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 #getMutableAllowedSelectCellIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAllowedSelectCellIdList() { + return allowedSelectCellIdList; + } + + /** + * repeated uint32 allowed_select_cell_id_list = 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 RepeatedInt getMutableAllowedSelectCellIdList() { + bitField0_ |= 0x00000020; + return allowedSelectCellIdList; + } + + /** + * repeated uint32 allowed_select_cell_id_list = 10; + * @param value the allowedSelectCellIdList to add + * @return this + */ + public ChessRogueAreaInfo addAllowedSelectCellIdList(final int value) { + bitField0_ |= 0x00000020; + allowedSelectCellIdList.add(value); + return this; + } + + /** + * repeated uint32 allowed_select_cell_id_list = 10; + * @param values the allowedSelectCellIdList to add + * @return this + */ + public ChessRogueAreaInfo addAllAllowedSelectCellIdList(final int... values) { + bitField0_ |= 0x00000020; + allowedSelectCellIdList.addAll(values); + return this; + } + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 7; + * @return whether the historyCell field is set + */ + public boolean hasHistoryCell() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 7; + * @return this + */ + public ChessRogueAreaInfo clearHistoryCell() { + bitField0_ &= ~0x00000040; + historyCell.clear(); + return this; + } + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 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 #getMutableHistoryCell()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getHistoryCell( + ) { + return historyCell; + } + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 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 getMutableHistoryCell( + ) { + bitField0_ |= 0x00000040; + return historyCell; + } + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 7; + * @param value the historyCell to add + * @return this + */ + public ChessRogueAreaInfo addHistoryCell( + final ChessRogueHistoryCellInfoOuterClass.ChessRogueHistoryCellInfo value) { + bitField0_ |= 0x00000040; + historyCell.add(value); + return this; + } + + /** + * repeated .ChessRogueHistoryCellInfo history_cell = 7; + * @param values the historyCell to add + * @return this + */ + public ChessRogueAreaInfo addAllHistoryCell( + final ChessRogueHistoryCellInfoOuterClass.ChessRogueHistoryCellInfo... values) { + bitField0_ |= 0x00000040; + historyCell.addAll(values); + return this; + } + + @Override + public ChessRogueAreaInfo copyFrom(final ChessRogueAreaInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curId = other.curId; + curBoardId = other.curBoardId; + layerStatus = other.layerStatus; + oJNCMJDAABJ.copyFrom(other.oJNCMJDAABJ); + cell.copyFrom(other.cell); + allowedSelectCellIdList.copyFrom(other.allowedSelectCellIdList); + historyCell.copyFrom(other.historyCell); + } + return this; + } + + @Override + public ChessRogueAreaInfo mergeFrom(final ChessRogueAreaInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurId()) { + setCurId(other.curId); + } + if (other.hasCurBoardId()) { + setCurBoardId(other.curBoardId); + } + if (other.hasLayerStatus()) { + setLayerStatusValue(other.layerStatus); + } + if (other.hasOJNCMJDAABJ()) { + getMutableOJNCMJDAABJ().mergeFrom(other.oJNCMJDAABJ); + } + if (other.hasCell()) { + getMutableCell().mergeFrom(other.cell); + } + if (other.hasAllowedSelectCellIdList()) { + getMutableAllowedSelectCellIdList().addAll(other.allowedSelectCellIdList); + } + if (other.hasHistoryCell()) { + getMutableHistoryCell().addAll(other.historyCell); + } + return this; + } + + @Override + public ChessRogueAreaInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curId = 0; + curBoardId = 0; + layerStatus = 0; + oJNCMJDAABJ.clear(); + cell.clear(); + allowedSelectCellIdList.clear(); + historyCell.clear(); + return this; + } + + @Override + public ChessRogueAreaInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oJNCMJDAABJ.clearQuick(); + cell.clearQuick(); + allowedSelectCellIdList.clear(); + historyCell.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueAreaInfo)) { + return false; + } + ChessRogueAreaInfo other = (ChessRogueAreaInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCurId() || curId == other.curId) + && (!hasCurBoardId() || curBoardId == other.curBoardId) + && (!hasLayerStatus() || layerStatus == other.layerStatus) + && (!hasOJNCMJDAABJ() || oJNCMJDAABJ.equals(other.oJNCMJDAABJ)) + && (!hasCell() || cell.equals(other.cell)) + && (!hasAllowedSelectCellIdList() || allowedSelectCellIdList.equals(other.allowedSelectCellIdList)) + && (!hasHistoryCell() || historyCell.equals(other.historyCell)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(curId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(curBoardId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(layerStatus); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(oJNCMJDAABJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(cell); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < allowedSelectCellIdList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(allowedSelectCellIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < historyCell.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(historyCell.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curBoardId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(layerStatus); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(oJNCMJDAABJ); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cell); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * allowedSelectCellIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(allowedSelectCellIdList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * historyCell.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(historyCell); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueAreaInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // curId + curId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // curBoardId + curBoardId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // layerStatus + final int value = input.readInt32(); + if (ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus.forNumber(value) != null) { + layerStatus = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // oJNCMJDAABJ + input.readMessage(oJNCMJDAABJ); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // cell + input.readMessage(cell); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // allowedSelectCellIdList [packed=true] + input.readPackedUInt32(allowedSelectCellIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // historyCell + tag = input.readRepeatedMessage(historyCell, tag); + bitField0_ |= 0x00000040; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 80: { + // allowedSelectCellIdList [packed=false] + tag = input.readRepeatedUInt32(allowedSelectCellIdList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.curId, curId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.curBoardId, curBoardId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.layerStatus, layerStatus, ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.oJNCMJDAABJ, oJNCMJDAABJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.cell, cell); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.allowedSelectCellIdList, allowedSelectCellIdList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.historyCell, historyCell); + } + output.endObject(); + } + + @Override + public ChessRogueAreaInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 95026043: + case -1349138566: { + if (input.isAtField(FieldNames.curId)) { + if (!input.trySkipNullValue()) { + curId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -465247167: + case 877955123: { + if (input.isAtField(FieldNames.curBoardId)) { + if (!input.trySkipNullValue()) { + curBoardId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1825075037: + case 1305709216: { + if (input.isAtField(FieldNames.layerStatus)) { + if (!input.trySkipNullValue()) { + final ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus value = input.readEnum(ChessRogueBoardCellStatusOuterClass.ChessRogueBoardCellStatus.converter()); + if (value != null) { + layerStatus = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1475978335: { + if (input.isAtField(FieldNames.oJNCMJDAABJ)) { + if (!input.trySkipNullValue()) { + input.readMessage(oJNCMJDAABJ); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3049826: { + if (input.isAtField(FieldNames.cell)) { + if (!input.trySkipNullValue()) { + input.readMessage(cell); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -972583873: + case -835560271: { + if (input.isAtField(FieldNames.allowedSelectCellIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(allowedSelectCellIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 351500310: + case -1962599891: { + if (input.isAtField(FieldNames.historyCell)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(historyCell); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueAreaInfo clone() { + return new ChessRogueAreaInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueAreaInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueAreaInfo(), data).checkInitialized(); + } + + public static ChessRogueAreaInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueAreaInfo(), input).checkInitialized(); + } + + public static ChessRogueAreaInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueAreaInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueAreaInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueAreaInfoFactory.INSTANCE; + } + + private enum ChessRogueAreaInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueAreaInfo create() { + return ChessRogueAreaInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curId = FieldName.forField("curId", "cur_id"); + + static final FieldName curBoardId = FieldName.forField("curBoardId", "cur_board_id"); + + static final FieldName layerStatus = FieldName.forField("layerStatus", "layer_status"); + + static final FieldName oJNCMJDAABJ = FieldName.forField("OJNCMJDAABJ"); + + static final FieldName cell = FieldName.forField("cell"); + + static final FieldName allowedSelectCellIdList = FieldName.forField("allowedSelectCellIdList", "allowed_select_cell_id_list"); + + static final FieldName historyCell = FieldName.forField("historyCell", "history_cell"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueBoardCellStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueBoardCellStatusOuterClass.java new file mode 100644 index 000000000..3a49c637c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueBoardCellStatusOuterClass.java @@ -0,0 +1,155 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueBoardCellStatusOuterClass { + /** + * Protobuf enum {@code ChessRogueBoardCellStatus} + */ + public enum ChessRogueBoardCellStatus implements ProtoEnum { + /** + * IDLE = 0; + */ + IDLE("IDLE", 0), + + /** + * SELECTED = 1; + */ + SELECTED("SELECTED", 1), + + /** + * PROCESSING = 2; + */ + PROCESSING("PROCESSING", 2), + + /** + * FINISH = 3; + */ + FINISH("FINISH", 3); + + /** + * IDLE = 0; + */ + public static final int IDLE_VALUE = 0; + + /** + * SELECTED = 1; + */ + public static final int SELECTED_VALUE = 1; + + /** + * PROCESSING = 2; + */ + public static final int PROCESSING_VALUE = 2; + + /** + * FINISH = 3; + */ + public static final int FINISH_VALUE = 3; + + private final String name; + + private final int number; + + private ChessRogueBoardCellStatus(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 ChessRogueBoardCellStatusConverter.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 ChessRogueBoardCellStatus forNumber(int value) { + return ChessRogueBoardCellStatusConverter.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 ChessRogueBoardCellStatus forNumberOr(int number, + ChessRogueBoardCellStatus other) { + ChessRogueBoardCellStatus value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueBoardCellStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueBoardCellStatus[] lookup = new ChessRogueBoardCellStatus[4]; + + static { + lookup[0] = IDLE; + lookup[1] = SELECTED; + lookup[2] = PROCESSING; + lookup[3] = FINISH; + } + + @Override + public final ChessRogueBoardCellStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueBoardCellStatus forName(final CharSequence value) { + switch (value.length()) { + case 4: { + if (ProtoUtil.isEqual("IDLE", value)) { + return IDLE; + } + break; + } + case 6: { + if (ProtoUtil.isEqual("FINISH", value)) { + return FINISH; + } + break; + } + case 8: { + if (ProtoUtil.isEqual("SELECTED", value)) { + return SELECTED; + } + break; + } + case 10: { + if (ProtoUtil.isEqual("PROCESSING", value)) { + return PROCESSING; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffEnhanceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffEnhanceInfoOuterClass.java new file mode 100644 index 000000000..22bebd444 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffEnhanceInfoOuterClass.java @@ -0,0 +1,362 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueBuffEnhanceInfoOuterClass { + /** + * Protobuf type {@code ChessRogueBuffEnhanceInfo} + */ + public static final class ChessRogueBuffEnhanceInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 buff_id = 8; + */ + private int buffId; + + /** + * optional .ItemCostList cost_data = 6; + */ + private final ItemCostListOuterClass.ItemCostList costData = ItemCostListOuterClass.ItemCostList.newInstance(); + + private ChessRogueBuffEnhanceInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueBuffEnhanceInfo} + */ + public static ChessRogueBuffEnhanceInfo newInstance() { + return new ChessRogueBuffEnhanceInfo(); + } + + /** + * optional uint32 buff_id = 8; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 buff_id = 8; + * @return this + */ + public ChessRogueBuffEnhanceInfo clearBuffId() { + bitField0_ &= ~0x00000001; + buffId = 0; + return this; + } + + /** + * optional uint32 buff_id = 8; + * @return the buffId + */ + public int getBuffId() { + return buffId; + } + + /** + * optional uint32 buff_id = 8; + * @param value the buffId to set + * @return this + */ + public ChessRogueBuffEnhanceInfo setBuffId(final int value) { + bitField0_ |= 0x00000001; + buffId = value; + return this; + } + + /** + * optional .ItemCostList cost_data = 6; + * @return whether the costData field is set + */ + public boolean hasCostData() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemCostList cost_data = 6; + * @return this + */ + public ChessRogueBuffEnhanceInfo clearCostData() { + bitField0_ &= ~0x00000002; + costData.clear(); + return this; + } + + /** + * optional .ItemCostList cost_data = 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 #getMutableCostData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getCostData() { + return costData; + } + + /** + * optional .ItemCostList cost_data = 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 ItemCostListOuterClass.ItemCostList getMutableCostData() { + bitField0_ |= 0x00000002; + return costData; + } + + /** + * optional .ItemCostList cost_data = 6; + * @param value the costData to set + * @return this + */ + public ChessRogueBuffEnhanceInfo setCostData(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000002; + costData.copyFrom(value); + return this; + } + + @Override + public ChessRogueBuffEnhanceInfo copyFrom(final ChessRogueBuffEnhanceInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffId = other.buffId; + costData.copyFrom(other.costData); + } + return this; + } + + @Override + public ChessRogueBuffEnhanceInfo mergeFrom(final ChessRogueBuffEnhanceInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffId()) { + setBuffId(other.buffId); + } + if (other.hasCostData()) { + getMutableCostData().mergeFrom(other.costData); + } + return this; + } + + @Override + public ChessRogueBuffEnhanceInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffId = 0; + costData.clear(); + return this; + } + + @Override + public ChessRogueBuffEnhanceInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + costData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueBuffEnhanceInfo)) { + return false; + } + ChessRogueBuffEnhanceInfo other = (ChessRogueBuffEnhanceInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBuffId() || buffId == other.buffId) + && (!hasCostData() || costData.equals(other.costData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(costData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(costData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueBuffEnhanceInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // buffId + buffId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // costData + input.readMessage(costData); + 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.buffId, buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.costData, costData); + } + output.endObject(); + } + + @Override + public ChessRogueBuffEnhanceInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1378119474: + case 227990663: { + if (input.isAtField(FieldNames.buffId)) { + if (!input.trySkipNullValue()) { + buffId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -425171689: + case -270413604: { + if (input.isAtField(FieldNames.costData)) { + if (!input.trySkipNullValue()) { + input.readMessage(costData); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueBuffEnhanceInfo clone() { + return new ChessRogueBuffEnhanceInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueBuffEnhanceInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueBuffEnhanceInfo(), data).checkInitialized(); + } + + public static ChessRogueBuffEnhanceInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueBuffEnhanceInfo(), input).checkInitialized(); + } + + public static ChessRogueBuffEnhanceInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueBuffEnhanceInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueBuffEnhanceInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueBuffEnhanceInfoFactory.INSTANCE; + } + + private enum ChessRogueBuffEnhanceInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueBuffEnhanceInfo create() { + return ChessRogueBuffEnhanceInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + + static final FieldName costData = FieldName.forField("costData", "cost_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffEnhanceListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffEnhanceListOuterClass.java new file mode 100644 index 000000000..676e9e9df --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffEnhanceListOuterClass.java @@ -0,0 +1,298 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueBuffEnhanceListOuterClass { + /** + * Protobuf type {@code ChessRogueBuffEnhanceList} + */ + public static final class ChessRogueBuffEnhanceList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_list = 2; + */ + private final RepeatedMessage enhanceInfoList = RepeatedMessage.newEmptyInstance(ChessRogueBuffEnhanceInfoOuterClass.ChessRogueBuffEnhanceInfo.getFactory()); + + private ChessRogueBuffEnhanceList() { + } + + /** + * @return a new empty instance of {@code ChessRogueBuffEnhanceList} + */ + public static ChessRogueBuffEnhanceList newInstance() { + return new ChessRogueBuffEnhanceList(); + } + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_list = 2; + * @return whether the enhanceInfoList field is set + */ + public boolean hasEnhanceInfoList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_list = 2; + * @return this + */ + public ChessRogueBuffEnhanceList clearEnhanceInfoList() { + bitField0_ &= ~0x00000001; + enhanceInfoList.clear(); + return this; + } + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_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 #getMutableEnhanceInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEnhanceInfoList( + ) { + return enhanceInfoList; + } + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_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 getMutableEnhanceInfoList( + ) { + bitField0_ |= 0x00000001; + return enhanceInfoList; + } + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_list = 2; + * @param value the enhanceInfoList to add + * @return this + */ + public ChessRogueBuffEnhanceList addEnhanceInfoList( + final ChessRogueBuffEnhanceInfoOuterClass.ChessRogueBuffEnhanceInfo value) { + bitField0_ |= 0x00000001; + enhanceInfoList.add(value); + return this; + } + + /** + * repeated .ChessRogueBuffEnhanceInfo enhance_info_list = 2; + * @param values the enhanceInfoList to add + * @return this + */ + public ChessRogueBuffEnhanceList addAllEnhanceInfoList( + final ChessRogueBuffEnhanceInfoOuterClass.ChessRogueBuffEnhanceInfo... values) { + bitField0_ |= 0x00000001; + enhanceInfoList.addAll(values); + return this; + } + + @Override + public ChessRogueBuffEnhanceList copyFrom(final ChessRogueBuffEnhanceList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + enhanceInfoList.copyFrom(other.enhanceInfoList); + } + return this; + } + + @Override + public ChessRogueBuffEnhanceList mergeFrom(final ChessRogueBuffEnhanceList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEnhanceInfoList()) { + getMutableEnhanceInfoList().addAll(other.enhanceInfoList); + } + return this; + } + + @Override + public ChessRogueBuffEnhanceList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + enhanceInfoList.clear(); + return this; + } + + @Override + public ChessRogueBuffEnhanceList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + enhanceInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueBuffEnhanceList)) { + return false; + } + ChessRogueBuffEnhanceList other = (ChessRogueBuffEnhanceList) o; + return bitField0_ == other.bitField0_ + && (!hasEnhanceInfoList() || enhanceInfoList.equals(other.enhanceInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < enhanceInfoList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(enhanceInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * enhanceInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(enhanceInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueBuffEnhanceList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // enhanceInfoList + tag = input.readRepeatedMessage(enhanceInfoList, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.enhanceInfoList, enhanceInfoList); + } + output.endObject(); + } + + @Override + public ChessRogueBuffEnhanceList mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1350900538: + case -88113858: { + if (input.isAtField(FieldNames.enhanceInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(enhanceInfoList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueBuffEnhanceList clone() { + return new ChessRogueBuffEnhanceList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueBuffEnhanceList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueBuffEnhanceList(), data).checkInitialized(); + } + + public static ChessRogueBuffEnhanceList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueBuffEnhanceList(), input).checkInitialized(); + } + + public static ChessRogueBuffEnhanceList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueBuffEnhanceList(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueBuffEnhanceList messages + */ + public static MessageFactory getFactory() { + return ChessRogueBuffEnhanceListFactory.INSTANCE; + } + + private enum ChessRogueBuffEnhanceListFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueBuffEnhanceList create() { + return ChessRogueBuffEnhanceList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName enhanceInfoList = FieldName.forField("enhanceInfoList", "enhance_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffOuterClass.java new file mode 100644 index 000000000..5b0690124 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffOuterClass.java @@ -0,0 +1,295 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueBuffOuterClass { + /** + * Protobuf type {@code ChessRogueBuff} + */ + public static final class ChessRogueBuff extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueCommonBuff buff_list = 15; + */ + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueCommonBuffOuterClass.RogueCommonBuff.getFactory()); + + private ChessRogueBuff() { + } + + /** + * @return a new empty instance of {@code ChessRogueBuff} + */ + public static ChessRogueBuff newInstance() { + return new ChessRogueBuff(); + } + + /** + * repeated .RogueCommonBuff buff_list = 15; + * @return whether the buffList field is set + */ + public boolean hasBuffList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueCommonBuff buff_list = 15; + * @return this + */ + public ChessRogueBuff clearBuffList() { + bitField0_ &= ~0x00000001; + buffList.clear(); + return this; + } + + /** + * repeated .RogueCommonBuff buff_list = 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 #getMutableBuffList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBuffList() { + return buffList; + } + + /** + * repeated .RogueCommonBuff buff_list = 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 getMutableBuffList() { + bitField0_ |= 0x00000001; + return buffList; + } + + /** + * repeated .RogueCommonBuff buff_list = 15; + * @param value the buffList to add + * @return this + */ + public ChessRogueBuff addBuffList(final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000001; + buffList.add(value); + return this; + } + + /** + * repeated .RogueCommonBuff buff_list = 15; + * @param values the buffList to add + * @return this + */ + public ChessRogueBuff addAllBuffList( + final RogueCommonBuffOuterClass.RogueCommonBuff... values) { + bitField0_ |= 0x00000001; + buffList.addAll(values); + return this; + } + + @Override + public ChessRogueBuff copyFrom(final ChessRogueBuff other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffList.copyFrom(other.buffList); + } + return this; + } + + @Override + public ChessRogueBuff mergeFrom(final ChessRogueBuff other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); + } + return this; + } + + @Override + public ChessRogueBuff clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffList.clear(); + return this; + } + + @Override + public ChessRogueBuff clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueBuff)) { + return false; + } + ChessRogueBuff other = (ChessRogueBuff) o; + return bitField0_ == other.bitField0_ + && (!hasBuffList() || buffList.equals(other.buffList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(buffList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueBuff mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 122: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.buffList, buffList); + } + output.endObject(); + } + + @Override + public ChessRogueBuff mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(buffList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueBuff clone() { + return new ChessRogueBuff().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueBuff parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueBuff(), data).checkInitialized(); + } + + public static ChessRogueBuff parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueBuff(), input).checkInitialized(); + } + + public static ChessRogueBuff parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueBuff(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueBuff messages + */ + public static MessageFactory getFactory() { + return ChessRogueBuffFactory.INSTANCE; + } + + private enum ChessRogueBuffFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueBuff create() { + return ChessRogueBuff.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buffList = FieldName.forField("buffList", "buff_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCellSpecialTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCellSpecialTypeOuterClass.java new file mode 100644 index 000000000..e32abe650 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueCellSpecialTypeOuterClass.java @@ -0,0 +1,183 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueCellSpecialTypeOuterClass { + /** + * Protobuf enum {@code ChessRogueCellSpecialType} + */ + public enum ChessRogueCellSpecialType implements ProtoEnum { + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE = 0; + */ + CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE("CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE", 0), + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED = 1; + */ + CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED("CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED", 1), + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE = 2; + */ + CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE("CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE", 2), + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED = 3; + */ + CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED("CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED", 3), + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED = 4; + */ + CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED("CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED", 4), + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP = 5; + */ + CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP("CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP", 5); + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE = 0; + */ + public static final int CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE_VALUE = 0; + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED = 1; + */ + public static final int CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED_VALUE = 1; + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE = 2; + */ + public static final int CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE_VALUE = 2; + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED = 3; + */ + public static final int CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED_VALUE = 3; + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED = 4; + */ + public static final int CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED_VALUE = 4; + + /** + * CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP = 5; + */ + public static final int CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP_VALUE = 5; + + private final String name; + + private final int number; + + private ChessRogueCellSpecialType(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 ChessRogueCellSpecialTypeConverter.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 ChessRogueCellSpecialType forNumber(int value) { + return ChessRogueCellSpecialTypeConverter.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 ChessRogueCellSpecialType forNumberOr(int number, + ChessRogueCellSpecialType other) { + ChessRogueCellSpecialType value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueCellSpecialTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueCellSpecialType[] lookup = new ChessRogueCellSpecialType[6]; + + static { + lookup[0] = CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE; + lookup[1] = CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED; + lookup[2] = CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE; + lookup[3] = CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED; + lookup[4] = CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED; + lookup[5] = CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP; + } + + @Override + public final ChessRogueCellSpecialType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueCellSpecialType forName(final CharSequence value) { + switch (value.length()) { + case 34: { + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE", value)) { + return CHESS_ROGUE_CELL_SPECIAL_TYPE_NONE; + } + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED", value)) { + return CHESS_ROGUE_CELL_SPECIAL_TYPE_SEED; + } + break; + } + case 35: { + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP", value)) { + return CHESS_ROGUE_CELL_SPECIAL_TYPE_STAMP; + } + break; + } + case 36: { + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED", value)) { + return CHESS_ROGUE_CELL_SPECIAL_TYPE_LOCKED; + } + break; + } + case 39: { + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE", value)) { + return CHESS_ROGUE_CELL_SPECIAL_TYPE_REPLICATE; + } + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED", value)) { + return CHESS_ROGUE_CELL_SPECIAL_TYPE_PROTECTED; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateReasonOuterClass.java new file mode 100644 index 000000000..71cb1aa29 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateReasonOuterClass.java @@ -0,0 +1,117 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueCellUpdateReasonOuterClass { + /** + * Protobuf enum {@code ChessRogueCellUpdateReason} + */ + public enum ChessRogueCellUpdateReason implements ProtoEnum { + /** + * CHESS_ROGUE_CELL_UPDATE_REASON_NONE = 0; + */ + CHESS_ROGUE_CELL_UPDATE_REASON_NONE("CHESS_ROGUE_CELL_UPDATE_REASON_NONE", 0), + + /** + * CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 1; + */ + CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER("CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER", 1); + + /** + * CHESS_ROGUE_CELL_UPDATE_REASON_NONE = 0; + */ + public static final int CHESS_ROGUE_CELL_UPDATE_REASON_NONE_VALUE = 0; + + /** + * CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 1; + */ + public static final int CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER_VALUE = 1; + + private final String name; + + private final int number; + + private ChessRogueCellUpdateReason(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 ChessRogueCellUpdateReasonConverter.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 ChessRogueCellUpdateReason forNumber(int value) { + return ChessRogueCellUpdateReasonConverter.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 ChessRogueCellUpdateReason forNumberOr(int number, + ChessRogueCellUpdateReason other) { + ChessRogueCellUpdateReason value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueCellUpdateReasonConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueCellUpdateReason[] lookup = new ChessRogueCellUpdateReason[2]; + + static { + lookup[0] = CHESS_ROGUE_CELL_UPDATE_REASON_NONE; + lookup[1] = CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER; + } + + @Override + public final ChessRogueCellUpdateReason forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueCellUpdateReason forName(final CharSequence value) { + if (value.length() == 35) { + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_UPDATE_REASON_NONE", value)) { + return CHESS_ROGUE_CELL_UPDATE_REASON_NONE; + } + } + if (value.length() == 39) { + if (ProtoUtil.isEqual("CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER", value)) { + return CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueChangeyAeonDimensionNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueChangeyAeonDimensionNotifyOuterClass.java new file mode 100644 index 000000000..375cf5d94 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueChangeyAeonDimensionNotifyOuterClass.java @@ -0,0 +1,287 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueChangeyAeonDimensionNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueChangeyAeonDimensionNotify} + */ + public static final class ChessRogueChangeyAeonDimensionNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueQueryAeon info = 6; + */ + private final ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon info = ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon.newInstance(); + + private ChessRogueChangeyAeonDimensionNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueChangeyAeonDimensionNotify} + */ + public static ChessRogueChangeyAeonDimensionNotify newInstance() { + return new ChessRogueChangeyAeonDimensionNotify(); + } + + /** + * optional .ChessRogueQueryAeon info = 6; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueQueryAeon info = 6; + * @return this + */ + public ChessRogueChangeyAeonDimensionNotify clearInfo() { + bitField0_ &= ~0x00000001; + info.clear(); + return this; + } + + /** + * optional .ChessRogueQueryAeon info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon getInfo() { + return info; + } + + /** + * optional .ChessRogueQueryAeon info = 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 ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon getMutableInfo() { + bitField0_ |= 0x00000001; + return info; + } + + /** + * optional .ChessRogueQueryAeon info = 6; + * @param value the info to set + * @return this + */ + public ChessRogueChangeyAeonDimensionNotify setInfo( + final ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon value) { + bitField0_ |= 0x00000001; + info.copyFrom(value); + return this; + } + + @Override + public ChessRogueChangeyAeonDimensionNotify copyFrom( + final ChessRogueChangeyAeonDimensionNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + info.copyFrom(other.info); + } + return this; + } + + @Override + public ChessRogueChangeyAeonDimensionNotify mergeFrom( + final ChessRogueChangeyAeonDimensionNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + return this; + } + + @Override + public ChessRogueChangeyAeonDimensionNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clear(); + return this; + } + + @Override + public ChessRogueChangeyAeonDimensionNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueChangeyAeonDimensionNotify)) { + return false; + } + ChessRogueChangeyAeonDimensionNotify other = (ChessRogueChangeyAeonDimensionNotify) o; + return bitField0_ == other.bitField0_ + && (!hasInfo() || info.equals(other.info)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(info); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueChangeyAeonDimensionNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 50: { + // info + input.readMessage(info); + 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.writeMessage(FieldNames.info, info); + } + output.endObject(); + } + + @Override + public ChessRogueChangeyAeonDimensionNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueChangeyAeonDimensionNotify clone() { + return new ChessRogueChangeyAeonDimensionNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueChangeyAeonDimensionNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueChangeyAeonDimensionNotify(), data).checkInitialized(); + } + + public static ChessRogueChangeyAeonDimensionNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueChangeyAeonDimensionNotify(), input).checkInitialized(); + } + + public static ChessRogueChangeyAeonDimensionNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueChangeyAeonDimensionNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueChangeyAeonDimensionNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueChangeyAeonDimensionNotifyFactory.INSTANCE; + } + + private enum ChessRogueChangeyAeonDimensionNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueChangeyAeonDimensionNotify create() { + return ChessRogueChangeyAeonDimensionNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName info = FieldName.forField("info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCheatRollCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCheatRollCsReqOuterClass.java new file mode 100644 index 000000000..3b80bf022 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueCheatRollCsReqOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueCheatRollCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueCheatRollCsReq} + */ + public static final class ChessRogueCheatRollCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 surface_id = 9; + */ + private int surfaceId; + + /** + * optional uint32 OHCBBBKBIPJ = 15; + */ + private int oHCBBBKBIPJ; + + private ChessRogueCheatRollCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueCheatRollCsReq} + */ + public static ChessRogueCheatRollCsReq newInstance() { + return new ChessRogueCheatRollCsReq(); + } + + /** + * optional uint32 surface_id = 9; + * @return whether the surfaceId field is set + */ + public boolean hasSurfaceId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 surface_id = 9; + * @return this + */ + public ChessRogueCheatRollCsReq clearSurfaceId() { + bitField0_ &= ~0x00000001; + surfaceId = 0; + return this; + } + + /** + * optional uint32 surface_id = 9; + * @return the surfaceId + */ + public int getSurfaceId() { + return surfaceId; + } + + /** + * optional uint32 surface_id = 9; + * @param value the surfaceId to set + * @return this + */ + public ChessRogueCheatRollCsReq setSurfaceId(final int value) { + bitField0_ |= 0x00000001; + surfaceId = value; + return this; + } + + /** + * optional uint32 OHCBBBKBIPJ = 15; + * @return whether the oHCBBBKBIPJ field is set + */ + public boolean hasOHCBBBKBIPJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 OHCBBBKBIPJ = 15; + * @return this + */ + public ChessRogueCheatRollCsReq clearOHCBBBKBIPJ() { + bitField0_ &= ~0x00000002; + oHCBBBKBIPJ = 0; + return this; + } + + /** + * optional uint32 OHCBBBKBIPJ = 15; + * @return the oHCBBBKBIPJ + */ + public int getOHCBBBKBIPJ() { + return oHCBBBKBIPJ; + } + + /** + * optional uint32 OHCBBBKBIPJ = 15; + * @param value the oHCBBBKBIPJ to set + * @return this + */ + public ChessRogueCheatRollCsReq setOHCBBBKBIPJ(final int value) { + bitField0_ |= 0x00000002; + oHCBBBKBIPJ = value; + return this; + } + + @Override + public ChessRogueCheatRollCsReq copyFrom(final ChessRogueCheatRollCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + surfaceId = other.surfaceId; + oHCBBBKBIPJ = other.oHCBBBKBIPJ; + } + return this; + } + + @Override + public ChessRogueCheatRollCsReq mergeFrom(final ChessRogueCheatRollCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSurfaceId()) { + setSurfaceId(other.surfaceId); + } + if (other.hasOHCBBBKBIPJ()) { + setOHCBBBKBIPJ(other.oHCBBBKBIPJ); + } + return this; + } + + @Override + public ChessRogueCheatRollCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + surfaceId = 0; + oHCBBBKBIPJ = 0; + return this; + } + + @Override + public ChessRogueCheatRollCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueCheatRollCsReq)) { + return false; + } + ChessRogueCheatRollCsReq other = (ChessRogueCheatRollCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasSurfaceId() || surfaceId == other.surfaceId) + && (!hasOHCBBBKBIPJ() || oHCBBBKBIPJ == other.oHCBBBKBIPJ); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(surfaceId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(oHCBBBKBIPJ); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(surfaceId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oHCBBBKBIPJ); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueCheatRollCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // surfaceId + surfaceId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // oHCBBBKBIPJ + oHCBBBKBIPJ = input.readUInt32(); + 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.surfaceId, surfaceId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oHCBBBKBIPJ, oHCBBBKBIPJ); + } + output.endObject(); + } + + @Override + public ChessRogueCheatRollCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1455521448: + case -2123453971: { + if (input.isAtField(FieldNames.surfaceId)) { + if (!input.trySkipNullValue()) { + surfaceId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1433188372: { + if (input.isAtField(FieldNames.oHCBBBKBIPJ)) { + if (!input.trySkipNullValue()) { + oHCBBBKBIPJ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueCheatRollCsReq clone() { + return new ChessRogueCheatRollCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueCheatRollCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueCheatRollCsReq(), data).checkInitialized(); + } + + public static ChessRogueCheatRollCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueCheatRollCsReq(), input).checkInitialized(); + } + + public static ChessRogueCheatRollCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueCheatRollCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueCheatRollCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueCheatRollCsReqFactory.INSTANCE; + } + + private enum ChessRogueCheatRollCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueCheatRollCsReq create() { + return ChessRogueCheatRollCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName surfaceId = FieldName.forField("surfaceId", "surface_id"); + + static final FieldName oHCBBBKBIPJ = FieldName.forField("OHCBBBKBIPJ"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCheatRollScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCheatRollScRspOuterClass.java new file mode 100644 index 000000000..4e7c34332 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueCheatRollScRspOuterClass.java @@ -0,0 +1,523 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueCheatRollScRspOuterClass { + /** + * Protobuf type {@code ChessRogueCheatRollScRsp} + */ + public static final class ChessRogueCheatRollScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ADJBGAIOOBM = 1; + */ + private int aDJBGAIOOBM; + + /** + * optional uint32 surface_id = 4; + */ + private int surfaceId; + + /** + * optional uint32 retcode = 9; + */ + private int retcode; + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 14; + */ + private final ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo rogueDiceInfo = ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo.newInstance(); + + private ChessRogueCheatRollScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueCheatRollScRsp} + */ + public static ChessRogueCheatRollScRsp newInstance() { + return new ChessRogueCheatRollScRsp(); + } + + /** + * optional uint32 ADJBGAIOOBM = 1; + * @return whether the aDJBGAIOOBM field is set + */ + public boolean hasADJBGAIOOBM() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ADJBGAIOOBM = 1; + * @return this + */ + public ChessRogueCheatRollScRsp clearADJBGAIOOBM() { + bitField0_ &= ~0x00000001; + aDJBGAIOOBM = 0; + return this; + } + + /** + * optional uint32 ADJBGAIOOBM = 1; + * @return the aDJBGAIOOBM + */ + public int getADJBGAIOOBM() { + return aDJBGAIOOBM; + } + + /** + * optional uint32 ADJBGAIOOBM = 1; + * @param value the aDJBGAIOOBM to set + * @return this + */ + public ChessRogueCheatRollScRsp setADJBGAIOOBM(final int value) { + bitField0_ |= 0x00000001; + aDJBGAIOOBM = value; + return this; + } + + /** + * optional uint32 surface_id = 4; + * @return whether the surfaceId field is set + */ + public boolean hasSurfaceId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 surface_id = 4; + * @return this + */ + public ChessRogueCheatRollScRsp clearSurfaceId() { + bitField0_ &= ~0x00000002; + surfaceId = 0; + return this; + } + + /** + * optional uint32 surface_id = 4; + * @return the surfaceId + */ + public int getSurfaceId() { + return surfaceId; + } + + /** + * optional uint32 surface_id = 4; + * @param value the surfaceId to set + * @return this + */ + public ChessRogueCheatRollScRsp setSurfaceId(final int value) { + bitField0_ |= 0x00000002; + surfaceId = value; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 9; + * @return this + */ + public ChessRogueCheatRollScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 9; + * @param value the retcode to set + * @return this + */ + public ChessRogueCheatRollScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 14; + * @return whether the rogueDiceInfo field is set + */ + public boolean hasRogueDiceInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 14; + * @return this + */ + public ChessRogueCheatRollScRsp clearRogueDiceInfo() { + bitField0_ &= ~0x00000008; + rogueDiceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 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 #getMutableRogueDiceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo getRogueDiceInfo() { + return rogueDiceInfo; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 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 ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo getMutableRogueDiceInfo() { + bitField0_ |= 0x00000008; + return rogueDiceInfo; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 14; + * @param value the rogueDiceInfo to set + * @return this + */ + public ChessRogueCheatRollScRsp setRogueDiceInfo( + final ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo value) { + bitField0_ |= 0x00000008; + rogueDiceInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueCheatRollScRsp copyFrom(final ChessRogueCheatRollScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aDJBGAIOOBM = other.aDJBGAIOOBM; + surfaceId = other.surfaceId; + retcode = other.retcode; + rogueDiceInfo.copyFrom(other.rogueDiceInfo); + } + return this; + } + + @Override + public ChessRogueCheatRollScRsp mergeFrom(final ChessRogueCheatRollScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasADJBGAIOOBM()) { + setADJBGAIOOBM(other.aDJBGAIOOBM); + } + if (other.hasSurfaceId()) { + setSurfaceId(other.surfaceId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRogueDiceInfo()) { + getMutableRogueDiceInfo().mergeFrom(other.rogueDiceInfo); + } + return this; + } + + @Override + public ChessRogueCheatRollScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aDJBGAIOOBM = 0; + surfaceId = 0; + retcode = 0; + rogueDiceInfo.clear(); + return this; + } + + @Override + public ChessRogueCheatRollScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueDiceInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueCheatRollScRsp)) { + return false; + } + ChessRogueCheatRollScRsp other = (ChessRogueCheatRollScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasADJBGAIOOBM() || aDJBGAIOOBM == other.aDJBGAIOOBM) + && (!hasSurfaceId() || surfaceId == other.surfaceId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasRogueDiceInfo() || rogueDiceInfo.equals(other.rogueDiceInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(aDJBGAIOOBM); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(surfaceId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(rogueDiceInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aDJBGAIOOBM); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(surfaceId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueDiceInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueCheatRollScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // aDJBGAIOOBM + aDJBGAIOOBM = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // surfaceId + surfaceId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // rogueDiceInfo + input.readMessage(rogueDiceInfo); + 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.aDJBGAIOOBM, aDJBGAIOOBM); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.surfaceId, surfaceId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueDiceInfo, rogueDiceInfo); + } + output.endObject(); + } + + @Override + public ChessRogueCheatRollScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1951945823: { + if (input.isAtField(FieldNames.aDJBGAIOOBM)) { + if (!input.trySkipNullValue()) { + aDJBGAIOOBM = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1455521448: + case -2123453971: { + if (input.isAtField(FieldNames.surfaceId)) { + if (!input.trySkipNullValue()) { + surfaceId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1848368913: + case -2144816607: { + if (input.isAtField(FieldNames.rogueDiceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueDiceInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueCheatRollScRsp clone() { + return new ChessRogueCheatRollScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueCheatRollScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueCheatRollScRsp(), data).checkInitialized(); + } + + public static ChessRogueCheatRollScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueCheatRollScRsp(), input).checkInitialized(); + } + + public static ChessRogueCheatRollScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueCheatRollScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueCheatRollScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueCheatRollScRspFactory.INSTANCE; + } + + private enum ChessRogueCheatRollScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueCheatRollScRsp create() { + return ChessRogueCheatRollScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aDJBGAIOOBM = FieldName.forField("ADJBGAIOOBM"); + + static final FieldName surfaceId = FieldName.forField("surfaceId", "surface_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rogueDiceInfo = FieldName.forField("rogueDiceInfo", "rogue_dice_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueConfirmRollCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueConfirmRollCsReqOuterClass.java new file mode 100644 index 000000000..2e4c664aa --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueConfirmRollCsReqOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueConfirmRollCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueConfirmRollCsReq} + */ + public static final class ChessRogueConfirmRollCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 OHCBBBKBIPJ = 9; + */ + private int oHCBBBKBIPJ; + + private ChessRogueConfirmRollCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueConfirmRollCsReq} + */ + public static ChessRogueConfirmRollCsReq newInstance() { + return new ChessRogueConfirmRollCsReq(); + } + + /** + * optional uint32 OHCBBBKBIPJ = 9; + * @return whether the oHCBBBKBIPJ field is set + */ + public boolean hasOHCBBBKBIPJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 OHCBBBKBIPJ = 9; + * @return this + */ + public ChessRogueConfirmRollCsReq clearOHCBBBKBIPJ() { + bitField0_ &= ~0x00000001; + oHCBBBKBIPJ = 0; + return this; + } + + /** + * optional uint32 OHCBBBKBIPJ = 9; + * @return the oHCBBBKBIPJ + */ + public int getOHCBBBKBIPJ() { + return oHCBBBKBIPJ; + } + + /** + * optional uint32 OHCBBBKBIPJ = 9; + * @param value the oHCBBBKBIPJ to set + * @return this + */ + public ChessRogueConfirmRollCsReq setOHCBBBKBIPJ(final int value) { + bitField0_ |= 0x00000001; + oHCBBBKBIPJ = value; + return this; + } + + @Override + public ChessRogueConfirmRollCsReq copyFrom(final ChessRogueConfirmRollCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + oHCBBBKBIPJ = other.oHCBBBKBIPJ; + } + return this; + } + + @Override + public ChessRogueConfirmRollCsReq mergeFrom(final ChessRogueConfirmRollCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOHCBBBKBIPJ()) { + setOHCBBBKBIPJ(other.oHCBBBKBIPJ); + } + return this; + } + + @Override + public ChessRogueConfirmRollCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oHCBBBKBIPJ = 0; + return this; + } + + @Override + public ChessRogueConfirmRollCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueConfirmRollCsReq)) { + return false; + } + ChessRogueConfirmRollCsReq other = (ChessRogueConfirmRollCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasOHCBBBKBIPJ() || oHCBBBKBIPJ == other.oHCBBBKBIPJ); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(oHCBBBKBIPJ); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oHCBBBKBIPJ); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueConfirmRollCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // oHCBBBKBIPJ + oHCBBBKBIPJ = input.readUInt32(); + 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.writeUInt32(FieldNames.oHCBBBKBIPJ, oHCBBBKBIPJ); + } + output.endObject(); + } + + @Override + public ChessRogueConfirmRollCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1433188372: { + if (input.isAtField(FieldNames.oHCBBBKBIPJ)) { + if (!input.trySkipNullValue()) { + oHCBBBKBIPJ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueConfirmRollCsReq clone() { + return new ChessRogueConfirmRollCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueConfirmRollCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueConfirmRollCsReq(), data).checkInitialized(); + } + + public static ChessRogueConfirmRollCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueConfirmRollCsReq(), input).checkInitialized(); + } + + public static ChessRogueConfirmRollCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueConfirmRollCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueConfirmRollCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueConfirmRollCsReqFactory.INSTANCE; + } + + private enum ChessRogueConfirmRollCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueConfirmRollCsReq create() { + return ChessRogueConfirmRollCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName oHCBBBKBIPJ = FieldName.forField("OHCBBBKBIPJ"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCurrentDifficultyInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCurrentDifficultyInfoOuterClass.java new file mode 100644 index 000000000..78b12f946 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueCurrentDifficultyInfoOuterClass.java @@ -0,0 +1,303 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueCurrentDifficultyInfoOuterClass { + /** + * Protobuf type {@code ChessRogueCurrentDifficultyInfo} + */ + public static final class ChessRogueCurrentDifficultyInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 difficulty_id_list = 9; + */ + private final RepeatedInt difficultyIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueCurrentDifficultyInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueCurrentDifficultyInfo} + */ + public static ChessRogueCurrentDifficultyInfo newInstance() { + return new ChessRogueCurrentDifficultyInfo(); + } + + /** + * repeated uint32 difficulty_id_list = 9; + * @return whether the difficultyIdList field is set + */ + public boolean hasDifficultyIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 difficulty_id_list = 9; + * @return this + */ + public ChessRogueCurrentDifficultyInfo clearDifficultyIdList() { + bitField0_ &= ~0x00000001; + difficultyIdList.clear(); + return this; + } + + /** + * repeated uint32 difficulty_id_list = 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 #getMutableDifficultyIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDifficultyIdList() { + return difficultyIdList; + } + + /** + * repeated uint32 difficulty_id_list = 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 RepeatedInt getMutableDifficultyIdList() { + bitField0_ |= 0x00000001; + return difficultyIdList; + } + + /** + * repeated uint32 difficulty_id_list = 9; + * @param value the difficultyIdList to add + * @return this + */ + public ChessRogueCurrentDifficultyInfo addDifficultyIdList(final int value) { + bitField0_ |= 0x00000001; + difficultyIdList.add(value); + return this; + } + + /** + * repeated uint32 difficulty_id_list = 9; + * @param values the difficultyIdList to add + * @return this + */ + public ChessRogueCurrentDifficultyInfo addAllDifficultyIdList(final int... values) { + bitField0_ |= 0x00000001; + difficultyIdList.addAll(values); + return this; + } + + @Override + public ChessRogueCurrentDifficultyInfo copyFrom(final ChessRogueCurrentDifficultyInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + difficultyIdList.copyFrom(other.difficultyIdList); + } + return this; + } + + @Override + public ChessRogueCurrentDifficultyInfo mergeFrom(final ChessRogueCurrentDifficultyInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDifficultyIdList()) { + getMutableDifficultyIdList().addAll(other.difficultyIdList); + } + return this; + } + + @Override + public ChessRogueCurrentDifficultyInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + difficultyIdList.clear(); + return this; + } + + @Override + public ChessRogueCurrentDifficultyInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + difficultyIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueCurrentDifficultyInfo)) { + return false; + } + ChessRogueCurrentDifficultyInfo other = (ChessRogueCurrentDifficultyInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDifficultyIdList() || difficultyIdList.equals(other.difficultyIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < difficultyIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(difficultyIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * difficultyIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(difficultyIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueCurrentDifficultyInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // difficultyIdList [packed=true] + input.readPackedUInt32(difficultyIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 72: { + // difficultyIdList [packed=false] + tag = input.readRepeatedUInt32(difficultyIdList, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.difficultyIdList, difficultyIdList); + } + output.endObject(); + } + + @Override + public ChessRogueCurrentDifficultyInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2107959308: + case 1982990526: { + if (input.isAtField(FieldNames.difficultyIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(difficultyIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueCurrentDifficultyInfo clone() { + return new ChessRogueCurrentDifficultyInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueCurrentDifficultyInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueCurrentDifficultyInfo(), data).checkInitialized(); + } + + public static ChessRogueCurrentDifficultyInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueCurrentDifficultyInfo(), input).checkInitialized(); + } + + public static ChessRogueCurrentDifficultyInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueCurrentDifficultyInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueCurrentDifficultyInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueCurrentDifficultyInfoFactory.INSTANCE; + } + + private enum ChessRogueCurrentDifficultyInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueCurrentDifficultyInfo create() { + return ChessRogueCurrentDifficultyInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName difficultyIdList = FieldName.forField("difficultyIdList", "difficulty_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueDiceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceInfoOuterClass.java new file mode 100644 index 000000000..663586104 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceInfoOuterClass.java @@ -0,0 +1,1721 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueDiceInfoOuterClass { + /** + * Protobuf type {@code ChessRogueDiceInfo} + */ + public static final class ChessRogueDiceInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 NHFELECMHIN = 944; + */ + private int nHFELECMHIN; + + /** + * optional uint32 reroll_times = 2; + */ + private int rerollTimes; + + /** + * optional uint32 cur_branch_id = 3; + */ + private int curBranchId; + + /** + * optional uint32 cur_surface_id = 4; + */ + private int curSurfaceId; + + /** + * optional uint32 CACKIGMCKFK = 8; + */ + private int cACKIGMCKFK; + + /** + * optional uint32 branch_id = 10; + */ + private int branchId; + + /** + * optional uint32 KDGGOKGJLMC = 11; + */ + private int kDGGOKGJLMC; + + /** + * optional uint32 cur_surface_index = 13; + */ + private int curSurfaceIndex; + + /** + * optional uint32 cheat_times = 14; + */ + private int cheatTimes; + + /** + * optional .ChessRogueDiceStatus dice_status = 9; + */ + private int diceStatus; + + /** + * optional .ChessRogueDiceType dice_type = 12; + */ + private int diceType; + + /** + * optional bool DPNCGPOLFKH = 15; + */ + private boolean dPNCGPOLFKH; + + /** + * optional bool can_reroll_dice = 162; + */ + private boolean canRerollDice; + + /** + * optional .ICNMLEMMHKL AMDLOMOGEOE = 263; + */ + private final ICNMLEMMHKLOuterClass.ICNMLEMMHKL aMDLOMOGEOE = ICNMLEMMHKLOuterClass.ICNMLEMMHKL.newInstance(); + + /** + * optional .ChessRogueDice dice = 617; + */ + private final ChessRogueDiceOuterClass.ChessRogueDice dice = ChessRogueDiceOuterClass.ChessRogueDice.newInstance(); + + /** + * optional .RogueModifier dice_modifier = 1741; + */ + private final RogueModifierOuterClass.RogueModifier diceModifier = RogueModifierOuterClass.RogueModifier.newInstance(); + + /** + * repeated uint32 CLDNFIJILNP = 1633; + */ + private final RepeatedInt cLDNFIJILNP = RepeatedInt.newEmptyInstance(); + + private ChessRogueDiceInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueDiceInfo} + */ + public static ChessRogueDiceInfo newInstance() { + return new ChessRogueDiceInfo(); + } + + /** + * optional int32 NHFELECMHIN = 944; + * @return whether the nHFELECMHIN field is set + */ + public boolean hasNHFELECMHIN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 NHFELECMHIN = 944; + * @return this + */ + public ChessRogueDiceInfo clearNHFELECMHIN() { + bitField0_ &= ~0x00000001; + nHFELECMHIN = 0; + return this; + } + + /** + * optional int32 NHFELECMHIN = 944; + * @return the nHFELECMHIN + */ + public int getNHFELECMHIN() { + return nHFELECMHIN; + } + + /** + * optional int32 NHFELECMHIN = 944; + * @param value the nHFELECMHIN to set + * @return this + */ + public ChessRogueDiceInfo setNHFELECMHIN(final int value) { + bitField0_ |= 0x00000001; + nHFELECMHIN = value; + return this; + } + + /** + * optional uint32 reroll_times = 2; + * @return whether the rerollTimes field is set + */ + public boolean hasRerollTimes() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 reroll_times = 2; + * @return this + */ + public ChessRogueDiceInfo clearRerollTimes() { + bitField0_ &= ~0x00000002; + rerollTimes = 0; + return this; + } + + /** + * optional uint32 reroll_times = 2; + * @return the rerollTimes + */ + public int getRerollTimes() { + return rerollTimes; + } + + /** + * optional uint32 reroll_times = 2; + * @param value the rerollTimes to set + * @return this + */ + public ChessRogueDiceInfo setRerollTimes(final int value) { + bitField0_ |= 0x00000002; + rerollTimes = value; + return this; + } + + /** + * optional uint32 cur_branch_id = 3; + * @return whether the curBranchId field is set + */ + public boolean hasCurBranchId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cur_branch_id = 3; + * @return this + */ + public ChessRogueDiceInfo clearCurBranchId() { + bitField0_ &= ~0x00000004; + curBranchId = 0; + return this; + } + + /** + * optional uint32 cur_branch_id = 3; + * @return the curBranchId + */ + public int getCurBranchId() { + return curBranchId; + } + + /** + * optional uint32 cur_branch_id = 3; + * @param value the curBranchId to set + * @return this + */ + public ChessRogueDiceInfo setCurBranchId(final int value) { + bitField0_ |= 0x00000004; + curBranchId = value; + return this; + } + + /** + * optional uint32 cur_surface_id = 4; + * @return whether the curSurfaceId field is set + */ + public boolean hasCurSurfaceId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 cur_surface_id = 4; + * @return this + */ + public ChessRogueDiceInfo clearCurSurfaceId() { + bitField0_ &= ~0x00000008; + curSurfaceId = 0; + return this; + } + + /** + * optional uint32 cur_surface_id = 4; + * @return the curSurfaceId + */ + public int getCurSurfaceId() { + return curSurfaceId; + } + + /** + * optional uint32 cur_surface_id = 4; + * @param value the curSurfaceId to set + * @return this + */ + public ChessRogueDiceInfo setCurSurfaceId(final int value) { + bitField0_ |= 0x00000008; + curSurfaceId = value; + return this; + } + + /** + * optional uint32 CACKIGMCKFK = 8; + * @return whether the cACKIGMCKFK field is set + */ + public boolean hasCACKIGMCKFK() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 CACKIGMCKFK = 8; + * @return this + */ + public ChessRogueDiceInfo clearCACKIGMCKFK() { + bitField0_ &= ~0x00000010; + cACKIGMCKFK = 0; + return this; + } + + /** + * optional uint32 CACKIGMCKFK = 8; + * @return the cACKIGMCKFK + */ + public int getCACKIGMCKFK() { + return cACKIGMCKFK; + } + + /** + * optional uint32 CACKIGMCKFK = 8; + * @param value the cACKIGMCKFK to set + * @return this + */ + public ChessRogueDiceInfo setCACKIGMCKFK(final int value) { + bitField0_ |= 0x00000010; + cACKIGMCKFK = value; + return this; + } + + /** + * optional uint32 branch_id = 10; + * @return whether the branchId field is set + */ + public boolean hasBranchId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 branch_id = 10; + * @return this + */ + public ChessRogueDiceInfo clearBranchId() { + bitField0_ &= ~0x00000020; + branchId = 0; + return this; + } + + /** + * optional uint32 branch_id = 10; + * @return the branchId + */ + public int getBranchId() { + return branchId; + } + + /** + * optional uint32 branch_id = 10; + * @param value the branchId to set + * @return this + */ + public ChessRogueDiceInfo setBranchId(final int value) { + bitField0_ |= 0x00000020; + branchId = value; + return this; + } + + /** + * optional uint32 KDGGOKGJLMC = 11; + * @return whether the kDGGOKGJLMC field is set + */ + public boolean hasKDGGOKGJLMC() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 KDGGOKGJLMC = 11; + * @return this + */ + public ChessRogueDiceInfo clearKDGGOKGJLMC() { + bitField0_ &= ~0x00000040; + kDGGOKGJLMC = 0; + return this; + } + + /** + * optional uint32 KDGGOKGJLMC = 11; + * @return the kDGGOKGJLMC + */ + public int getKDGGOKGJLMC() { + return kDGGOKGJLMC; + } + + /** + * optional uint32 KDGGOKGJLMC = 11; + * @param value the kDGGOKGJLMC to set + * @return this + */ + public ChessRogueDiceInfo setKDGGOKGJLMC(final int value) { + bitField0_ |= 0x00000040; + kDGGOKGJLMC = value; + return this; + } + + /** + * optional uint32 cur_surface_index = 13; + * @return whether the curSurfaceIndex field is set + */ + public boolean hasCurSurfaceIndex() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 cur_surface_index = 13; + * @return this + */ + public ChessRogueDiceInfo clearCurSurfaceIndex() { + bitField0_ &= ~0x00000080; + curSurfaceIndex = 0; + return this; + } + + /** + * optional uint32 cur_surface_index = 13; + * @return the curSurfaceIndex + */ + public int getCurSurfaceIndex() { + return curSurfaceIndex; + } + + /** + * optional uint32 cur_surface_index = 13; + * @param value the curSurfaceIndex to set + * @return this + */ + public ChessRogueDiceInfo setCurSurfaceIndex(final int value) { + bitField0_ |= 0x00000080; + curSurfaceIndex = value; + return this; + } + + /** + * optional uint32 cheat_times = 14; + * @return whether the cheatTimes field is set + */ + public boolean hasCheatTimes() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 cheat_times = 14; + * @return this + */ + public ChessRogueDiceInfo clearCheatTimes() { + bitField0_ &= ~0x00000100; + cheatTimes = 0; + return this; + } + + /** + * optional uint32 cheat_times = 14; + * @return the cheatTimes + */ + public int getCheatTimes() { + return cheatTimes; + } + + /** + * optional uint32 cheat_times = 14; + * @param value the cheatTimes to set + * @return this + */ + public ChessRogueDiceInfo setCheatTimes(final int value) { + bitField0_ |= 0x00000100; + cheatTimes = value; + return this; + } + + /** + * optional .ChessRogueDiceStatus dice_status = 9; + * @return whether the diceStatus field is set + */ + public boolean hasDiceStatus() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .ChessRogueDiceStatus dice_status = 9; + * @return this + */ + public ChessRogueDiceInfo clearDiceStatus() { + bitField0_ &= ~0x00000200; + diceStatus = 0; + return this; + } + + /** + * optional .ChessRogueDiceStatus dice_status = 9; + * @return the diceStatus + */ + public ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus getDiceStatus() { + return ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus.forNumber(diceStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueDiceInfo#getDiceStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getDiceStatusValue() { + return diceStatus; + } + + /** + * 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 ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus}. Setting an invalid value + * can cause {@link ChessRogueDiceInfo#getDiceStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueDiceInfo setDiceStatusValue(final int value) { + bitField0_ |= 0x00000200; + diceStatus = value; + return this; + } + + /** + * optional .ChessRogueDiceStatus dice_status = 9; + * @param value the diceStatus to set + * @return this + */ + public ChessRogueDiceInfo setDiceStatus( + final ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus value) { + bitField0_ |= 0x00000200; + diceStatus = value.getNumber(); + return this; + } + + /** + * optional .ChessRogueDiceType dice_type = 12; + * @return whether the diceType field is set + */ + public boolean hasDiceType() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .ChessRogueDiceType dice_type = 12; + * @return this + */ + public ChessRogueDiceInfo clearDiceType() { + bitField0_ &= ~0x00000400; + diceType = 0; + return this; + } + + /** + * optional .ChessRogueDiceType dice_type = 12; + * @return the diceType + */ + public ChessRogueDiceTypeOuterClass.ChessRogueDiceType getDiceType() { + return ChessRogueDiceTypeOuterClass.ChessRogueDiceType.forNumber(diceType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueDiceInfo#getDiceType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getDiceTypeValue() { + return diceType; + } + + /** + * 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 ChessRogueDiceTypeOuterClass.ChessRogueDiceType}. Setting an invalid value + * can cause {@link ChessRogueDiceInfo#getDiceType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueDiceInfo setDiceTypeValue(final int value) { + bitField0_ |= 0x00000400; + diceType = value; + return this; + } + + /** + * optional .ChessRogueDiceType dice_type = 12; + * @param value the diceType to set + * @return this + */ + public ChessRogueDiceInfo setDiceType( + final ChessRogueDiceTypeOuterClass.ChessRogueDiceType value) { + bitField0_ |= 0x00000400; + diceType = value.getNumber(); + return this; + } + + /** + * optional bool DPNCGPOLFKH = 15; + * @return whether the dPNCGPOLFKH field is set + */ + public boolean hasDPNCGPOLFKH() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional bool DPNCGPOLFKH = 15; + * @return this + */ + public ChessRogueDiceInfo clearDPNCGPOLFKH() { + bitField0_ &= ~0x00000800; + dPNCGPOLFKH = false; + return this; + } + + /** + * optional bool DPNCGPOLFKH = 15; + * @return the dPNCGPOLFKH + */ + public boolean getDPNCGPOLFKH() { + return dPNCGPOLFKH; + } + + /** + * optional bool DPNCGPOLFKH = 15; + * @param value the dPNCGPOLFKH to set + * @return this + */ + public ChessRogueDiceInfo setDPNCGPOLFKH(final boolean value) { + bitField0_ |= 0x00000800; + dPNCGPOLFKH = value; + return this; + } + + /** + * optional bool can_reroll_dice = 162; + * @return whether the canRerollDice field is set + */ + public boolean hasCanRerollDice() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional bool can_reroll_dice = 162; + * @return this + */ + public ChessRogueDiceInfo clearCanRerollDice() { + bitField0_ &= ~0x00001000; + canRerollDice = false; + return this; + } + + /** + * optional bool can_reroll_dice = 162; + * @return the canRerollDice + */ + public boolean getCanRerollDice() { + return canRerollDice; + } + + /** + * optional bool can_reroll_dice = 162; + * @param value the canRerollDice to set + * @return this + */ + public ChessRogueDiceInfo setCanRerollDice(final boolean value) { + bitField0_ |= 0x00001000; + canRerollDice = value; + return this; + } + + /** + * optional .ICNMLEMMHKL AMDLOMOGEOE = 263; + * @return whether the aMDLOMOGEOE field is set + */ + public boolean hasAMDLOMOGEOE() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional .ICNMLEMMHKL AMDLOMOGEOE = 263; + * @return this + */ + public ChessRogueDiceInfo clearAMDLOMOGEOE() { + bitField0_ &= ~0x00002000; + aMDLOMOGEOE.clear(); + return this; + } + + /** + * optional .ICNMLEMMHKL AMDLOMOGEOE = 263; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAMDLOMOGEOE()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ICNMLEMMHKLOuterClass.ICNMLEMMHKL getAMDLOMOGEOE() { + return aMDLOMOGEOE; + } + + /** + * optional .ICNMLEMMHKL AMDLOMOGEOE = 263; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ICNMLEMMHKLOuterClass.ICNMLEMMHKL getMutableAMDLOMOGEOE() { + bitField0_ |= 0x00002000; + return aMDLOMOGEOE; + } + + /** + * optional .ICNMLEMMHKL AMDLOMOGEOE = 263; + * @param value the aMDLOMOGEOE to set + * @return this + */ + public ChessRogueDiceInfo setAMDLOMOGEOE(final ICNMLEMMHKLOuterClass.ICNMLEMMHKL value) { + bitField0_ |= 0x00002000; + aMDLOMOGEOE.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueDice dice = 617; + * @return whether the dice field is set + */ + public boolean hasDice() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional .ChessRogueDice dice = 617; + * @return this + */ + public ChessRogueDiceInfo clearDice() { + bitField0_ &= ~0x00004000; + dice.clear(); + return this; + } + + /** + * optional .ChessRogueDice dice = 617; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDice()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueDiceOuterClass.ChessRogueDice getDice() { + return dice; + } + + /** + * optional .ChessRogueDice dice = 617; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChessRogueDiceOuterClass.ChessRogueDice getMutableDice() { + bitField0_ |= 0x00004000; + return dice; + } + + /** + * optional .ChessRogueDice dice = 617; + * @param value the dice to set + * @return this + */ + public ChessRogueDiceInfo setDice(final ChessRogueDiceOuterClass.ChessRogueDice value) { + bitField0_ |= 0x00004000; + dice.copyFrom(value); + return this; + } + + /** + * optional .RogueModifier dice_modifier = 1741; + * @return whether the diceModifier field is set + */ + public boolean hasDiceModifier() { + return (bitField0_ & 0x00008000) != 0; + } + + /** + * optional .RogueModifier dice_modifier = 1741; + * @return this + */ + public ChessRogueDiceInfo clearDiceModifier() { + bitField0_ &= ~0x00008000; + diceModifier.clear(); + return this; + } + + /** + * optional .RogueModifier dice_modifier = 1741; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDiceModifier()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueModifierOuterClass.RogueModifier getDiceModifier() { + return diceModifier; + } + + /** + * optional .RogueModifier dice_modifier = 1741; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueModifierOuterClass.RogueModifier getMutableDiceModifier() { + bitField0_ |= 0x00008000; + return diceModifier; + } + + /** + * optional .RogueModifier dice_modifier = 1741; + * @param value the diceModifier to set + * @return this + */ + public ChessRogueDiceInfo setDiceModifier(final RogueModifierOuterClass.RogueModifier value) { + bitField0_ |= 0x00008000; + diceModifier.copyFrom(value); + return this; + } + + /** + * repeated uint32 CLDNFIJILNP = 1633; + * @return whether the cLDNFIJILNP field is set + */ + public boolean hasCLDNFIJILNP() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * repeated uint32 CLDNFIJILNP = 1633; + * @return this + */ + public ChessRogueDiceInfo clearCLDNFIJILNP() { + bitField0_ &= ~0x00010000; + cLDNFIJILNP.clear(); + return this; + } + + /** + * repeated uint32 CLDNFIJILNP = 1633; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableCLDNFIJILNP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getCLDNFIJILNP() { + return cLDNFIJILNP; + } + + /** + * repeated uint32 CLDNFIJILNP = 1633; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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 getMutableCLDNFIJILNP() { + bitField0_ |= 0x00010000; + return cLDNFIJILNP; + } + + /** + * repeated uint32 CLDNFIJILNP = 1633; + * @param value the cLDNFIJILNP to add + * @return this + */ + public ChessRogueDiceInfo addCLDNFIJILNP(final int value) { + bitField0_ |= 0x00010000; + cLDNFIJILNP.add(value); + return this; + } + + /** + * repeated uint32 CLDNFIJILNP = 1633; + * @param values the cLDNFIJILNP to add + * @return this + */ + public ChessRogueDiceInfo addAllCLDNFIJILNP(final int... values) { + bitField0_ |= 0x00010000; + cLDNFIJILNP.addAll(values); + return this; + } + + @Override + public ChessRogueDiceInfo copyFrom(final ChessRogueDiceInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nHFELECMHIN = other.nHFELECMHIN; + rerollTimes = other.rerollTimes; + curBranchId = other.curBranchId; + curSurfaceId = other.curSurfaceId; + cACKIGMCKFK = other.cACKIGMCKFK; + branchId = other.branchId; + kDGGOKGJLMC = other.kDGGOKGJLMC; + curSurfaceIndex = other.curSurfaceIndex; + cheatTimes = other.cheatTimes; + diceStatus = other.diceStatus; + diceType = other.diceType; + dPNCGPOLFKH = other.dPNCGPOLFKH; + canRerollDice = other.canRerollDice; + aMDLOMOGEOE.copyFrom(other.aMDLOMOGEOE); + dice.copyFrom(other.dice); + diceModifier.copyFrom(other.diceModifier); + cLDNFIJILNP.copyFrom(other.cLDNFIJILNP); + } + return this; + } + + @Override + public ChessRogueDiceInfo mergeFrom(final ChessRogueDiceInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNHFELECMHIN()) { + setNHFELECMHIN(other.nHFELECMHIN); + } + if (other.hasRerollTimes()) { + setRerollTimes(other.rerollTimes); + } + if (other.hasCurBranchId()) { + setCurBranchId(other.curBranchId); + } + if (other.hasCurSurfaceId()) { + setCurSurfaceId(other.curSurfaceId); + } + if (other.hasCACKIGMCKFK()) { + setCACKIGMCKFK(other.cACKIGMCKFK); + } + if (other.hasBranchId()) { + setBranchId(other.branchId); + } + if (other.hasKDGGOKGJLMC()) { + setKDGGOKGJLMC(other.kDGGOKGJLMC); + } + if (other.hasCurSurfaceIndex()) { + setCurSurfaceIndex(other.curSurfaceIndex); + } + if (other.hasCheatTimes()) { + setCheatTimes(other.cheatTimes); + } + if (other.hasDiceStatus()) { + setDiceStatusValue(other.diceStatus); + } + if (other.hasDiceType()) { + setDiceTypeValue(other.diceType); + } + if (other.hasDPNCGPOLFKH()) { + setDPNCGPOLFKH(other.dPNCGPOLFKH); + } + if (other.hasCanRerollDice()) { + setCanRerollDice(other.canRerollDice); + } + if (other.hasAMDLOMOGEOE()) { + getMutableAMDLOMOGEOE().mergeFrom(other.aMDLOMOGEOE); + } + if (other.hasDice()) { + getMutableDice().mergeFrom(other.dice); + } + if (other.hasDiceModifier()) { + getMutableDiceModifier().mergeFrom(other.diceModifier); + } + if (other.hasCLDNFIJILNP()) { + getMutableCLDNFIJILNP().addAll(other.cLDNFIJILNP); + } + return this; + } + + @Override + public ChessRogueDiceInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nHFELECMHIN = 0; + rerollTimes = 0; + curBranchId = 0; + curSurfaceId = 0; + cACKIGMCKFK = 0; + branchId = 0; + kDGGOKGJLMC = 0; + curSurfaceIndex = 0; + cheatTimes = 0; + diceStatus = 0; + diceType = 0; + dPNCGPOLFKH = false; + canRerollDice = false; + aMDLOMOGEOE.clear(); + dice.clear(); + diceModifier.clear(); + cLDNFIJILNP.clear(); + return this; + } + + @Override + public ChessRogueDiceInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aMDLOMOGEOE.clearQuick(); + dice.clearQuick(); + diceModifier.clearQuick(); + cLDNFIJILNP.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueDiceInfo)) { + return false; + } + ChessRogueDiceInfo other = (ChessRogueDiceInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNHFELECMHIN() || nHFELECMHIN == other.nHFELECMHIN) + && (!hasRerollTimes() || rerollTimes == other.rerollTimes) + && (!hasCurBranchId() || curBranchId == other.curBranchId) + && (!hasCurSurfaceId() || curSurfaceId == other.curSurfaceId) + && (!hasCACKIGMCKFK() || cACKIGMCKFK == other.cACKIGMCKFK) + && (!hasBranchId() || branchId == other.branchId) + && (!hasKDGGOKGJLMC() || kDGGOKGJLMC == other.kDGGOKGJLMC) + && (!hasCurSurfaceIndex() || curSurfaceIndex == other.curSurfaceIndex) + && (!hasCheatTimes() || cheatTimes == other.cheatTimes) + && (!hasDiceStatus() || diceStatus == other.diceStatus) + && (!hasDiceType() || diceType == other.diceType) + && (!hasDPNCGPOLFKH() || dPNCGPOLFKH == other.dPNCGPOLFKH) + && (!hasCanRerollDice() || canRerollDice == other.canRerollDice) + && (!hasAMDLOMOGEOE() || aMDLOMOGEOE.equals(other.aMDLOMOGEOE)) + && (!hasDice() || dice.equals(other.dice)) + && (!hasDiceModifier() || diceModifier.equals(other.diceModifier)) + && (!hasCLDNFIJILNP() || cLDNFIJILNP.equals(other.cLDNFIJILNP)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 15232); + output.writeInt32NoTag(nHFELECMHIN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rerollTimes); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(curBranchId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(curSurfaceId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(cACKIGMCKFK); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(branchId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(kDGGOKGJLMC); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(curSurfaceIndex); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(cheatTimes); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 72); + output.writeEnumNoTag(diceStatus); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(diceType); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(dPNCGPOLFKH); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawLittleEndian16((short) 2704); + output.writeBoolNoTag(canRerollDice); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawLittleEndian16((short) 4282); + output.writeMessageNoTag(aMDLOMOGEOE); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawLittleEndian16((short) 9930); + output.writeMessageNoTag(dice); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeRawLittleEndian16((short) 27882); + output.writeMessageNoTag(diceModifier); + } + if ((bitField0_ & 0x00010000) != 0) { + for (int i = 0; i < cLDNFIJILNP.length(); i++) { + output.writeRawLittleEndian16((short) 26248); + output.writeUInt32NoTag(cLDNFIJILNP.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeInt32SizeNoTag(nHFELECMHIN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rerollTimes); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curBranchId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curSurfaceId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cACKIGMCKFK); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(branchId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kDGGOKGJLMC); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curSurfaceIndex); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cheatTimes); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(diceStatus); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(diceType); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 2; + } + if ((bitField0_ & 0x00001000) != 0) { + size += 3; + } + if ((bitField0_ & 0x00002000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(aMDLOMOGEOE); + } + if ((bitField0_ & 0x00004000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(dice); + } + if ((bitField0_ & 0x00008000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(diceModifier); + } + if ((bitField0_ & 0x00010000) != 0) { + size += (2 * cLDNFIJILNP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cLDNFIJILNP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueDiceInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 7552: { + // nHFELECMHIN + nHFELECMHIN = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // rerollTimes + rerollTimes = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // curBranchId + curBranchId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // curSurfaceId + curSurfaceId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // cACKIGMCKFK + cACKIGMCKFK = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // branchId + branchId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // kDGGOKGJLMC + kDGGOKGJLMC = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // curSurfaceIndex + curSurfaceIndex = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cheatTimes + cheatTimes = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // diceStatus + final int value = input.readInt32(); + if (ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus.forNumber(value) != null) { + diceStatus = value; + bitField0_ |= 0x00000200; + } + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // diceType + final int value = input.readInt32(); + if (ChessRogueDiceTypeOuterClass.ChessRogueDiceType.forNumber(value) != null) { + diceType = value; + bitField0_ |= 0x00000400; + } + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // dPNCGPOLFKH + dPNCGPOLFKH = input.readBool(); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 1296) { + break; + } + } + case 1296: { + // canRerollDice + canRerollDice = input.readBool(); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 2106) { + break; + } + } + case 2106: { + // aMDLOMOGEOE + input.readMessage(aMDLOMOGEOE); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 4938) { + break; + } + } + case 4938: { + // dice + input.readMessage(dice); + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 13930) { + break; + } + } + case 13930: { + // diceModifier + input.readMessage(diceModifier); + bitField0_ |= 0x00008000; + tag = input.readTag(); + if (tag != 13066) { + break; + } + } + case 13066: { + // cLDNFIJILNP [packed=true] + input.readPackedUInt32(cLDNFIJILNP, tag); + bitField0_ |= 0x00010000; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 13064: { + // cLDNFIJILNP [packed=false] + tag = input.readRepeatedUInt32(cLDNFIJILNP, tag); + bitField0_ |= 0x00010000; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt32(FieldNames.nHFELECMHIN, nHFELECMHIN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rerollTimes, rerollTimes); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.curBranchId, curBranchId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.curSurfaceId, curSurfaceId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.cACKIGMCKFK, cACKIGMCKFK); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.branchId, branchId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.kDGGOKGJLMC, kDGGOKGJLMC); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.curSurfaceIndex, curSurfaceIndex); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.cheatTimes, cheatTimes); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeEnum(FieldNames.diceStatus, diceStatus, ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus.converter()); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeEnum(FieldNames.diceType, diceType, ChessRogueDiceTypeOuterClass.ChessRogueDiceType.converter()); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeBool(FieldNames.dPNCGPOLFKH, dPNCGPOLFKH); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeBool(FieldNames.canRerollDice, canRerollDice); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.aMDLOMOGEOE, aMDLOMOGEOE); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeMessage(FieldNames.dice, dice); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeMessage(FieldNames.diceModifier, diceModifier); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeRepeatedUInt32(FieldNames.cLDNFIJILNP, cLDNFIJILNP); + } + output.endObject(); + } + + @Override + public ChessRogueDiceInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -894831919: { + if (input.isAtField(FieldNames.nHFELECMHIN)) { + if (!input.trySkipNullValue()) { + nHFELECMHIN = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -836069386: + case 176620407: { + if (input.isAtField(FieldNames.rerollTimes)) { + if (!input.trySkipNullValue()) { + rerollTimes = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1121055933: + case -2029879911: { + if (input.isAtField(FieldNames.curBranchId)) { + if (!input.trySkipNullValue()) { + curBranchId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1658805176: + case -1978690228: { + if (input.isAtField(FieldNames.curSurfaceId)) { + if (!input.trySkipNullValue()) { + curSurfaceId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -829598058: { + if (input.isAtField(FieldNames.cACKIGMCKFK)) { + if (!input.trySkipNullValue()) { + cACKIGMCKFK = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -25407907: + case -787623720: { + if (input.isAtField(FieldNames.branchId)) { + if (!input.trySkipNullValue()) { + branchId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1208202410: { + if (input.isAtField(FieldNames.kDGGOKGJLMC)) { + if (!input.trySkipNullValue()) { + kDGGOKGJLMC = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 429106821: + case 1265952513: { + if (input.isAtField(FieldNames.curSurfaceIndex)) { + if (!input.trySkipNullValue()) { + curSurfaceIndex = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2046149069: + case 1318855898: { + if (input.isAtField(FieldNames.cheatTimes)) { + if (!input.trySkipNullValue()) { + cheatTimes = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -606196103: + case 436250506: { + if (input.isAtField(FieldNames.diceStatus)) { + if (!input.trySkipNullValue()) { + final ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus value = input.readEnum(ChessRogueDiceStatusOuterClass.ChessRogueDiceStatus.converter()); + if (value != null) { + diceStatus = value.getNumber(); + bitField0_ |= 0x00000200; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -183835775: + case -1393922862: { + if (input.isAtField(FieldNames.diceType)) { + if (!input.trySkipNullValue()) { + final ChessRogueDiceTypeOuterClass.ChessRogueDiceType value = input.readEnum(ChessRogueDiceTypeOuterClass.ChessRogueDiceType.converter()); + if (value != null) { + diceType = value.getNumber(); + bitField0_ |= 0x00000400; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 2035704700: { + if (input.isAtField(FieldNames.dPNCGPOLFKH)) { + if (!input.trySkipNullValue()) { + dPNCGPOLFKH = input.readBool(); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -801276697: + case 2061495143: { + if (input.isAtField(FieldNames.canRerollDice)) { + if (!input.trySkipNullValue()) { + canRerollDice = input.readBool(); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1545288881: { + if (input.isAtField(FieldNames.aMDLOMOGEOE)) { + if (!input.trySkipNullValue()) { + input.readMessage(aMDLOMOGEOE); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3083175: { + if (input.isAtField(FieldNames.dice)) { + if (!input.trySkipNullValue()) { + input.readMessage(dice); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -373105762: + case 690705519: { + if (input.isAtField(FieldNames.diceModifier)) { + if (!input.trySkipNullValue()) { + input.readMessage(diceModifier); + bitField0_ |= 0x00008000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2116853881: { + if (input.isAtField(FieldNames.cLDNFIJILNP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(cLDNFIJILNP); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueDiceInfo clone() { + return new ChessRogueDiceInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueDiceInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueDiceInfo(), data).checkInitialized(); + } + + public static ChessRogueDiceInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueDiceInfo(), input).checkInitialized(); + } + + public static ChessRogueDiceInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueDiceInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueDiceInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueDiceInfoFactory.INSTANCE; + } + + private enum ChessRogueDiceInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueDiceInfo create() { + return ChessRogueDiceInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nHFELECMHIN = FieldName.forField("NHFELECMHIN"); + + static final FieldName rerollTimes = FieldName.forField("rerollTimes", "reroll_times"); + + static final FieldName curBranchId = FieldName.forField("curBranchId", "cur_branch_id"); + + static final FieldName curSurfaceId = FieldName.forField("curSurfaceId", "cur_surface_id"); + + static final FieldName cACKIGMCKFK = FieldName.forField("CACKIGMCKFK"); + + static final FieldName branchId = FieldName.forField("branchId", "branch_id"); + + static final FieldName kDGGOKGJLMC = FieldName.forField("KDGGOKGJLMC"); + + static final FieldName curSurfaceIndex = FieldName.forField("curSurfaceIndex", "cur_surface_index"); + + static final FieldName cheatTimes = FieldName.forField("cheatTimes", "cheat_times"); + + static final FieldName diceStatus = FieldName.forField("diceStatus", "dice_status"); + + static final FieldName diceType = FieldName.forField("diceType", "dice_type"); + + static final FieldName dPNCGPOLFKH = FieldName.forField("DPNCGPOLFKH"); + + static final FieldName canRerollDice = FieldName.forField("canRerollDice", "can_reroll_dice"); + + static final FieldName aMDLOMOGEOE = FieldName.forField("AMDLOMOGEOE"); + + static final FieldName dice = FieldName.forField("dice"); + + static final FieldName diceModifier = FieldName.forField("diceModifier", "dice_modifier"); + + static final FieldName cLDNFIJILNP = FieldName.forField("CLDNFIJILNP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueDiceOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceOuterClass.java new file mode 100644 index 000000000..16e5597b1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceOuterClass.java @@ -0,0 +1,541 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueDiceOuterClass { + /** + * Protobuf type {@code ChessRogueDice} + */ + public static final class ChessRogueDice extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 max_difficulty_level = 5; + */ + private int maxDifficultyLevel; + + /** + * optional uint32 dice_branch_id = 6; + */ + private int diceBranchId; + + /** + * optional uint32 max_area_id = 8; + */ + private int maxAreaId; + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 7; + */ + private final RepeatedMessage surfaceList = RepeatedMessage.newEmptyInstance(ChessRogueDiceSurfaceInfoOuterClass.ChessRogueDiceSurfaceInfo.getFactory()); + + private ChessRogueDice() { + } + + /** + * @return a new empty instance of {@code ChessRogueDice} + */ + public static ChessRogueDice newInstance() { + return new ChessRogueDice(); + } + + /** + * optional uint32 max_difficulty_level = 5; + * @return whether the maxDifficultyLevel field is set + */ + public boolean hasMaxDifficultyLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 max_difficulty_level = 5; + * @return this + */ + public ChessRogueDice clearMaxDifficultyLevel() { + bitField0_ &= ~0x00000001; + maxDifficultyLevel = 0; + return this; + } + + /** + * optional uint32 max_difficulty_level = 5; + * @return the maxDifficultyLevel + */ + public int getMaxDifficultyLevel() { + return maxDifficultyLevel; + } + + /** + * optional uint32 max_difficulty_level = 5; + * @param value the maxDifficultyLevel to set + * @return this + */ + public ChessRogueDice setMaxDifficultyLevel(final int value) { + bitField0_ |= 0x00000001; + maxDifficultyLevel = value; + return this; + } + + /** + * optional uint32 dice_branch_id = 6; + * @return whether the diceBranchId field is set + */ + public boolean hasDiceBranchId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 dice_branch_id = 6; + * @return this + */ + public ChessRogueDice clearDiceBranchId() { + bitField0_ &= ~0x00000002; + diceBranchId = 0; + return this; + } + + /** + * optional uint32 dice_branch_id = 6; + * @return the diceBranchId + */ + public int getDiceBranchId() { + return diceBranchId; + } + + /** + * optional uint32 dice_branch_id = 6; + * @param value the diceBranchId to set + * @return this + */ + public ChessRogueDice setDiceBranchId(final int value) { + bitField0_ |= 0x00000002; + diceBranchId = value; + return this; + } + + /** + * optional uint32 max_area_id = 8; + * @return whether the maxAreaId field is set + */ + public boolean hasMaxAreaId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 max_area_id = 8; + * @return this + */ + public ChessRogueDice clearMaxAreaId() { + bitField0_ &= ~0x00000004; + maxAreaId = 0; + return this; + } + + /** + * optional uint32 max_area_id = 8; + * @return the maxAreaId + */ + public int getMaxAreaId() { + return maxAreaId; + } + + /** + * optional uint32 max_area_id = 8; + * @param value the maxAreaId to set + * @return this + */ + public ChessRogueDice setMaxAreaId(final int value) { + bitField0_ |= 0x00000004; + maxAreaId = value; + return this; + } + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 7; + * @return whether the surfaceList field is set + */ + public boolean hasSurfaceList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 7; + * @return this + */ + public ChessRogueDice clearSurfaceList() { + bitField0_ &= ~0x00000008; + surfaceList.clear(); + return this; + } + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 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 #getMutableSurfaceList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSurfaceList( + ) { + return surfaceList; + } + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 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 getMutableSurfaceList( + ) { + bitField0_ |= 0x00000008; + return surfaceList; + } + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 7; + * @param value the surfaceList to add + * @return this + */ + public ChessRogueDice addSurfaceList( + final ChessRogueDiceSurfaceInfoOuterClass.ChessRogueDiceSurfaceInfo value) { + bitField0_ |= 0x00000008; + surfaceList.add(value); + return this; + } + + /** + * repeated .ChessRogueDiceSurfaceInfo surface_list = 7; + * @param values the surfaceList to add + * @return this + */ + public ChessRogueDice addAllSurfaceList( + final ChessRogueDiceSurfaceInfoOuterClass.ChessRogueDiceSurfaceInfo... values) { + bitField0_ |= 0x00000008; + surfaceList.addAll(values); + return this; + } + + @Override + public ChessRogueDice copyFrom(final ChessRogueDice other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + maxDifficultyLevel = other.maxDifficultyLevel; + diceBranchId = other.diceBranchId; + maxAreaId = other.maxAreaId; + surfaceList.copyFrom(other.surfaceList); + } + return this; + } + + @Override + public ChessRogueDice mergeFrom(final ChessRogueDice other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMaxDifficultyLevel()) { + setMaxDifficultyLevel(other.maxDifficultyLevel); + } + if (other.hasDiceBranchId()) { + setDiceBranchId(other.diceBranchId); + } + if (other.hasMaxAreaId()) { + setMaxAreaId(other.maxAreaId); + } + if (other.hasSurfaceList()) { + getMutableSurfaceList().addAll(other.surfaceList); + } + return this; + } + + @Override + public ChessRogueDice clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + maxDifficultyLevel = 0; + diceBranchId = 0; + maxAreaId = 0; + surfaceList.clear(); + return this; + } + + @Override + public ChessRogueDice clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + surfaceList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueDice)) { + return false; + } + ChessRogueDice other = (ChessRogueDice) o; + return bitField0_ == other.bitField0_ + && (!hasMaxDifficultyLevel() || maxDifficultyLevel == other.maxDifficultyLevel) + && (!hasDiceBranchId() || diceBranchId == other.diceBranchId) + && (!hasMaxAreaId() || maxAreaId == other.maxAreaId) + && (!hasSurfaceList() || surfaceList.equals(other.surfaceList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(maxDifficultyLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(diceBranchId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(maxAreaId); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < surfaceList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(surfaceList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxDifficultyLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxAreaId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * surfaceList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(surfaceList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueDice mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // maxDifficultyLevel + maxDifficultyLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // diceBranchId + diceBranchId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // maxAreaId + maxAreaId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // surfaceList + tag = input.readRepeatedMessage(surfaceList, 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.maxDifficultyLevel, maxDifficultyLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.diceBranchId, diceBranchId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.maxAreaId, maxAreaId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.surfaceList, surfaceList); + } + output.endObject(); + } + + @Override + public ChessRogueDice mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2051248507: + case 1229238139: { + if (input.isAtField(FieldNames.maxDifficultyLevel)) { + if (!input.trySkipNullValue()) { + maxDifficultyLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 216999716: + case 1050456640: { + if (input.isAtField(FieldNames.diceBranchId)) { + if (!input.trySkipNullValue()) { + diceBranchId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1094590196: + case -715562446: { + if (input.isAtField(FieldNames.maxAreaId)) { + if (!input.trySkipNullValue()) { + maxAreaId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1403129109: + case -529702672: { + if (input.isAtField(FieldNames.surfaceList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(surfaceList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueDice clone() { + return new ChessRogueDice().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueDice parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueDice(), data).checkInitialized(); + } + + public static ChessRogueDice parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueDice(), input).checkInitialized(); + } + + public static ChessRogueDice parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueDice(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueDice messages + */ + public static MessageFactory getFactory() { + return ChessRogueDiceFactory.INSTANCE; + } + + private enum ChessRogueDiceFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueDice create() { + return ChessRogueDice.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName maxDifficultyLevel = FieldName.forField("maxDifficultyLevel", "max_difficulty_level"); + + static final FieldName diceBranchId = FieldName.forField("diceBranchId", "dice_branch_id"); + + static final FieldName maxAreaId = FieldName.forField("maxAreaId", "max_area_id"); + + static final FieldName surfaceList = FieldName.forField("surfaceList", "surface_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueDiceStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceStatusOuterClass.java new file mode 100644 index 000000000..115a87eec --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceStatusOuterClass.java @@ -0,0 +1,146 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueDiceStatusOuterClass { + /** + * Protobuf enum {@code ChessRogueDiceStatus} + */ + public enum ChessRogueDiceStatus implements ProtoEnum { + /** + * CHESS_ROGUE_DICE_IDLE = 0; + */ + CHESS_ROGUE_DICE_IDLE("CHESS_ROGUE_DICE_IDLE", 0), + + /** + * CHESS_ROGUE_DICE_ROLLED = 1; + */ + CHESS_ROGUE_DICE_ROLLED("CHESS_ROGUE_DICE_ROLLED", 1), + + /** + * CHESS_ROGUE_DICE_CONFIRMED = 2; + */ + CHESS_ROGUE_DICE_CONFIRMED("CHESS_ROGUE_DICE_CONFIRMED", 2), + + /** + * CHESS_ROGUE_DICE_GIVEUP = 3; + */ + CHESS_ROGUE_DICE_GIVEUP("CHESS_ROGUE_DICE_GIVEUP", 3); + + /** + * CHESS_ROGUE_DICE_IDLE = 0; + */ + public static final int CHESS_ROGUE_DICE_IDLE_VALUE = 0; + + /** + * CHESS_ROGUE_DICE_ROLLED = 1; + */ + public static final int CHESS_ROGUE_DICE_ROLLED_VALUE = 1; + + /** + * CHESS_ROGUE_DICE_CONFIRMED = 2; + */ + public static final int CHESS_ROGUE_DICE_CONFIRMED_VALUE = 2; + + /** + * CHESS_ROGUE_DICE_GIVEUP = 3; + */ + public static final int CHESS_ROGUE_DICE_GIVEUP_VALUE = 3; + + private final String name; + + private final int number; + + private ChessRogueDiceStatus(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 ChessRogueDiceStatusConverter.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 ChessRogueDiceStatus forNumber(int value) { + return ChessRogueDiceStatusConverter.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 ChessRogueDiceStatus forNumberOr(int number, ChessRogueDiceStatus other) { + ChessRogueDiceStatus value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueDiceStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueDiceStatus[] lookup = new ChessRogueDiceStatus[4]; + + static { + lookup[0] = CHESS_ROGUE_DICE_IDLE; + lookup[1] = CHESS_ROGUE_DICE_ROLLED; + lookup[2] = CHESS_ROGUE_DICE_CONFIRMED; + lookup[3] = CHESS_ROGUE_DICE_GIVEUP; + } + + @Override + public final ChessRogueDiceStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueDiceStatus forName(final CharSequence value) { + if (value.length() == 21) { + if (ProtoUtil.isEqual("CHESS_ROGUE_DICE_IDLE", value)) { + return CHESS_ROGUE_DICE_IDLE; + } + } + if (value.length() == 23) { + if (ProtoUtil.isEqual("CHESS_ROGUE_DICE_ROLLED", value)) { + return CHESS_ROGUE_DICE_ROLLED; + } + if (ProtoUtil.isEqual("CHESS_ROGUE_DICE_GIVEUP", value)) { + return CHESS_ROGUE_DICE_GIVEUP; + } + } + if (value.length() == 26) { + if (ProtoUtil.isEqual("CHESS_ROGUE_DICE_CONFIRMED", value)) { + return CHESS_ROGUE_DICE_CONFIRMED; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueDiceSurfaceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceSurfaceInfoOuterClass.java new file mode 100644 index 000000000..16e05776c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceSurfaceInfoOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueDiceSurfaceInfoOuterClass { + /** + * Protobuf type {@code ChessRogueDiceSurfaceInfo} + */ + public static final class ChessRogueDiceSurfaceInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 4; + */ + private int index; + + /** + * optional uint32 surface_id = 6; + */ + private int surfaceId; + + private ChessRogueDiceSurfaceInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueDiceSurfaceInfo} + */ + public static ChessRogueDiceSurfaceInfo newInstance() { + return new ChessRogueDiceSurfaceInfo(); + } + + /** + * optional uint32 index = 4; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 4; + * @return this + */ + public ChessRogueDiceSurfaceInfo clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 4; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 4; + * @param value the index to set + * @return this + */ + public ChessRogueDiceSurfaceInfo setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional uint32 surface_id = 6; + * @return whether the surfaceId field is set + */ + public boolean hasSurfaceId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 surface_id = 6; + * @return this + */ + public ChessRogueDiceSurfaceInfo clearSurfaceId() { + bitField0_ &= ~0x00000002; + surfaceId = 0; + return this; + } + + /** + * optional uint32 surface_id = 6; + * @return the surfaceId + */ + public int getSurfaceId() { + return surfaceId; + } + + /** + * optional uint32 surface_id = 6; + * @param value the surfaceId to set + * @return this + */ + public ChessRogueDiceSurfaceInfo setSurfaceId(final int value) { + bitField0_ |= 0x00000002; + surfaceId = value; + return this; + } + + @Override + public ChessRogueDiceSurfaceInfo copyFrom(final ChessRogueDiceSurfaceInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + surfaceId = other.surfaceId; + } + return this; + } + + @Override + public ChessRogueDiceSurfaceInfo mergeFrom(final ChessRogueDiceSurfaceInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasSurfaceId()) { + setSurfaceId(other.surfaceId); + } + return this; + } + + @Override + public ChessRogueDiceSurfaceInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + surfaceId = 0; + return this; + } + + @Override + public ChessRogueDiceSurfaceInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueDiceSurfaceInfo)) { + return false; + } + ChessRogueDiceSurfaceInfo other = (ChessRogueDiceSurfaceInfo) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasSurfaceId() || surfaceId == other.surfaceId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(surfaceId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(surfaceId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueDiceSurfaceInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // surfaceId + surfaceId = input.readUInt32(); + 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.index, index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.surfaceId, surfaceId); + } + output.endObject(); + } + + @Override + public ChessRogueDiceSurfaceInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1455521448: + case -2123453971: { + if (input.isAtField(FieldNames.surfaceId)) { + if (!input.trySkipNullValue()) { + surfaceId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueDiceSurfaceInfo clone() { + return new ChessRogueDiceSurfaceInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueDiceSurfaceInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueDiceSurfaceInfo(), data).checkInitialized(); + } + + public static ChessRogueDiceSurfaceInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueDiceSurfaceInfo(), input).checkInitialized(); + } + + public static ChessRogueDiceSurfaceInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueDiceSurfaceInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueDiceSurfaceInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueDiceSurfaceInfoFactory.INSTANCE; + } + + private enum ChessRogueDiceSurfaceInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueDiceSurfaceInfo create() { + return ChessRogueDiceSurfaceInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + + static final FieldName surfaceId = FieldName.forField("surfaceId", "surface_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueDiceTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceTypeOuterClass.java new file mode 100644 index 000000000..8904812be --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueDiceTypeOuterClass.java @@ -0,0 +1,116 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueDiceTypeOuterClass { + /** + * Protobuf enum {@code ChessRogueDiceType} + */ + public enum ChessRogueDiceType implements ProtoEnum { + /** + * CHESS_ROGUE_DICE_FIXED = 0; + */ + CHESS_ROGUE_DICE_FIXED("CHESS_ROGUE_DICE_FIXED", 0), + + /** + * CHESS_ROGUE_DICE_EDITABLE = 1; + */ + CHESS_ROGUE_DICE_EDITABLE("CHESS_ROGUE_DICE_EDITABLE", 1); + + /** + * CHESS_ROGUE_DICE_FIXED = 0; + */ + public static final int CHESS_ROGUE_DICE_FIXED_VALUE = 0; + + /** + * CHESS_ROGUE_DICE_EDITABLE = 1; + */ + public static final int CHESS_ROGUE_DICE_EDITABLE_VALUE = 1; + + private final String name; + + private final int number; + + private ChessRogueDiceType(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 ChessRogueDiceTypeConverter.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 ChessRogueDiceType forNumber(int value) { + return ChessRogueDiceTypeConverter.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 ChessRogueDiceType forNumberOr(int number, ChessRogueDiceType other) { + ChessRogueDiceType value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueDiceTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueDiceType[] lookup = new ChessRogueDiceType[2]; + + static { + lookup[0] = CHESS_ROGUE_DICE_FIXED; + lookup[1] = CHESS_ROGUE_DICE_EDITABLE; + } + + @Override + public final ChessRogueDiceType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueDiceType forName(final CharSequence value) { + if (value.length() == 22) { + if (ProtoUtil.isEqual("CHESS_ROGUE_DICE_FIXED", value)) { + return CHESS_ROGUE_DICE_FIXED; + } + } + if (value.length() == 25) { + if (ProtoUtil.isEqual("CHESS_ROGUE_DICE_EDITABLE", value)) { + return CHESS_ROGUE_DICE_EDITABLE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCellCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCellCsReqOuterClass.java new file mode 100644 index 000000000..b96cd475b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCellCsReqOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueEnterCellCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueEnterCellCsReq} + */ + public static final class ChessRogueEnterCellCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cell_id = 3; + */ + private int cellId; + + /** + * optional uint32 select_monster_id = 15; + */ + private int selectMonsterId; + + private ChessRogueEnterCellCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueEnterCellCsReq} + */ + public static ChessRogueEnterCellCsReq newInstance() { + return new ChessRogueEnterCellCsReq(); + } + + /** + * optional uint32 cell_id = 3; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cell_id = 3; + * @return this + */ + public ChessRogueEnterCellCsReq clearCellId() { + bitField0_ &= ~0x00000001; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 3; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 3; + * @param value the cellId to set + * @return this + */ + public ChessRogueEnterCellCsReq setCellId(final int value) { + bitField0_ |= 0x00000001; + cellId = value; + return this; + } + + /** + * optional uint32 select_monster_id = 15; + * @return whether the selectMonsterId field is set + */ + public boolean hasSelectMonsterId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 select_monster_id = 15; + * @return this + */ + public ChessRogueEnterCellCsReq clearSelectMonsterId() { + bitField0_ &= ~0x00000002; + selectMonsterId = 0; + return this; + } + + /** + * optional uint32 select_monster_id = 15; + * @return the selectMonsterId + */ + public int getSelectMonsterId() { + return selectMonsterId; + } + + /** + * optional uint32 select_monster_id = 15; + * @param value the selectMonsterId to set + * @return this + */ + public ChessRogueEnterCellCsReq setSelectMonsterId(final int value) { + bitField0_ |= 0x00000002; + selectMonsterId = value; + return this; + } + + @Override + public ChessRogueEnterCellCsReq copyFrom(final ChessRogueEnterCellCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cellId = other.cellId; + selectMonsterId = other.selectMonsterId; + } + return this; + } + + @Override + public ChessRogueEnterCellCsReq mergeFrom(final ChessRogueEnterCellCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCellId()) { + setCellId(other.cellId); + } + if (other.hasSelectMonsterId()) { + setSelectMonsterId(other.selectMonsterId); + } + return this; + } + + @Override + public ChessRogueEnterCellCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellId = 0; + selectMonsterId = 0; + return this; + } + + @Override + public ChessRogueEnterCellCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueEnterCellCsReq)) { + return false; + } + ChessRogueEnterCellCsReq other = (ChessRogueEnterCellCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasCellId() || cellId == other.cellId) + && (!hasSelectMonsterId() || selectMonsterId == other.selectMonsterId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(selectMonsterId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selectMonsterId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueEnterCellCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // cellId + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // selectMonsterId + selectMonsterId = input.readUInt32(); + 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.cellId, cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.selectMonsterId, selectMonsterId); + } + output.endObject(); + } + + @Override + public ChessRogueEnterCellCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1860466439: + case -1194635581: { + if (input.isAtField(FieldNames.selectMonsterId)) { + if (!input.trySkipNullValue()) { + selectMonsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueEnterCellCsReq clone() { + return new ChessRogueEnterCellCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueEnterCellCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCellCsReq(), data).checkInitialized(); + } + + public static ChessRogueEnterCellCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCellCsReq(), input).checkInitialized(); + } + + public static ChessRogueEnterCellCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCellCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueEnterCellCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueEnterCellCsReqFactory.INSTANCE; + } + + private enum ChessRogueEnterCellCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueEnterCellCsReq create() { + return ChessRogueEnterCellCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + + static final FieldName selectMonsterId = FieldName.forField("selectMonsterId", "select_monster_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCellScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCellScRspOuterClass.java new file mode 100644 index 000000000..52c2a9a64 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCellScRspOuterClass.java @@ -0,0 +1,648 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueEnterCellScRspOuterClass { + /** + * Protobuf type {@code ChessRogueEnterCellScRsp} + */ + public static final class ChessRogueEnterCellScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cell_id = 11; + */ + private int cellId; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional .ChessRoguePlayerInfo player_info = 4; + */ + private final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo playerInfo = ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo.newInstance(); + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 5; + */ + private final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo rogueCurrentInfo = ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo.newInstance(); + + /** + * optional .ChessRogueCurrentInfo info = 7; + */ + private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo info = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); + + private ChessRogueEnterCellScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueEnterCellScRsp} + */ + public static ChessRogueEnterCellScRsp newInstance() { + return new ChessRogueEnterCellScRsp(); + } + + /** + * optional uint32 cell_id = 11; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cell_id = 11; + * @return this + */ + public ChessRogueEnterCellScRsp clearCellId() { + bitField0_ &= ~0x00000001; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 11; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 11; + * @param value the cellId to set + * @return this + */ + public ChessRogueEnterCellScRsp setCellId(final int value) { + bitField0_ |= 0x00000001; + cellId = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public ChessRogueEnterCellScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public ChessRogueEnterCellScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 4; + * @return whether the playerInfo field is set + */ + public boolean hasPlayerInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 4; + * @return this + */ + public ChessRogueEnterCellScRsp clearPlayerInfo() { + bitField0_ &= ~0x00000004; + playerInfo.clear(); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 #getMutablePlayerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getPlayerInfo() { + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getMutablePlayerInfo() { + bitField0_ |= 0x00000004; + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 4; + * @param value the playerInfo to set + * @return this + */ + public ChessRogueEnterCellScRsp setPlayerInfo( + final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo value) { + bitField0_ |= 0x00000004; + playerInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 5; + * @return whether the rogueCurrentInfo field is set + */ + public boolean hasRogueCurrentInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 5; + * @return this + */ + public ChessRogueEnterCellScRsp clearRogueCurrentInfo() { + bitField0_ &= ~0x00000008; + rogueCurrentInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 #getMutableRogueCurrentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getRogueCurrentInfo() { + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getMutableRogueCurrentInfo() { + bitField0_ |= 0x00000008; + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 5; + * @param value the rogueCurrentInfo to set + * @return this + */ + public ChessRogueEnterCellScRsp setRogueCurrentInfo( + final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo value) { + bitField0_ |= 0x00000008; + rogueCurrentInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 7; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRogueCurrentInfo info = 7; + * @return this + */ + public ChessRogueEnterCellScRsp clearInfo() { + bitField0_ &= ~0x00000010; + info.clear(); + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getInfo() { + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableInfo() { + bitField0_ |= 0x00000010; + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 7; + * @param value the info to set + * @return this + */ + public ChessRogueEnterCellScRsp setInfo( + final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { + bitField0_ |= 0x00000010; + info.copyFrom(value); + return this; + } + + @Override + public ChessRogueEnterCellScRsp copyFrom(final ChessRogueEnterCellScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cellId = other.cellId; + retcode = other.retcode; + playerInfo.copyFrom(other.playerInfo); + rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); + info.copyFrom(other.info); + } + return this; + } + + @Override + public ChessRogueEnterCellScRsp mergeFrom(final ChessRogueEnterCellScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCellId()) { + setCellId(other.cellId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasPlayerInfo()) { + getMutablePlayerInfo().mergeFrom(other.playerInfo); + } + if (other.hasRogueCurrentInfo()) { + getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + return this; + } + + @Override + public ChessRogueEnterCellScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellId = 0; + retcode = 0; + playerInfo.clear(); + rogueCurrentInfo.clear(); + info.clear(); + return this; + } + + @Override + public ChessRogueEnterCellScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + playerInfo.clearQuick(); + rogueCurrentInfo.clearQuick(); + info.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueEnterCellScRsp)) { + return false; + } + ChessRogueEnterCellScRsp other = (ChessRogueEnterCellScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasCellId() || cellId == other.cellId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasPlayerInfo() || playerInfo.equals(other.playerInfo)) + && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)) + && (!hasInfo() || info.equals(other.info)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(playerInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(info); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueEnterCellScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // cellId + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // playerInfo + input.readMessage(playerInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // rogueCurrentInfo + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // info + input.readMessage(info); + 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.cellId, cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.playerInfo, playerInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.info, info); + } + output.endObject(); + } + + @Override + public ChessRogueEnterCellScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2095520559: + case 556803916: { + if (input.isAtField(FieldNames.playerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -611905651: + case 1279173113: { + if (input.isAtField(FieldNames.rogueCurrentInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueEnterCellScRsp clone() { + return new ChessRogueEnterCellScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueEnterCellScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCellScRsp(), data).checkInitialized(); + } + + public static ChessRogueEnterCellScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCellScRsp(), input).checkInitialized(); + } + + public static ChessRogueEnterCellScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCellScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueEnterCellScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueEnterCellScRspFactory.INSTANCE; + } + + private enum ChessRogueEnterCellScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueEnterCellScRsp create() { + return ChessRogueEnterCellScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName playerInfo = FieldName.forField("playerInfo", "player_info"); + + static final FieldName rogueCurrentInfo = FieldName.forField("rogueCurrentInfo", "rogue_current_info"); + + static final FieldName info = FieldName.forField("info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCsReqOuterClass.java new file mode 100644 index 000000000..82d160dae --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterCsReqOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueEnterCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueEnterCsReq} + */ + public static final class ChessRogueEnterCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 4; + */ + private int id; + + private ChessRogueEnterCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueEnterCsReq} + */ + public static ChessRogueEnterCsReq newInstance() { + return new ChessRogueEnterCsReq(); + } + + /** + * optional uint32 id = 4; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 4; + * @return this + */ + public ChessRogueEnterCsReq clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 4; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 4; + * @param value the id to set + * @return this + */ + public ChessRogueEnterCsReq setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + @Override + public ChessRogueEnterCsReq copyFrom(final ChessRogueEnterCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + } + return this; + } + + @Override + public ChessRogueEnterCsReq mergeFrom(final ChessRogueEnterCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + return this; + } + + @Override + public ChessRogueEnterCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + return this; + } + + @Override + public ChessRogueEnterCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueEnterCsReq)) { + return false; + } + ChessRogueEnterCsReq other = (ChessRogueEnterCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueEnterCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // id + id = input.readUInt32(); + 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.writeUInt32(FieldNames.id, id); + } + output.endObject(); + } + + @Override + public ChessRogueEnterCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueEnterCsReq clone() { + return new ChessRogueEnterCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueEnterCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCsReq(), data).checkInitialized(); + } + + public static ChessRogueEnterCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCsReq(), input).checkInitialized(); + } + + public static ChessRogueEnterCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueEnterCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueEnterCsReqFactory.INSTANCE; + } + + private enum ChessRogueEnterCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueEnterCsReq create() { + return ChessRogueEnterCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueEnterNextLayerCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterNextLayerCsReqOuterClass.java new file mode 100644 index 000000000..2562bd33f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterNextLayerCsReqOuterClass.java @@ -0,0 +1,262 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueEnterNextLayerCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueEnterNextLayerCsReq} + */ + public static final class ChessRogueEnterNextLayerCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 prop_entity_id = 6; + */ + private int propEntityId; + + private ChessRogueEnterNextLayerCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueEnterNextLayerCsReq} + */ + public static ChessRogueEnterNextLayerCsReq newInstance() { + return new ChessRogueEnterNextLayerCsReq(); + } + + /** + * optional uint32 prop_entity_id = 6; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 prop_entity_id = 6; + * @return this + */ + public ChessRogueEnterNextLayerCsReq clearPropEntityId() { + bitField0_ &= ~0x00000001; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 6; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 6; + * @param value the propEntityId to set + * @return this + */ + public ChessRogueEnterNextLayerCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000001; + propEntityId = value; + return this; + } + + @Override + public ChessRogueEnterNextLayerCsReq copyFrom(final ChessRogueEnterNextLayerCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + propEntityId = other.propEntityId; + } + return this; + } + + @Override + public ChessRogueEnterNextLayerCsReq mergeFrom(final ChessRogueEnterNextLayerCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + return this; + } + + @Override + public ChessRogueEnterNextLayerCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propEntityId = 0; + return this; + } + + @Override + public ChessRogueEnterNextLayerCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueEnterNextLayerCsReq)) { + return false; + } + ChessRogueEnterNextLayerCsReq other = (ChessRogueEnterNextLayerCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPropEntityId() || propEntityId == other.propEntityId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(propEntityId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueEnterNextLayerCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // propEntityId + propEntityId = input.readUInt32(); + 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.writeUInt32(FieldNames.propEntityId, propEntityId); + } + output.endObject(); + } + + @Override + public ChessRogueEnterNextLayerCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueEnterNextLayerCsReq clone() { + return new ChessRogueEnterNextLayerCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueEnterNextLayerCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueEnterNextLayerCsReq(), data).checkInitialized(); + } + + public static ChessRogueEnterNextLayerCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterNextLayerCsReq(), input).checkInitialized(); + } + + public static ChessRogueEnterNextLayerCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterNextLayerCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueEnterNextLayerCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueEnterNextLayerCsReqFactory.INSTANCE; + } + + private enum ChessRogueEnterNextLayerCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueEnterNextLayerCsReq create() { + return ChessRogueEnterNextLayerCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueEnterNextLayerScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterNextLayerScRspOuterClass.java new file mode 100644 index 000000000..802b59c53 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterNextLayerScRspOuterClass.java @@ -0,0 +1,675 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueEnterNextLayerScRspOuterClass { + /** + * Protobuf type {@code ChessRogueEnterNextLayerScRsp} + */ + public static final class ChessRogueEnterNextLayerScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional .ChessRogueLayerInitialEventInfo board_event_info = 2; + */ + private final ChessRogueLayerInitialEventInfoOuterClass.ChessRogueLayerInitialEventInfo boardEventInfo = ChessRogueLayerInitialEventInfoOuterClass.ChessRogueLayerInitialEventInfo.newInstance(); + + /** + * optional .ChessRogueCurrentInfo rogue_info = 8; + */ + private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo rogueInfo = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 13; + */ + private final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo rogueCurrentInfo = ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo.newInstance(); + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + */ + private final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo playerInfo = ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo.newInstance(); + + private ChessRogueEnterNextLayerScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueEnterNextLayerScRsp} + */ + public static ChessRogueEnterNextLayerScRsp newInstance() { + return new ChessRogueEnterNextLayerScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public ChessRogueEnterNextLayerScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public ChessRogueEnterNextLayerScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueLayerInitialEventInfo board_event_info = 2; + * @return whether the boardEventInfo field is set + */ + public boolean hasBoardEventInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueLayerInitialEventInfo board_event_info = 2; + * @return this + */ + public ChessRogueEnterNextLayerScRsp clearBoardEventInfo() { + bitField0_ &= ~0x00000002; + boardEventInfo.clear(); + return this; + } + + /** + * optional .ChessRogueLayerInitialEventInfo board_event_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 #getMutableBoardEventInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueLayerInitialEventInfoOuterClass.ChessRogueLayerInitialEventInfo getBoardEventInfo( + ) { + return boardEventInfo; + } + + /** + * optional .ChessRogueLayerInitialEventInfo board_event_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 ChessRogueLayerInitialEventInfoOuterClass.ChessRogueLayerInitialEventInfo getMutableBoardEventInfo( + ) { + bitField0_ |= 0x00000002; + return boardEventInfo; + } + + /** + * optional .ChessRogueLayerInitialEventInfo board_event_info = 2; + * @param value the boardEventInfo to set + * @return this + */ + public ChessRogueEnterNextLayerScRsp setBoardEventInfo( + final ChessRogueLayerInitialEventInfoOuterClass.ChessRogueLayerInitialEventInfo value) { + bitField0_ |= 0x00000002; + boardEventInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueCurrentInfo rogue_info = 8; + * @return whether the rogueInfo field is set + */ + public boolean hasRogueInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueCurrentInfo rogue_info = 8; + * @return this + */ + public ChessRogueEnterNextLayerScRsp clearRogueInfo() { + bitField0_ &= ~0x00000004; + rogueInfo.clear(); + return this; + } + + /** + * optional .ChessRogueCurrentInfo rogue_info = 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 #getMutableRogueInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getRogueInfo() { + return rogueInfo; + } + + /** + * optional .ChessRogueCurrentInfo rogue_info = 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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableRogueInfo() { + bitField0_ |= 0x00000004; + return rogueInfo; + } + + /** + * optional .ChessRogueCurrentInfo rogue_info = 8; + * @param value the rogueInfo to set + * @return this + */ + public ChessRogueEnterNextLayerScRsp setRogueInfo( + final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { + bitField0_ |= 0x00000004; + rogueInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 13; + * @return whether the rogueCurrentInfo field is set + */ + public boolean hasRogueCurrentInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 13; + * @return this + */ + public ChessRogueEnterNextLayerScRsp clearRogueCurrentInfo() { + bitField0_ &= ~0x00000008; + rogueCurrentInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 #getMutableRogueCurrentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getRogueCurrentInfo() { + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getMutableRogueCurrentInfo() { + bitField0_ |= 0x00000008; + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 13; + * @param value the rogueCurrentInfo to set + * @return this + */ + public ChessRogueEnterNextLayerScRsp setRogueCurrentInfo( + final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo value) { + bitField0_ |= 0x00000008; + rogueCurrentInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + * @return whether the playerInfo field is set + */ + public boolean hasPlayerInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + * @return this + */ + public ChessRogueEnterNextLayerScRsp clearPlayerInfo() { + bitField0_ &= ~0x00000010; + playerInfo.clear(); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 #getMutablePlayerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getPlayerInfo() { + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getMutablePlayerInfo() { + bitField0_ |= 0x00000010; + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + * @param value the playerInfo to set + * @return this + */ + public ChessRogueEnterNextLayerScRsp setPlayerInfo( + final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo value) { + bitField0_ |= 0x00000010; + playerInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueEnterNextLayerScRsp copyFrom(final ChessRogueEnterNextLayerScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + boardEventInfo.copyFrom(other.boardEventInfo); + rogueInfo.copyFrom(other.rogueInfo); + rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); + playerInfo.copyFrom(other.playerInfo); + } + return this; + } + + @Override + public ChessRogueEnterNextLayerScRsp mergeFrom(final ChessRogueEnterNextLayerScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBoardEventInfo()) { + getMutableBoardEventInfo().mergeFrom(other.boardEventInfo); + } + if (other.hasRogueInfo()) { + getMutableRogueInfo().mergeFrom(other.rogueInfo); + } + if (other.hasRogueCurrentInfo()) { + getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); + } + if (other.hasPlayerInfo()) { + getMutablePlayerInfo().mergeFrom(other.playerInfo); + } + return this; + } + + @Override + public ChessRogueEnterNextLayerScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + boardEventInfo.clear(); + rogueInfo.clear(); + rogueCurrentInfo.clear(); + playerInfo.clear(); + return this; + } + + @Override + public ChessRogueEnterNextLayerScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + boardEventInfo.clearQuick(); + rogueInfo.clearQuick(); + rogueCurrentInfo.clearQuick(); + playerInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueEnterNextLayerScRsp)) { + return false; + } + ChessRogueEnterNextLayerScRsp other = (ChessRogueEnterNextLayerScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasBoardEventInfo() || boardEventInfo.equals(other.boardEventInfo)) + && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)) + && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)) + && (!hasPlayerInfo() || playerInfo.equals(other.playerInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(boardEventInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(rogueInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(playerInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(boardEventInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueEnterNextLayerScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // boardEventInfo + input.readMessage(boardEventInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // rogueInfo + input.readMessage(rogueInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // rogueCurrentInfo + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // playerInfo + input.readMessage(playerInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.boardEventInfo, boardEventInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueInfo, rogueInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.playerInfo, playerInfo); + } + output.endObject(); + } + + @Override + public ChessRogueEnterNextLayerScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2424286: + case -1740212692: { + if (input.isAtField(FieldNames.boardEventInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(boardEventInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 655808936: + case -1124583437: { + if (input.isAtField(FieldNames.rogueInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -611905651: + case 1279173113: { + if (input.isAtField(FieldNames.rogueCurrentInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2095520559: + case 556803916: { + if (input.isAtField(FieldNames.playerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueEnterNextLayerScRsp clone() { + return new ChessRogueEnterNextLayerScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueEnterNextLayerScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueEnterNextLayerScRsp(), data).checkInitialized(); + } + + public static ChessRogueEnterNextLayerScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterNextLayerScRsp(), input).checkInitialized(); + } + + public static ChessRogueEnterNextLayerScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterNextLayerScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueEnterNextLayerScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueEnterNextLayerScRspFactory.INSTANCE; + } + + private enum ChessRogueEnterNextLayerScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueEnterNextLayerScRsp create() { + return ChessRogueEnterNextLayerScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName boardEventInfo = FieldName.forField("boardEventInfo", "board_event_info"); + + static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); + + static final FieldName rogueCurrentInfo = FieldName.forField("rogueCurrentInfo", "rogue_current_info"); + + static final FieldName playerInfo = FieldName.forField("playerInfo", "player_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueEnterScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterScRspOuterClass.java new file mode 100644 index 000000000..596d29b66 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueEnterScRspOuterClass.java @@ -0,0 +1,647 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueEnterScRspOuterClass { + /** + * Protobuf type {@code ChessRogueEnterScRsp} + */ + public static final class ChessRogueEnterScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 4; + */ + private int retcode; + + /** + * optional uint32 id = 12; + */ + private int id; + + /** + * optional .ChessRogueCurrentInfo info = 3; + */ + private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo info = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + */ + private final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo rogueCurrentInfo = ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo.newInstance(); + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + */ + private final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo playerInfo = ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo.newInstance(); + + private ChessRogueEnterScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueEnterScRsp} + */ + public static ChessRogueEnterScRsp newInstance() { + return new ChessRogueEnterScRsp(); + } + + /** + * optional uint32 retcode = 4; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 4; + * @return this + */ + public ChessRogueEnterScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 4; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 4; + * @param value the retcode to set + * @return this + */ + public ChessRogueEnterScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 id = 12; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 id = 12; + * @return this + */ + public ChessRogueEnterScRsp clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 id = 12; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 12; + * @param value the id to set + * @return this + */ + public ChessRogueEnterScRsp setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 3; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueCurrentInfo info = 3; + * @return this + */ + public ChessRogueEnterScRsp clearInfo() { + bitField0_ &= ~0x00000004; + info.clear(); + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getInfo() { + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableInfo() { + bitField0_ |= 0x00000004; + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 3; + * @param value the info to set + * @return this + */ + public ChessRogueEnterScRsp setInfo( + final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { + bitField0_ |= 0x00000004; + info.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + * @return whether the rogueCurrentInfo field is set + */ + public boolean hasRogueCurrentInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + * @return this + */ + public ChessRogueEnterScRsp clearRogueCurrentInfo() { + bitField0_ &= ~0x00000008; + rogueCurrentInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 #getMutableRogueCurrentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getRogueCurrentInfo() { + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getMutableRogueCurrentInfo() { + bitField0_ |= 0x00000008; + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + * @param value the rogueCurrentInfo to set + * @return this + */ + public ChessRogueEnterScRsp setRogueCurrentInfo( + final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo value) { + bitField0_ |= 0x00000008; + rogueCurrentInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + * @return whether the playerInfo field is set + */ + public boolean hasPlayerInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + * @return this + */ + public ChessRogueEnterScRsp clearPlayerInfo() { + bitField0_ &= ~0x00000010; + playerInfo.clear(); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 #getMutablePlayerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getPlayerInfo() { + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getMutablePlayerInfo() { + bitField0_ |= 0x00000010; + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 15; + * @param value the playerInfo to set + * @return this + */ + public ChessRogueEnterScRsp setPlayerInfo( + final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo value) { + bitField0_ |= 0x00000010; + playerInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueEnterScRsp copyFrom(final ChessRogueEnterScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + id = other.id; + info.copyFrom(other.info); + rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); + playerInfo.copyFrom(other.playerInfo); + } + return this; + } + + @Override + public ChessRogueEnterScRsp mergeFrom(final ChessRogueEnterScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasRogueCurrentInfo()) { + getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); + } + if (other.hasPlayerInfo()) { + getMutablePlayerInfo().mergeFrom(other.playerInfo); + } + return this; + } + + @Override + public ChessRogueEnterScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + id = 0; + info.clear(); + rogueCurrentInfo.clear(); + playerInfo.clear(); + return this; + } + + @Override + public ChessRogueEnterScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + rogueCurrentInfo.clearQuick(); + playerInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueEnterScRsp)) { + return false; + } + ChessRogueEnterScRsp other = (ChessRogueEnterScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasId() || id == other.id) + && (!hasInfo() || info.equals(other.info)) + && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)) + && (!hasPlayerInfo() || playerInfo.equals(other.playerInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(info); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(playerInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueEnterScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // info + input.readMessage(info); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // rogueCurrentInfo + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // playerInfo + input.readMessage(playerInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.playerInfo, playerInfo); + } + output.endObject(); + } + + @Override + public ChessRogueEnterScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -611905651: + case 1279173113: { + if (input.isAtField(FieldNames.rogueCurrentInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2095520559: + case 556803916: { + if (input.isAtField(FieldNames.playerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueEnterScRsp clone() { + return new ChessRogueEnterScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueEnterScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueEnterScRsp(), data).checkInitialized(); + } + + public static ChessRogueEnterScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterScRsp(), input).checkInitialized(); + } + + public static ChessRogueEnterScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueEnterScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueEnterScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueEnterScRspFactory.INSTANCE; + } + + private enum ChessRogueEnterScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueEnterScRsp create() { + return ChessRogueEnterScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName info = FieldName.forField("info"); + + static final FieldName rogueCurrentInfo = FieldName.forField("rogueCurrentInfo", "rogue_current_info"); + + static final FieldName playerInfo = FieldName.forField("playerInfo", "player_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueFinishCurRoomNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueFinishCurRoomNotifyOuterClass.java new file mode 100644 index 000000000..28ef27a79 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueFinishCurRoomNotifyOuterClass.java @@ -0,0 +1,284 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueFinishCurRoomNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueFinishCurRoomNotify} + */ + public static final class ChessRogueFinishCurRoomNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueLevelInfo level_info = 4; + */ + private final ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo levelInfo = ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo.newInstance(); + + private ChessRogueFinishCurRoomNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueFinishCurRoomNotify} + */ + public static ChessRogueFinishCurRoomNotify newInstance() { + return new ChessRogueFinishCurRoomNotify(); + } + + /** + * optional .ChessRogueLevelInfo level_info = 4; + * @return whether the levelInfo field is set + */ + public boolean hasLevelInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueLevelInfo level_info = 4; + * @return this + */ + public ChessRogueFinishCurRoomNotify clearLevelInfo() { + bitField0_ &= ~0x00000001; + levelInfo.clear(); + return this; + } + + /** + * optional .ChessRogueLevelInfo level_info = 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 #getMutableLevelInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo getLevelInfo() { + return levelInfo; + } + + /** + * optional .ChessRogueLevelInfo level_info = 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 ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo getMutableLevelInfo() { + bitField0_ |= 0x00000001; + return levelInfo; + } + + /** + * optional .ChessRogueLevelInfo level_info = 4; + * @param value the levelInfo to set + * @return this + */ + public ChessRogueFinishCurRoomNotify setLevelInfo( + final ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo value) { + bitField0_ |= 0x00000001; + levelInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueFinishCurRoomNotify copyFrom(final ChessRogueFinishCurRoomNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + levelInfo.copyFrom(other.levelInfo); + } + return this; + } + + @Override + public ChessRogueFinishCurRoomNotify mergeFrom(final ChessRogueFinishCurRoomNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevelInfo()) { + getMutableLevelInfo().mergeFrom(other.levelInfo); + } + return this; + } + + @Override + public ChessRogueFinishCurRoomNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + levelInfo.clear(); + return this; + } + + @Override + public ChessRogueFinishCurRoomNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + levelInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueFinishCurRoomNotify)) { + return false; + } + ChessRogueFinishCurRoomNotify other = (ChessRogueFinishCurRoomNotify) o; + return bitField0_ == other.bitField0_ + && (!hasLevelInfo() || levelInfo.equals(other.levelInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(levelInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(levelInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueFinishCurRoomNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 34: { + // levelInfo + input.readMessage(levelInfo); + 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.writeMessage(FieldNames.levelInfo, levelInfo); + } + output.endObject(); + } + + @Override + public ChessRogueFinishCurRoomNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1656548782: + case 206771337: { + if (input.isAtField(FieldNames.levelInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(levelInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueFinishCurRoomNotify clone() { + return new ChessRogueFinishCurRoomNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueFinishCurRoomNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueFinishCurRoomNotify(), data).checkInitialized(); + } + + public static ChessRogueFinishCurRoomNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueFinishCurRoomNotify(), input).checkInitialized(); + } + + public static ChessRogueFinishCurRoomNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueFinishCurRoomNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueFinishCurRoomNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueFinishCurRoomNotifyFactory.INSTANCE; + } + + private enum ChessRogueFinishCurRoomNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueFinishCurRoomNotify create() { + return ChessRogueFinishCurRoomNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName levelInfo = FieldName.forField("levelInfo", "level_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueFinishInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueFinishInfoOuterClass.java new file mode 100644 index 000000000..b747870c1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueFinishInfoOuterClass.java @@ -0,0 +1,1892 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueFinishInfoOuterClass { + /** + * Protobuf type {@code ChessRogueFinishInfo} + */ + public static final class ChessRogueFinishInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 end_area_id = 1; + */ + private int endAreaId; + + /** + * optional uint32 last_layer_id = 2; + */ + private int lastLayerId; + + /** + * optional uint32 DODPBNFKKEL = 6; + */ + private int dODPBNFKKEL; + + /** + * optional uint32 chess_rogue_main_story_id = 9; + */ + private int chessRogueMainStoryId; + + /** + * optional uint32 difficulty_level = 11; + */ + private int difficultyLevel; + + /** + * optional uint32 OLMBPLAIMLP = 15; + */ + private int oLMBPLAIMLP; + + /** + * optional uint32 score_id = 468; + */ + private int scoreId; + + /** + * optional uint32 rogue_sub_mode = 862; + */ + private int rogueSubMode; + + /** + * optional uint32 BIOHIBDDDFG = 912; + */ + private int bIOHIBDDDFG; + + /** + * optional uint32 LEBECEFMDJN = 1129; + */ + private int lEBECEFMDJN; + + /** + * optional uint32 CNCAOLEDBDI = 1705; + */ + private int cNCAOLEDBDI; + + /** + * optional .ChessRogueQuitReason quit_reason = 14; + */ + private int quitReason; + + /** + * optional bool is_finish = 4; + */ + private boolean isFinish; + + /** + * optional .ItemList EPGJCMNBIPJ = 3; + */ + private final ItemListOuterClass.ItemList ePGJCMNBIPJ = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .ChessRogueBuff rogue_buff_info = 7; + */ + private final ChessRogueBuffOuterClass.ChessRogueBuff rogueBuffInfo = ChessRogueBuffOuterClass.ChessRogueBuff.newInstance(); + + /** + * optional .LineupInfo rogue_lineup = 10; + */ + private final LineupInfoOuterClass.LineupInfo rogueLineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + /** + * optional .ChessRogueMiracle game_miracle_info = 12; + */ + private final ChessRogueMiracleOuterClass.ChessRogueMiracle gameMiracleInfo = ChessRogueMiracleOuterClass.ChessRogueMiracle.newInstance(); + + /** + * optional .JPFECHLHHEN NKGKDMFHGFJ = 1250; + */ + private final JPFECHLHHENOuterClass.JPFECHLHHEN nKGKDMFHGFJ = JPFECHLHHENOuterClass.JPFECHLHHEN.newInstance(); + + /** + * repeated uint32 HHMFIDKFNNI = 5; + */ + private final RepeatedInt hHMFIDKFNNI = RepeatedInt.newEmptyInstance(); + + private ChessRogueFinishInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueFinishInfo} + */ + public static ChessRogueFinishInfo newInstance() { + return new ChessRogueFinishInfo(); + } + + /** + * optional uint32 end_area_id = 1; + * @return whether the endAreaId field is set + */ + public boolean hasEndAreaId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 end_area_id = 1; + * @return this + */ + public ChessRogueFinishInfo clearEndAreaId() { + bitField0_ &= ~0x00000001; + endAreaId = 0; + return this; + } + + /** + * optional uint32 end_area_id = 1; + * @return the endAreaId + */ + public int getEndAreaId() { + return endAreaId; + } + + /** + * optional uint32 end_area_id = 1; + * @param value the endAreaId to set + * @return this + */ + public ChessRogueFinishInfo setEndAreaId(final int value) { + bitField0_ |= 0x00000001; + endAreaId = value; + return this; + } + + /** + * optional uint32 last_layer_id = 2; + * @return whether the lastLayerId field is set + */ + public boolean hasLastLayerId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 last_layer_id = 2; + * @return this + */ + public ChessRogueFinishInfo clearLastLayerId() { + bitField0_ &= ~0x00000002; + lastLayerId = 0; + return this; + } + + /** + * optional uint32 last_layer_id = 2; + * @return the lastLayerId + */ + public int getLastLayerId() { + return lastLayerId; + } + + /** + * optional uint32 last_layer_id = 2; + * @param value the lastLayerId to set + * @return this + */ + public ChessRogueFinishInfo setLastLayerId(final int value) { + bitField0_ |= 0x00000002; + lastLayerId = value; + return this; + } + + /** + * optional uint32 DODPBNFKKEL = 6; + * @return whether the dODPBNFKKEL field is set + */ + public boolean hasDODPBNFKKEL() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 DODPBNFKKEL = 6; + * @return this + */ + public ChessRogueFinishInfo clearDODPBNFKKEL() { + bitField0_ &= ~0x00000004; + dODPBNFKKEL = 0; + return this; + } + + /** + * optional uint32 DODPBNFKKEL = 6; + * @return the dODPBNFKKEL + */ + public int getDODPBNFKKEL() { + return dODPBNFKKEL; + } + + /** + * optional uint32 DODPBNFKKEL = 6; + * @param value the dODPBNFKKEL to set + * @return this + */ + public ChessRogueFinishInfo setDODPBNFKKEL(final int value) { + bitField0_ |= 0x00000004; + dODPBNFKKEL = value; + return this; + } + + /** + * optional uint32 chess_rogue_main_story_id = 9; + * @return whether the chessRogueMainStoryId field is set + */ + public boolean hasChessRogueMainStoryId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 chess_rogue_main_story_id = 9; + * @return this + */ + public ChessRogueFinishInfo clearChessRogueMainStoryId() { + bitField0_ &= ~0x00000008; + chessRogueMainStoryId = 0; + return this; + } + + /** + * optional uint32 chess_rogue_main_story_id = 9; + * @return the chessRogueMainStoryId + */ + public int getChessRogueMainStoryId() { + return chessRogueMainStoryId; + } + + /** + * optional uint32 chess_rogue_main_story_id = 9; + * @param value the chessRogueMainStoryId to set + * @return this + */ + public ChessRogueFinishInfo setChessRogueMainStoryId(final int value) { + bitField0_ |= 0x00000008; + chessRogueMainStoryId = value; + return this; + } + + /** + * optional uint32 difficulty_level = 11; + * @return whether the difficultyLevel field is set + */ + public boolean hasDifficultyLevel() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 difficulty_level = 11; + * @return this + */ + public ChessRogueFinishInfo clearDifficultyLevel() { + bitField0_ &= ~0x00000010; + difficultyLevel = 0; + return this; + } + + /** + * optional uint32 difficulty_level = 11; + * @return the difficultyLevel + */ + public int getDifficultyLevel() { + return difficultyLevel; + } + + /** + * optional uint32 difficulty_level = 11; + * @param value the difficultyLevel to set + * @return this + */ + public ChessRogueFinishInfo setDifficultyLevel(final int value) { + bitField0_ |= 0x00000010; + difficultyLevel = value; + return this; + } + + /** + * optional uint32 OLMBPLAIMLP = 15; + * @return whether the oLMBPLAIMLP field is set + */ + public boolean hasOLMBPLAIMLP() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 OLMBPLAIMLP = 15; + * @return this + */ + public ChessRogueFinishInfo clearOLMBPLAIMLP() { + bitField0_ &= ~0x00000020; + oLMBPLAIMLP = 0; + return this; + } + + /** + * optional uint32 OLMBPLAIMLP = 15; + * @return the oLMBPLAIMLP + */ + public int getOLMBPLAIMLP() { + return oLMBPLAIMLP; + } + + /** + * optional uint32 OLMBPLAIMLP = 15; + * @param value the oLMBPLAIMLP to set + * @return this + */ + public ChessRogueFinishInfo setOLMBPLAIMLP(final int value) { + bitField0_ |= 0x00000020; + oLMBPLAIMLP = value; + return this; + } + + /** + * optional uint32 score_id = 468; + * @return whether the scoreId field is set + */ + public boolean hasScoreId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 score_id = 468; + * @return this + */ + public ChessRogueFinishInfo clearScoreId() { + bitField0_ &= ~0x00000040; + scoreId = 0; + return this; + } + + /** + * optional uint32 score_id = 468; + * @return the scoreId + */ + public int getScoreId() { + return scoreId; + } + + /** + * optional uint32 score_id = 468; + * @param value the scoreId to set + * @return this + */ + public ChessRogueFinishInfo setScoreId(final int value) { + bitField0_ |= 0x00000040; + scoreId = value; + return this; + } + + /** + * optional uint32 rogue_sub_mode = 862; + * @return whether the rogueSubMode field is set + */ + public boolean hasRogueSubMode() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 rogue_sub_mode = 862; + * @return this + */ + public ChessRogueFinishInfo clearRogueSubMode() { + bitField0_ &= ~0x00000080; + rogueSubMode = 0; + return this; + } + + /** + * optional uint32 rogue_sub_mode = 862; + * @return the rogueSubMode + */ + public int getRogueSubMode() { + return rogueSubMode; + } + + /** + * optional uint32 rogue_sub_mode = 862; + * @param value the rogueSubMode to set + * @return this + */ + public ChessRogueFinishInfo setRogueSubMode(final int value) { + bitField0_ |= 0x00000080; + rogueSubMode = value; + return this; + } + + /** + * optional uint32 BIOHIBDDDFG = 912; + * @return whether the bIOHIBDDDFG field is set + */ + public boolean hasBIOHIBDDDFG() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 BIOHIBDDDFG = 912; + * @return this + */ + public ChessRogueFinishInfo clearBIOHIBDDDFG() { + bitField0_ &= ~0x00000100; + bIOHIBDDDFG = 0; + return this; + } + + /** + * optional uint32 BIOHIBDDDFG = 912; + * @return the bIOHIBDDDFG + */ + public int getBIOHIBDDDFG() { + return bIOHIBDDDFG; + } + + /** + * optional uint32 BIOHIBDDDFG = 912; + * @param value the bIOHIBDDDFG to set + * @return this + */ + public ChessRogueFinishInfo setBIOHIBDDDFG(final int value) { + bitField0_ |= 0x00000100; + bIOHIBDDDFG = value; + return this; + } + + /** + * optional uint32 LEBECEFMDJN = 1129; + * @return whether the lEBECEFMDJN field is set + */ + public boolean hasLEBECEFMDJN() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional uint32 LEBECEFMDJN = 1129; + * @return this + */ + public ChessRogueFinishInfo clearLEBECEFMDJN() { + bitField0_ &= ~0x00000200; + lEBECEFMDJN = 0; + return this; + } + + /** + * optional uint32 LEBECEFMDJN = 1129; + * @return the lEBECEFMDJN + */ + public int getLEBECEFMDJN() { + return lEBECEFMDJN; + } + + /** + * optional uint32 LEBECEFMDJN = 1129; + * @param value the lEBECEFMDJN to set + * @return this + */ + public ChessRogueFinishInfo setLEBECEFMDJN(final int value) { + bitField0_ |= 0x00000200; + lEBECEFMDJN = value; + return this; + } + + /** + * optional uint32 CNCAOLEDBDI = 1705; + * @return whether the cNCAOLEDBDI field is set + */ + public boolean hasCNCAOLEDBDI() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional uint32 CNCAOLEDBDI = 1705; + * @return this + */ + public ChessRogueFinishInfo clearCNCAOLEDBDI() { + bitField0_ &= ~0x00000400; + cNCAOLEDBDI = 0; + return this; + } + + /** + * optional uint32 CNCAOLEDBDI = 1705; + * @return the cNCAOLEDBDI + */ + public int getCNCAOLEDBDI() { + return cNCAOLEDBDI; + } + + /** + * optional uint32 CNCAOLEDBDI = 1705; + * @param value the cNCAOLEDBDI to set + * @return this + */ + public ChessRogueFinishInfo setCNCAOLEDBDI(final int value) { + bitField0_ |= 0x00000400; + cNCAOLEDBDI = value; + return this; + } + + /** + * optional .ChessRogueQuitReason quit_reason = 14; + * @return whether the quitReason field is set + */ + public boolean hasQuitReason() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .ChessRogueQuitReason quit_reason = 14; + * @return this + */ + public ChessRogueFinishInfo clearQuitReason() { + bitField0_ &= ~0x00000800; + quitReason = 0; + return this; + } + + /** + * optional .ChessRogueQuitReason quit_reason = 14; + * @return the quitReason + */ + public ChessRogueQuitReasonOuterClass.ChessRogueQuitReason getQuitReason() { + return ChessRogueQuitReasonOuterClass.ChessRogueQuitReason.forNumber(quitReason); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueFinishInfo#getQuitReason()}.getNumber(). + * + * @return numeric wire representation + */ + public int getQuitReasonValue() { + return quitReason; + } + + /** + * 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 ChessRogueQuitReasonOuterClass.ChessRogueQuitReason}. Setting an invalid value + * can cause {@link ChessRogueFinishInfo#getQuitReason()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueFinishInfo setQuitReasonValue(final int value) { + bitField0_ |= 0x00000800; + quitReason = value; + return this; + } + + /** + * optional .ChessRogueQuitReason quit_reason = 14; + * @param value the quitReason to set + * @return this + */ + public ChessRogueFinishInfo setQuitReason( + final ChessRogueQuitReasonOuterClass.ChessRogueQuitReason value) { + bitField0_ |= 0x00000800; + quitReason = value.getNumber(); + return this; + } + + /** + * optional bool is_finish = 4; + * @return whether the isFinish field is set + */ + public boolean hasIsFinish() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional bool is_finish = 4; + * @return this + */ + public ChessRogueFinishInfo clearIsFinish() { + bitField0_ &= ~0x00001000; + isFinish = false; + return this; + } + + /** + * optional bool is_finish = 4; + * @return the isFinish + */ + public boolean getIsFinish() { + return isFinish; + } + + /** + * optional bool is_finish = 4; + * @param value the isFinish to set + * @return this + */ + public ChessRogueFinishInfo setIsFinish(final boolean value) { + bitField0_ |= 0x00001000; + isFinish = value; + return this; + } + + /** + * optional .ItemList EPGJCMNBIPJ = 3; + * @return whether the ePGJCMNBIPJ field is set + */ + public boolean hasEPGJCMNBIPJ() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional .ItemList EPGJCMNBIPJ = 3; + * @return this + */ + public ChessRogueFinishInfo clearEPGJCMNBIPJ() { + bitField0_ &= ~0x00002000; + ePGJCMNBIPJ.clear(); + return this; + } + + /** + * optional .ItemList EPGJCMNBIPJ = 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 #getMutableEPGJCMNBIPJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getEPGJCMNBIPJ() { + return ePGJCMNBIPJ; + } + + /** + * optional .ItemList EPGJCMNBIPJ = 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 ItemListOuterClass.ItemList getMutableEPGJCMNBIPJ() { + bitField0_ |= 0x00002000; + return ePGJCMNBIPJ; + } + + /** + * optional .ItemList EPGJCMNBIPJ = 3; + * @param value the ePGJCMNBIPJ to set + * @return this + */ + public ChessRogueFinishInfo setEPGJCMNBIPJ(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00002000; + ePGJCMNBIPJ.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueBuff rogue_buff_info = 7; + * @return whether the rogueBuffInfo field is set + */ + public boolean hasRogueBuffInfo() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional .ChessRogueBuff rogue_buff_info = 7; + * @return this + */ + public ChessRogueFinishInfo clearRogueBuffInfo() { + bitField0_ &= ~0x00004000; + rogueBuffInfo.clear(); + return this; + } + + /** + * optional .ChessRogueBuff rogue_buff_info = 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 #getMutableRogueBuffInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueBuffOuterClass.ChessRogueBuff getRogueBuffInfo() { + return rogueBuffInfo; + } + + /** + * optional .ChessRogueBuff rogue_buff_info = 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 ChessRogueBuffOuterClass.ChessRogueBuff getMutableRogueBuffInfo() { + bitField0_ |= 0x00004000; + return rogueBuffInfo; + } + + /** + * optional .ChessRogueBuff rogue_buff_info = 7; + * @param value the rogueBuffInfo to set + * @return this + */ + public ChessRogueFinishInfo setRogueBuffInfo( + final ChessRogueBuffOuterClass.ChessRogueBuff value) { + bitField0_ |= 0x00004000; + rogueBuffInfo.copyFrom(value); + return this; + } + + /** + * optional .LineupInfo rogue_lineup = 10; + * @return whether the rogueLineup field is set + */ + public boolean hasRogueLineup() { + return (bitField0_ & 0x00008000) != 0; + } + + /** + * optional .LineupInfo rogue_lineup = 10; + * @return this + */ + public ChessRogueFinishInfo clearRogueLineup() { + bitField0_ &= ~0x00008000; + rogueLineup.clear(); + return this; + } + + /** + * optional .LineupInfo rogue_lineup = 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 #getMutableRogueLineup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LineupInfoOuterClass.LineupInfo getRogueLineup() { + return rogueLineup; + } + + /** + * optional .LineupInfo rogue_lineup = 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 LineupInfoOuterClass.LineupInfo getMutableRogueLineup() { + bitField0_ |= 0x00008000; + return rogueLineup; + } + + /** + * optional .LineupInfo rogue_lineup = 10; + * @param value the rogueLineup to set + * @return this + */ + public ChessRogueFinishInfo setRogueLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00008000; + rogueLineup.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueMiracle game_miracle_info = 12; + * @return whether the gameMiracleInfo field is set + */ + public boolean hasGameMiracleInfo() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * optional .ChessRogueMiracle game_miracle_info = 12; + * @return this + */ + public ChessRogueFinishInfo clearGameMiracleInfo() { + bitField0_ &= ~0x00010000; + gameMiracleInfo.clear(); + return this; + } + + /** + * optional .ChessRogueMiracle game_miracle_info = 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 #getMutableGameMiracleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueMiracleOuterClass.ChessRogueMiracle getGameMiracleInfo() { + return gameMiracleInfo; + } + + /** + * optional .ChessRogueMiracle game_miracle_info = 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 ChessRogueMiracleOuterClass.ChessRogueMiracle getMutableGameMiracleInfo() { + bitField0_ |= 0x00010000; + return gameMiracleInfo; + } + + /** + * optional .ChessRogueMiracle game_miracle_info = 12; + * @param value the gameMiracleInfo to set + * @return this + */ + public ChessRogueFinishInfo setGameMiracleInfo( + final ChessRogueMiracleOuterClass.ChessRogueMiracle value) { + bitField0_ |= 0x00010000; + gameMiracleInfo.copyFrom(value); + return this; + } + + /** + * optional .JPFECHLHHEN NKGKDMFHGFJ = 1250; + * @return whether the nKGKDMFHGFJ field is set + */ + public boolean hasNKGKDMFHGFJ() { + return (bitField0_ & 0x00020000) != 0; + } + + /** + * optional .JPFECHLHHEN NKGKDMFHGFJ = 1250; + * @return this + */ + public ChessRogueFinishInfo clearNKGKDMFHGFJ() { + bitField0_ &= ~0x00020000; + nKGKDMFHGFJ.clear(); + return this; + } + + /** + * optional .JPFECHLHHEN NKGKDMFHGFJ = 1250; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNKGKDMFHGFJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public JPFECHLHHENOuterClass.JPFECHLHHEN getNKGKDMFHGFJ() { + return nKGKDMFHGFJ; + } + + /** + * optional .JPFECHLHHEN NKGKDMFHGFJ = 1250; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public JPFECHLHHENOuterClass.JPFECHLHHEN getMutableNKGKDMFHGFJ() { + bitField0_ |= 0x00020000; + return nKGKDMFHGFJ; + } + + /** + * optional .JPFECHLHHEN NKGKDMFHGFJ = 1250; + * @param value the nKGKDMFHGFJ to set + * @return this + */ + public ChessRogueFinishInfo setNKGKDMFHGFJ(final JPFECHLHHENOuterClass.JPFECHLHHEN value) { + bitField0_ |= 0x00020000; + nKGKDMFHGFJ.copyFrom(value); + return this; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @return whether the hHMFIDKFNNI field is set + */ + public boolean hasHHMFIDKFNNI() { + return (bitField0_ & 0x00040000) != 0; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @return this + */ + public ChessRogueFinishInfo clearHHMFIDKFNNI() { + bitField0_ &= ~0x00040000; + hHMFIDKFNNI.clear(); + return this; + } + + /** + * repeated uint32 HHMFIDKFNNI = 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 #getMutableHHMFIDKFNNI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getHHMFIDKFNNI() { + return hHMFIDKFNNI; + } + + /** + * repeated uint32 HHMFIDKFNNI = 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 getMutableHHMFIDKFNNI() { + bitField0_ |= 0x00040000; + return hHMFIDKFNNI; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @param value the hHMFIDKFNNI to add + * @return this + */ + public ChessRogueFinishInfo addHHMFIDKFNNI(final int value) { + bitField0_ |= 0x00040000; + hHMFIDKFNNI.add(value); + return this; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @param values the hHMFIDKFNNI to add + * @return this + */ + public ChessRogueFinishInfo addAllHHMFIDKFNNI(final int... values) { + bitField0_ |= 0x00040000; + hHMFIDKFNNI.addAll(values); + return this; + } + + @Override + public ChessRogueFinishInfo copyFrom(final ChessRogueFinishInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + endAreaId = other.endAreaId; + lastLayerId = other.lastLayerId; + dODPBNFKKEL = other.dODPBNFKKEL; + chessRogueMainStoryId = other.chessRogueMainStoryId; + difficultyLevel = other.difficultyLevel; + oLMBPLAIMLP = other.oLMBPLAIMLP; + scoreId = other.scoreId; + rogueSubMode = other.rogueSubMode; + bIOHIBDDDFG = other.bIOHIBDDDFG; + lEBECEFMDJN = other.lEBECEFMDJN; + cNCAOLEDBDI = other.cNCAOLEDBDI; + quitReason = other.quitReason; + isFinish = other.isFinish; + ePGJCMNBIPJ.copyFrom(other.ePGJCMNBIPJ); + rogueBuffInfo.copyFrom(other.rogueBuffInfo); + rogueLineup.copyFrom(other.rogueLineup); + gameMiracleInfo.copyFrom(other.gameMiracleInfo); + nKGKDMFHGFJ.copyFrom(other.nKGKDMFHGFJ); + hHMFIDKFNNI.copyFrom(other.hHMFIDKFNNI); + } + return this; + } + + @Override + public ChessRogueFinishInfo mergeFrom(final ChessRogueFinishInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEndAreaId()) { + setEndAreaId(other.endAreaId); + } + if (other.hasLastLayerId()) { + setLastLayerId(other.lastLayerId); + } + if (other.hasDODPBNFKKEL()) { + setDODPBNFKKEL(other.dODPBNFKKEL); + } + if (other.hasChessRogueMainStoryId()) { + setChessRogueMainStoryId(other.chessRogueMainStoryId); + } + if (other.hasDifficultyLevel()) { + setDifficultyLevel(other.difficultyLevel); + } + if (other.hasOLMBPLAIMLP()) { + setOLMBPLAIMLP(other.oLMBPLAIMLP); + } + if (other.hasScoreId()) { + setScoreId(other.scoreId); + } + if (other.hasRogueSubMode()) { + setRogueSubMode(other.rogueSubMode); + } + if (other.hasBIOHIBDDDFG()) { + setBIOHIBDDDFG(other.bIOHIBDDDFG); + } + if (other.hasLEBECEFMDJN()) { + setLEBECEFMDJN(other.lEBECEFMDJN); + } + if (other.hasCNCAOLEDBDI()) { + setCNCAOLEDBDI(other.cNCAOLEDBDI); + } + if (other.hasQuitReason()) { + setQuitReasonValue(other.quitReason); + } + if (other.hasIsFinish()) { + setIsFinish(other.isFinish); + } + if (other.hasEPGJCMNBIPJ()) { + getMutableEPGJCMNBIPJ().mergeFrom(other.ePGJCMNBIPJ); + } + if (other.hasRogueBuffInfo()) { + getMutableRogueBuffInfo().mergeFrom(other.rogueBuffInfo); + } + if (other.hasRogueLineup()) { + getMutableRogueLineup().mergeFrom(other.rogueLineup); + } + if (other.hasGameMiracleInfo()) { + getMutableGameMiracleInfo().mergeFrom(other.gameMiracleInfo); + } + if (other.hasNKGKDMFHGFJ()) { + getMutableNKGKDMFHGFJ().mergeFrom(other.nKGKDMFHGFJ); + } + if (other.hasHHMFIDKFNNI()) { + getMutableHHMFIDKFNNI().addAll(other.hHMFIDKFNNI); + } + return this; + } + + @Override + public ChessRogueFinishInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + endAreaId = 0; + lastLayerId = 0; + dODPBNFKKEL = 0; + chessRogueMainStoryId = 0; + difficultyLevel = 0; + oLMBPLAIMLP = 0; + scoreId = 0; + rogueSubMode = 0; + bIOHIBDDDFG = 0; + lEBECEFMDJN = 0; + cNCAOLEDBDI = 0; + quitReason = 0; + isFinish = false; + ePGJCMNBIPJ.clear(); + rogueBuffInfo.clear(); + rogueLineup.clear(); + gameMiracleInfo.clear(); + nKGKDMFHGFJ.clear(); + hHMFIDKFNNI.clear(); + return this; + } + + @Override + public ChessRogueFinishInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + ePGJCMNBIPJ.clearQuick(); + rogueBuffInfo.clearQuick(); + rogueLineup.clearQuick(); + gameMiracleInfo.clearQuick(); + nKGKDMFHGFJ.clearQuick(); + hHMFIDKFNNI.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueFinishInfo)) { + return false; + } + ChessRogueFinishInfo other = (ChessRogueFinishInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEndAreaId() || endAreaId == other.endAreaId) + && (!hasLastLayerId() || lastLayerId == other.lastLayerId) + && (!hasDODPBNFKKEL() || dODPBNFKKEL == other.dODPBNFKKEL) + && (!hasChessRogueMainStoryId() || chessRogueMainStoryId == other.chessRogueMainStoryId) + && (!hasDifficultyLevel() || difficultyLevel == other.difficultyLevel) + && (!hasOLMBPLAIMLP() || oLMBPLAIMLP == other.oLMBPLAIMLP) + && (!hasScoreId() || scoreId == other.scoreId) + && (!hasRogueSubMode() || rogueSubMode == other.rogueSubMode) + && (!hasBIOHIBDDDFG() || bIOHIBDDDFG == other.bIOHIBDDDFG) + && (!hasLEBECEFMDJN() || lEBECEFMDJN == other.lEBECEFMDJN) + && (!hasCNCAOLEDBDI() || cNCAOLEDBDI == other.cNCAOLEDBDI) + && (!hasQuitReason() || quitReason == other.quitReason) + && (!hasIsFinish() || isFinish == other.isFinish) + && (!hasEPGJCMNBIPJ() || ePGJCMNBIPJ.equals(other.ePGJCMNBIPJ)) + && (!hasRogueBuffInfo() || rogueBuffInfo.equals(other.rogueBuffInfo)) + && (!hasRogueLineup() || rogueLineup.equals(other.rogueLineup)) + && (!hasGameMiracleInfo() || gameMiracleInfo.equals(other.gameMiracleInfo)) + && (!hasNKGKDMFHGFJ() || nKGKDMFHGFJ.equals(other.nKGKDMFHGFJ)) + && (!hasHHMFIDKFNNI() || hHMFIDKFNNI.equals(other.hHMFIDKFNNI)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(endAreaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(lastLayerId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(dODPBNFKKEL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(chessRogueMainStoryId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(difficultyLevel); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(oLMBPLAIMLP); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 7584); + output.writeUInt32NoTag(scoreId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawLittleEndian16((short) 13808); + output.writeUInt32NoTag(rogueSubMode); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawLittleEndian16((short) 14720); + output.writeUInt32NoTag(bIOHIBDDDFG); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 18120); + output.writeUInt32NoTag(lEBECEFMDJN); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawLittleEndian16((short) 27336); + output.writeUInt32NoTag(cNCAOLEDBDI); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(quitReason); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isFinish); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(ePGJCMNBIPJ); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(rogueBuffInfo); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(rogueLineup); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(gameMiracleInfo); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeRawLittleEndian16((short) 20114); + output.writeMessageNoTag(nKGKDMFHGFJ); + } + if ((bitField0_ & 0x00040000) != 0) { + for (int i = 0; i < hHMFIDKFNNI.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(hHMFIDKFNNI.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(endAreaId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lastLayerId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dODPBNFKKEL); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chessRogueMainStoryId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(difficultyLevel); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oLMBPLAIMLP); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(scoreId); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(rogueSubMode); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(bIOHIBDDDFG); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(lEBECEFMDJN); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(cNCAOLEDBDI); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(quitReason); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 2; + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(ePGJCMNBIPJ); + } + if ((bitField0_ & 0x00004000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuffInfo); + } + if ((bitField0_ & 0x00008000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueLineup); + } + if ((bitField0_ & 0x00010000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(gameMiracleInfo); + } + if ((bitField0_ & 0x00020000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(nKGKDMFHGFJ); + } + if ((bitField0_ & 0x00040000) != 0) { + size += (1 * hHMFIDKFNNI.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hHMFIDKFNNI); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueFinishInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // endAreaId + endAreaId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // lastLayerId + lastLayerId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // dODPBNFKKEL + dODPBNFKKEL = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // chessRogueMainStoryId + chessRogueMainStoryId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // difficultyLevel + difficultyLevel = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // oLMBPLAIMLP + oLMBPLAIMLP = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 3744) { + break; + } + } + case 3744: { + // scoreId + scoreId = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 6896) { + break; + } + } + case 6896: { + // rogueSubMode + rogueSubMode = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 7296) { + break; + } + } + case 7296: { + // bIOHIBDDDFG + bIOHIBDDDFG = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 9032) { + break; + } + } + case 9032: { + // lEBECEFMDJN + lEBECEFMDJN = input.readUInt32(); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 13640) { + break; + } + } + case 13640: { + // cNCAOLEDBDI + cNCAOLEDBDI = input.readUInt32(); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // quitReason + final int value = input.readInt32(); + if (ChessRogueQuitReasonOuterClass.ChessRogueQuitReason.forNumber(value) != null) { + quitReason = value; + bitField0_ |= 0x00000800; + } + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isFinish + isFinish = input.readBool(); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // ePGJCMNBIPJ + input.readMessage(ePGJCMNBIPJ); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // rogueBuffInfo + input.readMessage(rogueBuffInfo); + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // rogueLineup + input.readMessage(rogueLineup); + bitField0_ |= 0x00008000; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // gameMiracleInfo + input.readMessage(gameMiracleInfo); + bitField0_ |= 0x00010000; + tag = input.readTag(); + if (tag != 10002) { + break; + } + } + case 10002: { + // nKGKDMFHGFJ + input.readMessage(nKGKDMFHGFJ); + bitField0_ |= 0x00020000; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // hHMFIDKFNNI [packed=true] + input.readPackedUInt32(hHMFIDKFNNI, tag); + bitField0_ |= 0x00040000; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // hHMFIDKFNNI [packed=false] + tag = input.readRepeatedUInt32(hHMFIDKFNNI, tag); + bitField0_ |= 0x00040000; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.endAreaId, endAreaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.lastLayerId, lastLayerId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.dODPBNFKKEL, dODPBNFKKEL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.chessRogueMainStoryId, chessRogueMainStoryId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.difficultyLevel, difficultyLevel); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.oLMBPLAIMLP, oLMBPLAIMLP); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.scoreId, scoreId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.rogueSubMode, rogueSubMode); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.bIOHIBDDDFG, bIOHIBDDDFG); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeUInt32(FieldNames.lEBECEFMDJN, lEBECEFMDJN); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeUInt32(FieldNames.cNCAOLEDBDI, cNCAOLEDBDI); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeEnum(FieldNames.quitReason, quitReason, ChessRogueQuitReasonOuterClass.ChessRogueQuitReason.converter()); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeBool(FieldNames.isFinish, isFinish); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.ePGJCMNBIPJ, ePGJCMNBIPJ); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeMessage(FieldNames.rogueBuffInfo, rogueBuffInfo); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeMessage(FieldNames.rogueLineup, rogueLineup); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeMessage(FieldNames.gameMiracleInfo, gameMiracleInfo); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeMessage(FieldNames.nKGKDMFHGFJ, nKGKDMFHGFJ); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeRepeatedUInt32(FieldNames.hHMFIDKFNNI, hHMFIDKFNNI); + } + output.endObject(); + } + + @Override + public ChessRogueFinishInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1091637059: + case 9821865: { + if (input.isAtField(FieldNames.endAreaId)) { + if (!input.trySkipNullValue()) { + endAreaId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1842208470: + case -713460142: { + if (input.isAtField(FieldNames.lastLayerId)) { + if (!input.trySkipNullValue()) { + lastLayerId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -194522038: { + if (input.isAtField(FieldNames.dODPBNFKKEL)) { + if (!input.trySkipNullValue()) { + dODPBNFKKEL = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2023751203: + case 1610113799: { + if (input.isAtField(FieldNames.chessRogueMainStoryId)) { + if (!input.trySkipNullValue()) { + chessRogueMainStoryId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1034989431: + case -1469972992: { + if (input.isAtField(FieldNames.difficultyLevel)) { + if (!input.trySkipNullValue()) { + difficultyLevel = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -430122885: { + if (input.isAtField(FieldNames.oLMBPLAIMLP)) { + if (!input.trySkipNullValue()) { + oLMBPLAIMLP = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1924000589: + case -485502488: { + if (input.isAtField(FieldNames.scoreId)) { + if (!input.trySkipNullValue()) { + scoreId = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -121307959: + case 251315463: { + if (input.isAtField(FieldNames.rogueSubMode)) { + if (!input.trySkipNullValue()) { + rogueSubMode = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1904269908: { + if (input.isAtField(FieldNames.bIOHIBDDDFG)) { + if (!input.trySkipNullValue()) { + bIOHIBDDDFG = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1761304509: { + if (input.isAtField(FieldNames.lEBECEFMDJN)) { + if (!input.trySkipNullValue()) { + lEBECEFMDJN = input.readUInt32(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1828292962: { + if (input.isAtField(FieldNames.cNCAOLEDBDI)) { + if (!input.trySkipNullValue()) { + cNCAOLEDBDI = input.readUInt32(); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1123391117: + case -1437399500: { + if (input.isAtField(FieldNames.quitReason)) { + if (!input.trySkipNullValue()) { + final ChessRogueQuitReasonOuterClass.ChessRogueQuitReason value = input.readEnum(ChessRogueQuitReasonOuterClass.ChessRogueQuitReason.converter()); + if (value != null) { + quitReason = value.getNumber(); + bitField0_ |= 0x00000800; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -600408483: + case -810403512: { + if (input.isAtField(FieldNames.isFinish)) { + if (!input.trySkipNullValue()) { + isFinish = input.readBool(); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -21350121: { + if (input.isAtField(FieldNames.ePGJCMNBIPJ)) { + if (!input.trySkipNullValue()) { + input.readMessage(ePGJCMNBIPJ); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1107898267: + case -694847243: { + if (input.isAtField(FieldNames.rogueBuffInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueBuffInfo); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1046302711: + case 1688577940: { + if (input.isAtField(FieldNames.rogueLineup)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueLineup); + bitField0_ |= 0x00008000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -471061139: + case 1278717673: { + if (input.isAtField(FieldNames.gameMiracleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(gameMiracleInfo); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 296659423: { + if (input.isAtField(FieldNames.nKGKDMFHGFJ)) { + if (!input.trySkipNullValue()) { + input.readMessage(nKGKDMFHGFJ); + bitField0_ |= 0x00020000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 588517978: { + if (input.isAtField(FieldNames.hHMFIDKFNNI)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(hHMFIDKFNNI); + bitField0_ |= 0x00040000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueFinishInfo clone() { + return new ChessRogueFinishInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueFinishInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueFinishInfo(), data).checkInitialized(); + } + + public static ChessRogueFinishInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueFinishInfo(), input).checkInitialized(); + } + + public static ChessRogueFinishInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueFinishInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueFinishInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueFinishInfoFactory.INSTANCE; + } + + private enum ChessRogueFinishInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueFinishInfo create() { + return ChessRogueFinishInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName endAreaId = FieldName.forField("endAreaId", "end_area_id"); + + static final FieldName lastLayerId = FieldName.forField("lastLayerId", "last_layer_id"); + + static final FieldName dODPBNFKKEL = FieldName.forField("DODPBNFKKEL"); + + static final FieldName chessRogueMainStoryId = FieldName.forField("chessRogueMainStoryId", "chess_rogue_main_story_id"); + + static final FieldName difficultyLevel = FieldName.forField("difficultyLevel", "difficulty_level"); + + static final FieldName oLMBPLAIMLP = FieldName.forField("OLMBPLAIMLP"); + + static final FieldName scoreId = FieldName.forField("scoreId", "score_id"); + + static final FieldName rogueSubMode = FieldName.forField("rogueSubMode", "rogue_sub_mode"); + + static final FieldName bIOHIBDDDFG = FieldName.forField("BIOHIBDDDFG"); + + static final FieldName lEBECEFMDJN = FieldName.forField("LEBECEFMDJN"); + + static final FieldName cNCAOLEDBDI = FieldName.forField("CNCAOLEDBDI"); + + static final FieldName quitReason = FieldName.forField("quitReason", "quit_reason"); + + static final FieldName isFinish = FieldName.forField("isFinish", "is_finish"); + + static final FieldName ePGJCMNBIPJ = FieldName.forField("EPGJCMNBIPJ"); + + static final FieldName rogueBuffInfo = FieldName.forField("rogueBuffInfo", "rogue_buff_info"); + + static final FieldName rogueLineup = FieldName.forField("rogueLineup", "rogue_lineup"); + + static final FieldName gameMiracleInfo = FieldName.forField("gameMiracleInfo", "game_miracle_info"); + + static final FieldName nKGKDMFHGFJ = FieldName.forField("NKGKDMFHGFJ"); + + static final FieldName hHMFIDKFNNI = FieldName.forField("HHMFIDKFNNI"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGameAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGameAeonInfoOuterClass.java new file mode 100644 index 000000000..7838724af --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGameAeonInfoOuterClass.java @@ -0,0 +1,441 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueGameAeonInfoOuterClass { + /** + * Protobuf type {@code ChessRogueGameAeonInfo} + */ + public static final class ChessRogueGameAeonInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 KNIDGHHDIKJ = 15; + */ + private int kNIDGHHDIKJ; + + /** + * optional uint32 aeon_id = 13; + */ + private int aeonId; + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 3; + */ + private final ICNMLEMMHKLOuterClass.ICNMLEMMHKL fPGMAJOGPGG = ICNMLEMMHKLOuterClass.ICNMLEMMHKL.newInstance(); + + private ChessRogueGameAeonInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueGameAeonInfo} + */ + public static ChessRogueGameAeonInfo newInstance() { + return new ChessRogueGameAeonInfo(); + } + + /** + * optional int32 KNIDGHHDIKJ = 15; + * @return whether the kNIDGHHDIKJ field is set + */ + public boolean hasKNIDGHHDIKJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 KNIDGHHDIKJ = 15; + * @return this + */ + public ChessRogueGameAeonInfo clearKNIDGHHDIKJ() { + bitField0_ &= ~0x00000001; + kNIDGHHDIKJ = 0; + return this; + } + + /** + * optional int32 KNIDGHHDIKJ = 15; + * @return the kNIDGHHDIKJ + */ + public int getKNIDGHHDIKJ() { + return kNIDGHHDIKJ; + } + + /** + * optional int32 KNIDGHHDIKJ = 15; + * @param value the kNIDGHHDIKJ to set + * @return this + */ + public ChessRogueGameAeonInfo setKNIDGHHDIKJ(final int value) { + bitField0_ |= 0x00000001; + kNIDGHHDIKJ = value; + return this; + } + + /** + * optional uint32 aeon_id = 13; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 aeon_id = 13; + * @return this + */ + public ChessRogueGameAeonInfo clearAeonId() { + bitField0_ &= ~0x00000002; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 13; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 13; + * @param value the aeonId to set + * @return this + */ + public ChessRogueGameAeonInfo setAeonId(final int value) { + bitField0_ |= 0x00000002; + aeonId = value; + return this; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 3; + * @return whether the fPGMAJOGPGG field is set + */ + public boolean hasFPGMAJOGPGG() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 3; + * @return this + */ + public ChessRogueGameAeonInfo clearFPGMAJOGPGG() { + bitField0_ &= ~0x00000004; + fPGMAJOGPGG.clear(); + return this; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 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 #getMutableFPGMAJOGPGG()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ICNMLEMMHKLOuterClass.ICNMLEMMHKL getFPGMAJOGPGG() { + return fPGMAJOGPGG; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 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 ICNMLEMMHKLOuterClass.ICNMLEMMHKL getMutableFPGMAJOGPGG() { + bitField0_ |= 0x00000004; + return fPGMAJOGPGG; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 3; + * @param value the fPGMAJOGPGG to set + * @return this + */ + public ChessRogueGameAeonInfo setFPGMAJOGPGG(final ICNMLEMMHKLOuterClass.ICNMLEMMHKL value) { + bitField0_ |= 0x00000004; + fPGMAJOGPGG.copyFrom(value); + return this; + } + + @Override + public ChessRogueGameAeonInfo copyFrom(final ChessRogueGameAeonInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kNIDGHHDIKJ = other.kNIDGHHDIKJ; + aeonId = other.aeonId; + fPGMAJOGPGG.copyFrom(other.fPGMAJOGPGG); + } + return this; + } + + @Override + public ChessRogueGameAeonInfo mergeFrom(final ChessRogueGameAeonInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKNIDGHHDIKJ()) { + setKNIDGHHDIKJ(other.kNIDGHHDIKJ); + } + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + if (other.hasFPGMAJOGPGG()) { + getMutableFPGMAJOGPGG().mergeFrom(other.fPGMAJOGPGG); + } + return this; + } + + @Override + public ChessRogueGameAeonInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kNIDGHHDIKJ = 0; + aeonId = 0; + fPGMAJOGPGG.clear(); + return this; + } + + @Override + public ChessRogueGameAeonInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fPGMAJOGPGG.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGameAeonInfo)) { + return false; + } + ChessRogueGameAeonInfo other = (ChessRogueGameAeonInfo) o; + return bitField0_ == other.bitField0_ + && (!hasKNIDGHHDIKJ() || kNIDGHHDIKJ == other.kNIDGHHDIKJ) + && (!hasAeonId() || aeonId == other.aeonId) + && (!hasFPGMAJOGPGG() || fPGMAJOGPGG.equals(other.fPGMAJOGPGG)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeInt32NoTag(kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(aeonId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(fPGMAJOGPGG); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(fPGMAJOGPGG); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGameAeonInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // kNIDGHHDIKJ + kNIDGHHDIKJ = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // aeonId + aeonId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // fPGMAJOGPGG + input.readMessage(fPGMAJOGPGG); + 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.writeInt32(FieldNames.kNIDGHHDIKJ, kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.aeonId, aeonId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.fPGMAJOGPGG, fPGMAJOGPGG); + } + output.endObject(); + } + + @Override + public ChessRogueGameAeonInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 394421549: { + if (input.isAtField(FieldNames.kNIDGHHDIKJ)) { + if (!input.trySkipNullValue()) { + kNIDGHHDIKJ = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { + if (!input.trySkipNullValue()) { + aeonId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1550313631: { + if (input.isAtField(FieldNames.fPGMAJOGPGG)) { + if (!input.trySkipNullValue()) { + input.readMessage(fPGMAJOGPGG); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGameAeonInfo clone() { + return new ChessRogueGameAeonInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGameAeonInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGameAeonInfo(), data).checkInitialized(); + } + + public static ChessRogueGameAeonInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGameAeonInfo(), input).checkInitialized(); + } + + public static ChessRogueGameAeonInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGameAeonInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGameAeonInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueGameAeonInfoFactory.INSTANCE; + } + + private enum ChessRogueGameAeonInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGameAeonInfo create() { + return ChessRogueGameAeonInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kNIDGHHDIKJ = FieldName.forField("KNIDGHHDIKJ"); + + static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); + + static final FieldName fPGMAJOGPGG = FieldName.forField("FPGMAJOGPGG"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGetInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGetInfoOuterClass.java new file mode 100644 index 000000000..990994ac4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGetInfoOuterClass.java @@ -0,0 +1,836 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueGetInfoOuterClass { + /** + * Protobuf type {@code ChessRogueGetInfo} + */ + public static final class ChessRogueGetInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 1; + */ + private final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo chessAeonInfo = ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo.newInstance(); + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 3; + */ + private final ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo queryDiceInfo = ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo.newInstance(); + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 8; + */ + private final ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo rogueDifficultyInfo = ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo.newInstance(); + + /** + * optional .ChessRogueTalentInfo talent_info_list = 9; + */ + private final ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo talentInfoList = ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo.newInstance(); + + /** + * repeated uint32 area_id_list = 13; + */ + private final RepeatedInt areaIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 explored_area_id_list = 14; + */ + private final RepeatedInt exploredAreaIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueGetInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueGetInfo} + */ + public static ChessRogueGetInfo newInstance() { + return new ChessRogueGetInfo(); + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 1; + * @return whether the chessAeonInfo field is set + */ + public boolean hasChessAeonInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 1; + * @return this + */ + public ChessRogueGetInfo clearChessAeonInfo() { + bitField0_ &= ~0x00000001; + chessAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_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 #getMutableChessAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getChessAeonInfo() { + return chessAeonInfo; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_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 ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getMutableChessAeonInfo() { + bitField0_ |= 0x00000001; + return chessAeonInfo; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 1; + * @param value the chessAeonInfo to set + * @return this + */ + public ChessRogueGetInfo setChessAeonInfo( + final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo value) { + bitField0_ |= 0x00000001; + chessAeonInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 3; + * @return whether the queryDiceInfo field is set + */ + public boolean hasQueryDiceInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 3; + * @return this + */ + public ChessRogueGetInfo clearQueryDiceInfo() { + bitField0_ &= ~0x00000002; + queryDiceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 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 #getMutableQueryDiceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo getQueryDiceInfo() { + return queryDiceInfo; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 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 ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo getMutableQueryDiceInfo() { + bitField0_ |= 0x00000002; + return queryDiceInfo; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 3; + * @param value the queryDiceInfo to set + * @return this + */ + public ChessRogueGetInfo setQueryDiceInfo( + final ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo value) { + bitField0_ |= 0x00000002; + queryDiceInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 8; + * @return whether the rogueDifficultyInfo field is set + */ + public boolean hasRogueDifficultyInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 8; + * @return this + */ + public ChessRogueGetInfo clearRogueDifficultyInfo() { + bitField0_ &= ~0x00000004; + rogueDifficultyInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 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 #getMutableRogueDifficultyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo getRogueDifficultyInfo( + ) { + return rogueDifficultyInfo; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 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 ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo getMutableRogueDifficultyInfo( + ) { + bitField0_ |= 0x00000004; + return rogueDifficultyInfo; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 8; + * @param value the rogueDifficultyInfo to set + * @return this + */ + public ChessRogueGetInfo setRogueDifficultyInfo( + final ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo value) { + bitField0_ |= 0x00000004; + rogueDifficultyInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 9; + * @return whether the talentInfoList field is set + */ + public boolean hasTalentInfoList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 9; + * @return this + */ + public ChessRogueGetInfo clearTalentInfoList() { + bitField0_ &= ~0x00000008; + talentInfoList.clear(); + return this; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 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 #getMutableTalentInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo getTalentInfoList() { + return talentInfoList; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 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 ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo getMutableTalentInfoList() { + bitField0_ |= 0x00000008; + return talentInfoList; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 9; + * @param value the talentInfoList to set + * @return this + */ + public ChessRogueGetInfo setTalentInfoList( + final ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo value) { + bitField0_ |= 0x00000008; + talentInfoList.copyFrom(value); + return this; + } + + /** + * repeated uint32 area_id_list = 13; + * @return whether the areaIdList field is set + */ + public boolean hasAreaIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 area_id_list = 13; + * @return this + */ + public ChessRogueGetInfo clearAreaIdList() { + bitField0_ &= ~0x00000010; + areaIdList.clear(); + return this; + } + + /** + * repeated uint32 area_id_list = 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 #getMutableAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAreaIdList() { + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 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 RepeatedInt getMutableAreaIdList() { + bitField0_ |= 0x00000010; + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 13; + * @param value the areaIdList to add + * @return this + */ + public ChessRogueGetInfo addAreaIdList(final int value) { + bitField0_ |= 0x00000010; + areaIdList.add(value); + return this; + } + + /** + * repeated uint32 area_id_list = 13; + * @param values the areaIdList to add + * @return this + */ + public ChessRogueGetInfo addAllAreaIdList(final int... values) { + bitField0_ |= 0x00000010; + areaIdList.addAll(values); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 14; + * @return whether the exploredAreaIdList field is set + */ + public boolean hasExploredAreaIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 explored_area_id_list = 14; + * @return this + */ + public ChessRogueGetInfo clearExploredAreaIdList() { + bitField0_ &= ~0x00000020; + exploredAreaIdList.clear(); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 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 #getMutableExploredAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getExploredAreaIdList() { + return exploredAreaIdList; + } + + /** + * repeated uint32 explored_area_id_list = 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 RepeatedInt getMutableExploredAreaIdList() { + bitField0_ |= 0x00000020; + return exploredAreaIdList; + } + + /** + * repeated uint32 explored_area_id_list = 14; + * @param value the exploredAreaIdList to add + * @return this + */ + public ChessRogueGetInfo addExploredAreaIdList(final int value) { + bitField0_ |= 0x00000020; + exploredAreaIdList.add(value); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 14; + * @param values the exploredAreaIdList to add + * @return this + */ + public ChessRogueGetInfo addAllExploredAreaIdList(final int... values) { + bitField0_ |= 0x00000020; + exploredAreaIdList.addAll(values); + return this; + } + + @Override + public ChessRogueGetInfo copyFrom(final ChessRogueGetInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + chessAeonInfo.copyFrom(other.chessAeonInfo); + queryDiceInfo.copyFrom(other.queryDiceInfo); + rogueDifficultyInfo.copyFrom(other.rogueDifficultyInfo); + talentInfoList.copyFrom(other.talentInfoList); + areaIdList.copyFrom(other.areaIdList); + exploredAreaIdList.copyFrom(other.exploredAreaIdList); + } + return this; + } + + @Override + public ChessRogueGetInfo mergeFrom(final ChessRogueGetInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChessAeonInfo()) { + getMutableChessAeonInfo().mergeFrom(other.chessAeonInfo); + } + if (other.hasQueryDiceInfo()) { + getMutableQueryDiceInfo().mergeFrom(other.queryDiceInfo); + } + if (other.hasRogueDifficultyInfo()) { + getMutableRogueDifficultyInfo().mergeFrom(other.rogueDifficultyInfo); + } + if (other.hasTalentInfoList()) { + getMutableTalentInfoList().mergeFrom(other.talentInfoList); + } + if (other.hasAreaIdList()) { + getMutableAreaIdList().addAll(other.areaIdList); + } + if (other.hasExploredAreaIdList()) { + getMutableExploredAreaIdList().addAll(other.exploredAreaIdList); + } + return this; + } + + @Override + public ChessRogueGetInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chessAeonInfo.clear(); + queryDiceInfo.clear(); + rogueDifficultyInfo.clear(); + talentInfoList.clear(); + areaIdList.clear(); + exploredAreaIdList.clear(); + return this; + } + + @Override + public ChessRogueGetInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chessAeonInfo.clearQuick(); + queryDiceInfo.clearQuick(); + rogueDifficultyInfo.clearQuick(); + talentInfoList.clearQuick(); + areaIdList.clear(); + exploredAreaIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGetInfo)) { + return false; + } + ChessRogueGetInfo other = (ChessRogueGetInfo) o; + return bitField0_ == other.bitField0_ + && (!hasChessAeonInfo() || chessAeonInfo.equals(other.chessAeonInfo)) + && (!hasQueryDiceInfo() || queryDiceInfo.equals(other.queryDiceInfo)) + && (!hasRogueDifficultyInfo() || rogueDifficultyInfo.equals(other.rogueDifficultyInfo)) + && (!hasTalentInfoList() || talentInfoList.equals(other.talentInfoList)) + && (!hasAreaIdList() || areaIdList.equals(other.areaIdList)) + && (!hasExploredAreaIdList() || exploredAreaIdList.equals(other.exploredAreaIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(chessAeonInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(queryDiceInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(talentInfoList); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < areaIdList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(areaIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < exploredAreaIdList.length(); i++) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(exploredAreaIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chessAeonInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(queryDiceInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(talentInfoList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * areaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(areaIdList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * exploredAreaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(exploredAreaIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGetInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // chessAeonInfo + input.readMessage(chessAeonInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // queryDiceInfo + input.readMessage(queryDiceInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // rogueDifficultyInfo + input.readMessage(rogueDifficultyInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // talentInfoList + input.readMessage(talentInfoList); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // areaIdList [packed=true] + input.readPackedUInt32(areaIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // exploredAreaIdList [packed=true] + input.readPackedUInt32(exploredAreaIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 104: { + // areaIdList [packed=false] + tag = input.readRepeatedUInt32(areaIdList, tag); + bitField0_ |= 0x00000010; + break; + } + case 112: { + // exploredAreaIdList [packed=false] + tag = input.readRepeatedUInt32(exploredAreaIdList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.chessAeonInfo, chessAeonInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.queryDiceInfo, queryDiceInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueDifficultyInfo, rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.talentInfoList, talentInfoList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.areaIdList, areaIdList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.exploredAreaIdList, exploredAreaIdList); + } + output.endObject(); + } + + @Override + public ChessRogueGetInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1969851249: + case 1965672427: { + if (input.isAtField(FieldNames.chessAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(chessAeonInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1613622749: + case 524483471: { + if (input.isAtField(FieldNames.queryDiceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(queryDiceInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 664895363: + case -318397875: { + if (input.isAtField(FieldNames.rogueDifficultyInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueDifficultyInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -363598984: + case 1545287164: { + if (input.isAtField(FieldNames.talentInfoList)) { + if (!input.trySkipNullValue()) { + input.readMessage(talentInfoList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 530025286: + case -1239486576: { + if (input.isAtField(FieldNames.areaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(areaIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -471271849: + case -942040866: { + if (input.isAtField(FieldNames.exploredAreaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(exploredAreaIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGetInfo clone() { + return new ChessRogueGetInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGetInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGetInfo(), data).checkInitialized(); + } + + public static ChessRogueGetInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGetInfo(), input).checkInitialized(); + } + + public static ChessRogueGetInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGetInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGetInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueGetInfoFactory.INSTANCE; + } + + private enum ChessRogueGetInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGetInfo create() { + return ChessRogueGetInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName chessAeonInfo = FieldName.forField("chessAeonInfo", "chess_aeon_info"); + + static final FieldName queryDiceInfo = FieldName.forField("queryDiceInfo", "query_dice_info"); + + static final FieldName rogueDifficultyInfo = FieldName.forField("rogueDifficultyInfo", "rogue_difficulty_info"); + + static final FieldName talentInfoList = FieldName.forField("talentInfoList", "talent_info_list"); + + static final FieldName areaIdList = FieldName.forField("areaIdList", "area_id_list"); + + static final FieldName exploredAreaIdList = FieldName.forField("exploredAreaIdList", "explored_area_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpCsReqOuterClass.java new file mode 100644 index 000000000..d8ab86577 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpCsReqOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueGiveUpCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueGiveUpCsReq} + */ + public static final class ChessRogueGiveUpCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueGiveUpCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueGiveUpCsReq} + */ + public static ChessRogueGiveUpCsReq newInstance() { + return new ChessRogueGiveUpCsReq(); + } + + @Override + public ChessRogueGiveUpCsReq copyFrom(final ChessRogueGiveUpCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueGiveUpCsReq mergeFrom(final ChessRogueGiveUpCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueGiveUpCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueGiveUpCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGiveUpCsReq)) { + return false; + } + ChessRogueGiveUpCsReq other = (ChessRogueGiveUpCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGiveUpCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueGiveUpCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGiveUpCsReq clone() { + return new ChessRogueGiveUpCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGiveUpCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpCsReq(), data).checkInitialized(); + } + + public static ChessRogueGiveUpCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpCsReq(), input).checkInitialized(); + } + + public static ChessRogueGiveUpCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGiveUpCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueGiveUpCsReqFactory.INSTANCE; + } + + private enum ChessRogueGiveUpCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGiveUpCsReq create() { + return ChessRogueGiveUpCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpRollCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpRollCsReqOuterClass.java new file mode 100644 index 000000000..f037274bf --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpRollCsReqOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueGiveUpRollCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueGiveUpRollCsReq} + */ + public static final class ChessRogueGiveUpRollCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueGiveUpRollCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueGiveUpRollCsReq} + */ + public static ChessRogueGiveUpRollCsReq newInstance() { + return new ChessRogueGiveUpRollCsReq(); + } + + @Override + public ChessRogueGiveUpRollCsReq copyFrom(final ChessRogueGiveUpRollCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueGiveUpRollCsReq mergeFrom(final ChessRogueGiveUpRollCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueGiveUpRollCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueGiveUpRollCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGiveUpRollCsReq)) { + return false; + } + ChessRogueGiveUpRollCsReq other = (ChessRogueGiveUpRollCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGiveUpRollCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueGiveUpRollCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGiveUpRollCsReq clone() { + return new ChessRogueGiveUpRollCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGiveUpRollCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpRollCsReq(), data).checkInitialized(); + } + + public static ChessRogueGiveUpRollCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpRollCsReq(), input).checkInitialized(); + } + + public static ChessRogueGiveUpRollCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpRollCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGiveUpRollCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueGiveUpRollCsReqFactory.INSTANCE; + } + + private enum ChessRogueGiveUpRollCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGiveUpRollCsReq create() { + return ChessRogueGiveUpRollCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpRollScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpRollScRspOuterClass.java new file mode 100644 index 000000000..065dcb1db --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpRollScRspOuterClass.java @@ -0,0 +1,463 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueGiveUpRollScRspOuterClass { + /** + * Protobuf type {@code ChessRogueGiveUpRollScRsp} + */ + public static final class ChessRogueGiveUpRollScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional .ItemList EABMLEFCADE = 8; + */ + private final ItemListOuterClass.ItemList eABMLEFCADE = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 13; + */ + private final ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo rogueDiceInfo = ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo.newInstance(); + + private ChessRogueGiveUpRollScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueGiveUpRollScRsp} + */ + public static ChessRogueGiveUpRollScRsp newInstance() { + return new ChessRogueGiveUpRollScRsp(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public ChessRogueGiveUpRollScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public ChessRogueGiveUpRollScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ItemList EABMLEFCADE = 8; + * @return whether the eABMLEFCADE field is set + */ + public boolean hasEABMLEFCADE() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemList EABMLEFCADE = 8; + * @return this + */ + public ChessRogueGiveUpRollScRsp clearEABMLEFCADE() { + bitField0_ &= ~0x00000002; + eABMLEFCADE.clear(); + return this; + } + + /** + * optional .ItemList EABMLEFCADE = 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 #getMutableEABMLEFCADE()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getEABMLEFCADE() { + return eABMLEFCADE; + } + + /** + * optional .ItemList EABMLEFCADE = 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 ItemListOuterClass.ItemList getMutableEABMLEFCADE() { + bitField0_ |= 0x00000002; + return eABMLEFCADE; + } + + /** + * optional .ItemList EABMLEFCADE = 8; + * @param value the eABMLEFCADE to set + * @return this + */ + public ChessRogueGiveUpRollScRsp setEABMLEFCADE(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000002; + eABMLEFCADE.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 13; + * @return whether the rogueDiceInfo field is set + */ + public boolean hasRogueDiceInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 13; + * @return this + */ + public ChessRogueGiveUpRollScRsp clearRogueDiceInfo() { + bitField0_ &= ~0x00000004; + rogueDiceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 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 #getMutableRogueDiceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo getRogueDiceInfo() { + return rogueDiceInfo; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 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 ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo getMutableRogueDiceInfo() { + bitField0_ |= 0x00000004; + return rogueDiceInfo; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 13; + * @param value the rogueDiceInfo to set + * @return this + */ + public ChessRogueGiveUpRollScRsp setRogueDiceInfo( + final ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo value) { + bitField0_ |= 0x00000004; + rogueDiceInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueGiveUpRollScRsp copyFrom(final ChessRogueGiveUpRollScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + eABMLEFCADE.copyFrom(other.eABMLEFCADE); + rogueDiceInfo.copyFrom(other.rogueDiceInfo); + } + return this; + } + + @Override + public ChessRogueGiveUpRollScRsp mergeFrom(final ChessRogueGiveUpRollScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEABMLEFCADE()) { + getMutableEABMLEFCADE().mergeFrom(other.eABMLEFCADE); + } + if (other.hasRogueDiceInfo()) { + getMutableRogueDiceInfo().mergeFrom(other.rogueDiceInfo); + } + return this; + } + + @Override + public ChessRogueGiveUpRollScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + eABMLEFCADE.clear(); + rogueDiceInfo.clear(); + return this; + } + + @Override + public ChessRogueGiveUpRollScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eABMLEFCADE.clearQuick(); + rogueDiceInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGiveUpRollScRsp)) { + return false; + } + ChessRogueGiveUpRollScRsp other = (ChessRogueGiveUpRollScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasEABMLEFCADE() || eABMLEFCADE.equals(other.eABMLEFCADE)) + && (!hasRogueDiceInfo() || rogueDiceInfo.equals(other.rogueDiceInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(eABMLEFCADE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(rogueDiceInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eABMLEFCADE); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueDiceInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGiveUpRollScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // eABMLEFCADE + input.readMessage(eABMLEFCADE); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // rogueDiceInfo + input.readMessage(rogueDiceInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.eABMLEFCADE, eABMLEFCADE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueDiceInfo, rogueDiceInfo); + } + output.endObject(); + } + + @Override + public ChessRogueGiveUpRollScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -826614523: { + if (input.isAtField(FieldNames.eABMLEFCADE)) { + if (!input.trySkipNullValue()) { + input.readMessage(eABMLEFCADE); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1848368913: + case -2144816607: { + if (input.isAtField(FieldNames.rogueDiceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueDiceInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGiveUpRollScRsp clone() { + return new ChessRogueGiveUpRollScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGiveUpRollScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpRollScRsp(), data).checkInitialized(); + } + + public static ChessRogueGiveUpRollScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpRollScRsp(), input).checkInitialized(); + } + + public static ChessRogueGiveUpRollScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpRollScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGiveUpRollScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueGiveUpRollScRspFactory.INSTANCE; + } + + private enum ChessRogueGiveUpRollScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGiveUpRollScRsp create() { + return ChessRogueGiveUpRollScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName eABMLEFCADE = FieldName.forField("EABMLEFCADE"); + + static final FieldName rogueDiceInfo = FieldName.forField("rogueDiceInfo", "rogue_dice_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpScRspOuterClass.java new file mode 100644 index 000000000..3a0400785 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGiveUpScRspOuterClass.java @@ -0,0 +1,774 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueGiveUpScRspOuterClass { + /** + * Protobuf type {@code ChessRogueGiveUpScRsp} + */ + public static final class ChessRogueGiveUpScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 11; + */ + private int retcode; + + /** + * optional .ChessRogueFinishInfo finish_info = 5; + */ + private final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo finishInfo = ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo.newInstance(); + + /** + * optional .ChessRogueQueryInfo query_info = 6; + */ + private final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo queryInfo = ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo.newInstance(); + + /** + * optional .ChessRoguePlayerInfo player_info = 7; + */ + private final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo playerInfo = ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo.newInstance(); + + /** + * optional .ChessRogueGetInfo rogue_get_info = 9; + */ + private final ChessRogueGetInfoOuterClass.ChessRogueGetInfo rogueGetInfo = ChessRogueGetInfoOuterClass.ChessRogueGetInfo.newInstance(); + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 14; + */ + private final ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo rogueAeonInfo = ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo.newInstance(); + + private ChessRogueGiveUpScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueGiveUpScRsp} + */ + public static ChessRogueGiveUpScRsp newInstance() { + return new ChessRogueGiveUpScRsp(); + } + + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public ChessRogueGiveUpScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public ChessRogueGiveUpScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 5; + * @return whether the finishInfo field is set + */ + public boolean hasFinishInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 5; + * @return this + */ + public ChessRogueGiveUpScRsp clearFinishInfo() { + bitField0_ &= ~0x00000002; + finishInfo.clear(); + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 #getMutableFinishInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getFinishInfo() { + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getMutableFinishInfo() { + bitField0_ |= 0x00000002; + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 5; + * @param value the finishInfo to set + * @return this + */ + public ChessRogueGiveUpScRsp setFinishInfo( + final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo value) { + bitField0_ |= 0x00000002; + finishInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 6; + * @return whether the queryInfo field is set + */ + public boolean hasQueryInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueQueryInfo query_info = 6; + * @return this + */ + public ChessRogueGiveUpScRsp clearQueryInfo() { + bitField0_ &= ~0x00000004; + queryInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 #getMutableQueryInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getQueryInfo() { + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getMutableQueryInfo() { + bitField0_ |= 0x00000004; + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 6; + * @param value the queryInfo to set + * @return this + */ + public ChessRogueGiveUpScRsp setQueryInfo( + final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo value) { + bitField0_ |= 0x00000004; + queryInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 7; + * @return whether the playerInfo field is set + */ + public boolean hasPlayerInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 7; + * @return this + */ + public ChessRogueGiveUpScRsp clearPlayerInfo() { + bitField0_ &= ~0x00000008; + playerInfo.clear(); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 #getMutablePlayerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getPlayerInfo() { + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getMutablePlayerInfo() { + bitField0_ |= 0x00000008; + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 7; + * @param value the playerInfo to set + * @return this + */ + public ChessRogueGiveUpScRsp setPlayerInfo( + final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo value) { + bitField0_ |= 0x00000008; + playerInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 9; + * @return whether the rogueGetInfo field is set + */ + public boolean hasRogueGetInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 9; + * @return this + */ + public ChessRogueGiveUpScRsp clearRogueGetInfo() { + bitField0_ &= ~0x00000010; + rogueGetInfo.clear(); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 #getMutableRogueGetInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueGetInfoOuterClass.ChessRogueGetInfo getRogueGetInfo() { + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 ChessRogueGetInfoOuterClass.ChessRogueGetInfo getMutableRogueGetInfo() { + bitField0_ |= 0x00000010; + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 9; + * @param value the rogueGetInfo to set + * @return this + */ + public ChessRogueGiveUpScRsp setRogueGetInfo( + final ChessRogueGetInfoOuterClass.ChessRogueGetInfo value) { + bitField0_ |= 0x00000010; + rogueGetInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 14; + * @return whether the rogueAeonInfo field is set + */ + public boolean hasRogueAeonInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 14; + * @return this + */ + public ChessRogueGiveUpScRsp clearRogueAeonInfo() { + bitField0_ &= ~0x00000020; + rogueAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 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 #getMutableRogueAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo getRogueAeonInfo() { + return rogueAeonInfo; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 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 ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo getMutableRogueAeonInfo() { + bitField0_ |= 0x00000020; + return rogueAeonInfo; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 14; + * @param value the rogueAeonInfo to set + * @return this + */ + public ChessRogueGiveUpScRsp setRogueAeonInfo( + final ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo value) { + bitField0_ |= 0x00000020; + rogueAeonInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueGiveUpScRsp copyFrom(final ChessRogueGiveUpScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + finishInfo.copyFrom(other.finishInfo); + queryInfo.copyFrom(other.queryInfo); + playerInfo.copyFrom(other.playerInfo); + rogueGetInfo.copyFrom(other.rogueGetInfo); + rogueAeonInfo.copyFrom(other.rogueAeonInfo); + } + return this; + } + + @Override + public ChessRogueGiveUpScRsp mergeFrom(final ChessRogueGiveUpScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasFinishInfo()) { + getMutableFinishInfo().mergeFrom(other.finishInfo); + } + if (other.hasQueryInfo()) { + getMutableQueryInfo().mergeFrom(other.queryInfo); + } + if (other.hasPlayerInfo()) { + getMutablePlayerInfo().mergeFrom(other.playerInfo); + } + if (other.hasRogueGetInfo()) { + getMutableRogueGetInfo().mergeFrom(other.rogueGetInfo); + } + if (other.hasRogueAeonInfo()) { + getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); + } + return this; + } + + @Override + public ChessRogueGiveUpScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + finishInfo.clear(); + queryInfo.clear(); + playerInfo.clear(); + rogueGetInfo.clear(); + rogueAeonInfo.clear(); + return this; + } + + @Override + public ChessRogueGiveUpScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + finishInfo.clearQuick(); + queryInfo.clearQuick(); + playerInfo.clearQuick(); + rogueGetInfo.clearQuick(); + rogueAeonInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGiveUpScRsp)) { + return false; + } + ChessRogueGiveUpScRsp other = (ChessRogueGiveUpScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasFinishInfo() || finishInfo.equals(other.finishInfo)) + && (!hasQueryInfo() || queryInfo.equals(other.queryInfo)) + && (!hasPlayerInfo() || playerInfo.equals(other.playerInfo)) + && (!hasRogueGetInfo() || rogueGetInfo.equals(other.rogueGetInfo)) + && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(finishInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(queryInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(playerInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rogueGetInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(rogueAeonInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(finishInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueGetInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGiveUpScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // finishInfo + input.readMessage(finishInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // queryInfo + input.readMessage(queryInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // playerInfo + input.readMessage(playerInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // rogueGetInfo + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // rogueAeonInfo + input.readMessage(rogueAeonInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.finishInfo, finishInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.queryInfo, queryInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.playerInfo, playerInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueGetInfo, rogueGetInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); + } + output.endObject(); + } + + @Override + public ChessRogueGiveUpScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1151198177: + case 1347581146: { + if (input.isAtField(FieldNames.finishInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(finishInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1807200874: + case -168476219: { + if (input.isAtField(FieldNames.queryInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(queryInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2095520559: + case 556803916: { + if (input.isAtField(FieldNames.playerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1671986666: + case 12475580: { + if (input.isAtField(FieldNames.rogueGetInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1685018549: + case -1375922619: { + if (input.isAtField(FieldNames.rogueAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGiveUpScRsp clone() { + return new ChessRogueGiveUpScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGiveUpScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpScRsp(), data).checkInitialized(); + } + + public static ChessRogueGiveUpScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpScRsp(), input).checkInitialized(); + } + + public static ChessRogueGiveUpScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGiveUpScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGiveUpScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueGiveUpScRspFactory.INSTANCE; + } + + private enum ChessRogueGiveUpScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGiveUpScRsp create() { + return ChessRogueGiveUpScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName finishInfo = FieldName.forField("finishInfo", "finish_info"); + + static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info"); + + static final FieldName playerInfo = FieldName.forField("playerInfo", "player_info"); + + static final FieldName rogueGetInfo = FieldName.forField("rogueGetInfo", "rogue_get_info"); + + static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGoAheadCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGoAheadCsReqOuterClass.java new file mode 100644 index 000000000..1287f5287 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGoAheadCsReqOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueGoAheadCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueGoAheadCsReq} + */ + public static final class ChessRogueGoAheadCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cell_id = 9; + */ + private int cellId; + + private ChessRogueGoAheadCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueGoAheadCsReq} + */ + public static ChessRogueGoAheadCsReq newInstance() { + return new ChessRogueGoAheadCsReq(); + } + + /** + * optional uint32 cell_id = 9; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cell_id = 9; + * @return this + */ + public ChessRogueGoAheadCsReq clearCellId() { + bitField0_ &= ~0x00000001; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 9; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 9; + * @param value the cellId to set + * @return this + */ + public ChessRogueGoAheadCsReq setCellId(final int value) { + bitField0_ |= 0x00000001; + cellId = value; + return this; + } + + @Override + public ChessRogueGoAheadCsReq copyFrom(final ChessRogueGoAheadCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cellId = other.cellId; + } + return this; + } + + @Override + public ChessRogueGoAheadCsReq mergeFrom(final ChessRogueGoAheadCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCellId()) { + setCellId(other.cellId); + } + return this; + } + + @Override + public ChessRogueGoAheadCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellId = 0; + return this; + } + + @Override + public ChessRogueGoAheadCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGoAheadCsReq)) { + return false; + } + ChessRogueGoAheadCsReq other = (ChessRogueGoAheadCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasCellId() || cellId == other.cellId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(cellId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGoAheadCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // cellId + cellId = input.readUInt32(); + 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.writeUInt32(FieldNames.cellId, cellId); + } + output.endObject(); + } + + @Override + public ChessRogueGoAheadCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGoAheadCsReq clone() { + return new ChessRogueGoAheadCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGoAheadCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGoAheadCsReq(), data).checkInitialized(); + } + + public static ChessRogueGoAheadCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGoAheadCsReq(), input).checkInitialized(); + } + + public static ChessRogueGoAheadCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGoAheadCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGoAheadCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueGoAheadCsReqFactory.INSTANCE; + } + + private enum ChessRogueGoAheadCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGoAheadCsReq create() { + return ChessRogueGoAheadCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueGoAheadScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueGoAheadScRspOuterClass.java new file mode 100644 index 000000000..f8857c5b5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueGoAheadScRspOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueGoAheadScRspOuterClass { + /** + * Protobuf type {@code ChessRogueGoAheadScRsp} + */ + public static final class ChessRogueGoAheadScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 cell_id = 11; + */ + private int cellId; + + private ChessRogueGoAheadScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueGoAheadScRsp} + */ + public static ChessRogueGoAheadScRsp newInstance() { + return new ChessRogueGoAheadScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public ChessRogueGoAheadScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public ChessRogueGoAheadScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 cell_id = 11; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cell_id = 11; + * @return this + */ + public ChessRogueGoAheadScRsp clearCellId() { + bitField0_ &= ~0x00000002; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 11; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 11; + * @param value the cellId to set + * @return this + */ + public ChessRogueGoAheadScRsp setCellId(final int value) { + bitField0_ |= 0x00000002; + cellId = value; + return this; + } + + @Override + public ChessRogueGoAheadScRsp copyFrom(final ChessRogueGoAheadScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + cellId = other.cellId; + } + return this; + } + + @Override + public ChessRogueGoAheadScRsp mergeFrom(final ChessRogueGoAheadScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCellId()) { + setCellId(other.cellId); + } + return this; + } + + @Override + public ChessRogueGoAheadScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + cellId = 0; + return this; + } + + @Override + public ChessRogueGoAheadScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueGoAheadScRsp)) { + return false; + } + ChessRogueGoAheadScRsp other = (ChessRogueGoAheadScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCellId() || cellId == other.cellId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(cellId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueGoAheadScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // cellId + cellId = input.readUInt32(); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.cellId, cellId); + } + output.endObject(); + } + + @Override + public ChessRogueGoAheadScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueGoAheadScRsp clone() { + return new ChessRogueGoAheadScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueGoAheadScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueGoAheadScRsp(), data).checkInitialized(); + } + + public static ChessRogueGoAheadScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGoAheadScRsp(), input).checkInitialized(); + } + + public static ChessRogueGoAheadScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueGoAheadScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueGoAheadScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueGoAheadScRspFactory.INSTANCE; + } + + private enum ChessRogueGoAheadScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueGoAheadScRsp create() { + return ChessRogueGoAheadScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueHistoryCellInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueHistoryCellInfoOuterClass.java new file mode 100644 index 000000000..582fd6af2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueHistoryCellInfoOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueHistoryCellInfoOuterClass { + /** + * Protobuf type {@code ChessRogueHistoryCellInfo} + */ + public static final class ChessRogueHistoryCellInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cell_id = 9; + */ + private int cellId; + + /** + * optional uint32 room_id = 13; + */ + private int roomId; + + private ChessRogueHistoryCellInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueHistoryCellInfo} + */ + public static ChessRogueHistoryCellInfo newInstance() { + return new ChessRogueHistoryCellInfo(); + } + + /** + * optional uint32 cell_id = 9; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cell_id = 9; + * @return this + */ + public ChessRogueHistoryCellInfo clearCellId() { + bitField0_ &= ~0x00000001; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 9; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 9; + * @param value the cellId to set + * @return this + */ + public ChessRogueHistoryCellInfo setCellId(final int value) { + bitField0_ |= 0x00000001; + cellId = value; + return this; + } + + /** + * optional uint32 room_id = 13; + * @return whether the roomId field is set + */ + public boolean hasRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 room_id = 13; + * @return this + */ + public ChessRogueHistoryCellInfo clearRoomId() { + bitField0_ &= ~0x00000002; + roomId = 0; + return this; + } + + /** + * optional uint32 room_id = 13; + * @return the roomId + */ + public int getRoomId() { + return roomId; + } + + /** + * optional uint32 room_id = 13; + * @param value the roomId to set + * @return this + */ + public ChessRogueHistoryCellInfo setRoomId(final int value) { + bitField0_ |= 0x00000002; + roomId = value; + return this; + } + + @Override + public ChessRogueHistoryCellInfo copyFrom(final ChessRogueHistoryCellInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cellId = other.cellId; + roomId = other.roomId; + } + return this; + } + + @Override + public ChessRogueHistoryCellInfo mergeFrom(final ChessRogueHistoryCellInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCellId()) { + setCellId(other.cellId); + } + if (other.hasRoomId()) { + setRoomId(other.roomId); + } + return this; + } + + @Override + public ChessRogueHistoryCellInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellId = 0; + roomId = 0; + return this; + } + + @Override + public ChessRogueHistoryCellInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueHistoryCellInfo)) { + return false; + } + ChessRogueHistoryCellInfo other = (ChessRogueHistoryCellInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCellId() || cellId == other.cellId) + && (!hasRoomId() || roomId == other.roomId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(roomId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueHistoryCellInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // cellId + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // roomId + roomId = input.readUInt32(); + 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.cellId, cellId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.roomId, roomId); + } + output.endObject(); + } + + @Override + public ChessRogueHistoryCellInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -925319338: + case 1379892991: { + if (input.isAtField(FieldNames.roomId)) { + if (!input.trySkipNullValue()) { + roomId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueHistoryCellInfo clone() { + return new ChessRogueHistoryCellInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueHistoryCellInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueHistoryCellInfo(), data).checkInitialized(); + } + + public static ChessRogueHistoryCellInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueHistoryCellInfo(), input).checkInitialized(); + } + + public static ChessRogueHistoryCellInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueHistoryCellInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueHistoryCellInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueHistoryCellInfoFactory.INSTANCE; + } + + private enum ChessRogueHistoryCellInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueHistoryCellInfo create() { + return ChessRogueHistoryCellInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + + static final FieldName roomId = FieldName.forField("roomId", "room_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLayerAccountInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLayerAccountInfoNotifyOuterClass.java new file mode 100644 index 000000000..ea1e6a667 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLayerAccountInfoNotifyOuterClass.java @@ -0,0 +1,671 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueLayerAccountInfoNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueLayerAccountInfoNotify} + */ + public static final class ChessRogueLayerAccountInfoNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 difficulty_level = 10; + */ + private int difficultyLevel; + + /** + * optional uint32 layer_id = 14; + */ + private int layerId; + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + */ + private final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo finishInfo = ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo.newInstance(); + + /** + * optional .ChessRogueLevelInfo level_info = 12; + */ + private final ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo levelInfo = ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo.newInstance(); + + /** + * repeated uint32 HHMFIDKFNNI = 5; + */ + private final RepeatedInt hHMFIDKFNNI = RepeatedInt.newEmptyInstance(); + + private ChessRogueLayerAccountInfoNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueLayerAccountInfoNotify} + */ + public static ChessRogueLayerAccountInfoNotify newInstance() { + return new ChessRogueLayerAccountInfoNotify(); + } + + /** + * optional uint32 difficulty_level = 10; + * @return whether the difficultyLevel field is set + */ + public boolean hasDifficultyLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 difficulty_level = 10; + * @return this + */ + public ChessRogueLayerAccountInfoNotify clearDifficultyLevel() { + bitField0_ &= ~0x00000001; + difficultyLevel = 0; + return this; + } + + /** + * optional uint32 difficulty_level = 10; + * @return the difficultyLevel + */ + public int getDifficultyLevel() { + return difficultyLevel; + } + + /** + * optional uint32 difficulty_level = 10; + * @param value the difficultyLevel to set + * @return this + */ + public ChessRogueLayerAccountInfoNotify setDifficultyLevel(final int value) { + bitField0_ |= 0x00000001; + difficultyLevel = value; + return this; + } + + /** + * optional uint32 layer_id = 14; + * @return whether the layerId field is set + */ + public boolean hasLayerId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 layer_id = 14; + * @return this + */ + public ChessRogueLayerAccountInfoNotify clearLayerId() { + bitField0_ &= ~0x00000002; + layerId = 0; + return this; + } + + /** + * optional uint32 layer_id = 14; + * @return the layerId + */ + public int getLayerId() { + return layerId; + } + + /** + * optional uint32 layer_id = 14; + * @param value the layerId to set + * @return this + */ + public ChessRogueLayerAccountInfoNotify setLayerId(final int value) { + bitField0_ |= 0x00000002; + layerId = value; + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + * @return whether the finishInfo field is set + */ + public boolean hasFinishInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + * @return this + */ + public ChessRogueLayerAccountInfoNotify clearFinishInfo() { + bitField0_ &= ~0x00000004; + finishInfo.clear(); + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 #getMutableFinishInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getFinishInfo() { + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getMutableFinishInfo() { + bitField0_ |= 0x00000004; + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + * @param value the finishInfo to set + * @return this + */ + public ChessRogueLayerAccountInfoNotify setFinishInfo( + final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo value) { + bitField0_ |= 0x00000004; + finishInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueLevelInfo level_info = 12; + * @return whether the levelInfo field is set + */ + public boolean hasLevelInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueLevelInfo level_info = 12; + * @return this + */ + public ChessRogueLayerAccountInfoNotify clearLevelInfo() { + bitField0_ &= ~0x00000008; + levelInfo.clear(); + return this; + } + + /** + * optional .ChessRogueLevelInfo level_info = 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 #getMutableLevelInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo getLevelInfo() { + return levelInfo; + } + + /** + * optional .ChessRogueLevelInfo level_info = 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 ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo getMutableLevelInfo() { + bitField0_ |= 0x00000008; + return levelInfo; + } + + /** + * optional .ChessRogueLevelInfo level_info = 12; + * @param value the levelInfo to set + * @return this + */ + public ChessRogueLayerAccountInfoNotify setLevelInfo( + final ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo value) { + bitField0_ |= 0x00000008; + levelInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @return whether the hHMFIDKFNNI field is set + */ + public boolean hasHHMFIDKFNNI() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @return this + */ + public ChessRogueLayerAccountInfoNotify clearHHMFIDKFNNI() { + bitField0_ &= ~0x00000010; + hHMFIDKFNNI.clear(); + return this; + } + + /** + * repeated uint32 HHMFIDKFNNI = 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 #getMutableHHMFIDKFNNI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getHHMFIDKFNNI() { + return hHMFIDKFNNI; + } + + /** + * repeated uint32 HHMFIDKFNNI = 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 getMutableHHMFIDKFNNI() { + bitField0_ |= 0x00000010; + return hHMFIDKFNNI; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @param value the hHMFIDKFNNI to add + * @return this + */ + public ChessRogueLayerAccountInfoNotify addHHMFIDKFNNI(final int value) { + bitField0_ |= 0x00000010; + hHMFIDKFNNI.add(value); + return this; + } + + /** + * repeated uint32 HHMFIDKFNNI = 5; + * @param values the hHMFIDKFNNI to add + * @return this + */ + public ChessRogueLayerAccountInfoNotify addAllHHMFIDKFNNI(final int... values) { + bitField0_ |= 0x00000010; + hHMFIDKFNNI.addAll(values); + return this; + } + + @Override + public ChessRogueLayerAccountInfoNotify copyFrom(final ChessRogueLayerAccountInfoNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + difficultyLevel = other.difficultyLevel; + layerId = other.layerId; + finishInfo.copyFrom(other.finishInfo); + levelInfo.copyFrom(other.levelInfo); + hHMFIDKFNNI.copyFrom(other.hHMFIDKFNNI); + } + return this; + } + + @Override + public ChessRogueLayerAccountInfoNotify mergeFrom( + final ChessRogueLayerAccountInfoNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDifficultyLevel()) { + setDifficultyLevel(other.difficultyLevel); + } + if (other.hasLayerId()) { + setLayerId(other.layerId); + } + if (other.hasFinishInfo()) { + getMutableFinishInfo().mergeFrom(other.finishInfo); + } + if (other.hasLevelInfo()) { + getMutableLevelInfo().mergeFrom(other.levelInfo); + } + if (other.hasHHMFIDKFNNI()) { + getMutableHHMFIDKFNNI().addAll(other.hHMFIDKFNNI); + } + return this; + } + + @Override + public ChessRogueLayerAccountInfoNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + difficultyLevel = 0; + layerId = 0; + finishInfo.clear(); + levelInfo.clear(); + hHMFIDKFNNI.clear(); + return this; + } + + @Override + public ChessRogueLayerAccountInfoNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + finishInfo.clearQuick(); + levelInfo.clearQuick(); + hHMFIDKFNNI.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLayerAccountInfoNotify)) { + return false; + } + ChessRogueLayerAccountInfoNotify other = (ChessRogueLayerAccountInfoNotify) o; + return bitField0_ == other.bitField0_ + && (!hasDifficultyLevel() || difficultyLevel == other.difficultyLevel) + && (!hasLayerId() || layerId == other.layerId) + && (!hasFinishInfo() || finishInfo.equals(other.finishInfo)) + && (!hasLevelInfo() || levelInfo.equals(other.levelInfo)) + && (!hasHHMFIDKFNNI() || hHMFIDKFNNI.equals(other.hHMFIDKFNNI)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(difficultyLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(layerId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(finishInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(levelInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < hHMFIDKFNNI.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(hHMFIDKFNNI.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(difficultyLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(layerId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(finishInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(levelInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * hHMFIDKFNNI.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hHMFIDKFNNI); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLayerAccountInfoNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // difficultyLevel + difficultyLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // layerId + layerId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // finishInfo + input.readMessage(finishInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // levelInfo + input.readMessage(levelInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // hHMFIDKFNNI [packed=true] + input.readPackedUInt32(hHMFIDKFNNI, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // hHMFIDKFNNI [packed=false] + tag = input.readRepeatedUInt32(hHMFIDKFNNI, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.difficultyLevel, difficultyLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.layerId, layerId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.finishInfo, finishInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.levelInfo, levelInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.hHMFIDKFNNI, hHMFIDKFNNI); + } + output.endObject(); + } + + @Override + public ChessRogueLayerAccountInfoNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1034989431: + case -1469972992: { + if (input.isAtField(FieldNames.difficultyLevel)) { + if (!input.trySkipNullValue()) { + difficultyLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -41955764: + case -1300607287: { + if (input.isAtField(FieldNames.layerId)) { + if (!input.trySkipNullValue()) { + layerId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1151198177: + case 1347581146: { + if (input.isAtField(FieldNames.finishInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(finishInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1656548782: + case 206771337: { + if (input.isAtField(FieldNames.levelInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(levelInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 588517978: { + if (input.isAtField(FieldNames.hHMFIDKFNNI)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(hHMFIDKFNNI); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLayerAccountInfoNotify clone() { + return new ChessRogueLayerAccountInfoNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLayerAccountInfoNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLayerAccountInfoNotify(), data).checkInitialized(); + } + + public static ChessRogueLayerAccountInfoNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueLayerAccountInfoNotify(), input).checkInitialized(); + } + + public static ChessRogueLayerAccountInfoNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueLayerAccountInfoNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLayerAccountInfoNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueLayerAccountInfoNotifyFactory.INSTANCE; + } + + private enum ChessRogueLayerAccountInfoNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLayerAccountInfoNotify create() { + return ChessRogueLayerAccountInfoNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName difficultyLevel = FieldName.forField("difficultyLevel", "difficulty_level"); + + static final FieldName layerId = FieldName.forField("layerId", "layer_id"); + + static final FieldName finishInfo = FieldName.forField("finishInfo", "finish_info"); + + static final FieldName levelInfo = FieldName.forField("levelInfo", "level_info"); + + static final FieldName hHMFIDKFNNI = FieldName.forField("HHMFIDKFNNI"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLayerInitialEventInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLayerInitialEventInfoOuterClass.java new file mode 100644 index 000000000..38f55e4df --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLayerInitialEventInfoOuterClass.java @@ -0,0 +1,378 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueLayerInitialEventInfoOuterClass { + /** + * Protobuf type {@code ChessRogueLayerInitialEventInfo} + */ + public static final class ChessRogueLayerInitialEventInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 GPGLFHPIJJB = 12; + */ + private int gPGLFHPIJJB; + + /** + * repeated .ChessRogueCell cell_list = 14; + */ + private final RepeatedMessage cellList = RepeatedMessage.newEmptyInstance(ChessRogueCellOuterClass.ChessRogueCell.getFactory()); + + private ChessRogueLayerInitialEventInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueLayerInitialEventInfo} + */ + public static ChessRogueLayerInitialEventInfo newInstance() { + return new ChessRogueLayerInitialEventInfo(); + } + + /** + * optional uint32 GPGLFHPIJJB = 12; + * @return whether the gPGLFHPIJJB field is set + */ + public boolean hasGPGLFHPIJJB() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 GPGLFHPIJJB = 12; + * @return this + */ + public ChessRogueLayerInitialEventInfo clearGPGLFHPIJJB() { + bitField0_ &= ~0x00000001; + gPGLFHPIJJB = 0; + return this; + } + + /** + * optional uint32 GPGLFHPIJJB = 12; + * @return the gPGLFHPIJJB + */ + public int getGPGLFHPIJJB() { + return gPGLFHPIJJB; + } + + /** + * optional uint32 GPGLFHPIJJB = 12; + * @param value the gPGLFHPIJJB to set + * @return this + */ + public ChessRogueLayerInitialEventInfo setGPGLFHPIJJB(final int value) { + bitField0_ |= 0x00000001; + gPGLFHPIJJB = value; + return this; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @return whether the cellList field is set + */ + public boolean hasCellList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @return this + */ + public ChessRogueLayerInitialEventInfo clearCellList() { + bitField0_ &= ~0x00000002; + cellList.clear(); + return this; + } + + /** + * repeated .ChessRogueCell cell_list = 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 #getMutableCellList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCellList() { + return cellList; + } + + /** + * repeated .ChessRogueCell cell_list = 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 RepeatedMessage getMutableCellList() { + bitField0_ |= 0x00000002; + return cellList; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @param value the cellList to add + * @return this + */ + public ChessRogueLayerInitialEventInfo addCellList( + final ChessRogueCellOuterClass.ChessRogueCell value) { + bitField0_ |= 0x00000002; + cellList.add(value); + return this; + } + + /** + * repeated .ChessRogueCell cell_list = 14; + * @param values the cellList to add + * @return this + */ + public ChessRogueLayerInitialEventInfo addAllCellList( + final ChessRogueCellOuterClass.ChessRogueCell... values) { + bitField0_ |= 0x00000002; + cellList.addAll(values); + return this; + } + + @Override + public ChessRogueLayerInitialEventInfo copyFrom(final ChessRogueLayerInitialEventInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gPGLFHPIJJB = other.gPGLFHPIJJB; + cellList.copyFrom(other.cellList); + } + return this; + } + + @Override + public ChessRogueLayerInitialEventInfo mergeFrom(final ChessRogueLayerInitialEventInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGPGLFHPIJJB()) { + setGPGLFHPIJJB(other.gPGLFHPIJJB); + } + if (other.hasCellList()) { + getMutableCellList().addAll(other.cellList); + } + return this; + } + + @Override + public ChessRogueLayerInitialEventInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gPGLFHPIJJB = 0; + cellList.clear(); + return this; + } + + @Override + public ChessRogueLayerInitialEventInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLayerInitialEventInfo)) { + return false; + } + ChessRogueLayerInitialEventInfo other = (ChessRogueLayerInitialEventInfo) o; + return bitField0_ == other.bitField0_ + && (!hasGPGLFHPIJJB() || gPGLFHPIJJB == other.gPGLFHPIJJB) + && (!hasCellList() || cellList.equals(other.cellList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(gPGLFHPIJJB); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < cellList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(cellList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gPGLFHPIJJB); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * cellList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cellList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLayerInitialEventInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // gPGLFHPIJJB + gPGLFHPIJJB = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // cellList + tag = input.readRepeatedMessage(cellList, 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.writeUInt32(FieldNames.gPGLFHPIJJB, gPGLFHPIJJB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.cellList, cellList); + } + output.endObject(); + } + + @Override + public ChessRogueLayerInitialEventInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1903177831: { + if (input.isAtField(FieldNames.gPGLFHPIJJB)) { + if (!input.trySkipNullValue()) { + gPGLFHPIJJB = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -917820128: + case 1629973851: { + if (input.isAtField(FieldNames.cellList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(cellList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLayerInitialEventInfo clone() { + return new ChessRogueLayerInitialEventInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLayerInitialEventInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLayerInitialEventInfo(), data).checkInitialized(); + } + + public static ChessRogueLayerInitialEventInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueLayerInitialEventInfo(), input).checkInitialized(); + } + + public static ChessRogueLayerInitialEventInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueLayerInitialEventInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLayerInitialEventInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueLayerInitialEventInfoFactory.INSTANCE; + } + + private enum ChessRogueLayerInitialEventInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLayerInitialEventInfo create() { + return ChessRogueLayerInitialEventInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gPGLFHPIJJB = FieldName.forField("GPGLFHPIJJB"); + + static final FieldName cellList = FieldName.forField("cellList", "cell_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLeaveCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLeaveCsReqOuterClass.java new file mode 100644 index 000000000..51a695648 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLeaveCsReqOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueLeaveCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueLeaveCsReq} + */ + public static final class ChessRogueLeaveCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueLeaveCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueLeaveCsReq} + */ + public static ChessRogueLeaveCsReq newInstance() { + return new ChessRogueLeaveCsReq(); + } + + @Override + public ChessRogueLeaveCsReq copyFrom(final ChessRogueLeaveCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueLeaveCsReq mergeFrom(final ChessRogueLeaveCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueLeaveCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueLeaveCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLeaveCsReq)) { + return false; + } + ChessRogueLeaveCsReq other = (ChessRogueLeaveCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLeaveCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueLeaveCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLeaveCsReq clone() { + return new ChessRogueLeaveCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLeaveCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLeaveCsReq(), data).checkInitialized(); + } + + public static ChessRogueLeaveCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLeaveCsReq(), input).checkInitialized(); + } + + public static ChessRogueLeaveCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLeaveCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLeaveCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueLeaveCsReqFactory.INSTANCE; + } + + private enum ChessRogueLeaveCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLeaveCsReq create() { + return ChessRogueLeaveCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLeaveScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLeaveScRspOuterClass.java new file mode 100644 index 000000000..e0c8cd30e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLeaveScRspOuterClass.java @@ -0,0 +1,671 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueLeaveScRspOuterClass { + /** + * Protobuf type {@code ChessRogueLeaveScRsp} + */ + public static final class ChessRogueLeaveScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + /** + * optional .ChessRoguePlayerInfo player_info = 3; + */ + private final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo playerInfo = ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo.newInstance(); + + /** + * optional .ChessRogueQueryInfo query_info = 4; + */ + private final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo queryInfo = ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo.newInstance(); + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 9; + */ + private final ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo rogueAeonInfo = ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo.newInstance(); + + /** + * optional .ChessRogueGetInfo rogue_get_info = 12; + */ + private final ChessRogueGetInfoOuterClass.ChessRogueGetInfo rogueGetInfo = ChessRogueGetInfoOuterClass.ChessRogueGetInfo.newInstance(); + + private ChessRogueLeaveScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueLeaveScRsp} + */ + public static ChessRogueLeaveScRsp newInstance() { + return new ChessRogueLeaveScRsp(); + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public ChessRogueLeaveScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public ChessRogueLeaveScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 3; + * @return whether the playerInfo field is set + */ + public boolean hasPlayerInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 3; + * @return this + */ + public ChessRogueLeaveScRsp clearPlayerInfo() { + bitField0_ &= ~0x00000002; + playerInfo.clear(); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 #getMutablePlayerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getPlayerInfo() { + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getMutablePlayerInfo() { + bitField0_ |= 0x00000002; + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 3; + * @param value the playerInfo to set + * @return this + */ + public ChessRogueLeaveScRsp setPlayerInfo( + final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo value) { + bitField0_ |= 0x00000002; + playerInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 4; + * @return whether the queryInfo field is set + */ + public boolean hasQueryInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueQueryInfo query_info = 4; + * @return this + */ + public ChessRogueLeaveScRsp clearQueryInfo() { + bitField0_ &= ~0x00000004; + queryInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 #getMutableQueryInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getQueryInfo() { + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getMutableQueryInfo() { + bitField0_ |= 0x00000004; + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 4; + * @param value the queryInfo to set + * @return this + */ + public ChessRogueLeaveScRsp setQueryInfo( + final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo value) { + bitField0_ |= 0x00000004; + queryInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 9; + * @return whether the rogueAeonInfo field is set + */ + public boolean hasRogueAeonInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 9; + * @return this + */ + public ChessRogueLeaveScRsp clearRogueAeonInfo() { + bitField0_ &= ~0x00000008; + rogueAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 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 #getMutableRogueAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo getRogueAeonInfo() { + return rogueAeonInfo; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 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 ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo getMutableRogueAeonInfo() { + bitField0_ |= 0x00000008; + return rogueAeonInfo; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 9; + * @param value the rogueAeonInfo to set + * @return this + */ + public ChessRogueLeaveScRsp setRogueAeonInfo( + final ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo value) { + bitField0_ |= 0x00000008; + rogueAeonInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 12; + * @return whether the rogueGetInfo field is set + */ + public boolean hasRogueGetInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 12; + * @return this + */ + public ChessRogueLeaveScRsp clearRogueGetInfo() { + bitField0_ &= ~0x00000010; + rogueGetInfo.clear(); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 #getMutableRogueGetInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueGetInfoOuterClass.ChessRogueGetInfo getRogueGetInfo() { + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 ChessRogueGetInfoOuterClass.ChessRogueGetInfo getMutableRogueGetInfo() { + bitField0_ |= 0x00000010; + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 12; + * @param value the rogueGetInfo to set + * @return this + */ + public ChessRogueLeaveScRsp setRogueGetInfo( + final ChessRogueGetInfoOuterClass.ChessRogueGetInfo value) { + bitField0_ |= 0x00000010; + rogueGetInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueLeaveScRsp copyFrom(final ChessRogueLeaveScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + playerInfo.copyFrom(other.playerInfo); + queryInfo.copyFrom(other.queryInfo); + rogueAeonInfo.copyFrom(other.rogueAeonInfo); + rogueGetInfo.copyFrom(other.rogueGetInfo); + } + return this; + } + + @Override + public ChessRogueLeaveScRsp mergeFrom(final ChessRogueLeaveScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasPlayerInfo()) { + getMutablePlayerInfo().mergeFrom(other.playerInfo); + } + if (other.hasQueryInfo()) { + getMutableQueryInfo().mergeFrom(other.queryInfo); + } + if (other.hasRogueAeonInfo()) { + getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); + } + if (other.hasRogueGetInfo()) { + getMutableRogueGetInfo().mergeFrom(other.rogueGetInfo); + } + return this; + } + + @Override + public ChessRogueLeaveScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + playerInfo.clear(); + queryInfo.clear(); + rogueAeonInfo.clear(); + rogueGetInfo.clear(); + return this; + } + + @Override + public ChessRogueLeaveScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + playerInfo.clearQuick(); + queryInfo.clearQuick(); + rogueAeonInfo.clearQuick(); + rogueGetInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLeaveScRsp)) { + return false; + } + ChessRogueLeaveScRsp other = (ChessRogueLeaveScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasPlayerInfo() || playerInfo.equals(other.playerInfo)) + && (!hasQueryInfo() || queryInfo.equals(other.queryInfo)) + && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)) + && (!hasRogueGetInfo() || rogueGetInfo.equals(other.rogueGetInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(playerInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(queryInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rogueAeonInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueGetInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueGetInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLeaveScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // playerInfo + input.readMessage(playerInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // queryInfo + input.readMessage(queryInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // rogueAeonInfo + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rogueGetInfo + input.readMessage(rogueGetInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.playerInfo, playerInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.queryInfo, queryInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueGetInfo, rogueGetInfo); + } + output.endObject(); + } + + @Override + public ChessRogueLeaveScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2095520559: + case 556803916: { + if (input.isAtField(FieldNames.playerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1807200874: + case -168476219: { + if (input.isAtField(FieldNames.queryInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(queryInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1685018549: + case -1375922619: { + if (input.isAtField(FieldNames.rogueAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1671986666: + case 12475580: { + if (input.isAtField(FieldNames.rogueGetInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLeaveScRsp clone() { + return new ChessRogueLeaveScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLeaveScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLeaveScRsp(), data).checkInitialized(); + } + + public static ChessRogueLeaveScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLeaveScRsp(), input).checkInitialized(); + } + + public static ChessRogueLeaveScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLeaveScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLeaveScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueLeaveScRspFactory.INSTANCE; + } + + private enum ChessRogueLeaveScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLeaveScRsp create() { + return ChessRogueLeaveScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName playerInfo = FieldName.forField("playerInfo", "player_info"); + + static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info"); + + static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); + + static final FieldName rogueGetInfo = FieldName.forField("rogueGetInfo", "rogue_get_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLevelInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLevelInfoOuterClass.java new file mode 100644 index 000000000..27f718beb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLevelInfoOuterClass.java @@ -0,0 +1,1008 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueLevelInfoOuterClass { + /** + * Protobuf type {@code ChessRogueLevelInfo} + */ + public static final class ChessRogueLevelInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 FMOMABLDNCF = 8; + */ + private int fMOMABLDNCF; + + /** + * optional int32 action_point = 13; + */ + private int actionPoint; + + /** + * optional uint32 id = 6; + */ + private int id; + + /** + * optional uint32 PLANCGLJEFE = 7; + */ + private int pLANCGLJEFE; + + /** + * optional uint32 layer_id = 14; + */ + private int layerId; + + /** + * optional uint32 level_status = 15; + */ + private int levelStatus; + + /** + * optional .ChessRogueAreaInfo area_info = 1; + */ + private final ChessRogueAreaInfoOuterClass.ChessRogueAreaInfo areaInfo = ChessRogueAreaInfoOuterClass.ChessRogueAreaInfo.newInstance(); + + /** + * repeated uint32 area_id_list = 5; + */ + private final RepeatedInt areaIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 explored_area_id_list = 9; + */ + private final RepeatedInt exploredAreaIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueLevelInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueLevelInfo} + */ + public static ChessRogueLevelInfo newInstance() { + return new ChessRogueLevelInfo(); + } + + /** + * optional int32 FMOMABLDNCF = 8; + * @return whether the fMOMABLDNCF field is set + */ + public boolean hasFMOMABLDNCF() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 FMOMABLDNCF = 8; + * @return this + */ + public ChessRogueLevelInfo clearFMOMABLDNCF() { + bitField0_ &= ~0x00000001; + fMOMABLDNCF = 0; + return this; + } + + /** + * optional int32 FMOMABLDNCF = 8; + * @return the fMOMABLDNCF + */ + public int getFMOMABLDNCF() { + return fMOMABLDNCF; + } + + /** + * optional int32 FMOMABLDNCF = 8; + * @param value the fMOMABLDNCF to set + * @return this + */ + public ChessRogueLevelInfo setFMOMABLDNCF(final int value) { + bitField0_ |= 0x00000001; + fMOMABLDNCF = value; + return this; + } + + /** + * optional int32 action_point = 13; + * @return whether the actionPoint field is set + */ + public boolean hasActionPoint() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int32 action_point = 13; + * @return this + */ + public ChessRogueLevelInfo clearActionPoint() { + bitField0_ &= ~0x00000002; + actionPoint = 0; + return this; + } + + /** + * optional int32 action_point = 13; + * @return the actionPoint + */ + public int getActionPoint() { + return actionPoint; + } + + /** + * optional int32 action_point = 13; + * @param value the actionPoint to set + * @return this + */ + public ChessRogueLevelInfo setActionPoint(final int value) { + bitField0_ |= 0x00000002; + actionPoint = value; + return this; + } + + /** + * optional uint32 id = 6; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 id = 6; + * @return this + */ + public ChessRogueLevelInfo clearId() { + bitField0_ &= ~0x00000004; + id = 0; + return this; + } + + /** + * optional uint32 id = 6; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 6; + * @param value the id to set + * @return this + */ + public ChessRogueLevelInfo setId(final int value) { + bitField0_ |= 0x00000004; + id = value; + return this; + } + + /** + * optional uint32 PLANCGLJEFE = 7; + * @return whether the pLANCGLJEFE field is set + */ + public boolean hasPLANCGLJEFE() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 PLANCGLJEFE = 7; + * @return this + */ + public ChessRogueLevelInfo clearPLANCGLJEFE() { + bitField0_ &= ~0x00000008; + pLANCGLJEFE = 0; + return this; + } + + /** + * optional uint32 PLANCGLJEFE = 7; + * @return the pLANCGLJEFE + */ + public int getPLANCGLJEFE() { + return pLANCGLJEFE; + } + + /** + * optional uint32 PLANCGLJEFE = 7; + * @param value the pLANCGLJEFE to set + * @return this + */ + public ChessRogueLevelInfo setPLANCGLJEFE(final int value) { + bitField0_ |= 0x00000008; + pLANCGLJEFE = value; + return this; + } + + /** + * optional uint32 layer_id = 14; + * @return whether the layerId field is set + */ + public boolean hasLayerId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 layer_id = 14; + * @return this + */ + public ChessRogueLevelInfo clearLayerId() { + bitField0_ &= ~0x00000010; + layerId = 0; + return this; + } + + /** + * optional uint32 layer_id = 14; + * @return the layerId + */ + public int getLayerId() { + return layerId; + } + + /** + * optional uint32 layer_id = 14; + * @param value the layerId to set + * @return this + */ + public ChessRogueLevelInfo setLayerId(final int value) { + bitField0_ |= 0x00000010; + layerId = value; + return this; + } + + /** + * optional uint32 level_status = 15; + * @return whether the levelStatus field is set + */ + public boolean hasLevelStatus() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 level_status = 15; + * @return this + */ + public ChessRogueLevelInfo clearLevelStatus() { + bitField0_ &= ~0x00000020; + levelStatus = 0; + return this; + } + + /** + * optional uint32 level_status = 15; + * @return the levelStatus + */ + public int getLevelStatus() { + return levelStatus; + } + + /** + * optional uint32 level_status = 15; + * @param value the levelStatus to set + * @return this + */ + public ChessRogueLevelInfo setLevelStatus(final int value) { + bitField0_ |= 0x00000020; + levelStatus = value; + return this; + } + + /** + * optional .ChessRogueAreaInfo area_info = 1; + * @return whether the areaInfo field is set + */ + public boolean hasAreaInfo() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .ChessRogueAreaInfo area_info = 1; + * @return this + */ + public ChessRogueLevelInfo clearAreaInfo() { + bitField0_ &= ~0x00000040; + areaInfo.clear(); + return this; + } + + /** + * optional .ChessRogueAreaInfo area_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 #getMutableAreaInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueAreaInfoOuterClass.ChessRogueAreaInfo getAreaInfo() { + return areaInfo; + } + + /** + * optional .ChessRogueAreaInfo area_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 ChessRogueAreaInfoOuterClass.ChessRogueAreaInfo getMutableAreaInfo() { + bitField0_ |= 0x00000040; + return areaInfo; + } + + /** + * optional .ChessRogueAreaInfo area_info = 1; + * @param value the areaInfo to set + * @return this + */ + public ChessRogueLevelInfo setAreaInfo( + final ChessRogueAreaInfoOuterClass.ChessRogueAreaInfo value) { + bitField0_ |= 0x00000040; + areaInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 area_id_list = 5; + * @return whether the areaIdList field is set + */ + public boolean hasAreaIdList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 area_id_list = 5; + * @return this + */ + public ChessRogueLevelInfo clearAreaIdList() { + bitField0_ &= ~0x00000080; + areaIdList.clear(); + return this; + } + + /** + * repeated uint32 area_id_list = 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 #getMutableAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAreaIdList() { + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 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 getMutableAreaIdList() { + bitField0_ |= 0x00000080; + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 5; + * @param value the areaIdList to add + * @return this + */ + public ChessRogueLevelInfo addAreaIdList(final int value) { + bitField0_ |= 0x00000080; + areaIdList.add(value); + return this; + } + + /** + * repeated uint32 area_id_list = 5; + * @param values the areaIdList to add + * @return this + */ + public ChessRogueLevelInfo addAllAreaIdList(final int... values) { + bitField0_ |= 0x00000080; + areaIdList.addAll(values); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 9; + * @return whether the exploredAreaIdList field is set + */ + public boolean hasExploredAreaIdList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated uint32 explored_area_id_list = 9; + * @return this + */ + public ChessRogueLevelInfo clearExploredAreaIdList() { + bitField0_ &= ~0x00000100; + exploredAreaIdList.clear(); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 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 #getMutableExploredAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getExploredAreaIdList() { + return exploredAreaIdList; + } + + /** + * repeated uint32 explored_area_id_list = 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 RepeatedInt getMutableExploredAreaIdList() { + bitField0_ |= 0x00000100; + return exploredAreaIdList; + } + + /** + * repeated uint32 explored_area_id_list = 9; + * @param value the exploredAreaIdList to add + * @return this + */ + public ChessRogueLevelInfo addExploredAreaIdList(final int value) { + bitField0_ |= 0x00000100; + exploredAreaIdList.add(value); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 9; + * @param values the exploredAreaIdList to add + * @return this + */ + public ChessRogueLevelInfo addAllExploredAreaIdList(final int... values) { + bitField0_ |= 0x00000100; + exploredAreaIdList.addAll(values); + return this; + } + + @Override + public ChessRogueLevelInfo copyFrom(final ChessRogueLevelInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fMOMABLDNCF = other.fMOMABLDNCF; + actionPoint = other.actionPoint; + id = other.id; + pLANCGLJEFE = other.pLANCGLJEFE; + layerId = other.layerId; + levelStatus = other.levelStatus; + areaInfo.copyFrom(other.areaInfo); + areaIdList.copyFrom(other.areaIdList); + exploredAreaIdList.copyFrom(other.exploredAreaIdList); + } + return this; + } + + @Override + public ChessRogueLevelInfo mergeFrom(final ChessRogueLevelInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFMOMABLDNCF()) { + setFMOMABLDNCF(other.fMOMABLDNCF); + } + if (other.hasActionPoint()) { + setActionPoint(other.actionPoint); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasPLANCGLJEFE()) { + setPLANCGLJEFE(other.pLANCGLJEFE); + } + if (other.hasLayerId()) { + setLayerId(other.layerId); + } + if (other.hasLevelStatus()) { + setLevelStatus(other.levelStatus); + } + if (other.hasAreaInfo()) { + getMutableAreaInfo().mergeFrom(other.areaInfo); + } + if (other.hasAreaIdList()) { + getMutableAreaIdList().addAll(other.areaIdList); + } + if (other.hasExploredAreaIdList()) { + getMutableExploredAreaIdList().addAll(other.exploredAreaIdList); + } + return this; + } + + @Override + public ChessRogueLevelInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fMOMABLDNCF = 0; + actionPoint = 0; + id = 0; + pLANCGLJEFE = 0; + layerId = 0; + levelStatus = 0; + areaInfo.clear(); + areaIdList.clear(); + exploredAreaIdList.clear(); + return this; + } + + @Override + public ChessRogueLevelInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + areaInfo.clearQuick(); + areaIdList.clear(); + exploredAreaIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLevelInfo)) { + return false; + } + ChessRogueLevelInfo other = (ChessRogueLevelInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFMOMABLDNCF() || fMOMABLDNCF == other.fMOMABLDNCF) + && (!hasActionPoint() || actionPoint == other.actionPoint) + && (!hasId() || id == other.id) + && (!hasPLANCGLJEFE() || pLANCGLJEFE == other.pLANCGLJEFE) + && (!hasLayerId() || layerId == other.layerId) + && (!hasLevelStatus() || levelStatus == other.levelStatus) + && (!hasAreaInfo() || areaInfo.equals(other.areaInfo)) + && (!hasAreaIdList() || areaIdList.equals(other.areaIdList)) + && (!hasExploredAreaIdList() || exploredAreaIdList.equals(other.exploredAreaIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeInt32NoTag(fMOMABLDNCF); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeInt32NoTag(actionPoint); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(pLANCGLJEFE); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(layerId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(levelStatus); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(areaInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < areaIdList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(areaIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < exploredAreaIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(exploredAreaIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(fMOMABLDNCF); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(actionPoint); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pLANCGLJEFE); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(layerId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(levelStatus); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(areaInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * areaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(areaIdList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * exploredAreaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(exploredAreaIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLevelInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // fMOMABLDNCF + fMOMABLDNCF = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // actionPoint + actionPoint = input.readInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // pLANCGLJEFE + pLANCGLJEFE = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // layerId + layerId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // levelStatus + levelStatus = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // areaInfo + input.readMessage(areaInfo); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // areaIdList [packed=true] + input.readPackedUInt32(areaIdList, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // exploredAreaIdList [packed=true] + input.readPackedUInt32(exploredAreaIdList, tag); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // areaIdList [packed=false] + tag = input.readRepeatedUInt32(areaIdList, tag); + bitField0_ |= 0x00000080; + break; + } + case 72: { + // exploredAreaIdList [packed=false] + tag = input.readRepeatedUInt32(exploredAreaIdList, tag); + bitField0_ |= 0x00000100; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt32(FieldNames.fMOMABLDNCF, fMOMABLDNCF); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt32(FieldNames.actionPoint, actionPoint); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.pLANCGLJEFE, pLANCGLJEFE); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.layerId, layerId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.levelStatus, levelStatus); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.areaInfo, areaInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.areaIdList, areaIdList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedUInt32(FieldNames.exploredAreaIdList, exploredAreaIdList); + } + output.endObject(); + } + + @Override + public ChessRogueLevelInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 333225139: { + if (input.isAtField(FieldNames.fMOMABLDNCF)) { + if (!input.trySkipNullValue()) { + fMOMABLDNCF = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1569741050: + case 1847866951: { + if (input.isAtField(FieldNames.actionPoint)) { + if (!input.trySkipNullValue()) { + actionPoint = input.readInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1359180711: { + if (input.isAtField(FieldNames.pLANCGLJEFE)) { + if (!input.trySkipNullValue()) { + pLANCGLJEFE = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -41955764: + case -1300607287: { + if (input.isAtField(FieldNames.layerId)) { + if (!input.trySkipNullValue()) { + layerId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1781179542: + case 1430451469: { + if (input.isAtField(FieldNames.levelStatus)) { + if (!input.trySkipNullValue()) { + levelStatus = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1666475301: + case -100950752: { + if (input.isAtField(FieldNames.areaInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(areaInfo); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 530025286: + case -1239486576: { + if (input.isAtField(FieldNames.areaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(areaIdList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -471271849: + case -942040866: { + if (input.isAtField(FieldNames.exploredAreaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(exploredAreaIdList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLevelInfo clone() { + return new ChessRogueLevelInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLevelInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLevelInfo(), data).checkInitialized(); + } + + public static ChessRogueLevelInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLevelInfo(), input).checkInitialized(); + } + + public static ChessRogueLevelInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLevelInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLevelInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueLevelInfoFactory.INSTANCE; + } + + private enum ChessRogueLevelInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLevelInfo create() { + return ChessRogueLevelInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fMOMABLDNCF = FieldName.forField("FMOMABLDNCF"); + + static final FieldName actionPoint = FieldName.forField("actionPoint", "action_point"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName pLANCGLJEFE = FieldName.forField("PLANCGLJEFE"); + + static final FieldName layerId = FieldName.forField("layerId", "layer_id"); + + static final FieldName levelStatus = FieldName.forField("levelStatus", "level_status"); + + static final FieldName areaInfo = FieldName.forField("areaInfo", "area_info"); + + static final FieldName areaIdList = FieldName.forField("areaIdList", "area_id_list"); + + static final FieldName exploredAreaIdList = FieldName.forField("exploredAreaIdList", "explored_area_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLevelStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLevelStatusOuterClass.java new file mode 100644 index 000000000..d95ee933c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLevelStatusOuterClass.java @@ -0,0 +1,185 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueLevelStatusOuterClass { + /** + * Protobuf enum {@code ChessRogueLevelStatus} + */ + public enum ChessRogueLevelStatus implements ProtoEnum { + /** + * CHESS_ROGUE_LEVEL_IDLE = 0; + */ + CHESS_ROGUE_LEVEL_IDLE("CHESS_ROGUE_LEVEL_IDLE", 0), + + /** + * CHESS_ROGUE_LEVEL_PROCESSING = 1; + */ + CHESS_ROGUE_LEVEL_PROCESSING("CHESS_ROGUE_LEVEL_PROCESSING", 1), + + /** + * CHESS_ROGUE_LEVEL_PENDING = 2; + */ + CHESS_ROGUE_LEVEL_PENDING("CHESS_ROGUE_LEVEL_PENDING", 2), + + /** + * CHESS_ROGUE_LEVEL_FINISH = 3; + */ + CHESS_ROGUE_LEVEL_FINISH("CHESS_ROGUE_LEVEL_FINISH", 3), + + /** + * CHESS_ROGUE_LEVEL_FAILED = 4; + */ + CHESS_ROGUE_LEVEL_FAILED("CHESS_ROGUE_LEVEL_FAILED", 4), + + /** + * CHESS_ROGUE_LEVEL_FORCE_FINISH = 5; + */ + CHESS_ROGUE_LEVEL_FORCE_FINISH("CHESS_ROGUE_LEVEL_FORCE_FINISH", 5); + + /** + * CHESS_ROGUE_LEVEL_IDLE = 0; + */ + public static final int CHESS_ROGUE_LEVEL_IDLE_VALUE = 0; + + /** + * CHESS_ROGUE_LEVEL_PROCESSING = 1; + */ + public static final int CHESS_ROGUE_LEVEL_PROCESSING_VALUE = 1; + + /** + * CHESS_ROGUE_LEVEL_PENDING = 2; + */ + public static final int CHESS_ROGUE_LEVEL_PENDING_VALUE = 2; + + /** + * CHESS_ROGUE_LEVEL_FINISH = 3; + */ + public static final int CHESS_ROGUE_LEVEL_FINISH_VALUE = 3; + + /** + * CHESS_ROGUE_LEVEL_FAILED = 4; + */ + public static final int CHESS_ROGUE_LEVEL_FAILED_VALUE = 4; + + /** + * CHESS_ROGUE_LEVEL_FORCE_FINISH = 5; + */ + public static final int CHESS_ROGUE_LEVEL_FORCE_FINISH_VALUE = 5; + + private final String name; + + private final int number; + + private ChessRogueLevelStatus(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 ChessRogueLevelStatusConverter.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 ChessRogueLevelStatus forNumber(int value) { + return ChessRogueLevelStatusConverter.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 ChessRogueLevelStatus forNumberOr(int number, ChessRogueLevelStatus other) { + ChessRogueLevelStatus value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueLevelStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueLevelStatus[] lookup = new ChessRogueLevelStatus[6]; + + static { + lookup[0] = CHESS_ROGUE_LEVEL_IDLE; + lookup[1] = CHESS_ROGUE_LEVEL_PROCESSING; + lookup[2] = CHESS_ROGUE_LEVEL_PENDING; + lookup[3] = CHESS_ROGUE_LEVEL_FINISH; + lookup[4] = CHESS_ROGUE_LEVEL_FAILED; + lookup[5] = CHESS_ROGUE_LEVEL_FORCE_FINISH; + } + + @Override + public final ChessRogueLevelStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueLevelStatus forName(final CharSequence value) { + switch (value.length()) { + case 22: { + if (ProtoUtil.isEqual("CHESS_ROGUE_LEVEL_IDLE", value)) { + return CHESS_ROGUE_LEVEL_IDLE; + } + break; + } + case 24: { + if (ProtoUtil.isEqual("CHESS_ROGUE_LEVEL_FINISH", value)) { + return CHESS_ROGUE_LEVEL_FINISH; + } + if (ProtoUtil.isEqual("CHESS_ROGUE_LEVEL_FAILED", value)) { + return CHESS_ROGUE_LEVEL_FAILED; + } + break; + } + case 25: { + if (ProtoUtil.isEqual("CHESS_ROGUE_LEVEL_PENDING", value)) { + return CHESS_ROGUE_LEVEL_PENDING; + } + break; + } + case 28: { + if (ProtoUtil.isEqual("CHESS_ROGUE_LEVEL_PROCESSING", value)) { + return CHESS_ROGUE_LEVEL_PROCESSING; + } + break; + } + case 30: { + if (ProtoUtil.isEqual("CHESS_ROGUE_LEVEL_FORCE_FINISH", value)) { + return CHESS_ROGUE_LEVEL_FORCE_FINISH; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLineupAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLineupAvatarInfoOuterClass.java new file mode 100644 index 000000000..13a8192cd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLineupAvatarInfoOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueLineupAvatarInfoOuterClass { + /** + * Protobuf type {@code ChessRogueLineupAvatarInfo} + */ + public static final class ChessRogueLineupAvatarInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 avatar_id = 5; + */ + private int avatarId; + + /** + * optional uint32 IEDLKIPPLDB = 12; + */ + private int iEDLKIPPLDB; + + private ChessRogueLineupAvatarInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueLineupAvatarInfo} + */ + public static ChessRogueLineupAvatarInfo newInstance() { + return new ChessRogueLineupAvatarInfo(); + } + + /** + * optional uint32 avatar_id = 5; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 avatar_id = 5; + * @return this + */ + public ChessRogueLineupAvatarInfo clearAvatarId() { + bitField0_ &= ~0x00000001; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 5; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 5; + * @param value the avatarId to set + * @return this + */ + public ChessRogueLineupAvatarInfo setAvatarId(final int value) { + bitField0_ |= 0x00000001; + avatarId = value; + return this; + } + + /** + * optional uint32 IEDLKIPPLDB = 12; + * @return whether the iEDLKIPPLDB field is set + */ + public boolean hasIEDLKIPPLDB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 IEDLKIPPLDB = 12; + * @return this + */ + public ChessRogueLineupAvatarInfo clearIEDLKIPPLDB() { + bitField0_ &= ~0x00000002; + iEDLKIPPLDB = 0; + return this; + } + + /** + * optional uint32 IEDLKIPPLDB = 12; + * @return the iEDLKIPPLDB + */ + public int getIEDLKIPPLDB() { + return iEDLKIPPLDB; + } + + /** + * optional uint32 IEDLKIPPLDB = 12; + * @param value the iEDLKIPPLDB to set + * @return this + */ + public ChessRogueLineupAvatarInfo setIEDLKIPPLDB(final int value) { + bitField0_ |= 0x00000002; + iEDLKIPPLDB = value; + return this; + } + + @Override + public ChessRogueLineupAvatarInfo copyFrom(final ChessRogueLineupAvatarInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarId = other.avatarId; + iEDLKIPPLDB = other.iEDLKIPPLDB; + } + return this; + } + + @Override + public ChessRogueLineupAvatarInfo mergeFrom(final ChessRogueLineupAvatarInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasIEDLKIPPLDB()) { + setIEDLKIPPLDB(other.iEDLKIPPLDB); + } + return this; + } + + @Override + public ChessRogueLineupAvatarInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarId = 0; + iEDLKIPPLDB = 0; + return this; + } + + @Override + public ChessRogueLineupAvatarInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLineupAvatarInfo)) { + return false; + } + ChessRogueLineupAvatarInfo other = (ChessRogueLineupAvatarInfo) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasIEDLKIPPLDB() || iEDLKIPPLDB == other.iEDLKIPPLDB); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(iEDLKIPPLDB); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iEDLKIPPLDB); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLineupAvatarInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // iEDLKIPPLDB + iEDLKIPPLDB = input.readUInt32(); + 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.avatarId, avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.iEDLKIPPLDB, iEDLKIPPLDB); + } + output.endObject(); + } + + @Override + public ChessRogueLineupAvatarInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2036645368: { + if (input.isAtField(FieldNames.iEDLKIPPLDB)) { + if (!input.trySkipNullValue()) { + iEDLKIPPLDB = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLineupAvatarInfo clone() { + return new ChessRogueLineupAvatarInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLineupAvatarInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLineupAvatarInfo(), data).checkInitialized(); + } + + public static ChessRogueLineupAvatarInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLineupAvatarInfo(), input).checkInitialized(); + } + + public static ChessRogueLineupAvatarInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLineupAvatarInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLineupAvatarInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueLineupAvatarInfoFactory.INSTANCE; + } + + private enum ChessRogueLineupAvatarInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLineupAvatarInfo create() { + return ChessRogueLineupAvatarInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName iEDLKIPPLDB = FieldName.forField("IEDLKIPPLDB"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueLineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueLineupInfoOuterClass.java new file mode 100644 index 000000000..ef32f0256 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueLineupInfoOuterClass.java @@ -0,0 +1,401 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueLineupInfoOuterClass { + /** + * Protobuf type {@code ChessRogueLineupInfo} + */ + public static final class ChessRogueLineupInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueAvatarReviveCost revive_info = 10; + */ + private final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost reviveInfo = RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost.newInstance(); + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 11; + */ + private final RepeatedMessage chessAvatarList = RepeatedMessage.newEmptyInstance(ChessRogueLineupAvatarInfoOuterClass.ChessRogueLineupAvatarInfo.getFactory()); + + private ChessRogueLineupInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueLineupInfo} + */ + public static ChessRogueLineupInfo newInstance() { + return new ChessRogueLineupInfo(); + } + + /** + * optional .RogueAvatarReviveCost revive_info = 10; + * @return whether the reviveInfo field is set + */ + public boolean hasReviveInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 10; + * @return this + */ + public ChessRogueLineupInfo clearReviveInfo() { + bitField0_ &= ~0x00000001; + reviveInfo.clear(); + return this; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 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 #getMutableReviveInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getReviveInfo() { + return reviveInfo; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 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 RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getMutableReviveInfo() { + bitField0_ |= 0x00000001; + return reviveInfo; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 10; + * @param value the reviveInfo to set + * @return this + */ + public ChessRogueLineupInfo setReviveInfo( + final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost value) { + bitField0_ |= 0x00000001; + reviveInfo.copyFrom(value); + return this; + } + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 11; + * @return whether the chessAvatarList field is set + */ + public boolean hasChessAvatarList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 11; + * @return this + */ + public ChessRogueLineupInfo clearChessAvatarList() { + bitField0_ &= ~0x00000002; + chessAvatarList.clear(); + return this; + } + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 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 #getMutableChessAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChessAvatarList( + ) { + return chessAvatarList; + } + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 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 RepeatedMessage getMutableChessAvatarList( + ) { + bitField0_ |= 0x00000002; + return chessAvatarList; + } + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 11; + * @param value the chessAvatarList to add + * @return this + */ + public ChessRogueLineupInfo addChessAvatarList( + final ChessRogueLineupAvatarInfoOuterClass.ChessRogueLineupAvatarInfo value) { + bitField0_ |= 0x00000002; + chessAvatarList.add(value); + return this; + } + + /** + * repeated .ChessRogueLineupAvatarInfo chess_avatar_list = 11; + * @param values the chessAvatarList to add + * @return this + */ + public ChessRogueLineupInfo addAllChessAvatarList( + final ChessRogueLineupAvatarInfoOuterClass.ChessRogueLineupAvatarInfo... values) { + bitField0_ |= 0x00000002; + chessAvatarList.addAll(values); + return this; + } + + @Override + public ChessRogueLineupInfo copyFrom(final ChessRogueLineupInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reviveInfo.copyFrom(other.reviveInfo); + chessAvatarList.copyFrom(other.chessAvatarList); + } + return this; + } + + @Override + public ChessRogueLineupInfo mergeFrom(final ChessRogueLineupInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReviveInfo()) { + getMutableReviveInfo().mergeFrom(other.reviveInfo); + } + if (other.hasChessAvatarList()) { + getMutableChessAvatarList().addAll(other.chessAvatarList); + } + return this; + } + + @Override + public ChessRogueLineupInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clear(); + chessAvatarList.clear(); + return this; + } + + @Override + public ChessRogueLineupInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clearQuick(); + chessAvatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueLineupInfo)) { + return false; + } + ChessRogueLineupInfo other = (ChessRogueLineupInfo) o; + return bitField0_ == other.bitField0_ + && (!hasReviveInfo() || reviveInfo.equals(other.reviveInfo)) + && (!hasChessAvatarList() || chessAvatarList.equals(other.chessAvatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < chessAvatarList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(chessAvatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * chessAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chessAvatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueLineupInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 82: { + // reviveInfo + input.readMessage(reviveInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // chessAvatarList + tag = input.readRepeatedMessage(chessAvatarList, 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.writeMessage(FieldNames.reviveInfo, reviveInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.chessAvatarList, chessAvatarList); + } + output.endObject(); + } + + @Override + public ChessRogueLineupInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1426382941: + case -1248022184: { + if (input.isAtField(FieldNames.reviveInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(reviveInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1375048887: + case -694657787: { + if (input.isAtField(FieldNames.chessAvatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chessAvatarList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueLineupInfo clone() { + return new ChessRogueLineupInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueLineupInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueLineupInfo(), data).checkInitialized(); + } + + public static ChessRogueLineupInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLineupInfo(), input).checkInitialized(); + } + + public static ChessRogueLineupInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueLineupInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueLineupInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueLineupInfoFactory.INSTANCE; + } + + private enum ChessRogueLineupInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueLineupInfo create() { + return ChessRogueLineupInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reviveInfo = FieldName.forField("reviveInfo", "revive_info"); + + static final FieldName chessAvatarList = FieldName.forField("chessAvatarList", "chess_avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleOuterClass.java new file mode 100644 index 000000000..62c85173b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleOuterClass.java @@ -0,0 +1,296 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueMiracleOuterClass { + /** + * Protobuf type {@code ChessRogueMiracle} + */ + public static final class ChessRogueMiracle extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .GameRogueMiracle miracle_list = 8; + */ + private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(GameRogueMiracleOuterClass.GameRogueMiracle.getFactory()); + + private ChessRogueMiracle() { + } + + /** + * @return a new empty instance of {@code ChessRogueMiracle} + */ + public static ChessRogueMiracle newInstance() { + return new ChessRogueMiracle(); + } + + /** + * repeated .GameRogueMiracle miracle_list = 8; + * @return whether the miracleList field is set + */ + public boolean hasMiracleList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .GameRogueMiracle miracle_list = 8; + * @return this + */ + public ChessRogueMiracle clearMiracleList() { + bitField0_ &= ~0x00000001; + miracleList.clear(); + return this; + } + + /** + * repeated .GameRogueMiracle miracle_list = 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 #getMutableMiracleList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMiracleList() { + return miracleList; + } + + /** + * repeated .GameRogueMiracle miracle_list = 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 getMutableMiracleList() { + bitField0_ |= 0x00000001; + return miracleList; + } + + /** + * repeated .GameRogueMiracle miracle_list = 8; + * @param value the miracleList to add + * @return this + */ + public ChessRogueMiracle addMiracleList( + final GameRogueMiracleOuterClass.GameRogueMiracle value) { + bitField0_ |= 0x00000001; + miracleList.add(value); + return this; + } + + /** + * repeated .GameRogueMiracle miracle_list = 8; + * @param values the miracleList to add + * @return this + */ + public ChessRogueMiracle addAllMiracleList( + final GameRogueMiracleOuterClass.GameRogueMiracle... values) { + bitField0_ |= 0x00000001; + miracleList.addAll(values); + return this; + } + + @Override + public ChessRogueMiracle copyFrom(final ChessRogueMiracle other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + miracleList.copyFrom(other.miracleList); + } + return this; + } + + @Override + public ChessRogueMiracle mergeFrom(final ChessRogueMiracle other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMiracleList()) { + getMutableMiracleList().addAll(other.miracleList); + } + return this; + } + + @Override + public ChessRogueMiracle clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + miracleList.clear(); + return this; + } + + @Override + public ChessRogueMiracle clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + miracleList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueMiracle)) { + return false; + } + ChessRogueMiracle other = (ChessRogueMiracle) o; + return bitField0_ == other.bitField0_ + && (!hasMiracleList() || miracleList.equals(other.miracleList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < miracleList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(miracleList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueMiracle mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 66: { + // miracleList + tag = input.readRepeatedMessage(miracleList, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.miracleList, miracleList); + } + output.endObject(); + } + + @Override + public ChessRogueMiracle mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 760391855: + case 2114937772: { + if (input.isAtField(FieldNames.miracleList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(miracleList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueMiracle clone() { + return new ChessRogueMiracle().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueMiracle parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueMiracle(), data).checkInitialized(); + } + + public static ChessRogueMiracle parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueMiracle(), input).checkInitialized(); + } + + public static ChessRogueMiracle parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueMiracle(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueMiracle messages + */ + public static MessageFactory getFactory() { + return ChessRogueMiracleFactory.INSTANCE; + } + + private enum ChessRogueMiracleFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueMiracle create() { + return ChessRogueMiracle.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueModifierInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueModifierInfoOuterClass.java new file mode 100644 index 000000000..f251f7cbc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueModifierInfoOuterClass.java @@ -0,0 +1,462 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueModifierInfoOuterClass { + /** + * Protobuf type {@code ChessRogueModifierInfo} + */ + public static final class ChessRogueModifierInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 select_cell_id_list = 12; + */ + private int selectCellIdList; + + /** + * optional bool confirm = 4; + */ + private boolean confirm; + + /** + * repeated uint32 target_cell_id_list = 1; + */ + private final RepeatedInt targetCellIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueModifierInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueModifierInfo} + */ + public static ChessRogueModifierInfo newInstance() { + return new ChessRogueModifierInfo(); + } + + /** + * optional uint32 select_cell_id_list = 12; + * @return whether the selectCellIdList field is set + */ + public boolean hasSelectCellIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 select_cell_id_list = 12; + * @return this + */ + public ChessRogueModifierInfo clearSelectCellIdList() { + bitField0_ &= ~0x00000001; + selectCellIdList = 0; + return this; + } + + /** + * optional uint32 select_cell_id_list = 12; + * @return the selectCellIdList + */ + public int getSelectCellIdList() { + return selectCellIdList; + } + + /** + * optional uint32 select_cell_id_list = 12; + * @param value the selectCellIdList to set + * @return this + */ + public ChessRogueModifierInfo setSelectCellIdList(final int value) { + bitField0_ |= 0x00000001; + selectCellIdList = value; + return this; + } + + /** + * optional bool confirm = 4; + * @return whether the confirm field is set + */ + public boolean hasConfirm() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool confirm = 4; + * @return this + */ + public ChessRogueModifierInfo clearConfirm() { + bitField0_ &= ~0x00000002; + confirm = false; + return this; + } + + /** + * optional bool confirm = 4; + * @return the confirm + */ + public boolean getConfirm() { + return confirm; + } + + /** + * optional bool confirm = 4; + * @param value the confirm to set + * @return this + */ + public ChessRogueModifierInfo setConfirm(final boolean value) { + bitField0_ |= 0x00000002; + confirm = value; + return this; + } + + /** + * repeated uint32 target_cell_id_list = 1; + * @return whether the targetCellIdList field is set + */ + public boolean hasTargetCellIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 target_cell_id_list = 1; + * @return this + */ + public ChessRogueModifierInfo clearTargetCellIdList() { + bitField0_ &= ~0x00000004; + targetCellIdList.clear(); + return this; + } + + /** + * repeated uint32 target_cell_id_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 #getMutableTargetCellIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTargetCellIdList() { + return targetCellIdList; + } + + /** + * repeated uint32 target_cell_id_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 RepeatedInt getMutableTargetCellIdList() { + bitField0_ |= 0x00000004; + return targetCellIdList; + } + + /** + * repeated uint32 target_cell_id_list = 1; + * @param value the targetCellIdList to add + * @return this + */ + public ChessRogueModifierInfo addTargetCellIdList(final int value) { + bitField0_ |= 0x00000004; + targetCellIdList.add(value); + return this; + } + + /** + * repeated uint32 target_cell_id_list = 1; + * @param values the targetCellIdList to add + * @return this + */ + public ChessRogueModifierInfo addAllTargetCellIdList(final int... values) { + bitField0_ |= 0x00000004; + targetCellIdList.addAll(values); + return this; + } + + @Override + public ChessRogueModifierInfo copyFrom(final ChessRogueModifierInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + selectCellIdList = other.selectCellIdList; + confirm = other.confirm; + targetCellIdList.copyFrom(other.targetCellIdList); + } + return this; + } + + @Override + public ChessRogueModifierInfo mergeFrom(final ChessRogueModifierInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSelectCellIdList()) { + setSelectCellIdList(other.selectCellIdList); + } + if (other.hasConfirm()) { + setConfirm(other.confirm); + } + if (other.hasTargetCellIdList()) { + getMutableTargetCellIdList().addAll(other.targetCellIdList); + } + return this; + } + + @Override + public ChessRogueModifierInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + selectCellIdList = 0; + confirm = false; + targetCellIdList.clear(); + return this; + } + + @Override + public ChessRogueModifierInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + targetCellIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueModifierInfo)) { + return false; + } + ChessRogueModifierInfo other = (ChessRogueModifierInfo) o; + return bitField0_ == other.bitField0_ + && (!hasSelectCellIdList() || selectCellIdList == other.selectCellIdList) + && (!hasConfirm() || confirm == other.confirm) + && (!hasTargetCellIdList() || targetCellIdList.equals(other.targetCellIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(selectCellIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(confirm); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < targetCellIdList.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(targetCellIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selectCellIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * targetCellIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(targetCellIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueModifierInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // selectCellIdList + selectCellIdList = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // confirm + confirm = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // targetCellIdList [packed=true] + input.readPackedUInt32(targetCellIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // targetCellIdList [packed=false] + tag = input.readRepeatedUInt32(targetCellIdList, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.selectCellIdList, selectCellIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.confirm, confirm); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.targetCellIdList, targetCellIdList); + } + output.endObject(); + } + + @Override + public ChessRogueModifierInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1321363849: + case -719375928: { + if (input.isAtField(FieldNames.selectCellIdList)) { + if (!input.trySkipNullValue()) { + selectCellIdList = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 951117504: { + if (input.isAtField(FieldNames.confirm)) { + if (!input.trySkipNullValue()) { + confirm = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1660804300: + case -346566829: { + if (input.isAtField(FieldNames.targetCellIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(targetCellIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueModifierInfo clone() { + return new ChessRogueModifierInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueModifierInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueModifierInfo(), data).checkInitialized(); + } + + public static ChessRogueModifierInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueModifierInfo(), input).checkInitialized(); + } + + public static ChessRogueModifierInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueModifierInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueModifierInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueModifierInfoFactory.INSTANCE; + } + + private enum ChessRogueModifierInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueModifierInfo create() { + return ChessRogueModifierInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName selectCellIdList = FieldName.forField("selectCellIdList", "select_cell_id_list"); + + static final FieldName confirm = FieldName.forField("confirm"); + + static final FieldName targetCellIdList = FieldName.forField("targetCellIdList", "target_cell_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueMoveCellNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueMoveCellNotifyOuterClass.java new file mode 100644 index 000000000..a1421fbf9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueMoveCellNotifyOuterClass.java @@ -0,0 +1,440 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueMoveCellNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueMoveCellNotify} + */ + public static final class ChessRogueMoveCellNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ONHIDCFMAHO = 8; + */ + private int oNHIDCFMAHO; + + /** + * optional uint32 EABHBAHINGJ = 13; + */ + private int eABHBAHINGJ; + + /** + * optional .CellInfo cell = 6; + */ + private final CellInfoOuterClass.CellInfo cell = CellInfoOuterClass.CellInfo.newInstance(); + + private ChessRogueMoveCellNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueMoveCellNotify} + */ + public static ChessRogueMoveCellNotify newInstance() { + return new ChessRogueMoveCellNotify(); + } + + /** + * optional uint32 ONHIDCFMAHO = 8; + * @return whether the oNHIDCFMAHO field is set + */ + public boolean hasONHIDCFMAHO() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ONHIDCFMAHO = 8; + * @return this + */ + public ChessRogueMoveCellNotify clearONHIDCFMAHO() { + bitField0_ &= ~0x00000001; + oNHIDCFMAHO = 0; + return this; + } + + /** + * optional uint32 ONHIDCFMAHO = 8; + * @return the oNHIDCFMAHO + */ + public int getONHIDCFMAHO() { + return oNHIDCFMAHO; + } + + /** + * optional uint32 ONHIDCFMAHO = 8; + * @param value the oNHIDCFMAHO to set + * @return this + */ + public ChessRogueMoveCellNotify setONHIDCFMAHO(final int value) { + bitField0_ |= 0x00000001; + oNHIDCFMAHO = value; + return this; + } + + /** + * optional uint32 EABHBAHINGJ = 13; + * @return whether the eABHBAHINGJ field is set + */ + public boolean hasEABHBAHINGJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 EABHBAHINGJ = 13; + * @return this + */ + public ChessRogueMoveCellNotify clearEABHBAHINGJ() { + bitField0_ &= ~0x00000002; + eABHBAHINGJ = 0; + return this; + } + + /** + * optional uint32 EABHBAHINGJ = 13; + * @return the eABHBAHINGJ + */ + public int getEABHBAHINGJ() { + return eABHBAHINGJ; + } + + /** + * optional uint32 EABHBAHINGJ = 13; + * @param value the eABHBAHINGJ to set + * @return this + */ + public ChessRogueMoveCellNotify setEABHBAHINGJ(final int value) { + bitField0_ |= 0x00000002; + eABHBAHINGJ = value; + return this; + } + + /** + * optional .CellInfo cell = 6; + * @return whether the cell field is set + */ + public boolean hasCell() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .CellInfo cell = 6; + * @return this + */ + public ChessRogueMoveCellNotify clearCell() { + bitField0_ &= ~0x00000004; + cell.clear(); + return this; + } + + /** + * optional .CellInfo cell = 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 #getMutableCell()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellInfoOuterClass.CellInfo getCell() { + return cell; + } + + /** + * optional .CellInfo cell = 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 CellInfoOuterClass.CellInfo getMutableCell() { + bitField0_ |= 0x00000004; + return cell; + } + + /** + * optional .CellInfo cell = 6; + * @param value the cell to set + * @return this + */ + public ChessRogueMoveCellNotify setCell(final CellInfoOuterClass.CellInfo value) { + bitField0_ |= 0x00000004; + cell.copyFrom(value); + return this; + } + + @Override + public ChessRogueMoveCellNotify copyFrom(final ChessRogueMoveCellNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + oNHIDCFMAHO = other.oNHIDCFMAHO; + eABHBAHINGJ = other.eABHBAHINGJ; + cell.copyFrom(other.cell); + } + return this; + } + + @Override + public ChessRogueMoveCellNotify mergeFrom(final ChessRogueMoveCellNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasONHIDCFMAHO()) { + setONHIDCFMAHO(other.oNHIDCFMAHO); + } + if (other.hasEABHBAHINGJ()) { + setEABHBAHINGJ(other.eABHBAHINGJ); + } + if (other.hasCell()) { + getMutableCell().mergeFrom(other.cell); + } + return this; + } + + @Override + public ChessRogueMoveCellNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oNHIDCFMAHO = 0; + eABHBAHINGJ = 0; + cell.clear(); + return this; + } + + @Override + public ChessRogueMoveCellNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cell.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueMoveCellNotify)) { + return false; + } + ChessRogueMoveCellNotify other = (ChessRogueMoveCellNotify) o; + return bitField0_ == other.bitField0_ + && (!hasONHIDCFMAHO() || oNHIDCFMAHO == other.oNHIDCFMAHO) + && (!hasEABHBAHINGJ() || eABHBAHINGJ == other.eABHBAHINGJ) + && (!hasCell() || cell.equals(other.cell)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(oNHIDCFMAHO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(eABHBAHINGJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(cell); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oNHIDCFMAHO); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eABHBAHINGJ); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cell); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueMoveCellNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // oNHIDCFMAHO + oNHIDCFMAHO = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // eABHBAHINGJ + eABHBAHINGJ = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // cell + input.readMessage(cell); + 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.oNHIDCFMAHO, oNHIDCFMAHO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eABHBAHINGJ, eABHBAHINGJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.cell, cell); + } + output.endObject(); + } + + @Override + public ChessRogueMoveCellNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 920878754: { + if (input.isAtField(FieldNames.oNHIDCFMAHO)) { + if (!input.trySkipNullValue()) { + oNHIDCFMAHO = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1348312049: { + if (input.isAtField(FieldNames.eABHBAHINGJ)) { + if (!input.trySkipNullValue()) { + eABHBAHINGJ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3049826: { + if (input.isAtField(FieldNames.cell)) { + if (!input.trySkipNullValue()) { + input.readMessage(cell); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueMoveCellNotify clone() { + return new ChessRogueMoveCellNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueMoveCellNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueMoveCellNotify(), data).checkInitialized(); + } + + public static ChessRogueMoveCellNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueMoveCellNotify(), input).checkInitialized(); + } + + public static ChessRogueMoveCellNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueMoveCellNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueMoveCellNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueMoveCellNotifyFactory.INSTANCE; + } + + private enum ChessRogueMoveCellNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueMoveCellNotify create() { + return ChessRogueMoveCellNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName oNHIDCFMAHO = FieldName.forField("ONHIDCFMAHO"); + + static final FieldName eABHBAHINGJ = FieldName.forField("EABHBAHINGJ"); + + static final FieldName cell = FieldName.forField("cell"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDicePhaseOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDicePhaseOuterClass.java new file mode 100644 index 000000000..9fdf2430d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDicePhaseOuterClass.java @@ -0,0 +1,130 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueNousDicePhaseOuterClass { + /** + * Protobuf enum {@code ChessRogueNousDicePhase} + */ + public enum ChessRogueNousDicePhase implements ProtoEnum { + /** + * NONE = 0; + */ + NONE("NONE", 0), + + /** + * PHASE_ONE = 1; + */ + PHASE_ONE("PHASE_ONE", 1), + + /** + * PHASE_TWO = 2; + */ + PHASE_TWO("PHASE_TWO", 2); + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + + /** + * PHASE_ONE = 1; + */ + public static final int PHASE_ONE_VALUE = 1; + + /** + * PHASE_TWO = 2; + */ + public static final int PHASE_TWO_VALUE = 2; + + private final String name; + + private final int number; + + private ChessRogueNousDicePhase(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 ChessRogueNousDicePhaseConverter.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 ChessRogueNousDicePhase forNumber(int value) { + return ChessRogueNousDicePhaseConverter.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 ChessRogueNousDicePhase forNumberOr(int number, ChessRogueNousDicePhase other) { + ChessRogueNousDicePhase value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueNousDicePhaseConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueNousDicePhase[] lookup = new ChessRogueNousDicePhase[3]; + + static { + lookup[0] = NONE; + lookup[1] = PHASE_ONE; + lookup[2] = PHASE_TWO; + } + + @Override + public final ChessRogueNousDicePhase forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueNousDicePhase forName(final CharSequence value) { + if (value.length() == 4) { + if (ProtoUtil.isEqual("NONE", value)) { + return NONE; + } + } + if (value.length() == 9) { + if (ProtoUtil.isEqual("PHASE_ONE", value)) { + return PHASE_ONE; + } + if (ProtoUtil.isEqual("PHASE_TWO", value)) { + return PHASE_TWO; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceUnlockNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceUnlockNotifyOuterClass.java new file mode 100644 index 000000000..bacde0e6e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceUnlockNotifyOuterClass.java @@ -0,0 +1,265 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueNousDiceSurfaceUnlockNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueNousDiceSurfaceUnlockNotify} + */ + public static final class ChessRogueNousDiceSurfaceUnlockNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 FGJBHCMIMEH = 15; + */ + private int fGJBHCMIMEH; + + private ChessRogueNousDiceSurfaceUnlockNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousDiceSurfaceUnlockNotify} + */ + public static ChessRogueNousDiceSurfaceUnlockNotify newInstance() { + return new ChessRogueNousDiceSurfaceUnlockNotify(); + } + + /** + * optional uint32 FGJBHCMIMEH = 15; + * @return whether the fGJBHCMIMEH field is set + */ + public boolean hasFGJBHCMIMEH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 FGJBHCMIMEH = 15; + * @return this + */ + public ChessRogueNousDiceSurfaceUnlockNotify clearFGJBHCMIMEH() { + bitField0_ &= ~0x00000001; + fGJBHCMIMEH = 0; + return this; + } + + /** + * optional uint32 FGJBHCMIMEH = 15; + * @return the fGJBHCMIMEH + */ + public int getFGJBHCMIMEH() { + return fGJBHCMIMEH; + } + + /** + * optional uint32 FGJBHCMIMEH = 15; + * @param value the fGJBHCMIMEH to set + * @return this + */ + public ChessRogueNousDiceSurfaceUnlockNotify setFGJBHCMIMEH(final int value) { + bitField0_ |= 0x00000001; + fGJBHCMIMEH = value; + return this; + } + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify copyFrom( + final ChessRogueNousDiceSurfaceUnlockNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fGJBHCMIMEH = other.fGJBHCMIMEH; + } + return this; + } + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify mergeFrom( + final ChessRogueNousDiceSurfaceUnlockNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFGJBHCMIMEH()) { + setFGJBHCMIMEH(other.fGJBHCMIMEH); + } + return this; + } + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fGJBHCMIMEH = 0; + return this; + } + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousDiceSurfaceUnlockNotify)) { + return false; + } + ChessRogueNousDiceSurfaceUnlockNotify other = (ChessRogueNousDiceSurfaceUnlockNotify) o; + return bitField0_ == other.bitField0_ + && (!hasFGJBHCMIMEH() || fGJBHCMIMEH == other.fGJBHCMIMEH); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(fGJBHCMIMEH); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fGJBHCMIMEH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousDiceSurfaceUnlockNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // fGJBHCMIMEH + fGJBHCMIMEH = input.readUInt32(); + 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.writeUInt32(FieldNames.fGJBHCMIMEH, fGJBHCMIMEH); + } + output.endObject(); + } + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1915858592: { + if (input.isAtField(FieldNames.fGJBHCMIMEH)) { + if (!input.trySkipNullValue()) { + fGJBHCMIMEH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify clone() { + return new ChessRogueNousDiceSurfaceUnlockNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousDiceSurfaceUnlockNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceUnlockNotify(), data).checkInitialized(); + } + + public static ChessRogueNousDiceSurfaceUnlockNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceUnlockNotify(), input).checkInitialized(); + } + + public static ChessRogueNousDiceSurfaceUnlockNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceUnlockNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousDiceSurfaceUnlockNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousDiceSurfaceUnlockNotifyFactory.INSTANCE; + } + + private enum ChessRogueNousDiceSurfaceUnlockNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousDiceSurfaceUnlockNotify create() { + return ChessRogueNousDiceSurfaceUnlockNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fGJBHCMIMEH = FieldName.forField("FGJBHCMIMEH"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceUpdateNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceUpdateNotifyOuterClass.java new file mode 100644 index 000000000..f33714ff9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceUpdateNotifyOuterClass.java @@ -0,0 +1,283 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueNousDiceUpdateNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueNousDiceUpdateNotify} + */ + public static final class ChessRogueNousDiceUpdateNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueQueryDiceInfo DOBPLMPGEND = 10; + */ + private final ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo dOBPLMPGEND = ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo.newInstance(); + + private ChessRogueNousDiceUpdateNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousDiceUpdateNotify} + */ + public static ChessRogueNousDiceUpdateNotify newInstance() { + return new ChessRogueNousDiceUpdateNotify(); + } + + /** + * optional .ChessRogueQueryDiceInfo DOBPLMPGEND = 10; + * @return whether the dOBPLMPGEND field is set + */ + public boolean hasDOBPLMPGEND() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueQueryDiceInfo DOBPLMPGEND = 10; + * @return this + */ + public ChessRogueNousDiceUpdateNotify clearDOBPLMPGEND() { + bitField0_ &= ~0x00000001; + dOBPLMPGEND.clear(); + return this; + } + + /** + * optional .ChessRogueQueryDiceInfo DOBPLMPGEND = 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 #getMutableDOBPLMPGEND()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo getDOBPLMPGEND() { + return dOBPLMPGEND; + } + + /** + * optional .ChessRogueQueryDiceInfo DOBPLMPGEND = 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 ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo getMutableDOBPLMPGEND() { + bitField0_ |= 0x00000001; + return dOBPLMPGEND; + } + + /** + * optional .ChessRogueQueryDiceInfo DOBPLMPGEND = 10; + * @param value the dOBPLMPGEND to set + * @return this + */ + public ChessRogueNousDiceUpdateNotify setDOBPLMPGEND( + final ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo value) { + bitField0_ |= 0x00000001; + dOBPLMPGEND.copyFrom(value); + return this; + } + + @Override + public ChessRogueNousDiceUpdateNotify copyFrom(final ChessRogueNousDiceUpdateNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dOBPLMPGEND.copyFrom(other.dOBPLMPGEND); + } + return this; + } + + @Override + public ChessRogueNousDiceUpdateNotify mergeFrom(final ChessRogueNousDiceUpdateNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDOBPLMPGEND()) { + getMutableDOBPLMPGEND().mergeFrom(other.dOBPLMPGEND); + } + return this; + } + + @Override + public ChessRogueNousDiceUpdateNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dOBPLMPGEND.clear(); + return this; + } + + @Override + public ChessRogueNousDiceUpdateNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dOBPLMPGEND.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousDiceUpdateNotify)) { + return false; + } + ChessRogueNousDiceUpdateNotify other = (ChessRogueNousDiceUpdateNotify) o; + return bitField0_ == other.bitField0_ + && (!hasDOBPLMPGEND() || dOBPLMPGEND.equals(other.dOBPLMPGEND)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(dOBPLMPGEND); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dOBPLMPGEND); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousDiceUpdateNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 82: { + // dOBPLMPGEND + input.readMessage(dOBPLMPGEND); + 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.writeMessage(FieldNames.dOBPLMPGEND, dOBPLMPGEND); + } + output.endObject(); + } + + @Override + public ChessRogueNousDiceUpdateNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -608996790: { + if (input.isAtField(FieldNames.dOBPLMPGEND)) { + if (!input.trySkipNullValue()) { + input.readMessage(dOBPLMPGEND); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousDiceUpdateNotify clone() { + return new ChessRogueNousDiceUpdateNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousDiceUpdateNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousDiceUpdateNotify(), data).checkInitialized(); + } + + public static ChessRogueNousDiceUpdateNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousDiceUpdateNotify(), input).checkInitialized(); + } + + public static ChessRogueNousDiceUpdateNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousDiceUpdateNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousDiceUpdateNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousDiceUpdateNotifyFactory.INSTANCE; + } + + private enum ChessRogueNousDiceUpdateNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousDiceUpdateNotify create() { + return ChessRogueNousDiceUpdateNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dOBPLMPGEND = FieldName.forField("DOBPLMPGEND"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousEnableRogueTalentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousEnableRogueTalentCsReqOuterClass.java new file mode 100644 index 000000000..1e82fe381 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousEnableRogueTalentCsReqOuterClass.java @@ -0,0 +1,266 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueNousEnableRogueTalentCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueNousEnableRogueTalentCsReq} + */ + public static final class ChessRogueNousEnableRogueTalentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 talent_id = 2; + */ + private int talentId; + + private ChessRogueNousEnableRogueTalentCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousEnableRogueTalentCsReq} + */ + public static ChessRogueNousEnableRogueTalentCsReq newInstance() { + return new ChessRogueNousEnableRogueTalentCsReq(); + } + + /** + * optional uint32 talent_id = 2; + * @return whether the talentId field is set + */ + public boolean hasTalentId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 talent_id = 2; + * @return this + */ + public ChessRogueNousEnableRogueTalentCsReq clearTalentId() { + bitField0_ &= ~0x00000001; + talentId = 0; + return this; + } + + /** + * optional uint32 talent_id = 2; + * @return the talentId + */ + public int getTalentId() { + return talentId; + } + + /** + * optional uint32 talent_id = 2; + * @param value the talentId to set + * @return this + */ + public ChessRogueNousEnableRogueTalentCsReq setTalentId(final int value) { + bitField0_ |= 0x00000001; + talentId = value; + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentCsReq copyFrom( + final ChessRogueNousEnableRogueTalentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + talentId = other.talentId; + } + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentCsReq mergeFrom( + final ChessRogueNousEnableRogueTalentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTalentId()) { + setTalentId(other.talentId); + } + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + talentId = 0; + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousEnableRogueTalentCsReq)) { + return false; + } + ChessRogueNousEnableRogueTalentCsReq other = (ChessRogueNousEnableRogueTalentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasTalentId() || talentId == other.talentId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(talentId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(talentId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousEnableRogueTalentCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // talentId + talentId = input.readUInt32(); + 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.writeUInt32(FieldNames.talentId, talentId); + } + output.endObject(); + } + + @Override + public ChessRogueNousEnableRogueTalentCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -615305433: + case -1894577842: { + if (input.isAtField(FieldNames.talentId)) { + if (!input.trySkipNullValue()) { + talentId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentCsReq clone() { + return new ChessRogueNousEnableRogueTalentCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousEnableRogueTalentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousEnableRogueTalentCsReq(), data).checkInitialized(); + } + + public static ChessRogueNousEnableRogueTalentCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousEnableRogueTalentCsReq(), input).checkInitialized(); + } + + public static ChessRogueNousEnableRogueTalentCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousEnableRogueTalentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousEnableRogueTalentCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousEnableRogueTalentCsReqFactory.INSTANCE; + } + + private enum ChessRogueNousEnableRogueTalentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousEnableRogueTalentCsReq create() { + return ChessRogueNousEnableRogueTalentCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName talentId = FieldName.forField("talentId", "talent_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousEnableRogueTalentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousEnableRogueTalentScRspOuterClass.java new file mode 100644 index 000000000..00a003b59 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousEnableRogueTalentScRspOuterClass.java @@ -0,0 +1,448 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueNousEnableRogueTalentScRspOuterClass { + /** + * Protobuf type {@code ChessRogueNousEnableRogueTalentScRsp} + */ + public static final class ChessRogueNousEnableRogueTalentScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 GDNBONNPGCN = 4; + */ + private int gDNBONNPGCN; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional .RogueTalentInfoList talent_info_list = 10; + */ + private final RogueTalentInfoListOuterClass.RogueTalentInfoList talentInfoList = RogueTalentInfoListOuterClass.RogueTalentInfoList.newInstance(); + + private ChessRogueNousEnableRogueTalentScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousEnableRogueTalentScRsp} + */ + public static ChessRogueNousEnableRogueTalentScRsp newInstance() { + return new ChessRogueNousEnableRogueTalentScRsp(); + } + + /** + * optional uint32 GDNBONNPGCN = 4; + * @return whether the gDNBONNPGCN field is set + */ + public boolean hasGDNBONNPGCN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 GDNBONNPGCN = 4; + * @return this + */ + public ChessRogueNousEnableRogueTalentScRsp clearGDNBONNPGCN() { + bitField0_ &= ~0x00000001; + gDNBONNPGCN = 0; + return this; + } + + /** + * optional uint32 GDNBONNPGCN = 4; + * @return the gDNBONNPGCN + */ + public int getGDNBONNPGCN() { + return gDNBONNPGCN; + } + + /** + * optional uint32 GDNBONNPGCN = 4; + * @param value the gDNBONNPGCN to set + * @return this + */ + public ChessRogueNousEnableRogueTalentScRsp setGDNBONNPGCN(final int value) { + bitField0_ |= 0x00000001; + gDNBONNPGCN = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public ChessRogueNousEnableRogueTalentScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public ChessRogueNousEnableRogueTalentScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 10; + * @return whether the talentInfoList field is set + */ + public boolean hasTalentInfoList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 10; + * @return this + */ + public ChessRogueNousEnableRogueTalentScRsp clearTalentInfoList() { + bitField0_ &= ~0x00000004; + talentInfoList.clear(); + return this; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 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 #getMutableTalentInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueTalentInfoListOuterClass.RogueTalentInfoList getTalentInfoList() { + return talentInfoList; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 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 RogueTalentInfoListOuterClass.RogueTalentInfoList getMutableTalentInfoList() { + bitField0_ |= 0x00000004; + return talentInfoList; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 10; + * @param value the talentInfoList to set + * @return this + */ + public ChessRogueNousEnableRogueTalentScRsp setTalentInfoList( + final RogueTalentInfoListOuterClass.RogueTalentInfoList value) { + bitField0_ |= 0x00000004; + talentInfoList.copyFrom(value); + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentScRsp copyFrom( + final ChessRogueNousEnableRogueTalentScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gDNBONNPGCN = other.gDNBONNPGCN; + retcode = other.retcode; + talentInfoList.copyFrom(other.talentInfoList); + } + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentScRsp mergeFrom( + final ChessRogueNousEnableRogueTalentScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGDNBONNPGCN()) { + setGDNBONNPGCN(other.gDNBONNPGCN); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasTalentInfoList()) { + getMutableTalentInfoList().mergeFrom(other.talentInfoList); + } + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gDNBONNPGCN = 0; + retcode = 0; + talentInfoList.clear(); + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + talentInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousEnableRogueTalentScRsp)) { + return false; + } + ChessRogueNousEnableRogueTalentScRsp other = (ChessRogueNousEnableRogueTalentScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasGDNBONNPGCN() || gDNBONNPGCN == other.gDNBONNPGCN) + && (!hasRetcode() || retcode == other.retcode) + && (!hasTalentInfoList() || talentInfoList.equals(other.talentInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(gDNBONNPGCN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(talentInfoList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gDNBONNPGCN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(talentInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousEnableRogueTalentScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // gDNBONNPGCN + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // talentInfoList + input.readMessage(talentInfoList); + 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.gDNBONNPGCN, gDNBONNPGCN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.talentInfoList, talentInfoList); + } + output.endObject(); + } + + @Override + public ChessRogueNousEnableRogueTalentScRsp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 7202560: { + if (input.isAtField(FieldNames.gDNBONNPGCN)) { + if (!input.trySkipNullValue()) { + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -363598984: + case 1545287164: { + if (input.isAtField(FieldNames.talentInfoList)) { + if (!input.trySkipNullValue()) { + input.readMessage(talentInfoList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousEnableRogueTalentScRsp clone() { + return new ChessRogueNousEnableRogueTalentScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousEnableRogueTalentScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousEnableRogueTalentScRsp(), data).checkInitialized(); + } + + public static ChessRogueNousEnableRogueTalentScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousEnableRogueTalentScRsp(), input).checkInitialized(); + } + + public static ChessRogueNousEnableRogueTalentScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousEnableRogueTalentScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousEnableRogueTalentScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousEnableRogueTalentScRspFactory.INSTANCE; + } + + private enum ChessRogueNousEnableRogueTalentScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousEnableRogueTalentScRsp create() { + return ChessRogueNousEnableRogueTalentScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gDNBONNPGCN = FieldName.forField("GDNBONNPGCN"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName talentInfoList = FieldName.forField("talentInfoList", "talent_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousGetRogueTalentInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousGetRogueTalentInfoCsReqOuterClass.java new file mode 100644 index 000000000..ede647b8c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousGetRogueTalentInfoCsReqOuterClass.java @@ -0,0 +1,180 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueNousGetRogueTalentInfoCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueNousGetRogueTalentInfoCsReq} + */ + public static final class ChessRogueNousGetRogueTalentInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueNousGetRogueTalentInfoCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousGetRogueTalentInfoCsReq} + */ + public static ChessRogueNousGetRogueTalentInfoCsReq newInstance() { + return new ChessRogueNousGetRogueTalentInfoCsReq(); + } + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq copyFrom( + final ChessRogueNousGetRogueTalentInfoCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq mergeFrom( + final ChessRogueNousGetRogueTalentInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousGetRogueTalentInfoCsReq)) { + return false; + } + ChessRogueNousGetRogueTalentInfoCsReq other = (ChessRogueNousGetRogueTalentInfoCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousGetRogueTalentInfoCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq clone() { + return new ChessRogueNousGetRogueTalentInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousGetRogueTalentInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousGetRogueTalentInfoCsReq(), data).checkInitialized(); + } + + public static ChessRogueNousGetRogueTalentInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousGetRogueTalentInfoCsReq(), input).checkInitialized(); + } + + public static ChessRogueNousGetRogueTalentInfoCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousGetRogueTalentInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousGetRogueTalentInfoCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousGetRogueTalentInfoCsReqFactory.INSTANCE; + } + + private enum ChessRogueNousGetRogueTalentInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousGetRogueTalentInfoCsReq create() { + return ChessRogueNousGetRogueTalentInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousGetRogueTalentInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousGetRogueTalentInfoScRspOuterClass.java new file mode 100644 index 000000000..d0198af67 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousGetRogueTalentInfoScRspOuterClass.java @@ -0,0 +1,448 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueNousGetRogueTalentInfoScRspOuterClass { + /** + * Protobuf type {@code ChessRogueNousGetRogueTalentInfoScRsp} + */ + public static final class ChessRogueNousGetRogueTalentInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 4; + */ + private int retcode; + + /** + * optional uint32 GDNBONNPGCN = 9; + */ + private int gDNBONNPGCN; + + /** + * optional .RogueTalentInfoList talent_info_list = 14; + */ + private final RogueTalentInfoListOuterClass.RogueTalentInfoList talentInfoList = RogueTalentInfoListOuterClass.RogueTalentInfoList.newInstance(); + + private ChessRogueNousGetRogueTalentInfoScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousGetRogueTalentInfoScRsp} + */ + public static ChessRogueNousGetRogueTalentInfoScRsp newInstance() { + return new ChessRogueNousGetRogueTalentInfoScRsp(); + } + + /** + * optional uint32 retcode = 4; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 4; + * @return this + */ + public ChessRogueNousGetRogueTalentInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 4; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 4; + * @param value the retcode to set + * @return this + */ + public ChessRogueNousGetRogueTalentInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 GDNBONNPGCN = 9; + * @return whether the gDNBONNPGCN field is set + */ + public boolean hasGDNBONNPGCN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GDNBONNPGCN = 9; + * @return this + */ + public ChessRogueNousGetRogueTalentInfoScRsp clearGDNBONNPGCN() { + bitField0_ &= ~0x00000002; + gDNBONNPGCN = 0; + return this; + } + + /** + * optional uint32 GDNBONNPGCN = 9; + * @return the gDNBONNPGCN + */ + public int getGDNBONNPGCN() { + return gDNBONNPGCN; + } + + /** + * optional uint32 GDNBONNPGCN = 9; + * @param value the gDNBONNPGCN to set + * @return this + */ + public ChessRogueNousGetRogueTalentInfoScRsp setGDNBONNPGCN(final int value) { + bitField0_ |= 0x00000002; + gDNBONNPGCN = value; + return this; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 14; + * @return whether the talentInfoList field is set + */ + public boolean hasTalentInfoList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 14; + * @return this + */ + public ChessRogueNousGetRogueTalentInfoScRsp clearTalentInfoList() { + bitField0_ &= ~0x00000004; + talentInfoList.clear(); + return this; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 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 #getMutableTalentInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueTalentInfoListOuterClass.RogueTalentInfoList getTalentInfoList() { + return talentInfoList; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 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 RogueTalentInfoListOuterClass.RogueTalentInfoList getMutableTalentInfoList() { + bitField0_ |= 0x00000004; + return talentInfoList; + } + + /** + * optional .RogueTalentInfoList talent_info_list = 14; + * @param value the talentInfoList to set + * @return this + */ + public ChessRogueNousGetRogueTalentInfoScRsp setTalentInfoList( + final RogueTalentInfoListOuterClass.RogueTalentInfoList value) { + bitField0_ |= 0x00000004; + talentInfoList.copyFrom(value); + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp copyFrom( + final ChessRogueNousGetRogueTalentInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + gDNBONNPGCN = other.gDNBONNPGCN; + talentInfoList.copyFrom(other.talentInfoList); + } + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp mergeFrom( + final ChessRogueNousGetRogueTalentInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasGDNBONNPGCN()) { + setGDNBONNPGCN(other.gDNBONNPGCN); + } + if (other.hasTalentInfoList()) { + getMutableTalentInfoList().mergeFrom(other.talentInfoList); + } + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + gDNBONNPGCN = 0; + talentInfoList.clear(); + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + talentInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousGetRogueTalentInfoScRsp)) { + return false; + } + ChessRogueNousGetRogueTalentInfoScRsp other = (ChessRogueNousGetRogueTalentInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasGDNBONNPGCN() || gDNBONNPGCN == other.gDNBONNPGCN) + && (!hasTalentInfoList() || talentInfoList.equals(other.talentInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(gDNBONNPGCN); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(talentInfoList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gDNBONNPGCN); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(talentInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousGetRogueTalentInfoScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // gDNBONNPGCN + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // talentInfoList + input.readMessage(talentInfoList); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gDNBONNPGCN, gDNBONNPGCN); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.talentInfoList, talentInfoList); + } + output.endObject(); + } + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 7202560: { + if (input.isAtField(FieldNames.gDNBONNPGCN)) { + if (!input.trySkipNullValue()) { + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -363598984: + case 1545287164: { + if (input.isAtField(FieldNames.talentInfoList)) { + if (!input.trySkipNullValue()) { + input.readMessage(talentInfoList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp clone() { + return new ChessRogueNousGetRogueTalentInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousGetRogueTalentInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousGetRogueTalentInfoScRsp(), data).checkInitialized(); + } + + public static ChessRogueNousGetRogueTalentInfoScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousGetRogueTalentInfoScRsp(), input).checkInitialized(); + } + + public static ChessRogueNousGetRogueTalentInfoScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousGetRogueTalentInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousGetRogueTalentInfoScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousGetRogueTalentInfoScRspFactory.INSTANCE; + } + + private enum ChessRogueNousGetRogueTalentInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousGetRogueTalentInfoScRsp create() { + return ChessRogueNousGetRogueTalentInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName gDNBONNPGCN = FieldName.forField("GDNBONNPGCN"); + + static final FieldName talentInfoList = FieldName.forField("talentInfoList", "talent_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryStatusOuterClass.java new file mode 100644 index 000000000..76e78426b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryStatusOuterClass.java @@ -0,0 +1,147 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueNousMainStoryStatusOuterClass { + /** + * Protobuf enum {@code ChessRogueNousMainStoryStatus} + */ + public enum ChessRogueNousMainStoryStatus implements ProtoEnum { + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE = 0; + */ + CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE", 0), + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK = 1; + */ + CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK", 1), + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH = 2; + */ + CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH", 2), + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER = 3; + */ + CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER", 3); + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE = 0; + */ + public static final int CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE_VALUE = 0; + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK = 1; + */ + public static final int CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK_VALUE = 1; + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH = 2; + */ + public static final int CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH_VALUE = 2; + + /** + * CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER = 3; + */ + public static final int CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER_VALUE = 3; + + private final String name; + + private final int number; + + private ChessRogueNousMainStoryStatus(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 ChessRogueNousMainStoryStatusConverter.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 ChessRogueNousMainStoryStatus forNumber(int value) { + return ChessRogueNousMainStoryStatusConverter.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 ChessRogueNousMainStoryStatus forNumberOr(int number, + ChessRogueNousMainStoryStatus other) { + ChessRogueNousMainStoryStatus value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueNousMainStoryStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueNousMainStoryStatus[] lookup = new ChessRogueNousMainStoryStatus[4]; + + static { + lookup[0] = CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE; + lookup[1] = CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK; + lookup[2] = CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH; + lookup[3] = CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER; + } + + @Override + public final ChessRogueNousMainStoryStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueNousMainStoryStatus forName(final CharSequence value) { + if (value.length() == 39) { + if (ProtoUtil.isEqual("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE", value)) { + return CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_NONE; + } + } + if (value.length() == 41) { + if (ProtoUtil.isEqual("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK", value)) { + return CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_UNLOCK; + } + if (ProtoUtil.isEqual("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH", value)) { + return CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_FINISH; + } + } + if (value.length() == 46) { + if (ProtoUtil.isEqual("CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER", value)) { + return CHESS_ROGUE_NOUS_MAIN_STORY_STATUS_CAN_TRIGGER; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousValueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousValueInfoOuterClass.java new file mode 100644 index 000000000..46173102f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueNousValueInfoOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueNousValueInfoOuterClass { + /** + * Protobuf type {@code ChessRogueNousValueInfo} + */ + public static final class ChessRogueNousValueInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 nous_value = 10; + */ + private int nousValue; + + private ChessRogueNousValueInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueNousValueInfo} + */ + public static ChessRogueNousValueInfo newInstance() { + return new ChessRogueNousValueInfo(); + } + + /** + * optional int32 nous_value = 10; + * @return whether the nousValue field is set + */ + public boolean hasNousValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 nous_value = 10; + * @return this + */ + public ChessRogueNousValueInfo clearNousValue() { + bitField0_ &= ~0x00000001; + nousValue = 0; + return this; + } + + /** + * optional int32 nous_value = 10; + * @return the nousValue + */ + public int getNousValue() { + return nousValue; + } + + /** + * optional int32 nous_value = 10; + * @param value the nousValue to set + * @return this + */ + public ChessRogueNousValueInfo setNousValue(final int value) { + bitField0_ |= 0x00000001; + nousValue = value; + return this; + } + + @Override + public ChessRogueNousValueInfo copyFrom(final ChessRogueNousValueInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nousValue = other.nousValue; + } + return this; + } + + @Override + public ChessRogueNousValueInfo mergeFrom(final ChessRogueNousValueInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNousValue()) { + setNousValue(other.nousValue); + } + return this; + } + + @Override + public ChessRogueNousValueInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nousValue = 0; + return this; + } + + @Override + public ChessRogueNousValueInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueNousValueInfo)) { + return false; + } + ChessRogueNousValueInfo other = (ChessRogueNousValueInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNousValue() || nousValue == other.nousValue); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeInt32NoTag(nousValue); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(nousValue); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueNousValueInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // nousValue + nousValue = input.readInt32(); + 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.writeInt32(FieldNames.nousValue, nousValue); + } + output.endObject(); + } + + @Override + public ChessRogueNousValueInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1234555758: + case 660197713: { + if (input.isAtField(FieldNames.nousValue)) { + if (!input.trySkipNullValue()) { + nousValue = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueNousValueInfo clone() { + return new ChessRogueNousValueInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueNousValueInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueNousValueInfo(), data).checkInitialized(); + } + + public static ChessRogueNousValueInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousValueInfo(), input).checkInitialized(); + } + + public static ChessRogueNousValueInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueNousValueInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueNousValueInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueNousValueInfoFactory.INSTANCE; + } + + private enum ChessRogueNousValueInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueNousValueInfo create() { + return ChessRogueNousValueInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nousValue = FieldName.forField("nousValue", "nous_value"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRoguePickAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRoguePickAvatarCsReqOuterClass.java new file mode 100644 index 000000000..c4979c038 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRoguePickAvatarCsReqOuterClass.java @@ -0,0 +1,382 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRoguePickAvatarCsReqOuterClass { + /** + * Protobuf type {@code ChessRoguePickAvatarCsReq} + */ + public static final class ChessRoguePickAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 prop_entity_id = 10; + */ + private int propEntityId; + + /** + * repeated uint32 base_avatar_id_list = 4; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ChessRoguePickAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRoguePickAvatarCsReq} + */ + public static ChessRoguePickAvatarCsReq newInstance() { + return new ChessRoguePickAvatarCsReq(); + } + + /** + * optional uint32 prop_entity_id = 10; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 prop_entity_id = 10; + * @return this + */ + public ChessRoguePickAvatarCsReq clearPropEntityId() { + bitField0_ &= ~0x00000001; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 10; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 10; + * @param value the propEntityId to set + * @return this + */ + public ChessRoguePickAvatarCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000001; + propEntityId = value; + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @return this + */ + public ChessRoguePickAvatarCsReq clearBaseAvatarIdList() { + bitField0_ &= ~0x00000002; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_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 RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000002; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @param value the baseAvatarIdList to add + * @return this + */ + public ChessRoguePickAvatarCsReq addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000002; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @param values the baseAvatarIdList to add + * @return this + */ + public ChessRoguePickAvatarCsReq addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000002; + baseAvatarIdList.addAll(values); + return this; + } + + @Override + public ChessRoguePickAvatarCsReq copyFrom(final ChessRoguePickAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + propEntityId = other.propEntityId; + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRoguePickAvatarCsReq mergeFrom(final ChessRoguePickAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRoguePickAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propEntityId = 0; + baseAvatarIdList.clear(); + return this; + } + + @Override + public ChessRoguePickAvatarCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRoguePickAvatarCsReq)) { + return false; + } + ChessRoguePickAvatarCsReq other = (ChessRoguePickAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRoguePickAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, 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 32: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.propEntityId, propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + output.endObject(); + } + + @Override + public ChessRoguePickAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRoguePickAvatarCsReq clone() { + return new ChessRoguePickAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRoguePickAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRoguePickAvatarCsReq(), data).checkInitialized(); + } + + public static ChessRoguePickAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRoguePickAvatarCsReq(), input).checkInitialized(); + } + + public static ChessRoguePickAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRoguePickAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRoguePickAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRoguePickAvatarCsReqFactory.INSTANCE; + } + + private enum ChessRoguePickAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRoguePickAvatarCsReq create() { + return ChessRoguePickAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRoguePickAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRoguePickAvatarScRspOuterClass.java new file mode 100644 index 000000000..486850b36 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRoguePickAvatarScRspOuterClass.java @@ -0,0 +1,484 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRoguePickAvatarScRspOuterClass { + /** + * Protobuf type {@code ChessRoguePickAvatarScRsp} + */ + public static final class ChessRoguePickAvatarScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional .ChessRogueLineupInfo rogue_lineup_info = 4; + */ + private final ChessRogueLineupInfoOuterClass.ChessRogueLineupInfo rogueLineupInfo = ChessRogueLineupInfoOuterClass.ChessRogueLineupInfo.newInstance(); + + /** + * repeated uint32 base_avatar_id_list = 12; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ChessRoguePickAvatarScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRoguePickAvatarScRsp} + */ + public static ChessRoguePickAvatarScRsp newInstance() { + return new ChessRoguePickAvatarScRsp(); + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public ChessRoguePickAvatarScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public ChessRoguePickAvatarScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueLineupInfo rogue_lineup_info = 4; + * @return whether the rogueLineupInfo field is set + */ + public boolean hasRogueLineupInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueLineupInfo rogue_lineup_info = 4; + * @return this + */ + public ChessRoguePickAvatarScRsp clearRogueLineupInfo() { + bitField0_ &= ~0x00000002; + rogueLineupInfo.clear(); + return this; + } + + /** + * optional .ChessRogueLineupInfo rogue_lineup_info = 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 #getMutableRogueLineupInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueLineupInfoOuterClass.ChessRogueLineupInfo getRogueLineupInfo() { + return rogueLineupInfo; + } + + /** + * optional .ChessRogueLineupInfo rogue_lineup_info = 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 ChessRogueLineupInfoOuterClass.ChessRogueLineupInfo getMutableRogueLineupInfo() { + bitField0_ |= 0x00000002; + return rogueLineupInfo; + } + + /** + * optional .ChessRogueLineupInfo rogue_lineup_info = 4; + * @param value the rogueLineupInfo to set + * @return this + */ + public ChessRoguePickAvatarScRsp setRogueLineupInfo( + final ChessRogueLineupInfoOuterClass.ChessRogueLineupInfo value) { + bitField0_ |= 0x00000002; + rogueLineupInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 12; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 12; + * @return this + */ + public ChessRoguePickAvatarScRsp clearBaseAvatarIdList() { + bitField0_ &= ~0x00000004; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 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 RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000004; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 12; + * @param value the baseAvatarIdList to add + * @return this + */ + public ChessRoguePickAvatarScRsp addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000004; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 12; + * @param values the baseAvatarIdList to add + * @return this + */ + public ChessRoguePickAvatarScRsp addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000004; + baseAvatarIdList.addAll(values); + return this; + } + + @Override + public ChessRoguePickAvatarScRsp copyFrom(final ChessRoguePickAvatarScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + rogueLineupInfo.copyFrom(other.rogueLineupInfo); + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRoguePickAvatarScRsp mergeFrom(final ChessRoguePickAvatarScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRogueLineupInfo()) { + getMutableRogueLineupInfo().mergeFrom(other.rogueLineupInfo); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRoguePickAvatarScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + rogueLineupInfo.clear(); + baseAvatarIdList.clear(); + return this; + } + + @Override + public ChessRoguePickAvatarScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueLineupInfo.clearQuick(); + baseAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRoguePickAvatarScRsp)) { + return false; + } + ChessRoguePickAvatarScRsp other = (ChessRoguePickAvatarScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRogueLineupInfo() || rogueLineupInfo.equals(other.rogueLineupInfo)) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rogueLineupInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueLineupInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRoguePickAvatarScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // rogueLineupInfo + input.readMessage(rogueLineupInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 96: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueLineupInfo, rogueLineupInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + output.endObject(); + } + + @Override + public ChessRoguePickAvatarScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -781427625: + case -1245441415: { + if (input.isAtField(FieldNames.rogueLineupInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueLineupInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRoguePickAvatarScRsp clone() { + return new ChessRoguePickAvatarScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRoguePickAvatarScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRoguePickAvatarScRsp(), data).checkInitialized(); + } + + public static ChessRoguePickAvatarScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRoguePickAvatarScRsp(), input).checkInitialized(); + } + + public static ChessRoguePickAvatarScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRoguePickAvatarScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRoguePickAvatarScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRoguePickAvatarScRspFactory.INSTANCE; + } + + private enum ChessRoguePickAvatarScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRoguePickAvatarScRsp create() { + return ChessRoguePickAvatarScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rogueLineupInfo = FieldName.forField("rogueLineupInfo", "rogue_lineup_info"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRoguePlayerInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRoguePlayerInfoOuterClass.java new file mode 100644 index 000000000..b2b80855b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRoguePlayerInfoOuterClass.java @@ -0,0 +1,381 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRoguePlayerInfoOuterClass { + /** + * Protobuf type {@code ChessRoguePlayerInfo} + */ + public static final class ChessRoguePlayerInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SceneInfo scene = 14; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + + /** + * optional .LineupInfo lineup = 15; + */ + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + private ChessRoguePlayerInfo() { + } + + /** + * @return a new empty instance of {@code ChessRoguePlayerInfo} + */ + public static ChessRoguePlayerInfo newInstance() { + return new ChessRoguePlayerInfo(); + } + + /** + * optional .SceneInfo scene = 14; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SceneInfo scene = 14; + * @return this + */ + public ChessRoguePlayerInfo clearScene() { + bitField0_ &= ~0x00000001; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 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 #getMutableScene()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneInfoOuterClass.SceneInfo getScene() { + return scene; + } + + /** + * optional .SceneInfo scene = 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 SceneInfoOuterClass.SceneInfo getMutableScene() { + bitField0_ |= 0x00000001; + return scene; + } + + /** + * optional .SceneInfo scene = 14; + * @param value the scene to set + * @return this + */ + public ChessRoguePlayerInfo setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000001; + scene.copyFrom(value); + return this; + } + + /** + * optional .LineupInfo lineup = 15; + * @return whether the lineup field is set + */ + public boolean hasLineup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .LineupInfo lineup = 15; + * @return this + */ + public ChessRoguePlayerInfo clearLineup() { + bitField0_ &= ~0x00000002; + lineup.clear(); + return this; + } + + /** + * optional .LineupInfo lineup = 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 #getMutableLineup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LineupInfoOuterClass.LineupInfo getLineup() { + return lineup; + } + + /** + * optional .LineupInfo lineup = 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 LineupInfoOuterClass.LineupInfo getMutableLineup() { + bitField0_ |= 0x00000002; + return lineup; + } + + /** + * optional .LineupInfo lineup = 15; + * @param value the lineup to set + * @return this + */ + public ChessRoguePlayerInfo setLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000002; + lineup.copyFrom(value); + return this; + } + + @Override + public ChessRoguePlayerInfo copyFrom(final ChessRoguePlayerInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + scene.copyFrom(other.scene); + lineup.copyFrom(other.lineup); + } + return this; + } + + @Override + public ChessRoguePlayerInfo mergeFrom(final ChessRoguePlayerInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } + if (other.hasLineup()) { + getMutableLineup().mergeFrom(other.lineup); + } + return this; + } + + @Override + public ChessRoguePlayerInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scene.clear(); + lineup.clear(); + return this; + } + + @Override + public ChessRoguePlayerInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scene.clearQuick(); + lineup.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRoguePlayerInfo)) { + return false; + } + ChessRoguePlayerInfo other = (ChessRoguePlayerInfo) o; + return bitField0_ == other.bitField0_ + && (!hasScene() || scene.equals(other.scene)) + && (!hasLineup() || lineup.equals(other.lineup)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(scene); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(lineup); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRoguePlayerInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 114: { + // scene + input.readMessage(scene); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // lineup + input.readMessage(lineup); + 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.scene, scene); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.lineup, lineup); + } + output.endObject(); + } + + @Override + public ChessRoguePlayerInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109254796: { + if (input.isAtField(FieldNames.scene)) { + if (!input.trySkipNullValue()) { + input.readMessage(scene); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1102671473: { + if (input.isAtField(FieldNames.lineup)) { + if (!input.trySkipNullValue()) { + input.readMessage(lineup); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRoguePlayerInfo clone() { + return new ChessRoguePlayerInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRoguePlayerInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRoguePlayerInfo(), data).checkInitialized(); + } + + public static ChessRoguePlayerInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRoguePlayerInfo(), input).checkInitialized(); + } + + public static ChessRoguePlayerInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRoguePlayerInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRoguePlayerInfo messages + */ + public static MessageFactory getFactory() { + return ChessRoguePlayerInfoFactory.INSTANCE; + } + + private enum ChessRoguePlayerInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRoguePlayerInfo create() { + return ChessRoguePlayerInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName scene = FieldName.forField("scene"); + + static final FieldName lineup = FieldName.forField("lineup"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonDimensionsCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonDimensionsCsReqOuterClass.java new file mode 100644 index 000000000..6fe4c1ef9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonDimensionsCsReqOuterClass.java @@ -0,0 +1,179 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueQueryAeonDimensionsCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueQueryAeonDimensionsCsReq} + */ + public static final class ChessRogueQueryAeonDimensionsCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueQueryAeonDimensionsCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryAeonDimensionsCsReq} + */ + public static ChessRogueQueryAeonDimensionsCsReq newInstance() { + return new ChessRogueQueryAeonDimensionsCsReq(); + } + + @Override + public ChessRogueQueryAeonDimensionsCsReq copyFrom( + final ChessRogueQueryAeonDimensionsCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsCsReq mergeFrom( + final ChessRogueQueryAeonDimensionsCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryAeonDimensionsCsReq)) { + return false; + } + ChessRogueQueryAeonDimensionsCsReq other = (ChessRogueQueryAeonDimensionsCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryAeonDimensionsCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueQueryAeonDimensionsCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsCsReq clone() { + return new ChessRogueQueryAeonDimensionsCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryAeonDimensionsCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonDimensionsCsReq(), data).checkInitialized(); + } + + public static ChessRogueQueryAeonDimensionsCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonDimensionsCsReq(), input).checkInitialized(); + } + + public static ChessRogueQueryAeonDimensionsCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonDimensionsCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryAeonDimensionsCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryAeonDimensionsCsReqFactory.INSTANCE; + } + + private enum ChessRogueQueryAeonDimensionsCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryAeonDimensionsCsReq create() { + return ChessRogueQueryAeonDimensionsCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonDimensionsScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonDimensionsScRspOuterClass.java new file mode 100644 index 000000000..f225ffca7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonDimensionsScRspOuterClass.java @@ -0,0 +1,366 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueQueryAeonDimensionsScRspOuterClass { + /** + * Protobuf type {@code ChessRogueQueryAeonDimensionsScRsp} + */ + public static final class ChessRogueQueryAeonDimensionsScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + * optional .ChessRogueQueryAeonInfo info = 4; + */ + private final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo info = ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo.newInstance(); + + private ChessRogueQueryAeonDimensionsScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryAeonDimensionsScRsp} + */ + public static ChessRogueQueryAeonDimensionsScRsp newInstance() { + return new ChessRogueQueryAeonDimensionsScRsp(); + } + + /** + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 13; + * @return this + */ + public ChessRogueQueryAeonDimensionsScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public ChessRogueQueryAeonDimensionsScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo info = 4; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueQueryAeonInfo info = 4; + * @return this + */ + public ChessRogueQueryAeonDimensionsScRsp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getInfo() { + return info; + } + + /** + * optional .ChessRogueQueryAeonInfo info = 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 ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .ChessRogueQueryAeonInfo info = 4; + * @param value the info to set + * @return this + */ + public ChessRogueQueryAeonDimensionsScRsp setInfo( + final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo value) { + bitField0_ |= 0x00000002; + info.copyFrom(value); + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsScRsp copyFrom( + final ChessRogueQueryAeonDimensionsScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + info.copyFrom(other.info); + } + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsScRsp mergeFrom( + final ChessRogueQueryAeonDimensionsScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + info.clear(); + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryAeonDimensionsScRsp)) { + return false; + } + ChessRogueQueryAeonDimensionsScRsp other = (ChessRogueQueryAeonDimensionsScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasInfo() || info.equals(other.info)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(info); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryAeonDimensionsScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // info + input.readMessage(info); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + output.endObject(); + } + + @Override + public ChessRogueQueryAeonDimensionsScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryAeonDimensionsScRsp clone() { + return new ChessRogueQueryAeonDimensionsScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryAeonDimensionsScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonDimensionsScRsp(), data).checkInitialized(); + } + + public static ChessRogueQueryAeonDimensionsScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonDimensionsScRsp(), input).checkInitialized(); + } + + public static ChessRogueQueryAeonDimensionsScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonDimensionsScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryAeonDimensionsScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryAeonDimensionsScRspFactory.INSTANCE; + } + + private enum ChessRogueQueryAeonDimensionsScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryAeonDimensionsScRsp create() { + return ChessRogueQueryAeonDimensionsScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName info = FieldName.forField("info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonInfoOuterClass.java new file mode 100644 index 000000000..9deb85605 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonInfoOuterClass.java @@ -0,0 +1,296 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueQueryAeonInfoOuterClass { + /** + * Protobuf type {@code ChessRogueQueryAeonInfo} + */ + public static final class ChessRogueQueryAeonInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .ChessRogueQueryAeon aeon_list = 1; + */ + private final RepeatedMessage aeonList = RepeatedMessage.newEmptyInstance(ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon.getFactory()); + + private ChessRogueQueryAeonInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryAeonInfo} + */ + public static ChessRogueQueryAeonInfo newInstance() { + return new ChessRogueQueryAeonInfo(); + } + + /** + * repeated .ChessRogueQueryAeon aeon_list = 1; + * @return whether the aeonList field is set + */ + public boolean hasAeonList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .ChessRogueQueryAeon aeon_list = 1; + * @return this + */ + public ChessRogueQueryAeonInfo clearAeonList() { + bitField0_ &= ~0x00000001; + aeonList.clear(); + return this; + } + + /** + * repeated .ChessRogueQueryAeon aeon_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 #getMutableAeonList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAeonList() { + return aeonList; + } + + /** + * repeated .ChessRogueQueryAeon aeon_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 getMutableAeonList() { + bitField0_ |= 0x00000001; + return aeonList; + } + + /** + * repeated .ChessRogueQueryAeon aeon_list = 1; + * @param value the aeonList to add + * @return this + */ + public ChessRogueQueryAeonInfo addAeonList( + final ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon value) { + bitField0_ |= 0x00000001; + aeonList.add(value); + return this; + } + + /** + * repeated .ChessRogueQueryAeon aeon_list = 1; + * @param values the aeonList to add + * @return this + */ + public ChessRogueQueryAeonInfo addAllAeonList( + final ChessRogueQueryAeonOuterClass.ChessRogueQueryAeon... values) { + bitField0_ |= 0x00000001; + aeonList.addAll(values); + return this; + } + + @Override + public ChessRogueQueryAeonInfo copyFrom(final ChessRogueQueryAeonInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aeonList.copyFrom(other.aeonList); + } + return this; + } + + @Override + public ChessRogueQueryAeonInfo mergeFrom(final ChessRogueQueryAeonInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAeonList()) { + getMutableAeonList().addAll(other.aeonList); + } + return this; + } + + @Override + public ChessRogueQueryAeonInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonList.clear(); + return this; + } + + @Override + public ChessRogueQueryAeonInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryAeonInfo)) { + return false; + } + ChessRogueQueryAeonInfo other = (ChessRogueQueryAeonInfo) o; + return bitField0_ == other.bitField0_ + && (!hasAeonList() || aeonList.equals(other.aeonList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < aeonList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(aeonList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * aeonList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(aeonList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryAeonInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // aeonList + tag = input.readRepeatedMessage(aeonList, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.aeonList, aeonList); + } + output.endObject(); + } + + @Override + public ChessRogueQueryAeonInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -20739007: + case -625282470: { + if (input.isAtField(FieldNames.aeonList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(aeonList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryAeonInfo clone() { + return new ChessRogueQueryAeonInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryAeonInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonInfo(), data).checkInitialized(); + } + + public static ChessRogueQueryAeonInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonInfo(), input).checkInitialized(); + } + + public static ChessRogueQueryAeonInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeonInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryAeonInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryAeonInfoFactory.INSTANCE; + } + + private enum ChessRogueQueryAeonInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryAeonInfo create() { + return ChessRogueQueryAeonInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aeonList = FieldName.forField("aeonList", "aeon_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonOuterClass.java new file mode 100644 index 000000000..5d73d1aaa --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryAeonOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueQueryAeonOuterClass { + /** + * Protobuf type {@code ChessRogueQueryAeon} + */ + public static final class ChessRogueQueryAeon extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 aeon_id = 2; + */ + private int aeonId; + + /** + * optional uint32 OKGJGNDJIDE = 10; + */ + private int oKGJGNDJIDE; + + private ChessRogueQueryAeon() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryAeon} + */ + public static ChessRogueQueryAeon newInstance() { + return new ChessRogueQueryAeon(); + } + + /** + * optional uint32 aeon_id = 2; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 aeon_id = 2; + * @return this + */ + public ChessRogueQueryAeon clearAeonId() { + bitField0_ &= ~0x00000001; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 2; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 2; + * @param value the aeonId to set + * @return this + */ + public ChessRogueQueryAeon setAeonId(final int value) { + bitField0_ |= 0x00000001; + aeonId = value; + return this; + } + + /** + * optional uint32 OKGJGNDJIDE = 10; + * @return whether the oKGJGNDJIDE field is set + */ + public boolean hasOKGJGNDJIDE() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 OKGJGNDJIDE = 10; + * @return this + */ + public ChessRogueQueryAeon clearOKGJGNDJIDE() { + bitField0_ &= ~0x00000002; + oKGJGNDJIDE = 0; + return this; + } + + /** + * optional uint32 OKGJGNDJIDE = 10; + * @return the oKGJGNDJIDE + */ + public int getOKGJGNDJIDE() { + return oKGJGNDJIDE; + } + + /** + * optional uint32 OKGJGNDJIDE = 10; + * @param value the oKGJGNDJIDE to set + * @return this + */ + public ChessRogueQueryAeon setOKGJGNDJIDE(final int value) { + bitField0_ |= 0x00000002; + oKGJGNDJIDE = value; + return this; + } + + @Override + public ChessRogueQueryAeon copyFrom(final ChessRogueQueryAeon other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aeonId = other.aeonId; + oKGJGNDJIDE = other.oKGJGNDJIDE; + } + return this; + } + + @Override + public ChessRogueQueryAeon mergeFrom(final ChessRogueQueryAeon other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + if (other.hasOKGJGNDJIDE()) { + setOKGJGNDJIDE(other.oKGJGNDJIDE); + } + return this; + } + + @Override + public ChessRogueQueryAeon clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonId = 0; + oKGJGNDJIDE = 0; + return this; + } + + @Override + public ChessRogueQueryAeon clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryAeon)) { + return false; + } + ChessRogueQueryAeon other = (ChessRogueQueryAeon) o; + return bitField0_ == other.bitField0_ + && (!hasAeonId() || aeonId == other.aeonId) + && (!hasOKGJGNDJIDE() || oKGJGNDJIDE == other.oKGJGNDJIDE); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(oKGJGNDJIDE); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oKGJGNDJIDE); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryAeon mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // aeonId + aeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // oKGJGNDJIDE + oKGJGNDJIDE = input.readUInt32(); + 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.aeonId, aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oKGJGNDJIDE, oKGJGNDJIDE); + } + output.endObject(); + } + + @Override + public ChessRogueQueryAeon mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { + if (!input.trySkipNullValue()) { + aeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -553747682: { + if (input.isAtField(FieldNames.oKGJGNDJIDE)) { + if (!input.trySkipNullValue()) { + oKGJGNDJIDE = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryAeon clone() { + return new ChessRogueQueryAeon().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryAeon parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeon(), data).checkInitialized(); + } + + public static ChessRogueQueryAeon parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeon(), input).checkInitialized(); + } + + public static ChessRogueQueryAeon parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryAeon(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryAeon messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryAeonFactory.INSTANCE; + } + + private enum ChessRogueQueryAeonFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryAeon create() { + return ChessRogueQueryAeon.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); + + static final FieldName oKGJGNDJIDE = FieldName.forField("OKGJGNDJIDE"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryBpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryBpCsReqOuterClass.java new file mode 100644 index 000000000..3e76f9dc8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryBpCsReqOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueQueryBpCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueQueryBpCsReq} + */ + public static final class ChessRogueQueryBpCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueQueryBpCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryBpCsReq} + */ + public static ChessRogueQueryBpCsReq newInstance() { + return new ChessRogueQueryBpCsReq(); + } + + @Override + public ChessRogueQueryBpCsReq copyFrom(final ChessRogueQueryBpCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueQueryBpCsReq mergeFrom(final ChessRogueQueryBpCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQueryBpCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQueryBpCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryBpCsReq)) { + return false; + } + ChessRogueQueryBpCsReq other = (ChessRogueQueryBpCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryBpCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueQueryBpCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryBpCsReq clone() { + return new ChessRogueQueryBpCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryBpCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryBpCsReq(), data).checkInitialized(); + } + + public static ChessRogueQueryBpCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryBpCsReq(), input).checkInitialized(); + } + + public static ChessRogueQueryBpCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryBpCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryBpCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryBpCsReqFactory.INSTANCE; + } + + private enum ChessRogueQueryBpCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryBpCsReq create() { + return ChessRogueQueryBpCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryBpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryBpScRspOuterClass.java new file mode 100644 index 000000000..fbf7d6f86 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryBpScRspOuterClass.java @@ -0,0 +1,360 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueQueryBpScRspOuterClass { + /** + * Protobuf type {@code ChessRogueQueryBpScRsp} + */ + public static final class ChessRogueQueryBpScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 11; + */ + private int retcode; + + /** + * optional .FPENCNJJCHP info = 14; + */ + private final FPENCNJJCHPOuterClass.FPENCNJJCHP info = FPENCNJJCHPOuterClass.FPENCNJJCHP.newInstance(); + + private ChessRogueQueryBpScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryBpScRsp} + */ + public static ChessRogueQueryBpScRsp newInstance() { + return new ChessRogueQueryBpScRsp(); + } + + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public ChessRogueQueryBpScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public ChessRogueQueryBpScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .FPENCNJJCHP info = 14; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .FPENCNJJCHP info = 14; + * @return this + */ + public ChessRogueQueryBpScRsp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .FPENCNJJCHP info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FPENCNJJCHPOuterClass.FPENCNJJCHP getInfo() { + return info; + } + + /** + * optional .FPENCNJJCHP info = 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 FPENCNJJCHPOuterClass.FPENCNJJCHP getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .FPENCNJJCHP info = 14; + * @param value the info to set + * @return this + */ + public ChessRogueQueryBpScRsp setInfo(final FPENCNJJCHPOuterClass.FPENCNJJCHP value) { + bitField0_ |= 0x00000002; + info.copyFrom(value); + return this; + } + + @Override + public ChessRogueQueryBpScRsp copyFrom(final ChessRogueQueryBpScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + info.copyFrom(other.info); + } + return this; + } + + @Override + public ChessRogueQueryBpScRsp mergeFrom(final ChessRogueQueryBpScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + return this; + } + + @Override + public ChessRogueQueryBpScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + info.clear(); + return this; + } + + @Override + public ChessRogueQueryBpScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryBpScRsp)) { + return false; + } + ChessRogueQueryBpScRsp other = (ChessRogueQueryBpScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasInfo() || info.equals(other.info)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(info); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryBpScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // info + input.readMessage(info); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + output.endObject(); + } + + @Override + public ChessRogueQueryBpScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryBpScRsp clone() { + return new ChessRogueQueryBpScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryBpScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryBpScRsp(), data).checkInitialized(); + } + + public static ChessRogueQueryBpScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryBpScRsp(), input).checkInitialized(); + } + + public static ChessRogueQueryBpScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryBpScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryBpScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryBpScRspFactory.INSTANCE; + } + + private enum ChessRogueQueryBpScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryBpScRsp create() { + return ChessRogueQueryBpScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName info = FieldName.forField("info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryCsReqOuterClass.java new file mode 100644 index 000000000..3031ced1c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryCsReqOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueQueryCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueQueryCsReq} + */ + public static final class ChessRogueQueryCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueQueryCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryCsReq} + */ + public static ChessRogueQueryCsReq newInstance() { + return new ChessRogueQueryCsReq(); + } + + @Override + public ChessRogueQueryCsReq copyFrom(final ChessRogueQueryCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueQueryCsReq mergeFrom(final ChessRogueQueryCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQueryCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQueryCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryCsReq)) { + return false; + } + ChessRogueQueryCsReq other = (ChessRogueQueryCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueQueryCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryCsReq clone() { + return new ChessRogueQueryCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryCsReq(), data).checkInitialized(); + } + + public static ChessRogueQueryCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryCsReq(), input).checkInitialized(); + } + + public static ChessRogueQueryCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryCsReqFactory.INSTANCE; + } + + private enum ChessRogueQueryCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryCsReq create() { + return ChessRogueQueryCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryDiceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryDiceInfoOuterClass.java new file mode 100644 index 000000000..a629c67b4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryDiceInfoOuterClass.java @@ -0,0 +1,971 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ChessRogueQueryDiceInfoOuterClass { + /** + * Protobuf type {@code ChessRogueQueryDiceInfo} + */ + public static final class ChessRogueQueryDiceInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueNousDicePhase dice_phase = 7; + */ + private int dicePhase; + + /** + * repeated uint32 surface_id_list = 5; + */ + private final RepeatedInt surfaceIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 9; + */ + private final RepeatedMessage mLKDHOECNFL = RepeatedMessage.newEmptyInstance(MLKDHOECNFLEntry.getFactory()); + + /** + * repeated .ChessRogueDice dice_list = 15; + */ + private final RepeatedMessage diceList = RepeatedMessage.newEmptyInstance(ChessRogueDiceOuterClass.ChessRogueDice.getFactory()); + + private ChessRogueQueryDiceInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryDiceInfo} + */ + public static ChessRogueQueryDiceInfo newInstance() { + return new ChessRogueQueryDiceInfo(); + } + + /** + * optional .ChessRogueNousDicePhase dice_phase = 7; + * @return whether the dicePhase field is set + */ + public boolean hasDicePhase() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueNousDicePhase dice_phase = 7; + * @return this + */ + public ChessRogueQueryDiceInfo clearDicePhase() { + bitField0_ &= ~0x00000001; + dicePhase = 0; + return this; + } + + /** + * optional .ChessRogueNousDicePhase dice_phase = 7; + * @return the dicePhase + */ + public ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase getDicePhase() { + return ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase.forNumber(dicePhase); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueQueryDiceInfo#getDicePhase()}.getNumber(). + * + * @return numeric wire representation + */ + public int getDicePhaseValue() { + return dicePhase; + } + + /** + * 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 ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase}. Setting an invalid value + * can cause {@link ChessRogueQueryDiceInfo#getDicePhase()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueQueryDiceInfo setDicePhaseValue(final int value) { + bitField0_ |= 0x00000001; + dicePhase = value; + return this; + } + + /** + * optional .ChessRogueNousDicePhase dice_phase = 7; + * @param value the dicePhase to set + * @return this + */ + public ChessRogueQueryDiceInfo setDicePhase( + final ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase value) { + bitField0_ |= 0x00000001; + dicePhase = value.getNumber(); + return this; + } + + /** + * repeated uint32 surface_id_list = 5; + * @return whether the surfaceIdList field is set + */ + public boolean hasSurfaceIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 surface_id_list = 5; + * @return this + */ + public ChessRogueQueryDiceInfo clearSurfaceIdList() { + bitField0_ &= ~0x00000002; + surfaceIdList.clear(); + return this; + } + + /** + * repeated uint32 surface_id_list = 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 #getMutableSurfaceIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSurfaceIdList() { + return surfaceIdList; + } + + /** + * repeated uint32 surface_id_list = 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 getMutableSurfaceIdList() { + bitField0_ |= 0x00000002; + return surfaceIdList; + } + + /** + * repeated uint32 surface_id_list = 5; + * @param value the surfaceIdList to add + * @return this + */ + public ChessRogueQueryDiceInfo addSurfaceIdList(final int value) { + bitField0_ |= 0x00000002; + surfaceIdList.add(value); + return this; + } + + /** + * repeated uint32 surface_id_list = 5; + * @param values the surfaceIdList to add + * @return this + */ + public ChessRogueQueryDiceInfo addAllSurfaceIdList(final int... values) { + bitField0_ |= 0x00000002; + surfaceIdList.addAll(values); + return this; + } + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 9; + * @return whether the mLKDHOECNFL field is set + */ + public boolean hasMLKDHOECNFL() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 9; + * @return this + */ + public ChessRogueQueryDiceInfo clearMLKDHOECNFL() { + bitField0_ &= ~0x00000004; + mLKDHOECNFL.clear(); + return this; + } + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 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 #getMutableMLKDHOECNFL()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMLKDHOECNFL() { + return mLKDHOECNFL; + } + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 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 RepeatedMessage getMutableMLKDHOECNFL() { + bitField0_ |= 0x00000004; + return mLKDHOECNFL; + } + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 9; + * @param value the mLKDHOECNFL to add + * @return this + */ + public ChessRogueQueryDiceInfo addMLKDHOECNFL(final MLKDHOECNFLEntry value) { + bitField0_ |= 0x00000004; + mLKDHOECNFL.add(value); + return this; + } + + /** + * repeated .ChessRogueQueryDiceInfo.MLKDHOECNFLEntry MLKDHOECNFL = 9; + * @param values the mLKDHOECNFL to add + * @return this + */ + public ChessRogueQueryDiceInfo addAllMLKDHOECNFL(final MLKDHOECNFLEntry... values) { + bitField0_ |= 0x00000004; + mLKDHOECNFL.addAll(values); + return this; + } + + /** + * repeated .ChessRogueDice dice_list = 15; + * @return whether the diceList field is set + */ + public boolean hasDiceList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .ChessRogueDice dice_list = 15; + * @return this + */ + public ChessRogueQueryDiceInfo clearDiceList() { + bitField0_ &= ~0x00000008; + diceList.clear(); + return this; + } + + /** + * repeated .ChessRogueDice dice_list = 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 #getMutableDiceList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDiceList() { + return diceList; + } + + /** + * repeated .ChessRogueDice dice_list = 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 getMutableDiceList() { + bitField0_ |= 0x00000008; + return diceList; + } + + /** + * repeated .ChessRogueDice dice_list = 15; + * @param value the diceList to add + * @return this + */ + public ChessRogueQueryDiceInfo addDiceList( + final ChessRogueDiceOuterClass.ChessRogueDice value) { + bitField0_ |= 0x00000008; + diceList.add(value); + return this; + } + + /** + * repeated .ChessRogueDice dice_list = 15; + * @param values the diceList to add + * @return this + */ + public ChessRogueQueryDiceInfo addAllDiceList( + final ChessRogueDiceOuterClass.ChessRogueDice... values) { + bitField0_ |= 0x00000008; + diceList.addAll(values); + return this; + } + + @Override + public ChessRogueQueryDiceInfo copyFrom(final ChessRogueQueryDiceInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dicePhase = other.dicePhase; + surfaceIdList.copyFrom(other.surfaceIdList); + mLKDHOECNFL.copyFrom(other.mLKDHOECNFL); + diceList.copyFrom(other.diceList); + } + return this; + } + + @Override + public ChessRogueQueryDiceInfo mergeFrom(final ChessRogueQueryDiceInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDicePhase()) { + setDicePhaseValue(other.dicePhase); + } + if (other.hasSurfaceIdList()) { + getMutableSurfaceIdList().addAll(other.surfaceIdList); + } + if (other.hasMLKDHOECNFL()) { + getMutableMLKDHOECNFL().addAll(other.mLKDHOECNFL); + } + if (other.hasDiceList()) { + getMutableDiceList().addAll(other.diceList); + } + return this; + } + + @Override + public ChessRogueQueryDiceInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dicePhase = 0; + surfaceIdList.clear(); + mLKDHOECNFL.clear(); + diceList.clear(); + return this; + } + + @Override + public ChessRogueQueryDiceInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + surfaceIdList.clear(); + mLKDHOECNFL.clearQuick(); + diceList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryDiceInfo)) { + return false; + } + ChessRogueQueryDiceInfo other = (ChessRogueQueryDiceInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDicePhase() || dicePhase == other.dicePhase) + && (!hasSurfaceIdList() || surfaceIdList.equals(other.surfaceIdList)) + && (!hasMLKDHOECNFL() || mLKDHOECNFL.equals(other.mLKDHOECNFL)) + && (!hasDiceList() || diceList.equals(other.diceList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeEnumNoTag(dicePhase); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < surfaceIdList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(surfaceIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < mLKDHOECNFL.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(mLKDHOECNFL.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < diceList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(diceList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(dicePhase); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * surfaceIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(surfaceIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * mLKDHOECNFL.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mLKDHOECNFL); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * diceList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(diceList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryDiceInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // dicePhase + final int value = input.readInt32(); + if (ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase.forNumber(value) != null) { + dicePhase = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // surfaceIdList [packed=true] + input.readPackedUInt32(surfaceIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // mLKDHOECNFL + tag = input.readRepeatedMessage(mLKDHOECNFL, tag); + bitField0_ |= 0x00000004; + if (tag != 122) { + break; + } + } + case 122: { + // diceList + tag = input.readRepeatedMessage(diceList, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // surfaceIdList [packed=false] + tag = input.readRepeatedUInt32(surfaceIdList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.dicePhase, dicePhase, ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.surfaceIdList, surfaceIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.mLKDHOECNFL, mLKDHOECNFL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.diceList, diceList); + } + output.endObject(); + } + + @Override + public ChessRogueQueryDiceInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1408156140: + case -266150173: { + if (input.isAtField(FieldNames.dicePhase)) { + if (!input.trySkipNullValue()) { + final ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase value = input.readEnum(ChessRogueNousDicePhaseOuterClass.ChessRogueNousDicePhase.converter()); + if (value != null) { + dicePhase = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 120983398: + case 808250288: { + if (input.isAtField(FieldNames.surfaceIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(surfaceIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1041283753: { + if (input.isAtField(FieldNames.mLKDHOECNFL)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mLKDHOECNFL); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -184089371: + case -1394176458: { + if (input.isAtField(FieldNames.diceList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(diceList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryDiceInfo clone() { + return new ChessRogueQueryDiceInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryDiceInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryDiceInfo(), data).checkInitialized(); + } + + public static ChessRogueQueryDiceInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryDiceInfo(), input).checkInitialized(); + } + + public static ChessRogueQueryDiceInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryDiceInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryDiceInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryDiceInfoFactory.INSTANCE; + } + + /** + * Protobuf type {@code MLKDHOECNFLEntry} + */ + public static final class MLKDHOECNFLEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional bool value = 2; + */ + private boolean value_; + + private MLKDHOECNFLEntry() { + } + + /** + * @return a new empty instance of {@code MLKDHOECNFLEntry} + */ + public static MLKDHOECNFLEntry newInstance() { + return new MLKDHOECNFLEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public MLKDHOECNFLEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public MLKDHOECNFLEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional bool value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool value = 2; + * @return this + */ + public MLKDHOECNFLEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = false; + return this; + } + + /** + * optional bool value = 2; + * @return the value_ + */ + public boolean getValue() { + return value_; + } + + /** + * optional bool value = 2; + * @param value the value_ to set + * @return this + */ + public MLKDHOECNFLEntry setValue(final boolean value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public MLKDHOECNFLEntry copyFrom(final MLKDHOECNFLEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public MLKDHOECNFLEntry mergeFrom(final MLKDHOECNFLEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public MLKDHOECNFLEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = false; + return this; + } + + @Override + public MLKDHOECNFLEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MLKDHOECNFLEntry)) { + return false; + } + MLKDHOECNFLEntry other = (MLKDHOECNFLEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MLKDHOECNFLEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readBool(); + 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.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public MLKDHOECNFLEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MLKDHOECNFLEntry clone() { + return new MLKDHOECNFLEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MLKDHOECNFLEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MLKDHOECNFLEntry(), data).checkInitialized(); + } + + public static MLKDHOECNFLEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MLKDHOECNFLEntry(), input).checkInitialized(); + } + + public static MLKDHOECNFLEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MLKDHOECNFLEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating MLKDHOECNFLEntry messages + */ + public static MessageFactory getFactory() { + return MLKDHOECNFLEntryFactory.INSTANCE; + } + + private enum MLKDHOECNFLEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public MLKDHOECNFLEntry create() { + return MLKDHOECNFLEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + + private enum ChessRogueQueryDiceInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryDiceInfo create() { + return ChessRogueQueryDiceInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dicePhase = FieldName.forField("dicePhase", "dice_phase"); + + static final FieldName surfaceIdList = FieldName.forField("surfaceIdList", "surface_id_list"); + + static final FieldName mLKDHOECNFL = FieldName.forField("MLKDHOECNFL"); + + static final FieldName diceList = FieldName.forField("diceList", "dice_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryDiffcultyInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryDiffcultyInfoOuterClass.java new file mode 100644 index 000000000..5644d91d1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryDiffcultyInfoOuterClass.java @@ -0,0 +1,303 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueQueryDiffcultyInfoOuterClass { + /** + * Protobuf type {@code ChessRogueQueryDiffcultyInfo} + */ + public static final class ChessRogueQueryDiffcultyInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 query_difficulty_id_list = 14; + */ + private final RepeatedInt queryDifficultyIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueQueryDiffcultyInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryDiffcultyInfo} + */ + public static ChessRogueQueryDiffcultyInfo newInstance() { + return new ChessRogueQueryDiffcultyInfo(); + } + + /** + * repeated uint32 query_difficulty_id_list = 14; + * @return whether the queryDifficultyIdList field is set + */ + public boolean hasQueryDifficultyIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 query_difficulty_id_list = 14; + * @return this + */ + public ChessRogueQueryDiffcultyInfo clearQueryDifficultyIdList() { + bitField0_ &= ~0x00000001; + queryDifficultyIdList.clear(); + return this; + } + + /** + * repeated uint32 query_difficulty_id_list = 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 #getMutableQueryDifficultyIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getQueryDifficultyIdList() { + return queryDifficultyIdList; + } + + /** + * repeated uint32 query_difficulty_id_list = 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 RepeatedInt getMutableQueryDifficultyIdList() { + bitField0_ |= 0x00000001; + return queryDifficultyIdList; + } + + /** + * repeated uint32 query_difficulty_id_list = 14; + * @param value the queryDifficultyIdList to add + * @return this + */ + public ChessRogueQueryDiffcultyInfo addQueryDifficultyIdList(final int value) { + bitField0_ |= 0x00000001; + queryDifficultyIdList.add(value); + return this; + } + + /** + * repeated uint32 query_difficulty_id_list = 14; + * @param values the queryDifficultyIdList to add + * @return this + */ + public ChessRogueQueryDiffcultyInfo addAllQueryDifficultyIdList(final int... values) { + bitField0_ |= 0x00000001; + queryDifficultyIdList.addAll(values); + return this; + } + + @Override + public ChessRogueQueryDiffcultyInfo copyFrom(final ChessRogueQueryDiffcultyInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + queryDifficultyIdList.copyFrom(other.queryDifficultyIdList); + } + return this; + } + + @Override + public ChessRogueQueryDiffcultyInfo mergeFrom(final ChessRogueQueryDiffcultyInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQueryDifficultyIdList()) { + getMutableQueryDifficultyIdList().addAll(other.queryDifficultyIdList); + } + return this; + } + + @Override + public ChessRogueQueryDiffcultyInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + queryDifficultyIdList.clear(); + return this; + } + + @Override + public ChessRogueQueryDiffcultyInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + queryDifficultyIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryDiffcultyInfo)) { + return false; + } + ChessRogueQueryDiffcultyInfo other = (ChessRogueQueryDiffcultyInfo) o; + return bitField0_ == other.bitField0_ + && (!hasQueryDifficultyIdList() || queryDifficultyIdList.equals(other.queryDifficultyIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < queryDifficultyIdList.length(); i++) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(queryDifficultyIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * queryDifficultyIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(queryDifficultyIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryDiffcultyInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 114: { + // queryDifficultyIdList [packed=true] + input.readPackedUInt32(queryDifficultyIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 112: { + // queryDifficultyIdList [packed=false] + tag = input.readRepeatedUInt32(queryDifficultyIdList, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.queryDifficultyIdList, queryDifficultyIdList); + } + output.endObject(); + } + + @Override + public ChessRogueQueryDiffcultyInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1978407716: + case 405123477: { + if (input.isAtField(FieldNames.queryDifficultyIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(queryDifficultyIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryDiffcultyInfo clone() { + return new ChessRogueQueryDiffcultyInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryDiffcultyInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryDiffcultyInfo(), data).checkInitialized(); + } + + public static ChessRogueQueryDiffcultyInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryDiffcultyInfo(), input).checkInitialized(); + } + + public static ChessRogueQueryDiffcultyInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryDiffcultyInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryDiffcultyInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryDiffcultyInfoFactory.INSTANCE; + } + + private enum ChessRogueQueryDiffcultyInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryDiffcultyInfo create() { + return ChessRogueQueryDiffcultyInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName queryDifficultyIdList = FieldName.forField("queryDifficultyIdList", "query_difficulty_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryGameInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryGameInfoOuterClass.java new file mode 100644 index 000000000..fe8a67892 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryGameInfoOuterClass.java @@ -0,0 +1,377 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ChessRogueQueryGameInfoOuterClass { + /** + * Protobuf type {@code ChessRogueQueryGameInfo} + */ + public static final class ChessRogueQueryGameInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 rogue_sub_mode = 7; + */ + private int rogueSubMode; + + /** + * repeated .RogueGameInfo rogue_current_game_info = 12; + */ + private final RepeatedMessage rogueCurrentGameInfo = RepeatedMessage.newEmptyInstance(RogueGameInfoOuterClass.RogueGameInfo.getFactory()); + + private ChessRogueQueryGameInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryGameInfo} + */ + public static ChessRogueQueryGameInfo newInstance() { + return new ChessRogueQueryGameInfo(); + } + + /** + * optional uint32 rogue_sub_mode = 7; + * @return whether the rogueSubMode field is set + */ + public boolean hasRogueSubMode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 rogue_sub_mode = 7; + * @return this + */ + public ChessRogueQueryGameInfo clearRogueSubMode() { + bitField0_ &= ~0x00000001; + rogueSubMode = 0; + return this; + } + + /** + * optional uint32 rogue_sub_mode = 7; + * @return the rogueSubMode + */ + public int getRogueSubMode() { + return rogueSubMode; + } + + /** + * optional uint32 rogue_sub_mode = 7; + * @param value the rogueSubMode to set + * @return this + */ + public ChessRogueQueryGameInfo setRogueSubMode(final int value) { + bitField0_ |= 0x00000001; + rogueSubMode = value; + return this; + } + + /** + * repeated .RogueGameInfo rogue_current_game_info = 12; + * @return whether the rogueCurrentGameInfo field is set + */ + public boolean hasRogueCurrentGameInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .RogueGameInfo rogue_current_game_info = 12; + * @return this + */ + public ChessRogueQueryGameInfo clearRogueCurrentGameInfo() { + bitField0_ &= ~0x00000002; + rogueCurrentGameInfo.clear(); + return this; + } + + /** + * repeated .RogueGameInfo rogue_current_game_info = 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 #getMutableRogueCurrentGameInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueCurrentGameInfo() { + return rogueCurrentGameInfo; + } + + /** + * repeated .RogueGameInfo rogue_current_game_info = 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 RepeatedMessage getMutableRogueCurrentGameInfo() { + bitField0_ |= 0x00000002; + return rogueCurrentGameInfo; + } + + /** + * repeated .RogueGameInfo rogue_current_game_info = 12; + * @param value the rogueCurrentGameInfo to add + * @return this + */ + public ChessRogueQueryGameInfo addRogueCurrentGameInfo( + final RogueGameInfoOuterClass.RogueGameInfo value) { + bitField0_ |= 0x00000002; + rogueCurrentGameInfo.add(value); + return this; + } + + /** + * repeated .RogueGameInfo rogue_current_game_info = 12; + * @param values the rogueCurrentGameInfo to add + * @return this + */ + public ChessRogueQueryGameInfo addAllRogueCurrentGameInfo( + final RogueGameInfoOuterClass.RogueGameInfo... values) { + bitField0_ |= 0x00000002; + rogueCurrentGameInfo.addAll(values); + return this; + } + + @Override + public ChessRogueQueryGameInfo copyFrom(final ChessRogueQueryGameInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueSubMode = other.rogueSubMode; + rogueCurrentGameInfo.copyFrom(other.rogueCurrentGameInfo); + } + return this; + } + + @Override + public ChessRogueQueryGameInfo mergeFrom(final ChessRogueQueryGameInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueSubMode()) { + setRogueSubMode(other.rogueSubMode); + } + if (other.hasRogueCurrentGameInfo()) { + getMutableRogueCurrentGameInfo().addAll(other.rogueCurrentGameInfo); + } + return this; + } + + @Override + public ChessRogueQueryGameInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueSubMode = 0; + rogueCurrentGameInfo.clear(); + return this; + } + + @Override + public ChessRogueQueryGameInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueCurrentGameInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryGameInfo)) { + return false; + } + ChessRogueQueryGameInfo other = (ChessRogueQueryGameInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRogueSubMode() || rogueSubMode == other.rogueSubMode) + && (!hasRogueCurrentGameInfo() || rogueCurrentGameInfo.equals(other.rogueCurrentGameInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(rogueSubMode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < rogueCurrentGameInfo.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueCurrentGameInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueSubMode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * rogueCurrentGameInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueCurrentGameInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryGameInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // rogueSubMode + rogueSubMode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rogueCurrentGameInfo + tag = input.readRepeatedMessage(rogueCurrentGameInfo, 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.writeUInt32(FieldNames.rogueSubMode, rogueSubMode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.rogueCurrentGameInfo, rogueCurrentGameInfo); + } + output.endObject(); + } + + @Override + public ChessRogueQueryGameInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -121307959: + case 251315463: { + if (input.isAtField(FieldNames.rogueSubMode)) { + if (!input.trySkipNullValue()) { + rogueSubMode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 658439967: + case 122933872: { + if (input.isAtField(FieldNames.rogueCurrentGameInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rogueCurrentGameInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryGameInfo clone() { + return new ChessRogueQueryGameInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryGameInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryGameInfo(), data).checkInitialized(); + } + + public static ChessRogueQueryGameInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryGameInfo(), input).checkInitialized(); + } + + public static ChessRogueQueryGameInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryGameInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryGameInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryGameInfoFactory.INSTANCE; + } + + private enum ChessRogueQueryGameInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryGameInfo create() { + return ChessRogueQueryGameInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueSubMode = FieldName.forField("rogueSubMode", "rogue_sub_mode"); + + static final FieldName rogueCurrentGameInfo = FieldName.forField("rogueCurrentGameInfo", "rogue_current_game_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java new file mode 100644 index 000000000..3001df213 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryInfoOuterClass.java @@ -0,0 +1,939 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueQueryInfoOuterClass { + /** + * Protobuf type {@code ChessRogueQueryInfo} + */ + public static final class ChessRogueQueryInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 3; + */ + private final ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo rogueDifficultyInfo = ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo.newInstance(); + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 7; + */ + private final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo chessAeonInfo = ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo.newInstance(); + + /** + * optional .ChessRogueTalentInfo talent_info_list = 11; + */ + private final ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo talentInfoList = ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo.newInstance(); + + /** + * optional .NCLDKJHEPGM rogue_virtual_item_info = 12; + */ + private final NCLDKJHEPGMOuterClass.NCLDKJHEPGM rogueVirtualItemInfo = NCLDKJHEPGMOuterClass.NCLDKJHEPGM.newInstance(); + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 14; + */ + private final ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo queryDiceInfo = ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo.newInstance(); + + /** + * repeated uint32 explored_area_id_list = 1; + */ + private final RepeatedInt exploredAreaIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 area_id_list = 5; + */ + private final RepeatedInt areaIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueQueryInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryInfo} + */ + public static ChessRogueQueryInfo newInstance() { + return new ChessRogueQueryInfo(); + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 3; + * @return whether the rogueDifficultyInfo field is set + */ + public boolean hasRogueDifficultyInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 3; + * @return this + */ + public ChessRogueQueryInfo clearRogueDifficultyInfo() { + bitField0_ &= ~0x00000001; + rogueDifficultyInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 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 #getMutableRogueDifficultyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo getRogueDifficultyInfo( + ) { + return rogueDifficultyInfo; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 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 ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo getMutableRogueDifficultyInfo( + ) { + bitField0_ |= 0x00000001; + return rogueDifficultyInfo; + } + + /** + * optional .ChessRogueQueryDiffcultyInfo rogue_difficulty_info = 3; + * @param value the rogueDifficultyInfo to set + * @return this + */ + public ChessRogueQueryInfo setRogueDifficultyInfo( + final ChessRogueQueryDiffcultyInfoOuterClass.ChessRogueQueryDiffcultyInfo value) { + bitField0_ |= 0x00000001; + rogueDifficultyInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 7; + * @return whether the chessAeonInfo field is set + */ + public boolean hasChessAeonInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 7; + * @return this + */ + public ChessRogueQueryInfo clearChessAeonInfo() { + bitField0_ &= ~0x00000002; + chessAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 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 #getMutableChessAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getChessAeonInfo() { + return chessAeonInfo; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 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 ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo getMutableChessAeonInfo() { + bitField0_ |= 0x00000002; + return chessAeonInfo; + } + + /** + * optional .ChessRogueQueryAeonInfo chess_aeon_info = 7; + * @param value the chessAeonInfo to set + * @return this + */ + public ChessRogueQueryInfo setChessAeonInfo( + final ChessRogueQueryAeonInfoOuterClass.ChessRogueQueryAeonInfo value) { + bitField0_ |= 0x00000002; + chessAeonInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 11; + * @return whether the talentInfoList field is set + */ + public boolean hasTalentInfoList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 11; + * @return this + */ + public ChessRogueQueryInfo clearTalentInfoList() { + bitField0_ &= ~0x00000004; + talentInfoList.clear(); + return this; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 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 #getMutableTalentInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo getTalentInfoList() { + return talentInfoList; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 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 ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo getMutableTalentInfoList() { + bitField0_ |= 0x00000004; + return talentInfoList; + } + + /** + * optional .ChessRogueTalentInfo talent_info_list = 11; + * @param value the talentInfoList to set + * @return this + */ + public ChessRogueQueryInfo setTalentInfoList( + final ChessRogueTalentInfoOuterClass.ChessRogueTalentInfo value) { + bitField0_ |= 0x00000004; + talentInfoList.copyFrom(value); + return this; + } + + /** + * optional .NCLDKJHEPGM rogue_virtual_item_info = 12; + * @return whether the rogueVirtualItemInfo field is set + */ + public boolean hasRogueVirtualItemInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .NCLDKJHEPGM rogue_virtual_item_info = 12; + * @return this + */ + public ChessRogueQueryInfo clearRogueVirtualItemInfo() { + bitField0_ &= ~0x00000008; + rogueVirtualItemInfo.clear(); + return this; + } + + /** + * optional .NCLDKJHEPGM rogue_virtual_item_info = 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 #getMutableRogueVirtualItemInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public NCLDKJHEPGMOuterClass.NCLDKJHEPGM getRogueVirtualItemInfo() { + return rogueVirtualItemInfo; + } + + /** + * optional .NCLDKJHEPGM rogue_virtual_item_info = 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 NCLDKJHEPGMOuterClass.NCLDKJHEPGM getMutableRogueVirtualItemInfo() { + bitField0_ |= 0x00000008; + return rogueVirtualItemInfo; + } + + /** + * optional .NCLDKJHEPGM rogue_virtual_item_info = 12; + * @param value the rogueVirtualItemInfo to set + * @return this + */ + public ChessRogueQueryInfo setRogueVirtualItemInfo( + final NCLDKJHEPGMOuterClass.NCLDKJHEPGM value) { + bitField0_ |= 0x00000008; + rogueVirtualItemInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 14; + * @return whether the queryDiceInfo field is set + */ + public boolean hasQueryDiceInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 14; + * @return this + */ + public ChessRogueQueryInfo clearQueryDiceInfo() { + bitField0_ &= ~0x00000010; + queryDiceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 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 #getMutableQueryDiceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo getQueryDiceInfo() { + return queryDiceInfo; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 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 ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo getMutableQueryDiceInfo() { + bitField0_ |= 0x00000010; + return queryDiceInfo; + } + + /** + * optional .ChessRogueQueryDiceInfo query_dice_info = 14; + * @param value the queryDiceInfo to set + * @return this + */ + public ChessRogueQueryInfo setQueryDiceInfo( + final ChessRogueQueryDiceInfoOuterClass.ChessRogueQueryDiceInfo value) { + bitField0_ |= 0x00000010; + queryDiceInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 1; + * @return whether the exploredAreaIdList field is set + */ + public boolean hasExploredAreaIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 explored_area_id_list = 1; + * @return this + */ + public ChessRogueQueryInfo clearExploredAreaIdList() { + bitField0_ &= ~0x00000020; + exploredAreaIdList.clear(); + return this; + } + + /** + * repeated uint32 explored_area_id_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 #getMutableExploredAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getExploredAreaIdList() { + return exploredAreaIdList; + } + + /** + * repeated uint32 explored_area_id_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 RepeatedInt getMutableExploredAreaIdList() { + bitField0_ |= 0x00000020; + return exploredAreaIdList; + } + + /** + * repeated uint32 explored_area_id_list = 1; + * @param value the exploredAreaIdList to add + * @return this + */ + public ChessRogueQueryInfo addExploredAreaIdList(final int value) { + bitField0_ |= 0x00000020; + exploredAreaIdList.add(value); + return this; + } + + /** + * repeated uint32 explored_area_id_list = 1; + * @param values the exploredAreaIdList to add + * @return this + */ + public ChessRogueQueryInfo addAllExploredAreaIdList(final int... values) { + bitField0_ |= 0x00000020; + exploredAreaIdList.addAll(values); + return this; + } + + /** + * repeated uint32 area_id_list = 5; + * @return whether the areaIdList field is set + */ + public boolean hasAreaIdList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 area_id_list = 5; + * @return this + */ + public ChessRogueQueryInfo clearAreaIdList() { + bitField0_ &= ~0x00000040; + areaIdList.clear(); + return this; + } + + /** + * repeated uint32 area_id_list = 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 #getMutableAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAreaIdList() { + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 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 getMutableAreaIdList() { + bitField0_ |= 0x00000040; + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 5; + * @param value the areaIdList to add + * @return this + */ + public ChessRogueQueryInfo addAreaIdList(final int value) { + bitField0_ |= 0x00000040; + areaIdList.add(value); + return this; + } + + /** + * repeated uint32 area_id_list = 5; + * @param values the areaIdList to add + * @return this + */ + public ChessRogueQueryInfo addAllAreaIdList(final int... values) { + bitField0_ |= 0x00000040; + areaIdList.addAll(values); + return this; + } + + @Override + public ChessRogueQueryInfo copyFrom(final ChessRogueQueryInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueDifficultyInfo.copyFrom(other.rogueDifficultyInfo); + chessAeonInfo.copyFrom(other.chessAeonInfo); + talentInfoList.copyFrom(other.talentInfoList); + rogueVirtualItemInfo.copyFrom(other.rogueVirtualItemInfo); + queryDiceInfo.copyFrom(other.queryDiceInfo); + exploredAreaIdList.copyFrom(other.exploredAreaIdList); + areaIdList.copyFrom(other.areaIdList); + } + return this; + } + + @Override + public ChessRogueQueryInfo mergeFrom(final ChessRogueQueryInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueDifficultyInfo()) { + getMutableRogueDifficultyInfo().mergeFrom(other.rogueDifficultyInfo); + } + if (other.hasChessAeonInfo()) { + getMutableChessAeonInfo().mergeFrom(other.chessAeonInfo); + } + if (other.hasTalentInfoList()) { + getMutableTalentInfoList().mergeFrom(other.talentInfoList); + } + if (other.hasRogueVirtualItemInfo()) { + getMutableRogueVirtualItemInfo().mergeFrom(other.rogueVirtualItemInfo); + } + if (other.hasQueryDiceInfo()) { + getMutableQueryDiceInfo().mergeFrom(other.queryDiceInfo); + } + if (other.hasExploredAreaIdList()) { + getMutableExploredAreaIdList().addAll(other.exploredAreaIdList); + } + if (other.hasAreaIdList()) { + getMutableAreaIdList().addAll(other.areaIdList); + } + return this; + } + + @Override + public ChessRogueQueryInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueDifficultyInfo.clear(); + chessAeonInfo.clear(); + talentInfoList.clear(); + rogueVirtualItemInfo.clear(); + queryDiceInfo.clear(); + exploredAreaIdList.clear(); + areaIdList.clear(); + return this; + } + + @Override + public ChessRogueQueryInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueDifficultyInfo.clearQuick(); + chessAeonInfo.clearQuick(); + talentInfoList.clearQuick(); + rogueVirtualItemInfo.clearQuick(); + queryDiceInfo.clearQuick(); + exploredAreaIdList.clear(); + areaIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryInfo)) { + return false; + } + ChessRogueQueryInfo other = (ChessRogueQueryInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRogueDifficultyInfo() || rogueDifficultyInfo.equals(other.rogueDifficultyInfo)) + && (!hasChessAeonInfo() || chessAeonInfo.equals(other.chessAeonInfo)) + && (!hasTalentInfoList() || talentInfoList.equals(other.talentInfoList)) + && (!hasRogueVirtualItemInfo() || rogueVirtualItemInfo.equals(other.rogueVirtualItemInfo)) + && (!hasQueryDiceInfo() || queryDiceInfo.equals(other.queryDiceInfo)) + && (!hasExploredAreaIdList() || exploredAreaIdList.equals(other.exploredAreaIdList)) + && (!hasAreaIdList() || areaIdList.equals(other.areaIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(chessAeonInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(talentInfoList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueVirtualItemInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(queryDiceInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < exploredAreaIdList.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(exploredAreaIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < areaIdList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(areaIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chessAeonInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(talentInfoList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItemInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(queryDiceInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * exploredAreaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(exploredAreaIdList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * areaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(areaIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // rogueDifficultyInfo + input.readMessage(rogueDifficultyInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // chessAeonInfo + input.readMessage(chessAeonInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // talentInfoList + input.readMessage(talentInfoList); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rogueVirtualItemInfo + input.readMessage(rogueVirtualItemInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // queryDiceInfo + input.readMessage(queryDiceInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // exploredAreaIdList [packed=true] + input.readPackedUInt32(exploredAreaIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // areaIdList [packed=true] + input.readPackedUInt32(areaIdList, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // exploredAreaIdList [packed=false] + tag = input.readRepeatedUInt32(exploredAreaIdList, tag); + bitField0_ |= 0x00000020; + break; + } + case 40: { + // areaIdList [packed=false] + tag = input.readRepeatedUInt32(areaIdList, tag); + bitField0_ |= 0x00000040; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.rogueDifficultyInfo, rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.chessAeonInfo, chessAeonInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.talentInfoList, talentInfoList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueVirtualItemInfo, rogueVirtualItemInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.queryDiceInfo, queryDiceInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.exploredAreaIdList, exploredAreaIdList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.areaIdList, areaIdList); + } + output.endObject(); + } + + @Override + public ChessRogueQueryInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 664895363: + case -318397875: { + if (input.isAtField(FieldNames.rogueDifficultyInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueDifficultyInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1969851249: + case 1965672427: { + if (input.isAtField(FieldNames.chessAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(chessAeonInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -363598984: + case 1545287164: { + if (input.isAtField(FieldNames.talentInfoList)) { + if (!input.trySkipNullValue()) { + input.readMessage(talentInfoList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1066755410: + case 1452147457: { + if (input.isAtField(FieldNames.rogueVirtualItemInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueVirtualItemInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1613622749: + case 524483471: { + if (input.isAtField(FieldNames.queryDiceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(queryDiceInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -471271849: + case -942040866: { + if (input.isAtField(FieldNames.exploredAreaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(exploredAreaIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 530025286: + case -1239486576: { + if (input.isAtField(FieldNames.areaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(areaIdList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryInfo clone() { + return new ChessRogueQueryInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryInfo(), data).checkInitialized(); + } + + public static ChessRogueQueryInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryInfo(), input).checkInitialized(); + } + + public static ChessRogueQueryInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryInfoFactory.INSTANCE; + } + + private enum ChessRogueQueryInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryInfo create() { + return ChessRogueQueryInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueDifficultyInfo = FieldName.forField("rogueDifficultyInfo", "rogue_difficulty_info"); + + static final FieldName chessAeonInfo = FieldName.forField("chessAeonInfo", "chess_aeon_info"); + + static final FieldName talentInfoList = FieldName.forField("talentInfoList", "talent_info_list"); + + static final FieldName rogueVirtualItemInfo = FieldName.forField("rogueVirtualItemInfo", "rogue_virtual_item_info"); + + static final FieldName queryDiceInfo = FieldName.forField("queryDiceInfo", "query_dice_info"); + + static final FieldName exploredAreaIdList = FieldName.forField("exploredAreaIdList", "explored_area_id_list"); + + static final FieldName areaIdList = FieldName.forField("areaIdList", "area_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java new file mode 100644 index 000000000..d0e950026 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQueryScRspOuterClass.java @@ -0,0 +1,773 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueQueryScRspOuterClass { + /** + * Protobuf type {@code ChessRogueQueryScRsp} + */ + public static final class ChessRogueQueryScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional .ChessRogueGetInfo rogue_get_info = 3; + */ + private final ChessRogueGetInfoOuterClass.ChessRogueGetInfo rogueGetInfo = ChessRogueGetInfoOuterClass.ChessRogueGetInfo.newInstance(); + + /** + * optional .ChessRogueCurrentInfo info = 4; + */ + private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo info = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + */ + private final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo rogueCurrentInfo = ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo.newInstance(); + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + */ + private final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo finishInfo = ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo.newInstance(); + + /** + * optional .ChessRogueQueryInfo query_info = 12; + */ + private final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo queryInfo = ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo.newInstance(); + + private ChessRogueQueryScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueQueryScRsp} + */ + public static ChessRogueQueryScRsp newInstance() { + return new ChessRogueQueryScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public ChessRogueQueryScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public ChessRogueQueryScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 3; + * @return whether the rogueGetInfo field is set + */ + public boolean hasRogueGetInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 3; + * @return this + */ + public ChessRogueQueryScRsp clearRogueGetInfo() { + bitField0_ &= ~0x00000002; + rogueGetInfo.clear(); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 #getMutableRogueGetInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueGetInfoOuterClass.ChessRogueGetInfo getRogueGetInfo() { + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 ChessRogueGetInfoOuterClass.ChessRogueGetInfo getMutableRogueGetInfo() { + bitField0_ |= 0x00000002; + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 3; + * @param value the rogueGetInfo to set + * @return this + */ + public ChessRogueQueryScRsp setRogueGetInfo( + final ChessRogueGetInfoOuterClass.ChessRogueGetInfo value) { + bitField0_ |= 0x00000002; + rogueGetInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 4; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueCurrentInfo info = 4; + * @return this + */ + public ChessRogueQueryScRsp clearInfo() { + bitField0_ &= ~0x00000004; + info.clear(); + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getInfo() { + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableInfo() { + bitField0_ |= 0x00000004; + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 4; + * @param value the info to set + * @return this + */ + public ChessRogueQueryScRsp setInfo( + final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { + bitField0_ |= 0x00000004; + info.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + * @return whether the rogueCurrentInfo field is set + */ + public boolean hasRogueCurrentInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + * @return this + */ + public ChessRogueQueryScRsp clearRogueCurrentInfo() { + bitField0_ &= ~0x00000008; + rogueCurrentInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 #getMutableRogueCurrentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getRogueCurrentInfo() { + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getMutableRogueCurrentInfo() { + bitField0_ |= 0x00000008; + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 8; + * @param value the rogueCurrentInfo to set + * @return this + */ + public ChessRogueQueryScRsp setRogueCurrentInfo( + final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo value) { + bitField0_ |= 0x00000008; + rogueCurrentInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + * @return whether the finishInfo field is set + */ + public boolean hasFinishInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + * @return this + */ + public ChessRogueQueryScRsp clearFinishInfo() { + bitField0_ &= ~0x00000010; + finishInfo.clear(); + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 #getMutableFinishInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getFinishInfo() { + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getMutableFinishInfo() { + bitField0_ |= 0x00000010; + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 11; + * @param value the finishInfo to set + * @return this + */ + public ChessRogueQueryScRsp setFinishInfo( + final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo value) { + bitField0_ |= 0x00000010; + finishInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 12; + * @return whether the queryInfo field is set + */ + public boolean hasQueryInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChessRogueQueryInfo query_info = 12; + * @return this + */ + public ChessRogueQueryScRsp clearQueryInfo() { + bitField0_ &= ~0x00000020; + queryInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 #getMutableQueryInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getQueryInfo() { + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getMutableQueryInfo() { + bitField0_ |= 0x00000020; + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 12; + * @param value the queryInfo to set + * @return this + */ + public ChessRogueQueryScRsp setQueryInfo( + final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo value) { + bitField0_ |= 0x00000020; + queryInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueQueryScRsp copyFrom(final ChessRogueQueryScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + rogueGetInfo.copyFrom(other.rogueGetInfo); + info.copyFrom(other.info); + rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); + finishInfo.copyFrom(other.finishInfo); + queryInfo.copyFrom(other.queryInfo); + } + return this; + } + + @Override + public ChessRogueQueryScRsp mergeFrom(final ChessRogueQueryScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRogueGetInfo()) { + getMutableRogueGetInfo().mergeFrom(other.rogueGetInfo); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasRogueCurrentInfo()) { + getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); + } + if (other.hasFinishInfo()) { + getMutableFinishInfo().mergeFrom(other.finishInfo); + } + if (other.hasQueryInfo()) { + getMutableQueryInfo().mergeFrom(other.queryInfo); + } + return this; + } + + @Override + public ChessRogueQueryScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + rogueGetInfo.clear(); + info.clear(); + rogueCurrentInfo.clear(); + finishInfo.clear(); + queryInfo.clear(); + return this; + } + + @Override + public ChessRogueQueryScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueGetInfo.clearQuick(); + info.clearQuick(); + rogueCurrentInfo.clearQuick(); + finishInfo.clearQuick(); + queryInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQueryScRsp)) { + return false; + } + ChessRogueQueryScRsp other = (ChessRogueQueryScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRogueGetInfo() || rogueGetInfo.equals(other.rogueGetInfo)) + && (!hasInfo() || info.equals(other.info)) + && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)) + && (!hasFinishInfo() || finishInfo.equals(other.finishInfo)) + && (!hasQueryInfo() || queryInfo.equals(other.queryInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(rogueGetInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(info); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(finishInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(queryInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueGetInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(finishInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQueryScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // rogueGetInfo + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // info + input.readMessage(info); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // rogueCurrentInfo + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // finishInfo + input.readMessage(finishInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // queryInfo + input.readMessage(queryInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueGetInfo, rogueGetInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.finishInfo, finishInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.queryInfo, queryInfo); + } + output.endObject(); + } + + @Override + public ChessRogueQueryScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1671986666: + case 12475580: { + if (input.isAtField(FieldNames.rogueGetInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -611905651: + case 1279173113: { + if (input.isAtField(FieldNames.rogueCurrentInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1151198177: + case 1347581146: { + if (input.isAtField(FieldNames.finishInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(finishInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1807200874: + case -168476219: { + if (input.isAtField(FieldNames.queryInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(queryInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQueryScRsp clone() { + return new ChessRogueQueryScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQueryScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), data).checkInitialized(); + } + + public static ChessRogueQueryScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), input).checkInitialized(); + } + + public static ChessRogueQueryScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQueryScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueQueryScRspFactory.INSTANCE; + } + + private enum ChessRogueQueryScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQueryScRsp create() { + return ChessRogueQueryScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rogueGetInfo = FieldName.forField("rogueGetInfo", "rogue_get_info"); + + static final FieldName info = FieldName.forField("info"); + + static final FieldName rogueCurrentInfo = FieldName.forField("rogueCurrentInfo", "rogue_current_info"); + + static final FieldName finishInfo = FieldName.forField("finishInfo", "finish_info"); + + static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQuestFinishNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQuestFinishNotifyOuterClass.java new file mode 100644 index 000000000..5b13a4d53 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQuestFinishNotifyOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueQuestFinishNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueQuestFinishNotify} + */ + public static final class ChessRogueQuestFinishNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 quest_id = 2; + */ + private int questId; + + /** + * optional uint32 OKHLKGJLEMK = 3; + */ + private int oKHLKGJLEMK; + + private ChessRogueQuestFinishNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueQuestFinishNotify} + */ + public static ChessRogueQuestFinishNotify newInstance() { + return new ChessRogueQuestFinishNotify(); + } + + /** + * optional uint32 quest_id = 2; + * @return whether the questId field is set + */ + public boolean hasQuestId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 quest_id = 2; + * @return this + */ + public ChessRogueQuestFinishNotify clearQuestId() { + bitField0_ &= ~0x00000001; + questId = 0; + return this; + } + + /** + * optional uint32 quest_id = 2; + * @return the questId + */ + public int getQuestId() { + return questId; + } + + /** + * optional uint32 quest_id = 2; + * @param value the questId to set + * @return this + */ + public ChessRogueQuestFinishNotify setQuestId(final int value) { + bitField0_ |= 0x00000001; + questId = value; + return this; + } + + /** + * optional uint32 OKHLKGJLEMK = 3; + * @return whether the oKHLKGJLEMK field is set + */ + public boolean hasOKHLKGJLEMK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 OKHLKGJLEMK = 3; + * @return this + */ + public ChessRogueQuestFinishNotify clearOKHLKGJLEMK() { + bitField0_ &= ~0x00000002; + oKHLKGJLEMK = 0; + return this; + } + + /** + * optional uint32 OKHLKGJLEMK = 3; + * @return the oKHLKGJLEMK + */ + public int getOKHLKGJLEMK() { + return oKHLKGJLEMK; + } + + /** + * optional uint32 OKHLKGJLEMK = 3; + * @param value the oKHLKGJLEMK to set + * @return this + */ + public ChessRogueQuestFinishNotify setOKHLKGJLEMK(final int value) { + bitField0_ |= 0x00000002; + oKHLKGJLEMK = value; + return this; + } + + @Override + public ChessRogueQuestFinishNotify copyFrom(final ChessRogueQuestFinishNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + questId = other.questId; + oKHLKGJLEMK = other.oKHLKGJLEMK; + } + return this; + } + + @Override + public ChessRogueQuestFinishNotify mergeFrom(final ChessRogueQuestFinishNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasQuestId()) { + setQuestId(other.questId); + } + if (other.hasOKHLKGJLEMK()) { + setOKHLKGJLEMK(other.oKHLKGJLEMK); + } + return this; + } + + @Override + public ChessRogueQuestFinishNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + questId = 0; + oKHLKGJLEMK = 0; + return this; + } + + @Override + public ChessRogueQuestFinishNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQuestFinishNotify)) { + return false; + } + ChessRogueQuestFinishNotify other = (ChessRogueQuestFinishNotify) o; + return bitField0_ == other.bitField0_ + && (!hasQuestId() || questId == other.questId) + && (!hasOKHLKGJLEMK() || oKHLKGJLEMK == other.oKHLKGJLEMK); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(questId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(oKHLKGJLEMK); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(questId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oKHLKGJLEMK); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQuestFinishNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // questId + questId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // oKHLKGJLEMK + oKHLKGJLEMK = input.readUInt32(); + 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.questId, questId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oKHLKGJLEMK, oKHLKGJLEMK); + } + output.endObject(); + } + + @Override + public ChessRogueQuestFinishNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 655126941: + case -1165879912: { + if (input.isAtField(FieldNames.questId)) { + if (!input.trySkipNullValue()) { + questId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 184659045: { + if (input.isAtField(FieldNames.oKHLKGJLEMK)) { + if (!input.trySkipNullValue()) { + oKHLKGJLEMK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQuestFinishNotify clone() { + return new ChessRogueQuestFinishNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQuestFinishNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQuestFinishNotify(), data).checkInitialized(); + } + + public static ChessRogueQuestFinishNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueQuestFinishNotify(), input).checkInitialized(); + } + + public static ChessRogueQuestFinishNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQuestFinishNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQuestFinishNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueQuestFinishNotifyFactory.INSTANCE; + } + + private enum ChessRogueQuestFinishNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQuestFinishNotify create() { + return ChessRogueQuestFinishNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName questId = FieldName.forField("questId", "quest_id"); + + static final FieldName oKHLKGJLEMK = FieldName.forField("OKHLKGJLEMK"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQuitCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQuitCsReqOuterClass.java new file mode 100644 index 000000000..0b2ae4fc9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQuitCsReqOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueQuitCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueQuitCsReq} + */ + public static final class ChessRogueQuitCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueQuitCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueQuitCsReq} + */ + public static ChessRogueQuitCsReq newInstance() { + return new ChessRogueQuitCsReq(); + } + + @Override + public ChessRogueQuitCsReq copyFrom(final ChessRogueQuitCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueQuitCsReq mergeFrom(final ChessRogueQuitCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQuitCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueQuitCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQuitCsReq)) { + return false; + } + ChessRogueQuitCsReq other = (ChessRogueQuitCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQuitCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueQuitCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQuitCsReq clone() { + return new ChessRogueQuitCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQuitCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQuitCsReq(), data).checkInitialized(); + } + + public static ChessRogueQuitCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQuitCsReq(), input).checkInitialized(); + } + + public static ChessRogueQuitCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQuitCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQuitCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueQuitCsReqFactory.INSTANCE; + } + + private enum ChessRogueQuitCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQuitCsReq create() { + return ChessRogueQuitCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQuitReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQuitReasonOuterClass.java new file mode 100644 index 000000000..cf7d99e86 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQuitReasonOuterClass.java @@ -0,0 +1,185 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueQuitReasonOuterClass { + /** + * Protobuf enum {@code ChessRogueQuitReason} + */ + public enum ChessRogueQuitReason implements ProtoEnum { + /** + * CHESS_ROGUE_ACCOUNT_BY_NONE = 0; + */ + CHESS_ROGUE_ACCOUNT_BY_NONE("CHESS_ROGUE_ACCOUNT_BY_NONE", 0), + + /** + * CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH = 1; + */ + CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH("CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH", 1), + + /** + * CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT = 2; + */ + CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT("CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT", 2), + + /** + * CHESS_ROGUE_ACCOUNT_BY_DIALOG = 3; + */ + CHESS_ROGUE_ACCOUNT_BY_DIALOG("CHESS_ROGUE_ACCOUNT_BY_DIALOG", 3), + + /** + * CHESS_ROGUE_ACCOUNT_BY_FAILED = 4; + */ + CHESS_ROGUE_ACCOUNT_BY_FAILED("CHESS_ROGUE_ACCOUNT_BY_FAILED", 4), + + /** + * CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP = 5; + */ + CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP("CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP", 5); + + /** + * CHESS_ROGUE_ACCOUNT_BY_NONE = 0; + */ + public static final int CHESS_ROGUE_ACCOUNT_BY_NONE_VALUE = 0; + + /** + * CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH = 1; + */ + public static final int CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH_VALUE = 1; + + /** + * CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT = 2; + */ + public static final int CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT_VALUE = 2; + + /** + * CHESS_ROGUE_ACCOUNT_BY_DIALOG = 3; + */ + public static final int CHESS_ROGUE_ACCOUNT_BY_DIALOG_VALUE = 3; + + /** + * CHESS_ROGUE_ACCOUNT_BY_FAILED = 4; + */ + public static final int CHESS_ROGUE_ACCOUNT_BY_FAILED_VALUE = 4; + + /** + * CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP = 5; + */ + public static final int CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP_VALUE = 5; + + private final String name; + + private final int number; + + private ChessRogueQuitReason(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 ChessRogueQuitReasonConverter.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 ChessRogueQuitReason forNumber(int value) { + return ChessRogueQuitReasonConverter.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 ChessRogueQuitReason forNumberOr(int number, ChessRogueQuitReason other) { + ChessRogueQuitReason value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueQuitReasonConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueQuitReason[] lookup = new ChessRogueQuitReason[6]; + + static { + lookup[0] = CHESS_ROGUE_ACCOUNT_BY_NONE; + lookup[1] = CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH; + lookup[2] = CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT; + lookup[3] = CHESS_ROGUE_ACCOUNT_BY_DIALOG; + lookup[4] = CHESS_ROGUE_ACCOUNT_BY_FAILED; + lookup[5] = CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP; + } + + @Override + public final ChessRogueQuitReason forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueQuitReason forName(final CharSequence value) { + switch (value.length()) { + case 27: { + if (ProtoUtil.isEqual("CHESS_ROGUE_ACCOUNT_BY_NONE", value)) { + return CHESS_ROGUE_ACCOUNT_BY_NONE; + } + break; + } + case 29: { + if (ProtoUtil.isEqual("CHESS_ROGUE_ACCOUNT_BY_DIALOG", value)) { + return CHESS_ROGUE_ACCOUNT_BY_DIALOG; + } + if (ProtoUtil.isEqual("CHESS_ROGUE_ACCOUNT_BY_FAILED", value)) { + return CHESS_ROGUE_ACCOUNT_BY_FAILED; + } + break; + } + case 32: { + if (ProtoUtil.isEqual("CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP", value)) { + return CHESS_ROGUE_ACCOUNT_BY_CUSTOM_OP; + } + break; + } + case 34: { + if (ProtoUtil.isEqual("CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT", value)) { + return CHESS_ROGUE_ACCOUNT_BY_NORMAL_QUIT; + } + break; + } + case 36: { + if (ProtoUtil.isEqual("CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH", value)) { + return CHESS_ROGUE_ACCOUNT_BY_NORMAL_FINISH; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueQuitScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueQuitScRspOuterClass.java new file mode 100644 index 000000000..e9d6955f2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueQuitScRspOuterClass.java @@ -0,0 +1,1082 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueQuitScRspOuterClass { + /** + * Protobuf type {@code ChessRogueQuitScRsp} + */ + public static final class ChessRogueQuitScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional .ChessRogueCurrentInfo info = 3; + */ + private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo info = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); + + /** + * optional .ChessRogueLevelInfo level_info = 4; + */ + private final ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo levelInfo = ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo.newInstance(); + + /** + * optional .ChessRogueQueryInfo query_info = 5; + */ + private final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo queryInfo = ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo.newInstance(); + + /** + * optional .ChessRogueGetInfo rogue_get_info = 6; + */ + private final ChessRogueGetInfoOuterClass.ChessRogueGetInfo rogueGetInfo = ChessRogueGetInfoOuterClass.ChessRogueGetInfo.newInstance(); + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 12; + */ + private final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo rogueCurrentInfo = ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo.newInstance(); + + /** + * optional .ChessRoguePlayerInfo player_info = 13; + */ + private final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo playerInfo = ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo.newInstance(); + + /** + * optional .ChessRogueFinishInfo finish_info = 14; + */ + private final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo finishInfo = ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo.newInstance(); + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 15; + */ + private final ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo rogueAeonInfo = ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo.newInstance(); + + private ChessRogueQuitScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueQuitScRsp} + */ + public static ChessRogueQuitScRsp newInstance() { + return new ChessRogueQuitScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public ChessRogueQuitScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public ChessRogueQuitScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 3; + * @return whether the info field is set + */ + public boolean hasInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueCurrentInfo info = 3; + * @return this + */ + public ChessRogueQuitScRsp clearInfo() { + bitField0_ &= ~0x00000002; + info.clear(); + return this; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 #getMutableInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getInfo() { + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableInfo() { + bitField0_ |= 0x00000002; + return info; + } + + /** + * optional .ChessRogueCurrentInfo info = 3; + * @param value the info to set + * @return this + */ + public ChessRogueQuitScRsp setInfo( + final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { + bitField0_ |= 0x00000002; + info.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueLevelInfo level_info = 4; + * @return whether the levelInfo field is set + */ + public boolean hasLevelInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueLevelInfo level_info = 4; + * @return this + */ + public ChessRogueQuitScRsp clearLevelInfo() { + bitField0_ &= ~0x00000004; + levelInfo.clear(); + return this; + } + + /** + * optional .ChessRogueLevelInfo level_info = 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 #getMutableLevelInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo getLevelInfo() { + return levelInfo; + } + + /** + * optional .ChessRogueLevelInfo level_info = 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 ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo getMutableLevelInfo() { + bitField0_ |= 0x00000004; + return levelInfo; + } + + /** + * optional .ChessRogueLevelInfo level_info = 4; + * @param value the levelInfo to set + * @return this + */ + public ChessRogueQuitScRsp setLevelInfo( + final ChessRogueLevelInfoOuterClass.ChessRogueLevelInfo value) { + bitField0_ |= 0x00000004; + levelInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 5; + * @return whether the queryInfo field is set + */ + public boolean hasQueryInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueQueryInfo query_info = 5; + * @return this + */ + public ChessRogueQuitScRsp clearQueryInfo() { + bitField0_ &= ~0x00000008; + queryInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 #getMutableQueryInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getQueryInfo() { + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 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 ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo getMutableQueryInfo() { + bitField0_ |= 0x00000008; + return queryInfo; + } + + /** + * optional .ChessRogueQueryInfo query_info = 5; + * @param value the queryInfo to set + * @return this + */ + public ChessRogueQuitScRsp setQueryInfo( + final ChessRogueQueryInfoOuterClass.ChessRogueQueryInfo value) { + bitField0_ |= 0x00000008; + queryInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 6; + * @return whether the rogueGetInfo field is set + */ + public boolean hasRogueGetInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 6; + * @return this + */ + public ChessRogueQuitScRsp clearRogueGetInfo() { + bitField0_ &= ~0x00000010; + rogueGetInfo.clear(); + return this; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 #getMutableRogueGetInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueGetInfoOuterClass.ChessRogueGetInfo getRogueGetInfo() { + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 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 ChessRogueGetInfoOuterClass.ChessRogueGetInfo getMutableRogueGetInfo() { + bitField0_ |= 0x00000010; + return rogueGetInfo; + } + + /** + * optional .ChessRogueGetInfo rogue_get_info = 6; + * @param value the rogueGetInfo to set + * @return this + */ + public ChessRogueQuitScRsp setRogueGetInfo( + final ChessRogueGetInfoOuterClass.ChessRogueGetInfo value) { + bitField0_ |= 0x00000010; + rogueGetInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 12; + * @return whether the rogueCurrentInfo field is set + */ + public boolean hasRogueCurrentInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 12; + * @return this + */ + public ChessRogueQuitScRsp clearRogueCurrentInfo() { + bitField0_ &= ~0x00000020; + rogueCurrentInfo.clear(); + return this; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 #getMutableRogueCurrentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getRogueCurrentInfo() { + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 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 ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo getMutableRogueCurrentInfo() { + bitField0_ |= 0x00000020; + return rogueCurrentInfo; + } + + /** + * optional .ChessRogueQueryGameInfo rogue_current_info = 12; + * @param value the rogueCurrentInfo to set + * @return this + */ + public ChessRogueQuitScRsp setRogueCurrentInfo( + final ChessRogueQueryGameInfoOuterClass.ChessRogueQueryGameInfo value) { + bitField0_ |= 0x00000020; + rogueCurrentInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 13; + * @return whether the playerInfo field is set + */ + public boolean hasPlayerInfo() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 13; + * @return this + */ + public ChessRogueQuitScRsp clearPlayerInfo() { + bitField0_ &= ~0x00000040; + playerInfo.clear(); + return this; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 #getMutablePlayerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getPlayerInfo() { + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 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 ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo getMutablePlayerInfo() { + bitField0_ |= 0x00000040; + return playerInfo; + } + + /** + * optional .ChessRoguePlayerInfo player_info = 13; + * @param value the playerInfo to set + * @return this + */ + public ChessRogueQuitScRsp setPlayerInfo( + final ChessRoguePlayerInfoOuterClass.ChessRoguePlayerInfo value) { + bitField0_ |= 0x00000040; + playerInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 14; + * @return whether the finishInfo field is set + */ + public boolean hasFinishInfo() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 14; + * @return this + */ + public ChessRogueQuitScRsp clearFinishInfo() { + bitField0_ &= ~0x00000080; + finishInfo.clear(); + return this; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 #getMutableFinishInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getFinishInfo() { + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 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 ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo getMutableFinishInfo() { + bitField0_ |= 0x00000080; + return finishInfo; + } + + /** + * optional .ChessRogueFinishInfo finish_info = 14; + * @param value the finishInfo to set + * @return this + */ + public ChessRogueQuitScRsp setFinishInfo( + final ChessRogueFinishInfoOuterClass.ChessRogueFinishInfo value) { + bitField0_ |= 0x00000080; + finishInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 15; + * @return whether the rogueAeonInfo field is set + */ + public boolean hasRogueAeonInfo() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 15; + * @return this + */ + public ChessRogueQuitScRsp clearRogueAeonInfo() { + bitField0_ &= ~0x00000100; + rogueAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 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 #getMutableRogueAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo getRogueAeonInfo() { + return rogueAeonInfo; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 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 ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo getMutableRogueAeonInfo() { + bitField0_ |= 0x00000100; + return rogueAeonInfo; + } + + /** + * optional .ChessRogueAeonInfo rogue_aeon_info = 15; + * @param value the rogueAeonInfo to set + * @return this + */ + public ChessRogueQuitScRsp setRogueAeonInfo( + final ChessRogueAeonInfoOuterClass.ChessRogueAeonInfo value) { + bitField0_ |= 0x00000100; + rogueAeonInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueQuitScRsp copyFrom(final ChessRogueQuitScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + info.copyFrom(other.info); + levelInfo.copyFrom(other.levelInfo); + queryInfo.copyFrom(other.queryInfo); + rogueGetInfo.copyFrom(other.rogueGetInfo); + rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); + playerInfo.copyFrom(other.playerInfo); + finishInfo.copyFrom(other.finishInfo); + rogueAeonInfo.copyFrom(other.rogueAeonInfo); + } + return this; + } + + @Override + public ChessRogueQuitScRsp mergeFrom(final ChessRogueQuitScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasInfo()) { + getMutableInfo().mergeFrom(other.info); + } + if (other.hasLevelInfo()) { + getMutableLevelInfo().mergeFrom(other.levelInfo); + } + if (other.hasQueryInfo()) { + getMutableQueryInfo().mergeFrom(other.queryInfo); + } + if (other.hasRogueGetInfo()) { + getMutableRogueGetInfo().mergeFrom(other.rogueGetInfo); + } + if (other.hasRogueCurrentInfo()) { + getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); + } + if (other.hasPlayerInfo()) { + getMutablePlayerInfo().mergeFrom(other.playerInfo); + } + if (other.hasFinishInfo()) { + getMutableFinishInfo().mergeFrom(other.finishInfo); + } + if (other.hasRogueAeonInfo()) { + getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); + } + return this; + } + + @Override + public ChessRogueQuitScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + info.clear(); + levelInfo.clear(); + queryInfo.clear(); + rogueGetInfo.clear(); + rogueCurrentInfo.clear(); + playerInfo.clear(); + finishInfo.clear(); + rogueAeonInfo.clear(); + return this; + } + + @Override + public ChessRogueQuitScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + info.clearQuick(); + levelInfo.clearQuick(); + queryInfo.clearQuick(); + rogueGetInfo.clearQuick(); + rogueCurrentInfo.clearQuick(); + playerInfo.clearQuick(); + finishInfo.clearQuick(); + rogueAeonInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueQuitScRsp)) { + return false; + } + ChessRogueQuitScRsp other = (ChessRogueQuitScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasInfo() || info.equals(other.info)) + && (!hasLevelInfo() || levelInfo.equals(other.levelInfo)) + && (!hasQueryInfo() || queryInfo.equals(other.queryInfo)) + && (!hasRogueGetInfo() || rogueGetInfo.equals(other.rogueGetInfo)) + && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)) + && (!hasPlayerInfo() || playerInfo.equals(other.playerInfo)) + && (!hasFinishInfo() || finishInfo.equals(other.finishInfo)) + && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(levelInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(queryInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(rogueGetInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(playerInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(finishInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(rogueAeonInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(info); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(levelInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueGetInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(finishInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueQuitScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // info + input.readMessage(info); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // levelInfo + input.readMessage(levelInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // queryInfo + input.readMessage(queryInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // rogueGetInfo + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rogueCurrentInfo + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // playerInfo + input.readMessage(playerInfo); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // finishInfo + input.readMessage(finishInfo); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // rogueAeonInfo + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000100; + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.info, info); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.levelInfo, levelInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.queryInfo, queryInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueGetInfo, rogueGetInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.playerInfo, playerInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.finishInfo, finishInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); + } + output.endObject(); + } + + @Override + public ChessRogueQuitScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237038: { + if (input.isAtField(FieldNames.info)) { + if (!input.trySkipNullValue()) { + input.readMessage(info); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1656548782: + case 206771337: { + if (input.isAtField(FieldNames.levelInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(levelInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1807200874: + case -168476219: { + if (input.isAtField(FieldNames.queryInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(queryInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1671986666: + case 12475580: { + if (input.isAtField(FieldNames.rogueGetInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueGetInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -611905651: + case 1279173113: { + if (input.isAtField(FieldNames.rogueCurrentInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueCurrentInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2095520559: + case 556803916: { + if (input.isAtField(FieldNames.playerInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerInfo); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1151198177: + case 1347581146: { + if (input.isAtField(FieldNames.finishInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(finishInfo); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1685018549: + case -1375922619: { + if (input.isAtField(FieldNames.rogueAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueQuitScRsp clone() { + return new ChessRogueQuitScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueQuitScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueQuitScRsp(), data).checkInitialized(); + } + + public static ChessRogueQuitScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQuitScRsp(), input).checkInitialized(); + } + + public static ChessRogueQuitScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueQuitScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueQuitScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueQuitScRspFactory.INSTANCE; + } + + private enum ChessRogueQuitScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueQuitScRsp create() { + return ChessRogueQuitScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName info = FieldName.forField("info"); + + static final FieldName levelInfo = FieldName.forField("levelInfo", "level_info"); + + static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info"); + + static final FieldName rogueGetInfo = FieldName.forField("rogueGetInfo", "rogue_get_info"); + + static final FieldName rogueCurrentInfo = FieldName.forField("rogueCurrentInfo", "rogue_current_info"); + + static final FieldName playerInfo = FieldName.forField("playerInfo", "player_info"); + + static final FieldName finishInfo = FieldName.forField("finishInfo", "finish_info"); + + static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceScRspOuterClass.java new file mode 100644 index 000000000..ff92b62a4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceScRspOuterClass.java @@ -0,0 +1,362 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueReRollDiceScRspOuterClass { + /** + * Protobuf type {@code ChessRogueReRollDiceScRsp} + */ + public static final class ChessRogueReRollDiceScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 10; + */ + private final ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo rogueDiceInfo = ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo.newInstance(); + + private ChessRogueReRollDiceScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueReRollDiceScRsp} + */ + public static ChessRogueReRollDiceScRsp newInstance() { + return new ChessRogueReRollDiceScRsp(); + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public ChessRogueReRollDiceScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public ChessRogueReRollDiceScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 10; + * @return whether the rogueDiceInfo field is set + */ + public boolean hasRogueDiceInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 10; + * @return this + */ + public ChessRogueReRollDiceScRsp clearRogueDiceInfo() { + bitField0_ &= ~0x00000002; + rogueDiceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 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 #getMutableRogueDiceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo getRogueDiceInfo() { + return rogueDiceInfo; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 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 ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo getMutableRogueDiceInfo() { + bitField0_ |= 0x00000002; + return rogueDiceInfo; + } + + /** + * optional .ChessRogueDiceInfo rogue_dice_info = 10; + * @param value the rogueDiceInfo to set + * @return this + */ + public ChessRogueReRollDiceScRsp setRogueDiceInfo( + final ChessRogueDiceInfoOuterClass.ChessRogueDiceInfo value) { + bitField0_ |= 0x00000002; + rogueDiceInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueReRollDiceScRsp copyFrom(final ChessRogueReRollDiceScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + rogueDiceInfo.copyFrom(other.rogueDiceInfo); + } + return this; + } + + @Override + public ChessRogueReRollDiceScRsp mergeFrom(final ChessRogueReRollDiceScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRogueDiceInfo()) { + getMutableRogueDiceInfo().mergeFrom(other.rogueDiceInfo); + } + return this; + } + + @Override + public ChessRogueReRollDiceScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + rogueDiceInfo.clear(); + return this; + } + + @Override + public ChessRogueReRollDiceScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueDiceInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueReRollDiceScRsp)) { + return false; + } + ChessRogueReRollDiceScRsp other = (ChessRogueReRollDiceScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRogueDiceInfo() || rogueDiceInfo.equals(other.rogueDiceInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(rogueDiceInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueDiceInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueReRollDiceScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // rogueDiceInfo + input.readMessage(rogueDiceInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueDiceInfo, rogueDiceInfo); + } + output.endObject(); + } + + @Override + public ChessRogueReRollDiceScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1848368913: + case -2144816607: { + if (input.isAtField(FieldNames.rogueDiceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueDiceInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueReRollDiceScRsp clone() { + return new ChessRogueReRollDiceScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueReRollDiceScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueReRollDiceScRsp(), data).checkInitialized(); + } + + public static ChessRogueReRollDiceScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueReRollDiceScRsp(), input).checkInitialized(); + } + + public static ChessRogueReRollDiceScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueReRollDiceScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueReRollDiceScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueReRollDiceScRspFactory.INSTANCE; + } + + private enum ChessRogueReRollDiceScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueReRollDiceScRsp create() { + return ChessRogueReRollDiceScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rogueDiceInfo = FieldName.forField("rogueDiceInfo", "rogue_dice_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueReviveAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueReviveAvatarCsReqOuterClass.java new file mode 100644 index 000000000..c2e64e927 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueReviveAvatarCsReqOuterClass.java @@ -0,0 +1,383 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueReviveAvatarCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueReviveAvatarCsReq} + */ + public static final class ChessRogueReviveAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 monster_id = 4; + */ + private int monsterId; + + /** + * repeated uint32 base_avatar_id_list = 5; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueReviveAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueReviveAvatarCsReq} + */ + public static ChessRogueReviveAvatarCsReq newInstance() { + return new ChessRogueReviveAvatarCsReq(); + } + + /** + * optional uint32 monster_id = 4; + * @return whether the monsterId field is set + */ + public boolean hasMonsterId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 monster_id = 4; + * @return this + */ + public ChessRogueReviveAvatarCsReq clearMonsterId() { + bitField0_ &= ~0x00000001; + monsterId = 0; + return this; + } + + /** + * optional uint32 monster_id = 4; + * @return the monsterId + */ + public int getMonsterId() { + return monsterId; + } + + /** + * optional uint32 monster_id = 4; + * @param value the monsterId to set + * @return this + */ + public ChessRogueReviveAvatarCsReq setMonsterId(final int value) { + bitField0_ |= 0x00000001; + monsterId = value; + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 5; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 5; + * @return this + */ + public ChessRogueReviveAvatarCsReq clearBaseAvatarIdList() { + bitField0_ &= ~0x00000002; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 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 getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000002; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 5; + * @param value the baseAvatarIdList to add + * @return this + */ + public ChessRogueReviveAvatarCsReq addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000002; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 5; + * @param values the baseAvatarIdList to add + * @return this + */ + public ChessRogueReviveAvatarCsReq addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000002; + baseAvatarIdList.addAll(values); + return this; + } + + @Override + public ChessRogueReviveAvatarCsReq copyFrom(final ChessRogueReviveAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + monsterId = other.monsterId; + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRogueReviveAvatarCsReq mergeFrom(final ChessRogueReviveAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRogueReviveAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + monsterId = 0; + baseAvatarIdList.clear(); + return this; + } + + @Override + public ChessRogueReviveAvatarCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueReviveAvatarCsReq)) { + return false; + } + ChessRogueReviveAvatarCsReq other = (ChessRogueReviveAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(monsterId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueReviveAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // monsterId + monsterId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, 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 40: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.monsterId, monsterId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + output.endObject(); + } + + @Override + public ChessRogueReviveAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { + if (!input.trySkipNullValue()) { + monsterId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueReviveAvatarCsReq clone() { + return new ChessRogueReviveAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueReviveAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueReviveAvatarCsReq(), data).checkInitialized(); + } + + public static ChessRogueReviveAvatarCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueReviveAvatarCsReq(), input).checkInitialized(); + } + + public static ChessRogueReviveAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueReviveAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueReviveAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueReviveAvatarCsReqFactory.INSTANCE; + } + + private enum ChessRogueReviveAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueReviveAvatarCsReq create() { + return ChessRogueReviveAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueReviveAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueReviveAvatarScRspOuterClass.java new file mode 100644 index 000000000..38acf7213 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueReviveAvatarScRspOuterClass.java @@ -0,0 +1,485 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueReviveAvatarScRspOuterClass { + /** + * Protobuf type {@code ChessRogueReviveAvatarScRsp} + */ + public static final class ChessRogueReviveAvatarScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + */ + private final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost reviveInfo = RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost.newInstance(); + + /** + * repeated uint32 base_avatar_id_list = 10; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueReviveAvatarScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueReviveAvatarScRsp} + */ + public static ChessRogueReviveAvatarScRsp newInstance() { + return new ChessRogueReviveAvatarScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public ChessRogueReviveAvatarScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public ChessRogueReviveAvatarScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + * @return whether the reviveInfo field is set + */ + public boolean hasReviveInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + * @return this + */ + public ChessRogueReviveAvatarScRsp clearReviveInfo() { + bitField0_ &= ~0x00000002; + reviveInfo.clear(); + return this; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 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 #getMutableReviveInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getReviveInfo() { + return reviveInfo; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 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 RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getMutableReviveInfo() { + bitField0_ |= 0x00000002; + return reviveInfo; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + * @param value the reviveInfo to set + * @return this + */ + public ChessRogueReviveAvatarScRsp setReviveInfo( + final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost value) { + bitField0_ |= 0x00000002; + reviveInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 10; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 10; + * @return this + */ + public ChessRogueReviveAvatarScRsp clearBaseAvatarIdList() { + bitField0_ &= ~0x00000004; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 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 RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000004; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 10; + * @param value the baseAvatarIdList to add + * @return this + */ + public ChessRogueReviveAvatarScRsp addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000004; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 10; + * @param values the baseAvatarIdList to add + * @return this + */ + public ChessRogueReviveAvatarScRsp addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000004; + baseAvatarIdList.addAll(values); + return this; + } + + @Override + public ChessRogueReviveAvatarScRsp copyFrom(final ChessRogueReviveAvatarScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + reviveInfo.copyFrom(other.reviveInfo); + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRogueReviveAvatarScRsp mergeFrom(final ChessRogueReviveAvatarScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasReviveInfo()) { + getMutableReviveInfo().mergeFrom(other.reviveInfo); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + return this; + } + + @Override + public ChessRogueReviveAvatarScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + reviveInfo.clear(); + baseAvatarIdList.clear(); + return this; + } + + @Override + public ChessRogueReviveAvatarScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clearQuick(); + baseAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueReviveAvatarScRsp)) { + return false; + } + ChessRogueReviveAvatarScRsp other = (ChessRogueReviveAvatarScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasReviveInfo() || reviveInfo.equals(other.reviveInfo)) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueReviveAvatarScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // reviveInfo + input.readMessage(reviveInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 80: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.reviveInfo, reviveInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + output.endObject(); + } + + @Override + public ChessRogueReviveAvatarScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1426382941: + case -1248022184: { + if (input.isAtField(FieldNames.reviveInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(reviveInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueReviveAvatarScRsp clone() { + return new ChessRogueReviveAvatarScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueReviveAvatarScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueReviveAvatarScRsp(), data).checkInitialized(); + } + + public static ChessRogueReviveAvatarScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueReviveAvatarScRsp(), input).checkInitialized(); + } + + public static ChessRogueReviveAvatarScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueReviveAvatarScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueReviveAvatarScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueReviveAvatarScRspFactory.INSTANCE; + } + + private enum ChessRogueReviveAvatarScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueReviveAvatarScRsp create() { + return ChessRogueReviveAvatarScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName reviveInfo = FieldName.forField("reviveInfo", "revive_info"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueSelectBpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueSelectBpCsReqOuterClass.java new file mode 100644 index 000000000..615ef32fa --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueSelectBpCsReqOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueSelectBpCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueSelectBpCsReq} + */ + public static final class ChessRogueSelectBpCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 BMHALFGGHAE = 15; + */ + private int bMHALFGGHAE; + + private ChessRogueSelectBpCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueSelectBpCsReq} + */ + public static ChessRogueSelectBpCsReq newInstance() { + return new ChessRogueSelectBpCsReq(); + } + + /** + * optional uint32 BMHALFGGHAE = 15; + * @return whether the bMHALFGGHAE field is set + */ + public boolean hasBMHALFGGHAE() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 BMHALFGGHAE = 15; + * @return this + */ + public ChessRogueSelectBpCsReq clearBMHALFGGHAE() { + bitField0_ &= ~0x00000001; + bMHALFGGHAE = 0; + return this; + } + + /** + * optional uint32 BMHALFGGHAE = 15; + * @return the bMHALFGGHAE + */ + public int getBMHALFGGHAE() { + return bMHALFGGHAE; + } + + /** + * optional uint32 BMHALFGGHAE = 15; + * @param value the bMHALFGGHAE to set + * @return this + */ + public ChessRogueSelectBpCsReq setBMHALFGGHAE(final int value) { + bitField0_ |= 0x00000001; + bMHALFGGHAE = value; + return this; + } + + @Override + public ChessRogueSelectBpCsReq copyFrom(final ChessRogueSelectBpCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bMHALFGGHAE = other.bMHALFGGHAE; + } + return this; + } + + @Override + public ChessRogueSelectBpCsReq mergeFrom(final ChessRogueSelectBpCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBMHALFGGHAE()) { + setBMHALFGGHAE(other.bMHALFGGHAE); + } + return this; + } + + @Override + public ChessRogueSelectBpCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bMHALFGGHAE = 0; + return this; + } + + @Override + public ChessRogueSelectBpCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueSelectBpCsReq)) { + return false; + } + ChessRogueSelectBpCsReq other = (ChessRogueSelectBpCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBMHALFGGHAE() || bMHALFGGHAE == other.bMHALFGGHAE); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(bMHALFGGHAE); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bMHALFGGHAE); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueSelectBpCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // bMHALFGGHAE + bMHALFGGHAE = input.readUInt32(); + 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.writeUInt32(FieldNames.bMHALFGGHAE, bMHALFGGHAE); + } + output.endObject(); + } + + @Override + public ChessRogueSelectBpCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 542076238: { + if (input.isAtField(FieldNames.bMHALFGGHAE)) { + if (!input.trySkipNullValue()) { + bMHALFGGHAE = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueSelectBpCsReq clone() { + return new ChessRogueSelectBpCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueSelectBpCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueSelectBpCsReq(), data).checkInitialized(); + } + + public static ChessRogueSelectBpCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueSelectBpCsReq(), input).checkInitialized(); + } + + public static ChessRogueSelectBpCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueSelectBpCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueSelectBpCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueSelectBpCsReqFactory.INSTANCE; + } + + private enum ChessRogueSelectBpCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueSelectBpCsReq create() { + return ChessRogueSelectBpCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bMHALFGGHAE = FieldName.forField("BMHALFGGHAE"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueSelectBpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueSelectBpScRspOuterClass.java new file mode 100644 index 000000000..c6f9b9bfe --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueSelectBpScRspOuterClass.java @@ -0,0 +1,440 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueSelectBpScRspOuterClass { + /** + * Protobuf type {@code ChessRogueSelectBpScRsp} + */ + public static final class ChessRogueSelectBpScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional uint32 BMHALFGGHAE = 7; + */ + private int bMHALFGGHAE; + + /** + * optional .PDANDAJEPHK LHCALIBHDFJ = 9; + */ + private final PDANDAJEPHKOuterClass.PDANDAJEPHK lHCALIBHDFJ = PDANDAJEPHKOuterClass.PDANDAJEPHK.newInstance(); + + private ChessRogueSelectBpScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueSelectBpScRsp} + */ + public static ChessRogueSelectBpScRsp newInstance() { + return new ChessRogueSelectBpScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public ChessRogueSelectBpScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public ChessRogueSelectBpScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 BMHALFGGHAE = 7; + * @return whether the bMHALFGGHAE field is set + */ + public boolean hasBMHALFGGHAE() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BMHALFGGHAE = 7; + * @return this + */ + public ChessRogueSelectBpScRsp clearBMHALFGGHAE() { + bitField0_ &= ~0x00000002; + bMHALFGGHAE = 0; + return this; + } + + /** + * optional uint32 BMHALFGGHAE = 7; + * @return the bMHALFGGHAE + */ + public int getBMHALFGGHAE() { + return bMHALFGGHAE; + } + + /** + * optional uint32 BMHALFGGHAE = 7; + * @param value the bMHALFGGHAE to set + * @return this + */ + public ChessRogueSelectBpScRsp setBMHALFGGHAE(final int value) { + bitField0_ |= 0x00000002; + bMHALFGGHAE = value; + return this; + } + + /** + * optional .PDANDAJEPHK LHCALIBHDFJ = 9; + * @return whether the lHCALIBHDFJ field is set + */ + public boolean hasLHCALIBHDFJ() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .PDANDAJEPHK LHCALIBHDFJ = 9; + * @return this + */ + public ChessRogueSelectBpScRsp clearLHCALIBHDFJ() { + bitField0_ &= ~0x00000004; + lHCALIBHDFJ.clear(); + return this; + } + + /** + * optional .PDANDAJEPHK LHCALIBHDFJ = 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 #getMutableLHCALIBHDFJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PDANDAJEPHKOuterClass.PDANDAJEPHK getLHCALIBHDFJ() { + return lHCALIBHDFJ; + } + + /** + * optional .PDANDAJEPHK LHCALIBHDFJ = 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 PDANDAJEPHKOuterClass.PDANDAJEPHK getMutableLHCALIBHDFJ() { + bitField0_ |= 0x00000004; + return lHCALIBHDFJ; + } + + /** + * optional .PDANDAJEPHK LHCALIBHDFJ = 9; + * @param value the lHCALIBHDFJ to set + * @return this + */ + public ChessRogueSelectBpScRsp setLHCALIBHDFJ(final PDANDAJEPHKOuterClass.PDANDAJEPHK value) { + bitField0_ |= 0x00000004; + lHCALIBHDFJ.copyFrom(value); + return this; + } + + @Override + public ChessRogueSelectBpScRsp copyFrom(final ChessRogueSelectBpScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + bMHALFGGHAE = other.bMHALFGGHAE; + lHCALIBHDFJ.copyFrom(other.lHCALIBHDFJ); + } + return this; + } + + @Override + public ChessRogueSelectBpScRsp mergeFrom(final ChessRogueSelectBpScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBMHALFGGHAE()) { + setBMHALFGGHAE(other.bMHALFGGHAE); + } + if (other.hasLHCALIBHDFJ()) { + getMutableLHCALIBHDFJ().mergeFrom(other.lHCALIBHDFJ); + } + return this; + } + + @Override + public ChessRogueSelectBpScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + bMHALFGGHAE = 0; + lHCALIBHDFJ.clear(); + return this; + } + + @Override + public ChessRogueSelectBpScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lHCALIBHDFJ.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueSelectBpScRsp)) { + return false; + } + ChessRogueSelectBpScRsp other = (ChessRogueSelectBpScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasBMHALFGGHAE() || bMHALFGGHAE == other.bMHALFGGHAE) + && (!hasLHCALIBHDFJ() || lHCALIBHDFJ.equals(other.lHCALIBHDFJ)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(bMHALFGGHAE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(lHCALIBHDFJ); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bMHALFGGHAE); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lHCALIBHDFJ); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueSelectBpScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // bMHALFGGHAE + bMHALFGGHAE = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // lHCALIBHDFJ + input.readMessage(lHCALIBHDFJ); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.bMHALFGGHAE, bMHALFGGHAE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.lHCALIBHDFJ, lHCALIBHDFJ); + } + output.endObject(); + } + + @Override + public ChessRogueSelectBpScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 542076238: { + if (input.isAtField(FieldNames.bMHALFGGHAE)) { + if (!input.trySkipNullValue()) { + bMHALFGGHAE = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1263633035: { + if (input.isAtField(FieldNames.lHCALIBHDFJ)) { + if (!input.trySkipNullValue()) { + input.readMessage(lHCALIBHDFJ); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueSelectBpScRsp clone() { + return new ChessRogueSelectBpScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueSelectBpScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueSelectBpScRsp(), data).checkInitialized(); + } + + public static ChessRogueSelectBpScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueSelectBpScRsp(), input).checkInitialized(); + } + + public static ChessRogueSelectBpScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueSelectBpScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueSelectBpScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueSelectBpScRspFactory.INSTANCE; + } + + private enum ChessRogueSelectBpScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueSelectBpScRsp create() { + return ChessRogueSelectBpScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName bMHALFGGHAE = FieldName.forField("BMHALFGGHAE"); + + static final FieldName lHCALIBHDFJ = FieldName.forField("LHCALIBHDFJ"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueSkipTeachingLevelCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueSkipTeachingLevelCsReqOuterClass.java new file mode 100644 index 000000000..75dc52da0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueSkipTeachingLevelCsReqOuterClass.java @@ -0,0 +1,177 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class ChessRogueSkipTeachingLevelCsReqOuterClass { + /** + * Protobuf type {@code ChessRogueSkipTeachingLevelCsReq} + */ + public static final class ChessRogueSkipTeachingLevelCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private ChessRogueSkipTeachingLevelCsReq() { + } + + /** + * @return a new empty instance of {@code ChessRogueSkipTeachingLevelCsReq} + */ + public static ChessRogueSkipTeachingLevelCsReq newInstance() { + return new ChessRogueSkipTeachingLevelCsReq(); + } + + @Override + public ChessRogueSkipTeachingLevelCsReq copyFrom(final ChessRogueSkipTeachingLevelCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public ChessRogueSkipTeachingLevelCsReq mergeFrom( + final ChessRogueSkipTeachingLevelCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueSkipTeachingLevelCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public ChessRogueSkipTeachingLevelCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueSkipTeachingLevelCsReq)) { + return false; + } + ChessRogueSkipTeachingLevelCsReq other = (ChessRogueSkipTeachingLevelCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueSkipTeachingLevelCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public ChessRogueSkipTeachingLevelCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueSkipTeachingLevelCsReq clone() { + return new ChessRogueSkipTeachingLevelCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueSkipTeachingLevelCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueSkipTeachingLevelCsReq(), data).checkInitialized(); + } + + public static ChessRogueSkipTeachingLevelCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueSkipTeachingLevelCsReq(), input).checkInitialized(); + } + + public static ChessRogueSkipTeachingLevelCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueSkipTeachingLevelCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueSkipTeachingLevelCsReq messages + */ + public static MessageFactory getFactory() { + return ChessRogueSkipTeachingLevelCsReqFactory.INSTANCE; + } + + private enum ChessRogueSkipTeachingLevelCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueSkipTeachingLevelCsReq create() { + return ChessRogueSkipTeachingLevelCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueSkipTeachingLevelScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueSkipTeachingLevelScRspOuterClass.java new file mode 100644 index 000000000..a2702f996 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueSkipTeachingLevelScRspOuterClass.java @@ -0,0 +1,365 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueSkipTeachingLevelScRspOuterClass { + /** + * Protobuf type {@code ChessRogueSkipTeachingLevelScRsp} + */ + public static final class ChessRogueSkipTeachingLevelScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + /** + * optional .ItemList skip_reward_list = 15; + */ + private final ItemListOuterClass.ItemList skipRewardList = ItemListOuterClass.ItemList.newInstance(); + + private ChessRogueSkipTeachingLevelScRsp() { + } + + /** + * @return a new empty instance of {@code ChessRogueSkipTeachingLevelScRsp} + */ + public static ChessRogueSkipTeachingLevelScRsp newInstance() { + return new ChessRogueSkipTeachingLevelScRsp(); + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public ChessRogueSkipTeachingLevelScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public ChessRogueSkipTeachingLevelScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ItemList skip_reward_list = 15; + * @return whether the skipRewardList field is set + */ + public boolean hasSkipRewardList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemList skip_reward_list = 15; + * @return this + */ + public ChessRogueSkipTeachingLevelScRsp clearSkipRewardList() { + bitField0_ &= ~0x00000002; + skipRewardList.clear(); + return this; + } + + /** + * optional .ItemList skip_reward_list = 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 #getMutableSkipRewardList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getSkipRewardList() { + return skipRewardList; + } + + /** + * optional .ItemList skip_reward_list = 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 ItemListOuterClass.ItemList getMutableSkipRewardList() { + bitField0_ |= 0x00000002; + return skipRewardList; + } + + /** + * optional .ItemList skip_reward_list = 15; + * @param value the skipRewardList to set + * @return this + */ + public ChessRogueSkipTeachingLevelScRsp setSkipRewardList( + final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000002; + skipRewardList.copyFrom(value); + return this; + } + + @Override + public ChessRogueSkipTeachingLevelScRsp copyFrom(final ChessRogueSkipTeachingLevelScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + skipRewardList.copyFrom(other.skipRewardList); + } + return this; + } + + @Override + public ChessRogueSkipTeachingLevelScRsp mergeFrom( + final ChessRogueSkipTeachingLevelScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasSkipRewardList()) { + getMutableSkipRewardList().mergeFrom(other.skipRewardList); + } + return this; + } + + @Override + public ChessRogueSkipTeachingLevelScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + skipRewardList.clear(); + return this; + } + + @Override + public ChessRogueSkipTeachingLevelScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + skipRewardList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueSkipTeachingLevelScRsp)) { + return false; + } + ChessRogueSkipTeachingLevelScRsp other = (ChessRogueSkipTeachingLevelScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasSkipRewardList() || skipRewardList.equals(other.skipRewardList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(skipRewardList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(skipRewardList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueSkipTeachingLevelScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // skipRewardList + input.readMessage(skipRewardList); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.skipRewardList, skipRewardList); + } + output.endObject(); + } + + @Override + public ChessRogueSkipTeachingLevelScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1324118860: + case -251773714: { + if (input.isAtField(FieldNames.skipRewardList)) { + if (!input.trySkipNullValue()) { + input.readMessage(skipRewardList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueSkipTeachingLevelScRsp clone() { + return new ChessRogueSkipTeachingLevelScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueSkipTeachingLevelScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueSkipTeachingLevelScRsp(), data).checkInitialized(); + } + + public static ChessRogueSkipTeachingLevelScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueSkipTeachingLevelScRsp(), input).checkInitialized(); + } + + public static ChessRogueSkipTeachingLevelScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueSkipTeachingLevelScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueSkipTeachingLevelScRsp messages + */ + public static MessageFactory getFactory() { + return ChessRogueSkipTeachingLevelScRspFactory.INSTANCE; + } + + private enum ChessRogueSkipTeachingLevelScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueSkipTeachingLevelScRsp create() { + return ChessRogueSkipTeachingLevelScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName skipRewardList = FieldName.forField("skipRewardList", "skip_reward_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueTalentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueTalentInfoOuterClass.java new file mode 100644 index 000000000..8bf9837b7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueTalentInfoOuterClass.java @@ -0,0 +1,362 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueTalentInfoOuterClass { + /** + * Protobuf type {@code ChessRogueTalentInfo} + */ + public static final class ChessRogueTalentInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 GDNBONNPGCN = 10; + */ + private int gDNBONNPGCN; + + /** + * optional .RogueTalentInfoList rogue_talent_info_list = 1; + */ + private final RogueTalentInfoListOuterClass.RogueTalentInfoList rogueTalentInfoList = RogueTalentInfoListOuterClass.RogueTalentInfoList.newInstance(); + + private ChessRogueTalentInfo() { + } + + /** + * @return a new empty instance of {@code ChessRogueTalentInfo} + */ + public static ChessRogueTalentInfo newInstance() { + return new ChessRogueTalentInfo(); + } + + /** + * optional uint32 GDNBONNPGCN = 10; + * @return whether the gDNBONNPGCN field is set + */ + public boolean hasGDNBONNPGCN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 GDNBONNPGCN = 10; + * @return this + */ + public ChessRogueTalentInfo clearGDNBONNPGCN() { + bitField0_ &= ~0x00000001; + gDNBONNPGCN = 0; + return this; + } + + /** + * optional uint32 GDNBONNPGCN = 10; + * @return the gDNBONNPGCN + */ + public int getGDNBONNPGCN() { + return gDNBONNPGCN; + } + + /** + * optional uint32 GDNBONNPGCN = 10; + * @param value the gDNBONNPGCN to set + * @return this + */ + public ChessRogueTalentInfo setGDNBONNPGCN(final int value) { + bitField0_ |= 0x00000001; + gDNBONNPGCN = value; + return this; + } + + /** + * optional .RogueTalentInfoList rogue_talent_info_list = 1; + * @return whether the rogueTalentInfoList field is set + */ + public boolean hasRogueTalentInfoList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueTalentInfoList rogue_talent_info_list = 1; + * @return this + */ + public ChessRogueTalentInfo clearRogueTalentInfoList() { + bitField0_ &= ~0x00000002; + rogueTalentInfoList.clear(); + return this; + } + + /** + * optional .RogueTalentInfoList rogue_talent_info_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 #getMutableRogueTalentInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueTalentInfoListOuterClass.RogueTalentInfoList getRogueTalentInfoList() { + return rogueTalentInfoList; + } + + /** + * optional .RogueTalentInfoList rogue_talent_info_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 RogueTalentInfoListOuterClass.RogueTalentInfoList getMutableRogueTalentInfoList() { + bitField0_ |= 0x00000002; + return rogueTalentInfoList; + } + + /** + * optional .RogueTalentInfoList rogue_talent_info_list = 1; + * @param value the rogueTalentInfoList to set + * @return this + */ + public ChessRogueTalentInfo setRogueTalentInfoList( + final RogueTalentInfoListOuterClass.RogueTalentInfoList value) { + bitField0_ |= 0x00000002; + rogueTalentInfoList.copyFrom(value); + return this; + } + + @Override + public ChessRogueTalentInfo copyFrom(final ChessRogueTalentInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gDNBONNPGCN = other.gDNBONNPGCN; + rogueTalentInfoList.copyFrom(other.rogueTalentInfoList); + } + return this; + } + + @Override + public ChessRogueTalentInfo mergeFrom(final ChessRogueTalentInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGDNBONNPGCN()) { + setGDNBONNPGCN(other.gDNBONNPGCN); + } + if (other.hasRogueTalentInfoList()) { + getMutableRogueTalentInfoList().mergeFrom(other.rogueTalentInfoList); + } + return this; + } + + @Override + public ChessRogueTalentInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gDNBONNPGCN = 0; + rogueTalentInfoList.clear(); + return this; + } + + @Override + public ChessRogueTalentInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueTalentInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueTalentInfo)) { + return false; + } + ChessRogueTalentInfo other = (ChessRogueTalentInfo) o; + return bitField0_ == other.bitField0_ + && (!hasGDNBONNPGCN() || gDNBONNPGCN == other.gDNBONNPGCN) + && (!hasRogueTalentInfoList() || rogueTalentInfoList.equals(other.rogueTalentInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(gDNBONNPGCN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(rogueTalentInfoList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gDNBONNPGCN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueTalentInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueTalentInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // gDNBONNPGCN + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rogueTalentInfoList + input.readMessage(rogueTalentInfoList); + 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.gDNBONNPGCN, gDNBONNPGCN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueTalentInfoList, rogueTalentInfoList); + } + output.endObject(); + } + + @Override + public ChessRogueTalentInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 7202560: { + if (input.isAtField(FieldNames.gDNBONNPGCN)) { + if (!input.trySkipNullValue()) { + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2135879666: + case 1737378241: { + if (input.isAtField(FieldNames.rogueTalentInfoList)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueTalentInfoList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueTalentInfo clone() { + return new ChessRogueTalentInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueTalentInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueTalentInfo(), data).checkInitialized(); + } + + public static ChessRogueTalentInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueTalentInfo(), input).checkInitialized(); + } + + public static ChessRogueTalentInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueTalentInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueTalentInfo messages + */ + public static MessageFactory getFactory() { + return ChessRogueTalentInfoFactory.INSTANCE; + } + + private enum ChessRogueTalentInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueTalentInfo create() { + return ChessRogueTalentInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gDNBONNPGCN = FieldName.forField("GDNBONNPGCN"); + + static final FieldName rogueTalentInfoList = FieldName.forField("rogueTalentInfoList", "rogue_talent_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAeonModifierValueScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAeonModifierValueScNotifyOuterClass.java new file mode 100644 index 000000000..c8e6e804a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAeonModifierValueScNotifyOuterClass.java @@ -0,0 +1,346 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueUpdateAeonModifierValueScNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueUpdateAeonModifierValueScNotify} + */ + public static final class ChessRogueUpdateAeonModifierValueScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 KNIDGHHDIKJ = 6; + */ + private int kNIDGHHDIKJ; + + /** + * optional uint32 aeon_id = 5; + */ + private int aeonId; + + private ChessRogueUpdateAeonModifierValueScNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueUpdateAeonModifierValueScNotify} + */ + public static ChessRogueUpdateAeonModifierValueScNotify newInstance() { + return new ChessRogueUpdateAeonModifierValueScNotify(); + } + + /** + * optional int32 KNIDGHHDIKJ = 6; + * @return whether the kNIDGHHDIKJ field is set + */ + public boolean hasKNIDGHHDIKJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 KNIDGHHDIKJ = 6; + * @return this + */ + public ChessRogueUpdateAeonModifierValueScNotify clearKNIDGHHDIKJ() { + bitField0_ &= ~0x00000001; + kNIDGHHDIKJ = 0; + return this; + } + + /** + * optional int32 KNIDGHHDIKJ = 6; + * @return the kNIDGHHDIKJ + */ + public int getKNIDGHHDIKJ() { + return kNIDGHHDIKJ; + } + + /** + * optional int32 KNIDGHHDIKJ = 6; + * @param value the kNIDGHHDIKJ to set + * @return this + */ + public ChessRogueUpdateAeonModifierValueScNotify setKNIDGHHDIKJ(final int value) { + bitField0_ |= 0x00000001; + kNIDGHHDIKJ = value; + return this; + } + + /** + * optional uint32 aeon_id = 5; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 aeon_id = 5; + * @return this + */ + public ChessRogueUpdateAeonModifierValueScNotify clearAeonId() { + bitField0_ &= ~0x00000002; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 5; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 5; + * @param value the aeonId to set + * @return this + */ + public ChessRogueUpdateAeonModifierValueScNotify setAeonId(final int value) { + bitField0_ |= 0x00000002; + aeonId = value; + return this; + } + + @Override + public ChessRogueUpdateAeonModifierValueScNotify copyFrom( + final ChessRogueUpdateAeonModifierValueScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kNIDGHHDIKJ = other.kNIDGHHDIKJ; + aeonId = other.aeonId; + } + return this; + } + + @Override + public ChessRogueUpdateAeonModifierValueScNotify mergeFrom( + final ChessRogueUpdateAeonModifierValueScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKNIDGHHDIKJ()) { + setKNIDGHHDIKJ(other.kNIDGHHDIKJ); + } + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + return this; + } + + @Override + public ChessRogueUpdateAeonModifierValueScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kNIDGHHDIKJ = 0; + aeonId = 0; + return this; + } + + @Override + public ChessRogueUpdateAeonModifierValueScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueUpdateAeonModifierValueScNotify)) { + return false; + } + ChessRogueUpdateAeonModifierValueScNotify other = (ChessRogueUpdateAeonModifierValueScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasKNIDGHHDIKJ() || kNIDGHHDIKJ == other.kNIDGHHDIKJ) + && (!hasAeonId() || aeonId == other.aeonId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeInt32NoTag(kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(aeonId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueUpdateAeonModifierValueScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // kNIDGHHDIKJ + kNIDGHHDIKJ = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // aeonId + aeonId = input.readUInt32(); + 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.writeInt32(FieldNames.kNIDGHHDIKJ, kNIDGHHDIKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.aeonId, aeonId); + } + output.endObject(); + } + + @Override + public ChessRogueUpdateAeonModifierValueScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 394421549: { + if (input.isAtField(FieldNames.kNIDGHHDIKJ)) { + if (!input.trySkipNullValue()) { + kNIDGHHDIKJ = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { + if (!input.trySkipNullValue()) { + aeonId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueUpdateAeonModifierValueScNotify clone() { + return new ChessRogueUpdateAeonModifierValueScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueUpdateAeonModifierValueScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateAeonModifierValueScNotify(), data).checkInitialized(); + } + + public static ChessRogueUpdateAeonModifierValueScNotify parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateAeonModifierValueScNotify(), input).checkInitialized(); + } + + public static ChessRogueUpdateAeonModifierValueScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateAeonModifierValueScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueUpdateAeonModifierValueScNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueUpdateAeonModifierValueScNotifyFactory.INSTANCE; + } + + private enum ChessRogueUpdateAeonModifierValueScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueUpdateAeonModifierValueScNotify create() { + return ChessRogueUpdateAeonModifierValueScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kNIDGHHDIKJ = FieldName.forField("KNIDGHHDIKJ"); + + static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateBoardScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateBoardScNotifyOuterClass.java new file mode 100644 index 000000000..d24e48084 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateBoardScNotifyOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueUpdateBoardScNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueUpdateBoardScNotify} + */ + public static final class ChessRogueUpdateBoardScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .CellInfo IKFKGAPCNON = 8; + */ + private final CellInfoOuterClass.CellInfo iKFKGAPCNON = CellInfoOuterClass.CellInfo.newInstance(); + + private ChessRogueUpdateBoardScNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueUpdateBoardScNotify} + */ + public static ChessRogueUpdateBoardScNotify newInstance() { + return new ChessRogueUpdateBoardScNotify(); + } + + /** + * optional .CellInfo IKFKGAPCNON = 8; + * @return whether the iKFKGAPCNON field is set + */ + public boolean hasIKFKGAPCNON() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .CellInfo IKFKGAPCNON = 8; + * @return this + */ + public ChessRogueUpdateBoardScNotify clearIKFKGAPCNON() { + bitField0_ &= ~0x00000001; + iKFKGAPCNON.clear(); + return this; + } + + /** + * optional .CellInfo IKFKGAPCNON = 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 #getMutableIKFKGAPCNON()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellInfoOuterClass.CellInfo getIKFKGAPCNON() { + return iKFKGAPCNON; + } + + /** + * optional .CellInfo IKFKGAPCNON = 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 CellInfoOuterClass.CellInfo getMutableIKFKGAPCNON() { + bitField0_ |= 0x00000001; + return iKFKGAPCNON; + } + + /** + * optional .CellInfo IKFKGAPCNON = 8; + * @param value the iKFKGAPCNON to set + * @return this + */ + public ChessRogueUpdateBoardScNotify setIKFKGAPCNON(final CellInfoOuterClass.CellInfo value) { + bitField0_ |= 0x00000001; + iKFKGAPCNON.copyFrom(value); + return this; + } + + @Override + public ChessRogueUpdateBoardScNotify copyFrom(final ChessRogueUpdateBoardScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + iKFKGAPCNON.copyFrom(other.iKFKGAPCNON); + } + return this; + } + + @Override + public ChessRogueUpdateBoardScNotify mergeFrom(final ChessRogueUpdateBoardScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIKFKGAPCNON()) { + getMutableIKFKGAPCNON().mergeFrom(other.iKFKGAPCNON); + } + return this; + } + + @Override + public ChessRogueUpdateBoardScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iKFKGAPCNON.clear(); + return this; + } + + @Override + public ChessRogueUpdateBoardScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iKFKGAPCNON.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueUpdateBoardScNotify)) { + return false; + } + ChessRogueUpdateBoardScNotify other = (ChessRogueUpdateBoardScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasIKFKGAPCNON() || iKFKGAPCNON.equals(other.iKFKGAPCNON)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(iKFKGAPCNON); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(iKFKGAPCNON); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueUpdateBoardScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 66: { + // iKFKGAPCNON + input.readMessage(iKFKGAPCNON); + 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.writeMessage(FieldNames.iKFKGAPCNON, iKFKGAPCNON); + } + output.endObject(); + } + + @Override + public ChessRogueUpdateBoardScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 532023289: { + if (input.isAtField(FieldNames.iKFKGAPCNON)) { + if (!input.trySkipNullValue()) { + input.readMessage(iKFKGAPCNON); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueUpdateBoardScNotify clone() { + return new ChessRogueUpdateBoardScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueUpdateBoardScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateBoardScNotify(), data).checkInitialized(); + } + + public static ChessRogueUpdateBoardScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateBoardScNotify(), input).checkInitialized(); + } + + public static ChessRogueUpdateBoardScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateBoardScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueUpdateBoardScNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueUpdateBoardScNotifyFactory.INSTANCE; + } + + private enum ChessRogueUpdateBoardScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueUpdateBoardScNotify create() { + return ChessRogueUpdateBoardScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName iKFKGAPCNON = FieldName.forField("IKFKGAPCNON"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateLevelBaseInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateLevelBaseInfoScNotifyOuterClass.java new file mode 100644 index 000000000..f636bd2b9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateLevelBaseInfoScNotifyOuterClass.java @@ -0,0 +1,415 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueUpdateLevelBaseInfoScNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueUpdateLevelBaseInfoScNotify} + */ + public static final class ChessRogueUpdateLevelBaseInfoScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueUpdateLevelStatusReason reason = 7; + */ + private int reason; + + /** + * optional .ChessRogueLevelStatus level_status = 12; + */ + private int levelStatus; + + private ChessRogueUpdateLevelBaseInfoScNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueUpdateLevelBaseInfoScNotify} + */ + public static ChessRogueUpdateLevelBaseInfoScNotify newInstance() { + return new ChessRogueUpdateLevelBaseInfoScNotify(); + } + + /** + * optional .ChessRogueUpdateLevelStatusReason reason = 7; + * @return whether the reason field is set + */ + public boolean hasReason() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueUpdateLevelStatusReason reason = 7; + * @return this + */ + public ChessRogueUpdateLevelBaseInfoScNotify clearReason() { + bitField0_ &= ~0x00000001; + reason = 0; + return this; + } + + /** + * optional .ChessRogueUpdateLevelStatusReason reason = 7; + * @return the reason + */ + public ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason getReason( + ) { + return ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason.forNumber(reason); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueUpdateLevelBaseInfoScNotify#getReason()}.getNumber(). + * + * @return numeric wire representation + */ + public int getReasonValue() { + return reason; + } + + /** + * 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 ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason}. Setting an invalid value + * can cause {@link ChessRogueUpdateLevelBaseInfoScNotify#getReason()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueUpdateLevelBaseInfoScNotify setReasonValue(final int value) { + bitField0_ |= 0x00000001; + reason = value; + return this; + } + + /** + * optional .ChessRogueUpdateLevelStatusReason reason = 7; + * @param value the reason to set + * @return this + */ + public ChessRogueUpdateLevelBaseInfoScNotify setReason( + final ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason value) { + bitField0_ |= 0x00000001; + reason = value.getNumber(); + return this; + } + + /** + * optional .ChessRogueLevelStatus level_status = 12; + * @return whether the levelStatus field is set + */ + public boolean hasLevelStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueLevelStatus level_status = 12; + * @return this + */ + public ChessRogueUpdateLevelBaseInfoScNotify clearLevelStatus() { + bitField0_ &= ~0x00000002; + levelStatus = 0; + return this; + } + + /** + * optional .ChessRogueLevelStatus level_status = 12; + * @return the levelStatus + */ + public ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus getLevelStatus() { + return ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus.forNumber(levelStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChessRogueUpdateLevelBaseInfoScNotify#getLevelStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getLevelStatusValue() { + return levelStatus; + } + + /** + * 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 ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus}. Setting an invalid value + * can cause {@link ChessRogueUpdateLevelBaseInfoScNotify#getLevelStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChessRogueUpdateLevelBaseInfoScNotify setLevelStatusValue(final int value) { + bitField0_ |= 0x00000002; + levelStatus = value; + return this; + } + + /** + * optional .ChessRogueLevelStatus level_status = 12; + * @param value the levelStatus to set + * @return this + */ + public ChessRogueUpdateLevelBaseInfoScNotify setLevelStatus( + final ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus value) { + bitField0_ |= 0x00000002; + levelStatus = value.getNumber(); + return this; + } + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify copyFrom( + final ChessRogueUpdateLevelBaseInfoScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reason = other.reason; + levelStatus = other.levelStatus; + } + return this; + } + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify mergeFrom( + final ChessRogueUpdateLevelBaseInfoScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReason()) { + setReasonValue(other.reason); + } + if (other.hasLevelStatus()) { + setLevelStatusValue(other.levelStatus); + } + return this; + } + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reason = 0; + levelStatus = 0; + return this; + } + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueUpdateLevelBaseInfoScNotify)) { + return false; + } + ChessRogueUpdateLevelBaseInfoScNotify other = (ChessRogueUpdateLevelBaseInfoScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasReason() || reason == other.reason) + && (!hasLevelStatus() || levelStatus == other.levelStatus); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeEnumNoTag(reason); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(levelStatus); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(reason); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(levelStatus); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueUpdateLevelBaseInfoScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // reason + final int value = input.readInt32(); + if (ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason.forNumber(value) != null) { + reason = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // levelStatus + final int value = input.readInt32(); + if (ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus.forNumber(value) != null) { + levelStatus = value; + 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.writeEnum(FieldNames.reason, reason, ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.levelStatus, levelStatus, ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus.converter()); + } + output.endObject(); + } + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -934964668: { + if (input.isAtField(FieldNames.reason)) { + if (!input.trySkipNullValue()) { + final ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason value = input.readEnum(ChessRogueUpdateLevelStatusReasonOuterClass.ChessRogueUpdateLevelStatusReason.converter()); + if (value != null) { + reason = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1781179542: + case 1430451469: { + if (input.isAtField(FieldNames.levelStatus)) { + if (!input.trySkipNullValue()) { + final ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus value = input.readEnum(ChessRogueLevelStatusOuterClass.ChessRogueLevelStatus.converter()); + if (value != null) { + levelStatus = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify clone() { + return new ChessRogueUpdateLevelBaseInfoScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueUpdateLevelBaseInfoScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateLevelBaseInfoScNotify(), data).checkInitialized(); + } + + public static ChessRogueUpdateLevelBaseInfoScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateLevelBaseInfoScNotify(), input).checkInitialized(); + } + + public static ChessRogueUpdateLevelBaseInfoScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateLevelBaseInfoScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueUpdateLevelBaseInfoScNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueUpdateLevelBaseInfoScNotifyFactory.INSTANCE; + } + + private enum ChessRogueUpdateLevelBaseInfoScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueUpdateLevelBaseInfoScNotify create() { + return ChessRogueUpdateLevelBaseInfoScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reason = FieldName.forField("reason"); + + static final FieldName levelStatus = FieldName.forField("levelStatus", "level_status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateLevelStatusReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateLevelStatusReasonOuterClass.java new file mode 100644 index 000000000..afcea9d80 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateLevelStatusReasonOuterClass.java @@ -0,0 +1,117 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChessRogueUpdateLevelStatusReasonOuterClass { + /** + * Protobuf enum {@code ChessRogueUpdateLevelStatusReason} + */ + public enum ChessRogueUpdateLevelStatusReason implements ProtoEnum { + /** + * CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE = 0; + */ + CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE("CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE", 0), + + /** + * CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG = 1; + */ + CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG("CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG", 1); + + /** + * CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE = 0; + */ + public static final int CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE_VALUE = 0; + + /** + * CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG = 1; + */ + public static final int CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG_VALUE = 1; + + private final String name; + + private final int number; + + private ChessRogueUpdateLevelStatusReason(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 ChessRogueUpdateLevelStatusReasonConverter.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 ChessRogueUpdateLevelStatusReason forNumber(int value) { + return ChessRogueUpdateLevelStatusReasonConverter.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 ChessRogueUpdateLevelStatusReason forNumberOr(int number, + ChessRogueUpdateLevelStatusReason other) { + ChessRogueUpdateLevelStatusReason value = forNumber(number); + return value == null ? other : value; + } + + enum ChessRogueUpdateLevelStatusReasonConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChessRogueUpdateLevelStatusReason[] lookup = new ChessRogueUpdateLevelStatusReason[2]; + + static { + lookup[0] = CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE; + lookup[1] = CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG; + } + + @Override + public final ChessRogueUpdateLevelStatusReason forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChessRogueUpdateLevelStatusReason forName(final CharSequence value) { + if (value.length() == 39) { + if (ProtoUtil.isEqual("CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE", value)) { + return CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_NONE; + } + } + if (value.length() == 41) { + if (ProtoUtil.isEqual("CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG", value)) { + return CHESS_ROGUE_UPDATE_LEVEL_STATUS_BY_DIALOG; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateReviveInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateReviveInfoScNotifyOuterClass.java new file mode 100644 index 000000000..af91b2b72 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateReviveInfoScNotifyOuterClass.java @@ -0,0 +1,287 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class ChessRogueUpdateReviveInfoScNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueUpdateReviveInfoScNotify} + */ + public static final class ChessRogueUpdateReviveInfoScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + */ + private final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost reviveInfo = RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost.newInstance(); + + private ChessRogueUpdateReviveInfoScNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueUpdateReviveInfoScNotify} + */ + public static ChessRogueUpdateReviveInfoScNotify newInstance() { + return new ChessRogueUpdateReviveInfoScNotify(); + } + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + * @return whether the reviveInfo field is set + */ + public boolean hasReviveInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + * @return this + */ + public ChessRogueUpdateReviveInfoScNotify clearReviveInfo() { + bitField0_ &= ~0x00000001; + reviveInfo.clear(); + return this; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 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 #getMutableReviveInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getReviveInfo() { + return reviveInfo; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 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 RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getMutableReviveInfo() { + bitField0_ |= 0x00000001; + return reviveInfo; + } + + /** + * optional .RogueAvatarReviveCost revive_info = 6; + * @param value the reviveInfo to set + * @return this + */ + public ChessRogueUpdateReviveInfoScNotify setReviveInfo( + final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost value) { + bitField0_ |= 0x00000001; + reviveInfo.copyFrom(value); + return this; + } + + @Override + public ChessRogueUpdateReviveInfoScNotify copyFrom( + final ChessRogueUpdateReviveInfoScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reviveInfo.copyFrom(other.reviveInfo); + } + return this; + } + + @Override + public ChessRogueUpdateReviveInfoScNotify mergeFrom( + final ChessRogueUpdateReviveInfoScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReviveInfo()) { + getMutableReviveInfo().mergeFrom(other.reviveInfo); + } + return this; + } + + @Override + public ChessRogueUpdateReviveInfoScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clear(); + return this; + } + + @Override + public ChessRogueUpdateReviveInfoScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueUpdateReviveInfoScNotify)) { + return false; + } + ChessRogueUpdateReviveInfoScNotify other = (ChessRogueUpdateReviveInfoScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasReviveInfo() || reviveInfo.equals(other.reviveInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(reviveInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reviveInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueUpdateReviveInfoScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 50: { + // reviveInfo + input.readMessage(reviveInfo); + 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.writeMessage(FieldNames.reviveInfo, reviveInfo); + } + output.endObject(); + } + + @Override + public ChessRogueUpdateReviveInfoScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1426382941: + case -1248022184: { + if (input.isAtField(FieldNames.reviveInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(reviveInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueUpdateReviveInfoScNotify clone() { + return new ChessRogueUpdateReviveInfoScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueUpdateReviveInfoScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateReviveInfoScNotify(), data).checkInitialized(); + } + + public static ChessRogueUpdateReviveInfoScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateReviveInfoScNotify(), input).checkInitialized(); + } + + public static ChessRogueUpdateReviveInfoScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateReviveInfoScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueUpdateReviveInfoScNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueUpdateReviveInfoScNotifyFactory.INSTANCE; + } + + private enum ChessRogueUpdateReviveInfoScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueUpdateReviveInfoScNotify create() { + return ChessRogueUpdateReviveInfoScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reviveInfo = FieldName.forField("reviveInfo", "revive_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateUnlockLevelScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateUnlockLevelScNotifyOuterClass.java new file mode 100644 index 000000000..a8e178740 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateUnlockLevelScNotifyOuterClass.java @@ -0,0 +1,307 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ChessRogueUpdateUnlockLevelScNotifyOuterClass { + /** + * Protobuf type {@code ChessRogueUpdateUnlockLevelScNotify} + */ + public static final class ChessRogueUpdateUnlockLevelScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 area_id_list = 3; + */ + private final RepeatedInt areaIdList = RepeatedInt.newEmptyInstance(); + + private ChessRogueUpdateUnlockLevelScNotify() { + } + + /** + * @return a new empty instance of {@code ChessRogueUpdateUnlockLevelScNotify} + */ + public static ChessRogueUpdateUnlockLevelScNotify newInstance() { + return new ChessRogueUpdateUnlockLevelScNotify(); + } + + /** + * repeated uint32 area_id_list = 3; + * @return whether the areaIdList field is set + */ + public boolean hasAreaIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 area_id_list = 3; + * @return this + */ + public ChessRogueUpdateUnlockLevelScNotify clearAreaIdList() { + bitField0_ &= ~0x00000001; + areaIdList.clear(); + return this; + } + + /** + * repeated uint32 area_id_list = 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 #getMutableAreaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAreaIdList() { + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 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 getMutableAreaIdList() { + bitField0_ |= 0x00000001; + return areaIdList; + } + + /** + * repeated uint32 area_id_list = 3; + * @param value the areaIdList to add + * @return this + */ + public ChessRogueUpdateUnlockLevelScNotify addAreaIdList(final int value) { + bitField0_ |= 0x00000001; + areaIdList.add(value); + return this; + } + + /** + * repeated uint32 area_id_list = 3; + * @param values the areaIdList to add + * @return this + */ + public ChessRogueUpdateUnlockLevelScNotify addAllAreaIdList(final int... values) { + bitField0_ |= 0x00000001; + areaIdList.addAll(values); + return this; + } + + @Override + public ChessRogueUpdateUnlockLevelScNotify copyFrom( + final ChessRogueUpdateUnlockLevelScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + areaIdList.copyFrom(other.areaIdList); + } + return this; + } + + @Override + public ChessRogueUpdateUnlockLevelScNotify mergeFrom( + final ChessRogueUpdateUnlockLevelScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAreaIdList()) { + getMutableAreaIdList().addAll(other.areaIdList); + } + return this; + } + + @Override + public ChessRogueUpdateUnlockLevelScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + areaIdList.clear(); + return this; + } + + @Override + public ChessRogueUpdateUnlockLevelScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + areaIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChessRogueUpdateUnlockLevelScNotify)) { + return false; + } + ChessRogueUpdateUnlockLevelScNotify other = (ChessRogueUpdateUnlockLevelScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasAreaIdList() || areaIdList.equals(other.areaIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < areaIdList.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(areaIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * areaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(areaIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChessRogueUpdateUnlockLevelScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // areaIdList [packed=true] + input.readPackedUInt32(areaIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // areaIdList [packed=false] + tag = input.readRepeatedUInt32(areaIdList, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.areaIdList, areaIdList); + } + output.endObject(); + } + + @Override + public ChessRogueUpdateUnlockLevelScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 530025286: + case -1239486576: { + if (input.isAtField(FieldNames.areaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(areaIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChessRogueUpdateUnlockLevelScNotify clone() { + return new ChessRogueUpdateUnlockLevelScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChessRogueUpdateUnlockLevelScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateUnlockLevelScNotify(), data).checkInitialized(); + } + + public static ChessRogueUpdateUnlockLevelScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateUnlockLevelScNotify(), input).checkInitialized(); + } + + public static ChessRogueUpdateUnlockLevelScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChessRogueUpdateUnlockLevelScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChessRogueUpdateUnlockLevelScNotify messages + */ + public static MessageFactory getFactory() { + return ChessRogueUpdateUnlockLevelScNotifyFactory.INSTANCE; + } + + private enum ChessRogueUpdateUnlockLevelScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChessRogueUpdateUnlockLevelScNotify create() { + return ChessRogueUpdateUnlockLevelScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName areaIdList = FieldName.forField("areaIdList", "area_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DIACKBJMGOMOuterClass.java b/src/generated/main/emu/lunarcore/proto/DIACKBJMGOMOuterClass.java new file mode 100644 index 000000000..b8eb1252e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DIACKBJMGOMOuterClass.java @@ -0,0 +1,258 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class DIACKBJMGOMOuterClass { + /** + * Protobuf type {@code DIACKBJMGOM} + */ + public static final class DIACKBJMGOM extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LHMPHPEODNP = 7; + */ + private int lHMPHPEODNP; + + private DIACKBJMGOM() { + } + + /** + * @return a new empty instance of {@code DIACKBJMGOM} + */ + public static DIACKBJMGOM newInstance() { + return new DIACKBJMGOM(); + } + + /** + * optional uint32 LHMPHPEODNP = 7; + * @return whether the lHMPHPEODNP field is set + */ + public boolean hasLHMPHPEODNP() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LHMPHPEODNP = 7; + * @return this + */ + public DIACKBJMGOM clearLHMPHPEODNP() { + bitField0_ &= ~0x00000001; + lHMPHPEODNP = 0; + return this; + } + + /** + * optional uint32 LHMPHPEODNP = 7; + * @return the lHMPHPEODNP + */ + public int getLHMPHPEODNP() { + return lHMPHPEODNP; + } + + /** + * optional uint32 LHMPHPEODNP = 7; + * @param value the lHMPHPEODNP to set + * @return this + */ + public DIACKBJMGOM setLHMPHPEODNP(final int value) { + bitField0_ |= 0x00000001; + lHMPHPEODNP = value; + return this; + } + + @Override + public DIACKBJMGOM copyFrom(final DIACKBJMGOM other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lHMPHPEODNP = other.lHMPHPEODNP; + } + return this; + } + + @Override + public DIACKBJMGOM mergeFrom(final DIACKBJMGOM other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLHMPHPEODNP()) { + setLHMPHPEODNP(other.lHMPHPEODNP); + } + return this; + } + + @Override + public DIACKBJMGOM clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lHMPHPEODNP = 0; + return this; + } + + @Override + public DIACKBJMGOM clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DIACKBJMGOM)) { + return false; + } + DIACKBJMGOM other = (DIACKBJMGOM) o; + return bitField0_ == other.bitField0_ + && (!hasLHMPHPEODNP() || lHMPHPEODNP == other.lHMPHPEODNP); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(lHMPHPEODNP); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lHMPHPEODNP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DIACKBJMGOM mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // lHMPHPEODNP + lHMPHPEODNP = input.readUInt32(); + 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.writeUInt32(FieldNames.lHMPHPEODNP, lHMPHPEODNP); + } + output.endObject(); + } + + @Override + public DIACKBJMGOM mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1689644821: { + if (input.isAtField(FieldNames.lHMPHPEODNP)) { + if (!input.trySkipNullValue()) { + lHMPHPEODNP = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DIACKBJMGOM clone() { + return new DIACKBJMGOM().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DIACKBJMGOM parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DIACKBJMGOM(), data).checkInitialized(); + } + + public static DIACKBJMGOM parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DIACKBJMGOM(), input).checkInitialized(); + } + + public static DIACKBJMGOM parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DIACKBJMGOM(), input).checkInitialized(); + } + + /** + * @return factory for creating DIACKBJMGOM messages + */ + public static MessageFactory getFactory() { + return DIACKBJMGOMFactory.INSTANCE; + } + + private enum DIACKBJMGOMFactory implements MessageFactory { + INSTANCE; + + @Override + public DIACKBJMGOM create() { + return DIACKBJMGOM.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lHMPHPEODNP = FieldName.forField("LHMPHPEODNP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ECBKGCFNANBOuterClass.java b/src/generated/main/emu/lunarcore/proto/ECBKGCFNANBOuterClass.java new file mode 100644 index 000000000..e0bb9e1df --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ECBKGCFNANBOuterClass.java @@ -0,0 +1,373 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ECBKGCFNANBOuterClass { + /** + * Protobuf type {@code ECBKGCFNANB} + */ + public static final class ECBKGCFNANB extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 8; + */ + private int dCECFOKFIHH; + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 10; + */ + private final RepeatedMessage dBNJGEEONOK = RepeatedMessage.newEmptyInstance(RogueCommonBuffOuterClass.RogueCommonBuff.getFactory()); + + private ECBKGCFNANB() { + } + + /** + * @return a new empty instance of {@code ECBKGCFNANB} + */ + public static ECBKGCFNANB newInstance() { + return new ECBKGCFNANB(); + } + + /** + * optional uint32 DCECFOKFIHH = 8; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 8; + * @return this + */ + public ECBKGCFNANB clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 8; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 8; + * @param value the dCECFOKFIHH to set + * @return this + */ + public ECBKGCFNANB setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 10; + * @return whether the dBNJGEEONOK field is set + */ + public boolean hasDBNJGEEONOK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 10; + * @return this + */ + public ECBKGCFNANB clearDBNJGEEONOK() { + bitField0_ &= ~0x00000002; + dBNJGEEONOK.clear(); + return this; + } + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 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 #getMutableDBNJGEEONOK()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDBNJGEEONOK() { + return dBNJGEEONOK; + } + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 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 RepeatedMessage getMutableDBNJGEEONOK() { + bitField0_ |= 0x00000002; + return dBNJGEEONOK; + } + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 10; + * @param value the dBNJGEEONOK to add + * @return this + */ + public ECBKGCFNANB addDBNJGEEONOK(final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000002; + dBNJGEEONOK.add(value); + return this; + } + + /** + * repeated .RogueCommonBuff DBNJGEEONOK = 10; + * @param values the dBNJGEEONOK to add + * @return this + */ + public ECBKGCFNANB addAllDBNJGEEONOK( + final RogueCommonBuffOuterClass.RogueCommonBuff... values) { + bitField0_ |= 0x00000002; + dBNJGEEONOK.addAll(values); + return this; + } + + @Override + public ECBKGCFNANB copyFrom(final ECBKGCFNANB other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + dBNJGEEONOK.copyFrom(other.dBNJGEEONOK); + } + return this; + } + + @Override + public ECBKGCFNANB mergeFrom(final ECBKGCFNANB other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasDBNJGEEONOK()) { + getMutableDBNJGEEONOK().addAll(other.dBNJGEEONOK); + } + return this; + } + + @Override + public ECBKGCFNANB clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + dBNJGEEONOK.clear(); + return this; + } + + @Override + public ECBKGCFNANB clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dBNJGEEONOK.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ECBKGCFNANB)) { + return false; + } + ECBKGCFNANB other = (ECBKGCFNANB) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasDBNJGEEONOK() || dBNJGEEONOK.equals(other.dBNJGEEONOK)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < dBNJGEEONOK.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(dBNJGEEONOK.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * dBNJGEEONOK.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dBNJGEEONOK); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ECBKGCFNANB mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // dBNJGEEONOK + tag = input.readRepeatedMessage(dBNJGEEONOK, 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.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.dBNJGEEONOK, dBNJGEEONOK); + } + output.endObject(); + } + + @Override + public ECBKGCFNANB mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -517361752: { + if (input.isAtField(FieldNames.dBNJGEEONOK)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dBNJGEEONOK); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ECBKGCFNANB clone() { + return new ECBKGCFNANB().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ECBKGCFNANB parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ECBKGCFNANB(), data).checkInitialized(); + } + + public static ECBKGCFNANB parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ECBKGCFNANB(), input).checkInitialized(); + } + + public static ECBKGCFNANB parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ECBKGCFNANB(), input).checkInitialized(); + } + + /** + * @return factory for creating ECBKGCFNANB messages + */ + public static MessageFactory getFactory() { + return ECBKGCFNANBFactory.INSTANCE; + } + + private enum ECBKGCFNANBFactory implements MessageFactory { + INSTANCE; + + @Override + public ECBKGCFNANB create() { + return ECBKGCFNANB.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName dBNJGEEONOK = FieldName.forField("DBNJGEEONOK"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ECMOGCMOJJHOuterClass.java b/src/generated/main/emu/lunarcore/proto/ECMOGCMOJJHOuterClass.java new file mode 100644 index 000000000..7e7d6c392 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ECMOGCMOJJHOuterClass.java @@ -0,0 +1,373 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ECMOGCMOJJHOuterClass { + /** + * Protobuf type {@code ECMOGCMOJJH} + */ + public static final class ECMOGCMOJJH extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 3; + */ + private int dCECFOKFIHH; + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 2; + */ + private final RepeatedMessage mNIDHBDDGIO = RepeatedMessage.newEmptyInstance(RogueCommonBuffOuterClass.RogueCommonBuff.getFactory()); + + private ECMOGCMOJJH() { + } + + /** + * @return a new empty instance of {@code ECMOGCMOJJH} + */ + public static ECMOGCMOJJH newInstance() { + return new ECMOGCMOJJH(); + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return this + */ + public ECMOGCMOJJH clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @param value the dCECFOKFIHH to set + * @return this + */ + public ECMOGCMOJJH setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 2; + * @return whether the mNIDHBDDGIO field is set + */ + public boolean hasMNIDHBDDGIO() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 2; + * @return this + */ + public ECMOGCMOJJH clearMNIDHBDDGIO() { + bitField0_ &= ~0x00000002; + mNIDHBDDGIO.clear(); + return this; + } + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 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 #getMutableMNIDHBDDGIO()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMNIDHBDDGIO() { + return mNIDHBDDGIO; + } + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 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 getMutableMNIDHBDDGIO() { + bitField0_ |= 0x00000002; + return mNIDHBDDGIO; + } + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 2; + * @param value the mNIDHBDDGIO to add + * @return this + */ + public ECMOGCMOJJH addMNIDHBDDGIO(final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000002; + mNIDHBDDGIO.add(value); + return this; + } + + /** + * repeated .RogueCommonBuff MNIDHBDDGIO = 2; + * @param values the mNIDHBDDGIO to add + * @return this + */ + public ECMOGCMOJJH addAllMNIDHBDDGIO( + final RogueCommonBuffOuterClass.RogueCommonBuff... values) { + bitField0_ |= 0x00000002; + mNIDHBDDGIO.addAll(values); + return this; + } + + @Override + public ECMOGCMOJJH copyFrom(final ECMOGCMOJJH other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + mNIDHBDDGIO.copyFrom(other.mNIDHBDDGIO); + } + return this; + } + + @Override + public ECMOGCMOJJH mergeFrom(final ECMOGCMOJJH other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasMNIDHBDDGIO()) { + getMutableMNIDHBDDGIO().addAll(other.mNIDHBDDGIO); + } + return this; + } + + @Override + public ECMOGCMOJJH clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + mNIDHBDDGIO.clear(); + return this; + } + + @Override + public ECMOGCMOJJH clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mNIDHBDDGIO.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ECMOGCMOJJH)) { + return false; + } + ECMOGCMOJJH other = (ECMOGCMOJJH) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasMNIDHBDDGIO() || mNIDHBDDGIO.equals(other.mNIDHBDDGIO)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < mNIDHBDDGIO.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(mNIDHBDDGIO.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * mNIDHBDDGIO.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mNIDHBDDGIO); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ECMOGCMOJJH mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // mNIDHBDDGIO + tag = input.readRepeatedMessage(mNIDHBDDGIO, 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.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.mNIDHBDDGIO, mNIDHBDDGIO); + } + output.endObject(); + } + + @Override + public ECMOGCMOJJH mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1807518839: { + if (input.isAtField(FieldNames.mNIDHBDDGIO)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mNIDHBDDGIO); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ECMOGCMOJJH clone() { + return new ECMOGCMOJJH().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ECMOGCMOJJH parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ECMOGCMOJJH(), data).checkInitialized(); + } + + public static ECMOGCMOJJH parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ECMOGCMOJJH(), input).checkInitialized(); + } + + public static ECMOGCMOJJH parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ECMOGCMOJJH(), input).checkInitialized(); + } + + /** + * @return factory for creating ECMOGCMOJJH messages + */ + public static MessageFactory getFactory() { + return ECMOGCMOJJHFactory.INSTANCE; + } + + private enum ECMOGCMOJJHFactory implements MessageFactory { + INSTANCE; + + @Override + public ECMOGCMOJJH create() { + return ECMOGCMOJJH.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName mNIDHBDDGIO = FieldName.forField("MNIDHBDDGIO"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EFPIHKDCMMEOuterClass.java b/src/generated/main/emu/lunarcore/proto/EFPIHKDCMMEOuterClass.java new file mode 100644 index 000000000..e9c430b39 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EFPIHKDCMMEOuterClass.java @@ -0,0 +1,373 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class EFPIHKDCMMEOuterClass { + /** + * Protobuf type {@code EFPIHKDCMME} + */ + public static final class EFPIHKDCMME extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 2; + */ + private int dCECFOKFIHH; + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 5; + */ + private final RepeatedMessage pIIINAKMKCA = RepeatedMessage.newEmptyInstance(RogueCommonBuffOuterClass.RogueCommonBuff.getFactory()); + + private EFPIHKDCMME() { + } + + /** + * @return a new empty instance of {@code EFPIHKDCMME} + */ + public static EFPIHKDCMME newInstance() { + return new EFPIHKDCMME(); + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @return this + */ + public EFPIHKDCMME clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @param value the dCECFOKFIHH to set + * @return this + */ + public EFPIHKDCMME setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 5; + * @return whether the pIIINAKMKCA field is set + */ + public boolean hasPIIINAKMKCA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 5; + * @return this + */ + public EFPIHKDCMME clearPIIINAKMKCA() { + bitField0_ &= ~0x00000002; + pIIINAKMKCA.clear(); + return this; + } + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 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 #getMutablePIIINAKMKCA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPIIINAKMKCA() { + return pIIINAKMKCA; + } + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 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 getMutablePIIINAKMKCA() { + bitField0_ |= 0x00000002; + return pIIINAKMKCA; + } + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 5; + * @param value the pIIINAKMKCA to add + * @return this + */ + public EFPIHKDCMME addPIIINAKMKCA(final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000002; + pIIINAKMKCA.add(value); + return this; + } + + /** + * repeated .RogueCommonBuff PIIINAKMKCA = 5; + * @param values the pIIINAKMKCA to add + * @return this + */ + public EFPIHKDCMME addAllPIIINAKMKCA( + final RogueCommonBuffOuterClass.RogueCommonBuff... values) { + bitField0_ |= 0x00000002; + pIIINAKMKCA.addAll(values); + return this; + } + + @Override + public EFPIHKDCMME copyFrom(final EFPIHKDCMME other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + pIIINAKMKCA.copyFrom(other.pIIINAKMKCA); + } + return this; + } + + @Override + public EFPIHKDCMME mergeFrom(final EFPIHKDCMME other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasPIIINAKMKCA()) { + getMutablePIIINAKMKCA().addAll(other.pIIINAKMKCA); + } + return this; + } + + @Override + public EFPIHKDCMME clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + pIIINAKMKCA.clear(); + return this; + } + + @Override + public EFPIHKDCMME clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pIIINAKMKCA.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EFPIHKDCMME)) { + return false; + } + EFPIHKDCMME other = (EFPIHKDCMME) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasPIIINAKMKCA() || pIIINAKMKCA.equals(other.pIIINAKMKCA)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < pIIINAKMKCA.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(pIIINAKMKCA.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * pIIINAKMKCA.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(pIIINAKMKCA); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EFPIHKDCMME mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // pIIINAKMKCA + tag = input.readRepeatedMessage(pIIINAKMKCA, 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.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.pIIINAKMKCA, pIIINAKMKCA); + } + output.endObject(); + } + + @Override + public EFPIHKDCMME mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1468488581: { + if (input.isAtField(FieldNames.pIIINAKMKCA)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(pIIINAKMKCA); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EFPIHKDCMME clone() { + return new EFPIHKDCMME().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EFPIHKDCMME parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EFPIHKDCMME(), data).checkInitialized(); + } + + public static EFPIHKDCMME parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EFPIHKDCMME(), input).checkInitialized(); + } + + public static EFPIHKDCMME parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EFPIHKDCMME(), input).checkInitialized(); + } + + /** + * @return factory for creating EFPIHKDCMME messages + */ + public static MessageFactory getFactory() { + return EFPIHKDCMMEFactory.INSTANCE; + } + + private enum EFPIHKDCMMEFactory implements MessageFactory { + INSTANCE; + + @Override + public EFPIHKDCMME create() { + return EFPIHKDCMME.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName pIIINAKMKCA = FieldName.forField("PIIINAKMKCA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EPECOIGOEAFOuterClass.java b/src/generated/main/emu/lunarcore/proto/EPECOIGOEAFOuterClass.java new file mode 100644 index 000000000..cea524c97 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EPECOIGOEAFOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class EPECOIGOEAFOuterClass { + /** + * Protobuf type {@code EPECOIGOEAF} + */ + public static final class EPECOIGOEAF extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 6; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 ICELECFCEJN = 5; + */ + private final RepeatedInt iCELECFCEJN = RepeatedInt.newEmptyInstance(); + + private EPECOIGOEAF() { + } + + /** + * @return a new empty instance of {@code EPECOIGOEAF} + */ + public static EPECOIGOEAF newInstance() { + return new EPECOIGOEAF(); + } + + /** + * optional uint32 DCECFOKFIHH = 6; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 6; + * @return this + */ + public EPECOIGOEAF clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 6; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 6; + * @param value the dCECFOKFIHH to set + * @return this + */ + public EPECOIGOEAF setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 ICELECFCEJN = 5; + * @return whether the iCELECFCEJN field is set + */ + public boolean hasICELECFCEJN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 ICELECFCEJN = 5; + * @return this + */ + public EPECOIGOEAF clearICELECFCEJN() { + bitField0_ &= ~0x00000002; + iCELECFCEJN.clear(); + return this; + } + + /** + * repeated uint32 ICELECFCEJN = 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 #getMutableICELECFCEJN()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getICELECFCEJN() { + return iCELECFCEJN; + } + + /** + * repeated uint32 ICELECFCEJN = 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 getMutableICELECFCEJN() { + bitField0_ |= 0x00000002; + return iCELECFCEJN; + } + + /** + * repeated uint32 ICELECFCEJN = 5; + * @param value the iCELECFCEJN to add + * @return this + */ + public EPECOIGOEAF addICELECFCEJN(final int value) { + bitField0_ |= 0x00000002; + iCELECFCEJN.add(value); + return this; + } + + /** + * repeated uint32 ICELECFCEJN = 5; + * @param values the iCELECFCEJN to add + * @return this + */ + public EPECOIGOEAF addAllICELECFCEJN(final int... values) { + bitField0_ |= 0x00000002; + iCELECFCEJN.addAll(values); + return this; + } + + @Override + public EPECOIGOEAF copyFrom(final EPECOIGOEAF other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + iCELECFCEJN.copyFrom(other.iCELECFCEJN); + } + return this; + } + + @Override + public EPECOIGOEAF mergeFrom(final EPECOIGOEAF other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasICELECFCEJN()) { + getMutableICELECFCEJN().addAll(other.iCELECFCEJN); + } + return this; + } + + @Override + public EPECOIGOEAF clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + iCELECFCEJN.clear(); + return this; + } + + @Override + public EPECOIGOEAF clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iCELECFCEJN.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EPECOIGOEAF)) { + return false; + } + EPECOIGOEAF other = (EPECOIGOEAF) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasICELECFCEJN() || iCELECFCEJN.equals(other.iCELECFCEJN)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < iCELECFCEJN.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(iCELECFCEJN.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * iCELECFCEJN.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iCELECFCEJN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EPECOIGOEAF mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // iCELECFCEJN [packed=true] + input.readPackedUInt32(iCELECFCEJN, 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 40: { + // iCELECFCEJN [packed=false] + tag = input.readRepeatedUInt32(iCELECFCEJN, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.iCELECFCEJN, iCELECFCEJN); + } + output.endObject(); + } + + @Override + public EPECOIGOEAF mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -367564243: { + if (input.isAtField(FieldNames.iCELECFCEJN)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(iCELECFCEJN); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EPECOIGOEAF clone() { + return new EPECOIGOEAF().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EPECOIGOEAF parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EPECOIGOEAF(), data).checkInitialized(); + } + + public static EPECOIGOEAF parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EPECOIGOEAF(), input).checkInitialized(); + } + + public static EPECOIGOEAF parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EPECOIGOEAF(), input).checkInitialized(); + } + + /** + * @return factory for creating EPECOIGOEAF messages + */ + public static MessageFactory getFactory() { + return EPECOIGOEAFFactory.INSTANCE; + } + + private enum EPECOIGOEAFFactory implements MessageFactory { + INSTANCE; + + @Override + public EPECOIGOEAF create() { + return EPECOIGOEAF.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName iCELECFCEJN = FieldName.forField("ICELECFCEJN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnhanceChessRogueBuffCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnhanceChessRogueBuffCsReqOuterClass.java new file mode 100644 index 000000000..7ff5aaca2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnhanceChessRogueBuffCsReqOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class EnhanceChessRogueBuffCsReqOuterClass { + /** + * Protobuf type {@code EnhanceChessRogueBuffCsReq} + */ + public static final class EnhanceChessRogueBuffCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 maze_buff_id = 15; + */ + private int mazeBuffId; + + private EnhanceChessRogueBuffCsReq() { + } + + /** + * @return a new empty instance of {@code EnhanceChessRogueBuffCsReq} + */ + public static EnhanceChessRogueBuffCsReq newInstance() { + return new EnhanceChessRogueBuffCsReq(); + } + + /** + * optional uint32 maze_buff_id = 15; + * @return whether the mazeBuffId field is set + */ + public boolean hasMazeBuffId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 maze_buff_id = 15; + * @return this + */ + public EnhanceChessRogueBuffCsReq clearMazeBuffId() { + bitField0_ &= ~0x00000001; + mazeBuffId = 0; + return this; + } + + /** + * optional uint32 maze_buff_id = 15; + * @return the mazeBuffId + */ + public int getMazeBuffId() { + return mazeBuffId; + } + + /** + * optional uint32 maze_buff_id = 15; + * @param value the mazeBuffId to set + * @return this + */ + public EnhanceChessRogueBuffCsReq setMazeBuffId(final int value) { + bitField0_ |= 0x00000001; + mazeBuffId = value; + return this; + } + + @Override + public EnhanceChessRogueBuffCsReq copyFrom(final EnhanceChessRogueBuffCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mazeBuffId = other.mazeBuffId; + } + return this; + } + + @Override + public EnhanceChessRogueBuffCsReq mergeFrom(final EnhanceChessRogueBuffCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMazeBuffId()) { + setMazeBuffId(other.mazeBuffId); + } + return this; + } + + @Override + public EnhanceChessRogueBuffCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mazeBuffId = 0; + return this; + } + + @Override + public EnhanceChessRogueBuffCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EnhanceChessRogueBuffCsReq)) { + return false; + } + EnhanceChessRogueBuffCsReq other = (EnhanceChessRogueBuffCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasMazeBuffId() || mazeBuffId == other.mazeBuffId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(mazeBuffId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mazeBuffId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnhanceChessRogueBuffCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // mazeBuffId + mazeBuffId = input.readUInt32(); + 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.writeUInt32(FieldNames.mazeBuffId, mazeBuffId); + } + output.endObject(); + } + + @Override + public EnhanceChessRogueBuffCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 144210285: + case 896621575: { + if (input.isAtField(FieldNames.mazeBuffId)) { + if (!input.trySkipNullValue()) { + mazeBuffId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnhanceChessRogueBuffCsReq clone() { + return new EnhanceChessRogueBuffCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnhanceChessRogueBuffCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnhanceChessRogueBuffCsReq(), data).checkInitialized(); + } + + public static EnhanceChessRogueBuffCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnhanceChessRogueBuffCsReq(), input).checkInitialized(); + } + + public static EnhanceChessRogueBuffCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnhanceChessRogueBuffCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating EnhanceChessRogueBuffCsReq messages + */ + public static MessageFactory getFactory() { + return EnhanceChessRogueBuffCsReqFactory.INSTANCE; + } + + private enum EnhanceChessRogueBuffCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public EnhanceChessRogueBuffCsReq create() { + return EnhanceChessRogueBuffCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mazeBuffId = FieldName.forField("mazeBuffId", "maze_buff_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnhanceChessRogueBuffScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnhanceChessRogueBuffScRspOuterClass.java new file mode 100644 index 000000000..2f753b820 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnhanceChessRogueBuffScRspOuterClass.java @@ -0,0 +1,547 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class EnhanceChessRogueBuffScRspOuterClass { + /** + * Protobuf type {@code EnhanceChessRogueBuffScRsp} + */ + public static final class EnhanceChessRogueBuffScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional bool is_success = 7; + */ + private boolean isSuccess; + + /** + * optional .RogueCommonBuff rogue_buff = 4; + */ + private final RogueCommonBuffOuterClass.RogueCommonBuff rogueBuff = RogueCommonBuffOuterClass.RogueCommonBuff.newInstance(); + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 8; + */ + private final ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList buffEnhanceInfo = ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList.newInstance(); + + private EnhanceChessRogueBuffScRsp() { + } + + /** + * @return a new empty instance of {@code EnhanceChessRogueBuffScRsp} + */ + public static EnhanceChessRogueBuffScRsp newInstance() { + return new EnhanceChessRogueBuffScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public EnhanceChessRogueBuffScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public EnhanceChessRogueBuffScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional bool is_success = 7; + * @return whether the isSuccess field is set + */ + public boolean hasIsSuccess() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_success = 7; + * @return this + */ + public EnhanceChessRogueBuffScRsp clearIsSuccess() { + bitField0_ &= ~0x00000002; + isSuccess = false; + return this; + } + + /** + * optional bool is_success = 7; + * @return the isSuccess + */ + public boolean getIsSuccess() { + return isSuccess; + } + + /** + * optional bool is_success = 7; + * @param value the isSuccess to set + * @return this + */ + public EnhanceChessRogueBuffScRsp setIsSuccess(final boolean value) { + bitField0_ |= 0x00000002; + isSuccess = value; + return this; + } + + /** + * optional .RogueCommonBuff rogue_buff = 4; + * @return whether the rogueBuff field is set + */ + public boolean hasRogueBuff() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueCommonBuff rogue_buff = 4; + * @return this + */ + public EnhanceChessRogueBuffScRsp clearRogueBuff() { + bitField0_ &= ~0x00000004; + rogueBuff.clear(); + return this; + } + + /** + * optional .RogueCommonBuff rogue_buff = 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 #getMutableRogueBuff()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonBuffOuterClass.RogueCommonBuff getRogueBuff() { + return rogueBuff; + } + + /** + * optional .RogueCommonBuff rogue_buff = 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 RogueCommonBuffOuterClass.RogueCommonBuff getMutableRogueBuff() { + bitField0_ |= 0x00000004; + return rogueBuff; + } + + /** + * optional .RogueCommonBuff rogue_buff = 4; + * @param value the rogueBuff to set + * @return this + */ + public EnhanceChessRogueBuffScRsp setRogueBuff( + final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000004; + rogueBuff.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 8; + * @return whether the buffEnhanceInfo field is set + */ + public boolean hasBuffEnhanceInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 8; + * @return this + */ + public EnhanceChessRogueBuffScRsp clearBuffEnhanceInfo() { + bitField0_ &= ~0x00000008; + buffEnhanceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 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 #getMutableBuffEnhanceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList getBuffEnhanceInfo() { + return buffEnhanceInfo; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 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 ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList getMutableBuffEnhanceInfo( + ) { + bitField0_ |= 0x00000008; + return buffEnhanceInfo; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 8; + * @param value the buffEnhanceInfo to set + * @return this + */ + public EnhanceChessRogueBuffScRsp setBuffEnhanceInfo( + final ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList value) { + bitField0_ |= 0x00000008; + buffEnhanceInfo.copyFrom(value); + return this; + } + + @Override + public EnhanceChessRogueBuffScRsp copyFrom(final EnhanceChessRogueBuffScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + isSuccess = other.isSuccess; + rogueBuff.copyFrom(other.rogueBuff); + buffEnhanceInfo.copyFrom(other.buffEnhanceInfo); + } + return this; + } + + @Override + public EnhanceChessRogueBuffScRsp mergeFrom(final EnhanceChessRogueBuffScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasIsSuccess()) { + setIsSuccess(other.isSuccess); + } + if (other.hasRogueBuff()) { + getMutableRogueBuff().mergeFrom(other.rogueBuff); + } + if (other.hasBuffEnhanceInfo()) { + getMutableBuffEnhanceInfo().mergeFrom(other.buffEnhanceInfo); + } + return this; + } + + @Override + public EnhanceChessRogueBuffScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + isSuccess = false; + rogueBuff.clear(); + buffEnhanceInfo.clear(); + return this; + } + + @Override + public EnhanceChessRogueBuffScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueBuff.clearQuick(); + buffEnhanceInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EnhanceChessRogueBuffScRsp)) { + return false; + } + EnhanceChessRogueBuffScRsp other = (EnhanceChessRogueBuffScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasIsSuccess() || isSuccess == other.isSuccess) + && (!hasRogueBuff() || rogueBuff.equals(other.rogueBuff)) + && (!hasBuffEnhanceInfo() || buffEnhanceInfo.equals(other.buffEnhanceInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(isSuccess); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rogueBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(buffEnhanceInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(buffEnhanceInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnhanceChessRogueBuffScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // isSuccess + isSuccess = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // rogueBuff + input.readMessage(rogueBuff); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // buffEnhanceInfo + input.readMessage(buffEnhanceInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isSuccess, isSuccess); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueBuff, rogueBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.buffEnhanceInfo, buffEnhanceInfo); + } + output.endObject(); + } + + @Override + public EnhanceChessRogueBuffScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1848018809: + case -366859794: { + if (input.isAtField(FieldNames.isSuccess)) { + if (!input.trySkipNullValue()) { + isSuccess = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 655607117: + case -1124785256: { + if (input.isAtField(FieldNames.rogueBuff)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueBuff); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -734426583: + case 2143965195: { + if (input.isAtField(FieldNames.buffEnhanceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(buffEnhanceInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnhanceChessRogueBuffScRsp clone() { + return new EnhanceChessRogueBuffScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnhanceChessRogueBuffScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnhanceChessRogueBuffScRsp(), data).checkInitialized(); + } + + public static EnhanceChessRogueBuffScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnhanceChessRogueBuffScRsp(), input).checkInitialized(); + } + + public static EnhanceChessRogueBuffScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnhanceChessRogueBuffScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating EnhanceChessRogueBuffScRsp messages + */ + public static MessageFactory getFactory() { + return EnhanceChessRogueBuffScRspFactory.INSTANCE; + } + + private enum EnhanceChessRogueBuffScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public EnhanceChessRogueBuffScRsp create() { + return EnhanceChessRogueBuffScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName isSuccess = FieldName.forField("isSuccess", "is_success"); + + static final FieldName rogueBuff = FieldName.forField("rogueBuff", "rogue_buff"); + + static final FieldName buffEnhanceInfo = FieldName.forField("buffEnhanceInfo", "buff_enhance_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnhanceCommonRogueBuffCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnhanceCommonRogueBuffCsReqOuterClass.java new file mode 100644 index 000000000..d5ef74263 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnhanceCommonRogueBuffCsReqOuterClass.java @@ -0,0 +1,342 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class EnhanceCommonRogueBuffCsReqOuterClass { + /** + * Protobuf type {@code EnhanceCommonRogueBuffCsReq} + */ + public static final class EnhanceCommonRogueBuffCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 maze_buff_id = 13; + */ + private int mazeBuffId; + + /** + * optional uint32 monster_id = 14; + */ + private int monsterId; + + private EnhanceCommonRogueBuffCsReq() { + } + + /** + * @return a new empty instance of {@code EnhanceCommonRogueBuffCsReq} + */ + public static EnhanceCommonRogueBuffCsReq newInstance() { + return new EnhanceCommonRogueBuffCsReq(); + } + + /** + * optional uint32 maze_buff_id = 13; + * @return whether the mazeBuffId field is set + */ + public boolean hasMazeBuffId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 maze_buff_id = 13; + * @return this + */ + public EnhanceCommonRogueBuffCsReq clearMazeBuffId() { + bitField0_ &= ~0x00000001; + mazeBuffId = 0; + return this; + } + + /** + * optional uint32 maze_buff_id = 13; + * @return the mazeBuffId + */ + public int getMazeBuffId() { + return mazeBuffId; + } + + /** + * optional uint32 maze_buff_id = 13; + * @param value the mazeBuffId to set + * @return this + */ + public EnhanceCommonRogueBuffCsReq setMazeBuffId(final int value) { + bitField0_ |= 0x00000001; + mazeBuffId = value; + return this; + } + + /** + * optional uint32 monster_id = 14; + * @return whether the monsterId field is set + */ + public boolean hasMonsterId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 monster_id = 14; + * @return this + */ + public EnhanceCommonRogueBuffCsReq clearMonsterId() { + bitField0_ &= ~0x00000002; + monsterId = 0; + return this; + } + + /** + * optional uint32 monster_id = 14; + * @return the monsterId + */ + public int getMonsterId() { + return monsterId; + } + + /** + * optional uint32 monster_id = 14; + * @param value the monsterId to set + * @return this + */ + public EnhanceCommonRogueBuffCsReq setMonsterId(final int value) { + bitField0_ |= 0x00000002; + monsterId = value; + return this; + } + + @Override + public EnhanceCommonRogueBuffCsReq copyFrom(final EnhanceCommonRogueBuffCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mazeBuffId = other.mazeBuffId; + monsterId = other.monsterId; + } + return this; + } + + @Override + public EnhanceCommonRogueBuffCsReq mergeFrom(final EnhanceCommonRogueBuffCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMazeBuffId()) { + setMazeBuffId(other.mazeBuffId); + } + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); + } + return this; + } + + @Override + public EnhanceCommonRogueBuffCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mazeBuffId = 0; + monsterId = 0; + return this; + } + + @Override + public EnhanceCommonRogueBuffCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EnhanceCommonRogueBuffCsReq)) { + return false; + } + EnhanceCommonRogueBuffCsReq other = (EnhanceCommonRogueBuffCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasMazeBuffId() || mazeBuffId == other.mazeBuffId) + && (!hasMonsterId() || monsterId == other.monsterId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(mazeBuffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(monsterId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mazeBuffId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnhanceCommonRogueBuffCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // mazeBuffId + mazeBuffId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // monsterId + monsterId = input.readUInt32(); + 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.mazeBuffId, mazeBuffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.monsterId, monsterId); + } + output.endObject(); + } + + @Override + public EnhanceCommonRogueBuffCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 144210285: + case 896621575: { + if (input.isAtField(FieldNames.mazeBuffId)) { + if (!input.trySkipNullValue()) { + mazeBuffId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { + if (!input.trySkipNullValue()) { + monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnhanceCommonRogueBuffCsReq clone() { + return new EnhanceCommonRogueBuffCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnhanceCommonRogueBuffCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnhanceCommonRogueBuffCsReq(), data).checkInitialized(); + } + + public static EnhanceCommonRogueBuffCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EnhanceCommonRogueBuffCsReq(), input).checkInitialized(); + } + + public static EnhanceCommonRogueBuffCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnhanceCommonRogueBuffCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating EnhanceCommonRogueBuffCsReq messages + */ + public static MessageFactory getFactory() { + return EnhanceCommonRogueBuffCsReqFactory.INSTANCE; + } + + private enum EnhanceCommonRogueBuffCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public EnhanceCommonRogueBuffCsReq create() { + return EnhanceCommonRogueBuffCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mazeBuffId = FieldName.forField("mazeBuffId", "maze_buff_id"); + + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnhanceCommonRogueBuffScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnhanceCommonRogueBuffScRspOuterClass.java new file mode 100644 index 000000000..62f24bf15 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnhanceCommonRogueBuffScRspOuterClass.java @@ -0,0 +1,444 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class EnhanceCommonRogueBuffScRspOuterClass { + /** + * Protobuf type {@code EnhanceCommonRogueBuffScRsp} + */ + public static final class EnhanceCommonRogueBuffScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional bool is_success = 9; + */ + private boolean isSuccess; + + /** + * optional .RogueCommonBuff rogue_buff = 3; + */ + private final RogueCommonBuffOuterClass.RogueCommonBuff rogueBuff = RogueCommonBuffOuterClass.RogueCommonBuff.newInstance(); + + private EnhanceCommonRogueBuffScRsp() { + } + + /** + * @return a new empty instance of {@code EnhanceCommonRogueBuffScRsp} + */ + public static EnhanceCommonRogueBuffScRsp newInstance() { + return new EnhanceCommonRogueBuffScRsp(); + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public EnhanceCommonRogueBuffScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public EnhanceCommonRogueBuffScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional bool is_success = 9; + * @return whether the isSuccess field is set + */ + public boolean hasIsSuccess() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_success = 9; + * @return this + */ + public EnhanceCommonRogueBuffScRsp clearIsSuccess() { + bitField0_ &= ~0x00000002; + isSuccess = false; + return this; + } + + /** + * optional bool is_success = 9; + * @return the isSuccess + */ + public boolean getIsSuccess() { + return isSuccess; + } + + /** + * optional bool is_success = 9; + * @param value the isSuccess to set + * @return this + */ + public EnhanceCommonRogueBuffScRsp setIsSuccess(final boolean value) { + bitField0_ |= 0x00000002; + isSuccess = value; + return this; + } + + /** + * optional .RogueCommonBuff rogue_buff = 3; + * @return whether the rogueBuff field is set + */ + public boolean hasRogueBuff() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueCommonBuff rogue_buff = 3; + * @return this + */ + public EnhanceCommonRogueBuffScRsp clearRogueBuff() { + bitField0_ &= ~0x00000004; + rogueBuff.clear(); + return this; + } + + /** + * optional .RogueCommonBuff rogue_buff = 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 #getMutableRogueBuff()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonBuffOuterClass.RogueCommonBuff getRogueBuff() { + return rogueBuff; + } + + /** + * optional .RogueCommonBuff rogue_buff = 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 RogueCommonBuffOuterClass.RogueCommonBuff getMutableRogueBuff() { + bitField0_ |= 0x00000004; + return rogueBuff; + } + + /** + * optional .RogueCommonBuff rogue_buff = 3; + * @param value the rogueBuff to set + * @return this + */ + public EnhanceCommonRogueBuffScRsp setRogueBuff( + final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000004; + rogueBuff.copyFrom(value); + return this; + } + + @Override + public EnhanceCommonRogueBuffScRsp copyFrom(final EnhanceCommonRogueBuffScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + isSuccess = other.isSuccess; + rogueBuff.copyFrom(other.rogueBuff); + } + return this; + } + + @Override + public EnhanceCommonRogueBuffScRsp mergeFrom(final EnhanceCommonRogueBuffScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasIsSuccess()) { + setIsSuccess(other.isSuccess); + } + if (other.hasRogueBuff()) { + getMutableRogueBuff().mergeFrom(other.rogueBuff); + } + return this; + } + + @Override + public EnhanceCommonRogueBuffScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + isSuccess = false; + rogueBuff.clear(); + return this; + } + + @Override + public EnhanceCommonRogueBuffScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueBuff.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EnhanceCommonRogueBuffScRsp)) { + return false; + } + EnhanceCommonRogueBuffScRsp other = (EnhanceCommonRogueBuffScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasIsSuccess() || isSuccess == other.isSuccess) + && (!hasRogueBuff() || rogueBuff.equals(other.rogueBuff)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(isSuccess); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(rogueBuff); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuff); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnhanceCommonRogueBuffScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // isSuccess + isSuccess = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // rogueBuff + input.readMessage(rogueBuff); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isSuccess, isSuccess); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueBuff, rogueBuff); + } + output.endObject(); + } + + @Override + public EnhanceCommonRogueBuffScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1848018809: + case -366859794: { + if (input.isAtField(FieldNames.isSuccess)) { + if (!input.trySkipNullValue()) { + isSuccess = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 655607117: + case -1124785256: { + if (input.isAtField(FieldNames.rogueBuff)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueBuff); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnhanceCommonRogueBuffScRsp clone() { + return new EnhanceCommonRogueBuffScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnhanceCommonRogueBuffScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnhanceCommonRogueBuffScRsp(), data).checkInitialized(); + } + + public static EnhanceCommonRogueBuffScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new EnhanceCommonRogueBuffScRsp(), input).checkInitialized(); + } + + public static EnhanceCommonRogueBuffScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnhanceCommonRogueBuffScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating EnhanceCommonRogueBuffScRsp messages + */ + public static MessageFactory getFactory() { + return EnhanceCommonRogueBuffScRspFactory.INSTANCE; + } + + private enum EnhanceCommonRogueBuffScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public EnhanceCommonRogueBuffScRsp create() { + return EnhanceCommonRogueBuffScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName isSuccess = FieldName.forField("isSuccess", "is_success"); + + static final FieldName rogueBuff = FieldName.forField("rogueBuff", "rogue_buff"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FOKHJCJLCLOOuterClass.java b/src/generated/main/emu/lunarcore/proto/FOKHJCJLCLOOuterClass.java new file mode 100644 index 000000000..406fbdf09 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FOKHJCJLCLOOuterClass.java @@ -0,0 +1,381 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class FOKHJCJLCLOOuterClass { + /** + * Protobuf type {@code FOKHJCJLCLO} + */ + public static final class FOKHJCJLCLO extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .HGBBFBLLJLG BACGPMJGLMK = 1; + */ + private final HGBBFBLLJLGOuterClass.HGBBFBLLJLG bACGPMJGLMK = HGBBFBLLJLGOuterClass.HGBBFBLLJLG.newInstance(); + + /** + * optional .RogueSyncContextBoardEvent LJBKOGGALID = 13; + */ + private final RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent lJBKOGGALID = RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent.newInstance(); + + private FOKHJCJLCLO() { + } + + /** + * @return a new empty instance of {@code FOKHJCJLCLO} + */ + public static FOKHJCJLCLO newInstance() { + return new FOKHJCJLCLO(); + } + + /** + * optional .HGBBFBLLJLG BACGPMJGLMK = 1; + * @return whether the bACGPMJGLMK field is set + */ + public boolean hasBACGPMJGLMK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .HGBBFBLLJLG BACGPMJGLMK = 1; + * @return this + */ + public FOKHJCJLCLO clearBACGPMJGLMK() { + bitField0_ &= ~0x00000001; + bACGPMJGLMK.clear(); + return this; + } + + /** + * optional .HGBBFBLLJLG BACGPMJGLMK = 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 #getMutableBACGPMJGLMK()} if you want to modify it. + * + * @return internal storage object for reading + */ + public HGBBFBLLJLGOuterClass.HGBBFBLLJLG getBACGPMJGLMK() { + return bACGPMJGLMK; + } + + /** + * optional .HGBBFBLLJLG BACGPMJGLMK = 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 HGBBFBLLJLGOuterClass.HGBBFBLLJLG getMutableBACGPMJGLMK() { + bitField0_ |= 0x00000001; + return bACGPMJGLMK; + } + + /** + * optional .HGBBFBLLJLG BACGPMJGLMK = 1; + * @param value the bACGPMJGLMK to set + * @return this + */ + public FOKHJCJLCLO setBACGPMJGLMK(final HGBBFBLLJLGOuterClass.HGBBFBLLJLG value) { + bitField0_ |= 0x00000001; + bACGPMJGLMK.copyFrom(value); + return this; + } + + /** + * optional .RogueSyncContextBoardEvent LJBKOGGALID = 13; + * @return whether the lJBKOGGALID field is set + */ + public boolean hasLJBKOGGALID() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueSyncContextBoardEvent LJBKOGGALID = 13; + * @return this + */ + public FOKHJCJLCLO clearLJBKOGGALID() { + bitField0_ &= ~0x00000002; + lJBKOGGALID.clear(); + return this; + } + + /** + * optional .RogueSyncContextBoardEvent LJBKOGGALID = 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 #getMutableLJBKOGGALID()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent getLJBKOGGALID() { + return lJBKOGGALID; + } + + /** + * optional .RogueSyncContextBoardEvent LJBKOGGALID = 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 RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent getMutableLJBKOGGALID() { + bitField0_ |= 0x00000002; + return lJBKOGGALID; + } + + /** + * optional .RogueSyncContextBoardEvent LJBKOGGALID = 13; + * @param value the lJBKOGGALID to set + * @return this + */ + public FOKHJCJLCLO setLJBKOGGALID( + final RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent value) { + bitField0_ |= 0x00000002; + lJBKOGGALID.copyFrom(value); + return this; + } + + @Override + public FOKHJCJLCLO copyFrom(final FOKHJCJLCLO other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bACGPMJGLMK.copyFrom(other.bACGPMJGLMK); + lJBKOGGALID.copyFrom(other.lJBKOGGALID); + } + return this; + } + + @Override + public FOKHJCJLCLO mergeFrom(final FOKHJCJLCLO other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBACGPMJGLMK()) { + getMutableBACGPMJGLMK().mergeFrom(other.bACGPMJGLMK); + } + if (other.hasLJBKOGGALID()) { + getMutableLJBKOGGALID().mergeFrom(other.lJBKOGGALID); + } + return this; + } + + @Override + public FOKHJCJLCLO clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bACGPMJGLMK.clear(); + lJBKOGGALID.clear(); + return this; + } + + @Override + public FOKHJCJLCLO clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bACGPMJGLMK.clearQuick(); + lJBKOGGALID.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FOKHJCJLCLO)) { + return false; + } + FOKHJCJLCLO other = (FOKHJCJLCLO) o; + return bitField0_ == other.bitField0_ + && (!hasBACGPMJGLMK() || bACGPMJGLMK.equals(other.bACGPMJGLMK)) + && (!hasLJBKOGGALID() || lJBKOGGALID.equals(other.lJBKOGGALID)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(bACGPMJGLMK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(lJBKOGGALID); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(bACGPMJGLMK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lJBKOGGALID); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FOKHJCJLCLO mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // bACGPMJGLMK + input.readMessage(bACGPMJGLMK); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // lJBKOGGALID + input.readMessage(lJBKOGGALID); + 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.bACGPMJGLMK, bACGPMJGLMK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.lJBKOGGALID, lJBKOGGALID); + } + output.endObject(); + } + + @Override + public FOKHJCJLCLO mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 377762413: { + if (input.isAtField(FieldNames.bACGPMJGLMK)) { + if (!input.trySkipNullValue()) { + input.readMessage(bACGPMJGLMK); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1240996942: { + if (input.isAtField(FieldNames.lJBKOGGALID)) { + if (!input.trySkipNullValue()) { + input.readMessage(lJBKOGGALID); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FOKHJCJLCLO clone() { + return new FOKHJCJLCLO().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FOKHJCJLCLO parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FOKHJCJLCLO(), data).checkInitialized(); + } + + public static FOKHJCJLCLO parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FOKHJCJLCLO(), input).checkInitialized(); + } + + public static FOKHJCJLCLO parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FOKHJCJLCLO(), input).checkInitialized(); + } + + /** + * @return factory for creating FOKHJCJLCLO messages + */ + public static MessageFactory getFactory() { + return FOKHJCJLCLOFactory.INSTANCE; + } + + private enum FOKHJCJLCLOFactory implements MessageFactory { + INSTANCE; + + @Override + public FOKHJCJLCLO create() { + return FOKHJCJLCLO.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bACGPMJGLMK = FieldName.forField("BACGPMJGLMK"); + + static final FieldName lJBKOGGALID = FieldName.forField("LJBKOGGALID"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FPENCNJJCHPOuterClass.java b/src/generated/main/emu/lunarcore/proto/FPENCNJJCHPOuterClass.java new file mode 100644 index 000000000..fc95bcb01 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FPENCNJJCHPOuterClass.java @@ -0,0 +1,292 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class FPENCNJJCHPOuterClass { + /** + * Protobuf type {@code FPENCNJJCHP} + */ + public static final class FPENCNJJCHP extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 15; + */ + private final RepeatedMessage fFPNALDKGJM = RepeatedMessage.newEmptyInstance(PDANDAJEPHKOuterClass.PDANDAJEPHK.getFactory()); + + private FPENCNJJCHP() { + } + + /** + * @return a new empty instance of {@code FPENCNJJCHP} + */ + public static FPENCNJJCHP newInstance() { + return new FPENCNJJCHP(); + } + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 15; + * @return whether the fFPNALDKGJM field is set + */ + public boolean hasFFPNALDKGJM() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 15; + * @return this + */ + public FPENCNJJCHP clearFFPNALDKGJM() { + bitField0_ &= ~0x00000001; + fFPNALDKGJM.clear(); + return this; + } + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 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 #getMutableFFPNALDKGJM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFFPNALDKGJM() { + return fFPNALDKGJM; + } + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 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 getMutableFFPNALDKGJM() { + bitField0_ |= 0x00000001; + return fFPNALDKGJM; + } + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 15; + * @param value the fFPNALDKGJM to add + * @return this + */ + public FPENCNJJCHP addFFPNALDKGJM(final PDANDAJEPHKOuterClass.PDANDAJEPHK value) { + bitField0_ |= 0x00000001; + fFPNALDKGJM.add(value); + return this; + } + + /** + * repeated .PDANDAJEPHK FFPNALDKGJM = 15; + * @param values the fFPNALDKGJM to add + * @return this + */ + public FPENCNJJCHP addAllFFPNALDKGJM(final PDANDAJEPHKOuterClass.PDANDAJEPHK... values) { + bitField0_ |= 0x00000001; + fFPNALDKGJM.addAll(values); + return this; + } + + @Override + public FPENCNJJCHP copyFrom(final FPENCNJJCHP other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fFPNALDKGJM.copyFrom(other.fFPNALDKGJM); + } + return this; + } + + @Override + public FPENCNJJCHP mergeFrom(final FPENCNJJCHP other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFFPNALDKGJM()) { + getMutableFFPNALDKGJM().addAll(other.fFPNALDKGJM); + } + return this; + } + + @Override + public FPENCNJJCHP clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fFPNALDKGJM.clear(); + return this; + } + + @Override + public FPENCNJJCHP clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fFPNALDKGJM.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FPENCNJJCHP)) { + return false; + } + FPENCNJJCHP other = (FPENCNJJCHP) o; + return bitField0_ == other.bitField0_ + && (!hasFFPNALDKGJM() || fFPNALDKGJM.equals(other.fFPNALDKGJM)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < fFPNALDKGJM.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(fFPNALDKGJM.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * fFPNALDKGJM.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(fFPNALDKGJM); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FPENCNJJCHP mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 122: { + // fFPNALDKGJM + tag = input.readRepeatedMessage(fFPNALDKGJM, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.fFPNALDKGJM, fFPNALDKGJM); + } + output.endObject(); + } + + @Override + public FPENCNJJCHP mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1923280922: { + if (input.isAtField(FieldNames.fFPNALDKGJM)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(fFPNALDKGJM); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FPENCNJJCHP clone() { + return new FPENCNJJCHP().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FPENCNJJCHP parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FPENCNJJCHP(), data).checkInitialized(); + } + + public static FPENCNJJCHP parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FPENCNJJCHP(), input).checkInitialized(); + } + + public static FPENCNJJCHP parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FPENCNJJCHP(), input).checkInitialized(); + } + + /** + * @return factory for creating FPENCNJJCHP messages + */ + public static MessageFactory getFactory() { + return FPENCNJJCHPFactory.INSTANCE; + } + + private enum FPENCNJJCHPFactory implements MessageFactory { + INSTANCE; + + @Override + public FPENCNJJCHP create() { + return FPENCNJJCHP.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fFPNALDKGJM = FieldName.forField("FFPNALDKGJM"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java new file mode 100644 index 000000000..f753a9f2c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java @@ -0,0 +1,262 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class FinishRogueCommonDialogueCsReqOuterClass { + /** + * Protobuf type {@code FinishRogueCommonDialogueCsReq} + */ + public static final class FinishRogueCommonDialogueCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 9; + */ + private int eventUniqueId; + + private FinishRogueCommonDialogueCsReq() { + } + + /** + * @return a new empty instance of {@code FinishRogueCommonDialogueCsReq} + */ + public static FinishRogueCommonDialogueCsReq newInstance() { + return new FinishRogueCommonDialogueCsReq(); + } + + /** + * optional uint32 event_unique_id = 9; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 9; + * @return this + */ + public FinishRogueCommonDialogueCsReq clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 9; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 9; + * @param value the eventUniqueId to set + * @return this + */ + public FinishRogueCommonDialogueCsReq setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq copyFrom(final FinishRogueCommonDialogueCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + } + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq mergeFrom(final FinishRogueCommonDialogueCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FinishRogueCommonDialogueCsReq)) { + return false; + } + FinishRogueCommonDialogueCsReq other = (FinishRogueCommonDialogueCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(eventUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FinishRogueCommonDialogueCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + 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.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + output.endObject(); + } + + @Override + public FinishRogueCommonDialogueCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq clone() { + return new FinishRogueCommonDialogueCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FinishRogueCommonDialogueCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), data).checkInitialized(); + } + + public static FinishRogueCommonDialogueCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), input).checkInitialized(); + } + + public static FinishRogueCommonDialogueCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating FinishRogueCommonDialogueCsReq messages + */ + public static MessageFactory getFactory() { + return FinishRogueCommonDialogueCsReqFactory.INSTANCE; + } + + private enum FinishRogueCommonDialogueCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public FinishRogueCommonDialogueCsReq create() { + return FinishRogueCommonDialogueCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java new file mode 100644 index 000000000..d742f921f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java @@ -0,0 +1,342 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class FinishRogueCommonDialogueScRspOuterClass { + /** + * Protobuf type {@code FinishRogueCommonDialogueScRsp} + */ + public static final class FinishRogueCommonDialogueScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 event_unique_id = 13; + */ + private int eventUniqueId; + + private FinishRogueCommonDialogueScRsp() { + } + + /** + * @return a new empty instance of {@code FinishRogueCommonDialogueScRsp} + */ + public static FinishRogueCommonDialogueScRsp newInstance() { + return new FinishRogueCommonDialogueScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public FinishRogueCommonDialogueScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public FinishRogueCommonDialogueScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 event_unique_id = 13; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 event_unique_id = 13; + * @return this + */ + public FinishRogueCommonDialogueScRsp clearEventUniqueId() { + bitField0_ &= ~0x00000002; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 13; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 13; + * @param value the eventUniqueId to set + * @return this + */ + public FinishRogueCommonDialogueScRsp setEventUniqueId(final int value) { + bitField0_ |= 0x00000002; + eventUniqueId = value; + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp copyFrom(final FinishRogueCommonDialogueScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + eventUniqueId = other.eventUniqueId; + } + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp mergeFrom(final FinishRogueCommonDialogueScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + eventUniqueId = 0; + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FinishRogueCommonDialogueScRsp)) { + return false; + } + FinishRogueCommonDialogueScRsp other = (FinishRogueCommonDialogueScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(eventUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FinishRogueCommonDialogueScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + output.endObject(); + } + + @Override + public FinishRogueCommonDialogueScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp clone() { + return new FinishRogueCommonDialogueScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FinishRogueCommonDialogueScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), data).checkInitialized(); + } + + public static FinishRogueCommonDialogueScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), input).checkInitialized(); + } + + public static FinishRogueCommonDialogueScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating FinishRogueCommonDialogueScRsp messages + */ + public static MessageFactory getFactory() { + return FinishRogueCommonDialogueScRspFactory.INSTANCE; + } + + private enum FinishRogueCommonDialogueScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public FinishRogueCommonDialogueScRsp create() { + return FinishRogueCommonDialogueScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FormulaBuffTypeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FormulaBuffTypeInfoOuterClass.java new file mode 100644 index 000000000..532fd1336 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FormulaBuffTypeInfoOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class FormulaBuffTypeInfoOuterClass { + /** + * Protobuf type {@code FormulaBuffTypeInfo} + */ + public static final class FormulaBuffTypeInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 formula_buff_num = 2; + */ + private int formulaBuffNum; + + /** + * optional uint32 key = 9; + */ + private int key; + + private FormulaBuffTypeInfo() { + } + + /** + * @return a new empty instance of {@code FormulaBuffTypeInfo} + */ + public static FormulaBuffTypeInfo newInstance() { + return new FormulaBuffTypeInfo(); + } + + /** + * optional int32 formula_buff_num = 2; + * @return whether the formulaBuffNum field is set + */ + public boolean hasFormulaBuffNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 formula_buff_num = 2; + * @return this + */ + public FormulaBuffTypeInfo clearFormulaBuffNum() { + bitField0_ &= ~0x00000001; + formulaBuffNum = 0; + return this; + } + + /** + * optional int32 formula_buff_num = 2; + * @return the formulaBuffNum + */ + public int getFormulaBuffNum() { + return formulaBuffNum; + } + + /** + * optional int32 formula_buff_num = 2; + * @param value the formulaBuffNum to set + * @return this + */ + public FormulaBuffTypeInfo setFormulaBuffNum(final int value) { + bitField0_ |= 0x00000001; + formulaBuffNum = value; + return this; + } + + /** + * optional uint32 key = 9; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 key = 9; + * @return this + */ + public FormulaBuffTypeInfo clearKey() { + bitField0_ &= ~0x00000002; + key = 0; + return this; + } + + /** + * optional uint32 key = 9; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 9; + * @param value the key to set + * @return this + */ + public FormulaBuffTypeInfo setKey(final int value) { + bitField0_ |= 0x00000002; + key = value; + return this; + } + + @Override + public FormulaBuffTypeInfo copyFrom(final FormulaBuffTypeInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + formulaBuffNum = other.formulaBuffNum; + key = other.key; + } + return this; + } + + @Override + public FormulaBuffTypeInfo mergeFrom(final FormulaBuffTypeInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFormulaBuffNum()) { + setFormulaBuffNum(other.formulaBuffNum); + } + if (other.hasKey()) { + setKey(other.key); + } + return this; + } + + @Override + public FormulaBuffTypeInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaBuffNum = 0; + key = 0; + return this; + } + + @Override + public FormulaBuffTypeInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FormulaBuffTypeInfo)) { + return false; + } + FormulaBuffTypeInfo other = (FormulaBuffTypeInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFormulaBuffNum() || formulaBuffNum == other.formulaBuffNum) + && (!hasKey() || key == other.key); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(formulaBuffNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(formulaBuffNum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FormulaBuffTypeInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // formulaBuffNum + formulaBuffNum = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // key + key = input.readUInt32(); + 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.writeInt32(FieldNames.formulaBuffNum, formulaBuffNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public FormulaBuffTypeInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 993699309: + case -2013733805: { + if (input.isAtField(FieldNames.formulaBuffNum)) { + if (!input.trySkipNullValue()) { + formulaBuffNum = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FormulaBuffTypeInfo clone() { + return new FormulaBuffTypeInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FormulaBuffTypeInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FormulaBuffTypeInfo(), data).checkInitialized(); + } + + public static FormulaBuffTypeInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaBuffTypeInfo(), input).checkInitialized(); + } + + public static FormulaBuffTypeInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaBuffTypeInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FormulaBuffTypeInfo messages + */ + public static MessageFactory getFactory() { + return FormulaBuffTypeInfoFactory.INSTANCE; + } + + private enum FormulaBuffTypeInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FormulaBuffTypeInfo create() { + return FormulaBuffTypeInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName formulaBuffNum = FieldName.forField("formulaBuffNum", "formula_buff_num"); + + static final FieldName key = FieldName.forField("key"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FormulaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FormulaInfoOuterClass.java new file mode 100644 index 000000000..19e12adf0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FormulaInfoOuterClass.java @@ -0,0 +1,459 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class FormulaInfoOuterClass { + /** + * Protobuf type {@code FormulaInfo} + */ + public static final class FormulaInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 formula_id = 1; + */ + private int formulaId; + + /** + * optional bool is_expand = 15; + */ + private boolean isExpand; + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 8; + */ + private final RepeatedMessage formulaBuffTypeList = RepeatedMessage.newEmptyInstance(FormulaBuffTypeInfoOuterClass.FormulaBuffTypeInfo.getFactory()); + + private FormulaInfo() { + } + + /** + * @return a new empty instance of {@code FormulaInfo} + */ + public static FormulaInfo newInstance() { + return new FormulaInfo(); + } + + /** + * optional uint32 formula_id = 1; + * @return whether the formulaId field is set + */ + public boolean hasFormulaId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 formula_id = 1; + * @return this + */ + public FormulaInfo clearFormulaId() { + bitField0_ &= ~0x00000001; + formulaId = 0; + return this; + } + + /** + * optional uint32 formula_id = 1; + * @return the formulaId + */ + public int getFormulaId() { + return formulaId; + } + + /** + * optional uint32 formula_id = 1; + * @param value the formulaId to set + * @return this + */ + public FormulaInfo setFormulaId(final int value) { + bitField0_ |= 0x00000001; + formulaId = value; + return this; + } + + /** + * optional bool is_expand = 15; + * @return whether the isExpand field is set + */ + public boolean hasIsExpand() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_expand = 15; + * @return this + */ + public FormulaInfo clearIsExpand() { + bitField0_ &= ~0x00000002; + isExpand = false; + return this; + } + + /** + * optional bool is_expand = 15; + * @return the isExpand + */ + public boolean getIsExpand() { + return isExpand; + } + + /** + * optional bool is_expand = 15; + * @param value the isExpand to set + * @return this + */ + public FormulaInfo setIsExpand(final boolean value) { + bitField0_ |= 0x00000002; + isExpand = value; + return this; + } + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 8; + * @return whether the formulaBuffTypeList field is set + */ + public boolean hasFormulaBuffTypeList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 8; + * @return this + */ + public FormulaInfo clearFormulaBuffTypeList() { + bitField0_ &= ~0x00000004; + formulaBuffTypeList.clear(); + return this; + } + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 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 #getMutableFormulaBuffTypeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFormulaBuffTypeList( + ) { + return formulaBuffTypeList; + } + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 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 getMutableFormulaBuffTypeList( + ) { + bitField0_ |= 0x00000004; + return formulaBuffTypeList; + } + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 8; + * @param value the formulaBuffTypeList to add + * @return this + */ + public FormulaInfo addFormulaBuffTypeList( + final FormulaBuffTypeInfoOuterClass.FormulaBuffTypeInfo value) { + bitField0_ |= 0x00000004; + formulaBuffTypeList.add(value); + return this; + } + + /** + * repeated .FormulaBuffTypeInfo formula_buff_type_list = 8; + * @param values the formulaBuffTypeList to add + * @return this + */ + public FormulaInfo addAllFormulaBuffTypeList( + final FormulaBuffTypeInfoOuterClass.FormulaBuffTypeInfo... values) { + bitField0_ |= 0x00000004; + formulaBuffTypeList.addAll(values); + return this; + } + + @Override + public FormulaInfo copyFrom(final FormulaInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + formulaId = other.formulaId; + isExpand = other.isExpand; + formulaBuffTypeList.copyFrom(other.formulaBuffTypeList); + } + return this; + } + + @Override + public FormulaInfo mergeFrom(final FormulaInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFormulaId()) { + setFormulaId(other.formulaId); + } + if (other.hasIsExpand()) { + setIsExpand(other.isExpand); + } + if (other.hasFormulaBuffTypeList()) { + getMutableFormulaBuffTypeList().addAll(other.formulaBuffTypeList); + } + return this; + } + + @Override + public FormulaInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaId = 0; + isExpand = false; + formulaBuffTypeList.clear(); + return this; + } + + @Override + public FormulaInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaBuffTypeList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FormulaInfo)) { + return false; + } + FormulaInfo other = (FormulaInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFormulaId() || formulaId == other.formulaId) + && (!hasIsExpand() || isExpand == other.isExpand) + && (!hasFormulaBuffTypeList() || formulaBuffTypeList.equals(other.formulaBuffTypeList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(formulaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(isExpand); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < formulaBuffTypeList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(formulaBuffTypeList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(formulaId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * formulaBuffTypeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(formulaBuffTypeList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FormulaInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // formulaId + formulaId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // isExpand + isExpand = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // formulaBuffTypeList + tag = input.readRepeatedMessage(formulaBuffTypeList, 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.formulaId, formulaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isExpand, isExpand); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.formulaBuffTypeList, formulaBuffTypeList); + } + output.endObject(); + } + + @Override + public FormulaInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1829804321: + case 889380500: { + if (input.isAtField(FieldNames.formulaId)) { + if (!input.trySkipNullValue()) { + formulaId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -615133084: + case -825128113: { + if (input.isAtField(FieldNames.isExpand)) { + if (!input.trySkipNullValue()) { + isExpand = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 717419761: + case 421654928: { + if (input.isAtField(FieldNames.formulaBuffTypeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(formulaBuffTypeList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FormulaInfo clone() { + return new FormulaInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FormulaInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FormulaInfo(), data).checkInitialized(); + } + + public static FormulaInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaInfo(), input).checkInitialized(); + } + + public static FormulaInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FormulaInfo messages + */ + public static MessageFactory getFactory() { + return FormulaInfoFactory.INSTANCE; + } + + private enum FormulaInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FormulaInfo create() { + return FormulaInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName formulaId = FieldName.forField("formulaId", "formula_id"); + + static final FieldName isExpand = FieldName.forField("isExpand", "is_expand"); + + static final FieldName formulaBuffTypeList = FieldName.forField("formulaBuffTypeList", "formula_buff_type_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FormulaTypeValueOuterClass.java b/src/generated/main/emu/lunarcore/proto/FormulaTypeValueOuterClass.java new file mode 100644 index 000000000..c172252fe --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FormulaTypeValueOuterClass.java @@ -0,0 +1,619 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class FormulaTypeValueOuterClass { + /** + * Protobuf type {@code FormulaTypeValue} + */ + public static final class FormulaTypeValue extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 8; + */ + private final RepeatedMessage formulaTypeMap = RepeatedMessage.newEmptyInstance(FormulaTypeMapEntry.getFactory()); + + private FormulaTypeValue() { + } + + /** + * @return a new empty instance of {@code FormulaTypeValue} + */ + public static FormulaTypeValue newInstance() { + return new FormulaTypeValue(); + } + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 8; + * @return whether the formulaTypeMap field is set + */ + public boolean hasFormulaTypeMap() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 8; + * @return this + */ + public FormulaTypeValue clearFormulaTypeMap() { + bitField0_ &= ~0x00000001; + formulaTypeMap.clear(); + return this; + } + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 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 #getMutableFormulaTypeMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFormulaTypeMap() { + return formulaTypeMap; + } + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 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 getMutableFormulaTypeMap() { + bitField0_ |= 0x00000001; + return formulaTypeMap; + } + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 8; + * @param value the formulaTypeMap to add + * @return this + */ + public FormulaTypeValue addFormulaTypeMap(final FormulaTypeMapEntry value) { + bitField0_ |= 0x00000001; + formulaTypeMap.add(value); + return this; + } + + /** + * repeated .FormulaTypeValue.FormulaTypeMapEntry formula_type_map = 8; + * @param values the formulaTypeMap to add + * @return this + */ + public FormulaTypeValue addAllFormulaTypeMap(final FormulaTypeMapEntry... values) { + bitField0_ |= 0x00000001; + formulaTypeMap.addAll(values); + return this; + } + + @Override + public FormulaTypeValue copyFrom(final FormulaTypeValue other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + formulaTypeMap.copyFrom(other.formulaTypeMap); + } + return this; + } + + @Override + public FormulaTypeValue mergeFrom(final FormulaTypeValue other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFormulaTypeMap()) { + getMutableFormulaTypeMap().addAll(other.formulaTypeMap); + } + return this; + } + + @Override + public FormulaTypeValue clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaTypeMap.clear(); + return this; + } + + @Override + public FormulaTypeValue clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaTypeMap.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FormulaTypeValue)) { + return false; + } + FormulaTypeValue other = (FormulaTypeValue) o; + return bitField0_ == other.bitField0_ + && (!hasFormulaTypeMap() || formulaTypeMap.equals(other.formulaTypeMap)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < formulaTypeMap.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(formulaTypeMap.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * formulaTypeMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(formulaTypeMap); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FormulaTypeValue mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 66: { + // formulaTypeMap + tag = input.readRepeatedMessage(formulaTypeMap, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.formulaTypeMap, formulaTypeMap); + } + output.endObject(); + } + + @Override + public FormulaTypeValue mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -87383172: + case -1167505008: { + if (input.isAtField(FieldNames.formulaTypeMap)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(formulaTypeMap); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FormulaTypeValue clone() { + return new FormulaTypeValue().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FormulaTypeValue parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FormulaTypeValue(), data).checkInitialized(); + } + + public static FormulaTypeValue parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaTypeValue(), input).checkInitialized(); + } + + public static FormulaTypeValue parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaTypeValue(), input).checkInitialized(); + } + + /** + * @return factory for creating FormulaTypeValue messages + */ + public static MessageFactory getFactory() { + return FormulaTypeValueFactory.INSTANCE; + } + + /** + * Protobuf type {@code FormulaTypeMapEntry} + */ + public static final class FormulaTypeMapEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 value = 2; + */ + private int value_; + + /** + * optional uint32 key = 1; + */ + private int key; + + private FormulaTypeMapEntry() { + } + + /** + * @return a new empty instance of {@code FormulaTypeMapEntry} + */ + public static FormulaTypeMapEntry newInstance() { + return new FormulaTypeMapEntry(); + } + + /** + * optional int32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 value = 2; + * @return this + */ + public FormulaTypeMapEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional int32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional int32 value = 2; + * @param value the value_ to set + * @return this + */ + public FormulaTypeMapEntry setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public FormulaTypeMapEntry clearKey() { + bitField0_ &= ~0x00000002; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public FormulaTypeMapEntry setKey(final int value) { + bitField0_ |= 0x00000002; + key = value; + return this; + } + + @Override + public FormulaTypeMapEntry copyFrom(final FormulaTypeMapEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key = other.key; + } + return this; + } + + @Override + public FormulaTypeMapEntry mergeFrom(final FormulaTypeMapEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + setKey(other.key); + } + return this; + } + + @Override + public FormulaTypeMapEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + key = 0; + return this; + } + + @Override + public FormulaTypeMapEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FormulaTypeMapEntry)) { + return false; + } + FormulaTypeMapEntry other = (FormulaTypeMapEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasKey() || key == other.key); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FormulaTypeMapEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // key + key = input.readUInt32(); + 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.writeInt32(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public FormulaTypeMapEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FormulaTypeMapEntry clone() { + return new FormulaTypeMapEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FormulaTypeMapEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FormulaTypeMapEntry(), data).checkInitialized(); + } + + public static FormulaTypeMapEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaTypeMapEntry(), input).checkInitialized(); + } + + public static FormulaTypeMapEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FormulaTypeMapEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating FormulaTypeMapEntry messages + */ + public static MessageFactory getFactory() { + return FormulaTypeMapEntryFactory.INSTANCE; + } + + private enum FormulaTypeMapEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public FormulaTypeMapEntry create() { + return FormulaTypeMapEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum FormulaTypeValueFactory implements MessageFactory { + INSTANCE; + + @Override + public FormulaTypeValue create() { + return FormulaTypeValue.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName formulaTypeMap = FieldName.forField("formulaTypeMap", "formula_type_map"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GameAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GameAeonInfoOuterClass.java new file mode 100644 index 000000000..25d701e06 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GameAeonInfoOuterClass.java @@ -0,0 +1,421 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class GameAeonInfoOuterClass { + /** + * Protobuf type {@code GameAeonInfo} + */ + public static final class GameAeonInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 aeon_id = 10; + */ + private int aeonId; + + /** + * optional uint32 unlocked_aeon_enhance_num = 13; + */ + private int unlockedAeonEnhanceNum; + + /** + * optional bool is_unlocked = 3; + */ + private boolean isUnlocked; + + private GameAeonInfo() { + } + + /** + * @return a new empty instance of {@code GameAeonInfo} + */ + public static GameAeonInfo newInstance() { + return new GameAeonInfo(); + } + + /** + * optional uint32 aeon_id = 10; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 aeon_id = 10; + * @return this + */ + public GameAeonInfo clearAeonId() { + bitField0_ &= ~0x00000001; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 10; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 10; + * @param value the aeonId to set + * @return this + */ + public GameAeonInfo setAeonId(final int value) { + bitField0_ |= 0x00000001; + aeonId = value; + return this; + } + + /** + * optional uint32 unlocked_aeon_enhance_num = 13; + * @return whether the unlockedAeonEnhanceNum field is set + */ + public boolean hasUnlockedAeonEnhanceNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 unlocked_aeon_enhance_num = 13; + * @return this + */ + public GameAeonInfo clearUnlockedAeonEnhanceNum() { + bitField0_ &= ~0x00000002; + unlockedAeonEnhanceNum = 0; + return this; + } + + /** + * optional uint32 unlocked_aeon_enhance_num = 13; + * @return the unlockedAeonEnhanceNum + */ + public int getUnlockedAeonEnhanceNum() { + return unlockedAeonEnhanceNum; + } + + /** + * optional uint32 unlocked_aeon_enhance_num = 13; + * @param value the unlockedAeonEnhanceNum to set + * @return this + */ + public GameAeonInfo setUnlockedAeonEnhanceNum(final int value) { + bitField0_ |= 0x00000002; + unlockedAeonEnhanceNum = value; + return this; + } + + /** + * optional bool is_unlocked = 3; + * @return whether the isUnlocked field is set + */ + public boolean hasIsUnlocked() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_unlocked = 3; + * @return this + */ + public GameAeonInfo clearIsUnlocked() { + bitField0_ &= ~0x00000004; + isUnlocked = false; + return this; + } + + /** + * optional bool is_unlocked = 3; + * @return the isUnlocked + */ + public boolean getIsUnlocked() { + return isUnlocked; + } + + /** + * optional bool is_unlocked = 3; + * @param value the isUnlocked to set + * @return this + */ + public GameAeonInfo setIsUnlocked(final boolean value) { + bitField0_ |= 0x00000004; + isUnlocked = value; + return this; + } + + @Override + public GameAeonInfo copyFrom(final GameAeonInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aeonId = other.aeonId; + unlockedAeonEnhanceNum = other.unlockedAeonEnhanceNum; + isUnlocked = other.isUnlocked; + } + return this; + } + + @Override + public GameAeonInfo mergeFrom(final GameAeonInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + if (other.hasUnlockedAeonEnhanceNum()) { + setUnlockedAeonEnhanceNum(other.unlockedAeonEnhanceNum); + } + if (other.hasIsUnlocked()) { + setIsUnlocked(other.isUnlocked); + } + return this; + } + + @Override + public GameAeonInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonId = 0; + unlockedAeonEnhanceNum = 0; + isUnlocked = false; + return this; + } + + @Override + public GameAeonInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GameAeonInfo)) { + return false; + } + GameAeonInfo other = (GameAeonInfo) o; + return bitField0_ == other.bitField0_ + && (!hasAeonId() || aeonId == other.aeonId) + && (!hasUnlockedAeonEnhanceNum() || unlockedAeonEnhanceNum == other.unlockedAeonEnhanceNum) + && (!hasIsUnlocked() || isUnlocked == other.isUnlocked); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(unlockedAeonEnhanceNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(isUnlocked); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockedAeonEnhanceNum); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GameAeonInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // aeonId + aeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // unlockedAeonEnhanceNum + unlockedAeonEnhanceNum = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // isUnlocked + isUnlocked = input.readBool(); + 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.aeonId, aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.unlockedAeonEnhanceNum, unlockedAeonEnhanceNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isUnlocked, isUnlocked); + } + output.endObject(); + } + + @Override + public GameAeonInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { + if (!input.trySkipNullValue()) { + aeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -298234594: + case -915660011: { + if (input.isAtField(FieldNames.unlockedAeonEnhanceNum)) { + if (!input.trySkipNullValue()) { + unlockedAeonEnhanceNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1004219859: + case -945979816: { + if (input.isAtField(FieldNames.isUnlocked)) { + if (!input.trySkipNullValue()) { + isUnlocked = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GameAeonInfo clone() { + return new GameAeonInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GameAeonInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GameAeonInfo(), data).checkInitialized(); + } + + public static GameAeonInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GameAeonInfo(), input).checkInitialized(); + } + + public static GameAeonInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GameAeonInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating GameAeonInfo messages + */ + public static MessageFactory getFactory() { + return GameAeonInfoFactory.INSTANCE; + } + + private enum GameAeonInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public GameAeonInfo create() { + return GameAeonInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); + + static final FieldName unlockedAeonEnhanceNum = FieldName.forField("unlockedAeonEnhanceNum", "unlocked_aeon_enhance_num"); + + static final FieldName isUnlocked = FieldName.forField("isUnlocked", "is_unlocked"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GameMiracleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GameMiracleInfoOuterClass.java new file mode 100644 index 000000000..ba1a296c1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GameMiracleInfoOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class GameMiracleInfoOuterClass { + /** + * Protobuf type {@code GameMiracleInfo} + */ + public static final class GameMiracleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueMiracleInfo game_miracle_info = 14; + */ + private final RogueMiracleInfoOuterClass.RogueMiracleInfo gameMiracleInfo = RogueMiracleInfoOuterClass.RogueMiracleInfo.newInstance(); + + private GameMiracleInfo() { + } + + /** + * @return a new empty instance of {@code GameMiracleInfo} + */ + public static GameMiracleInfo newInstance() { + return new GameMiracleInfo(); + } + + /** + * optional .RogueMiracleInfo game_miracle_info = 14; + * @return whether the gameMiracleInfo field is set + */ + public boolean hasGameMiracleInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueMiracleInfo game_miracle_info = 14; + * @return this + */ + public GameMiracleInfo clearGameMiracleInfo() { + bitField0_ &= ~0x00000001; + gameMiracleInfo.clear(); + return this; + } + + /** + * optional .RogueMiracleInfo game_miracle_info = 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 #getMutableGameMiracleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueMiracleInfoOuterClass.RogueMiracleInfo getGameMiracleInfo() { + return gameMiracleInfo; + } + + /** + * optional .RogueMiracleInfo game_miracle_info = 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 RogueMiracleInfoOuterClass.RogueMiracleInfo getMutableGameMiracleInfo() { + bitField0_ |= 0x00000001; + return gameMiracleInfo; + } + + /** + * optional .RogueMiracleInfo game_miracle_info = 14; + * @param value the gameMiracleInfo to set + * @return this + */ + public GameMiracleInfo setGameMiracleInfo( + final RogueMiracleInfoOuterClass.RogueMiracleInfo value) { + bitField0_ |= 0x00000001; + gameMiracleInfo.copyFrom(value); + return this; + } + + @Override + public GameMiracleInfo copyFrom(final GameMiracleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gameMiracleInfo.copyFrom(other.gameMiracleInfo); + } + return this; + } + + @Override + public GameMiracleInfo mergeFrom(final GameMiracleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGameMiracleInfo()) { + getMutableGameMiracleInfo().mergeFrom(other.gameMiracleInfo); + } + return this; + } + + @Override + public GameMiracleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gameMiracleInfo.clear(); + return this; + } + + @Override + public GameMiracleInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gameMiracleInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GameMiracleInfo)) { + return false; + } + GameMiracleInfo other = (GameMiracleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasGameMiracleInfo() || gameMiracleInfo.equals(other.gameMiracleInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(gameMiracleInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(gameMiracleInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GameMiracleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 114: { + // gameMiracleInfo + input.readMessage(gameMiracleInfo); + 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.writeMessage(FieldNames.gameMiracleInfo, gameMiracleInfo); + } + output.endObject(); + } + + @Override + public GameMiracleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -471061139: + case 1278717673: { + if (input.isAtField(FieldNames.gameMiracleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(gameMiracleInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GameMiracleInfo clone() { + return new GameMiracleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GameMiracleInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GameMiracleInfo(), data).checkInitialized(); + } + + public static GameMiracleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GameMiracleInfo(), input).checkInitialized(); + } + + public static GameMiracleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GameMiracleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating GameMiracleInfo messages + */ + public static MessageFactory getFactory() { + return GameMiracleInfoFactory.INSTANCE; + } + + private enum GameMiracleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public GameMiracleInfo create() { + return GameMiracleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gameMiracleInfo = FieldName.forField("gameMiracleInfo", "game_miracle_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GameRogueMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/GameRogueMiracleOuterClass.java new file mode 100644 index 000000000..61ba7e92b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GameRogueMiracleOuterClass.java @@ -0,0 +1,860 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class GameRogueMiracleOuterClass { + /** + * Protobuf type {@code GameRogueMiracle} + */ + public static final class GameRogueMiracle extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 miracle_id = 8; + */ + private int miracleId; + + /** + * optional uint32 durability = 9; + */ + private int durability; + + /** + * optional uint32 cur_times = 15; + */ + private int curTimes; + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 3; + */ + private final RepeatedMessage jBFJGEIGGBA = RepeatedMessage.newEmptyInstance(JBFJGEIGGBAEntry.getFactory()); + + private GameRogueMiracle() { + } + + /** + * @return a new empty instance of {@code GameRogueMiracle} + */ + public static GameRogueMiracle newInstance() { + return new GameRogueMiracle(); + } + + /** + * optional uint32 miracle_id = 8; + * @return whether the miracleId field is set + */ + public boolean hasMiracleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 miracle_id = 8; + * @return this + */ + public GameRogueMiracle clearMiracleId() { + bitField0_ &= ~0x00000001; + miracleId = 0; + return this; + } + + /** + * optional uint32 miracle_id = 8; + * @return the miracleId + */ + public int getMiracleId() { + return miracleId; + } + + /** + * optional uint32 miracle_id = 8; + * @param value the miracleId to set + * @return this + */ + public GameRogueMiracle setMiracleId(final int value) { + bitField0_ |= 0x00000001; + miracleId = value; + return this; + } + + /** + * optional uint32 durability = 9; + * @return whether the durability field is set + */ + public boolean hasDurability() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 durability = 9; + * @return this + */ + public GameRogueMiracle clearDurability() { + bitField0_ &= ~0x00000002; + durability = 0; + return this; + } + + /** + * optional uint32 durability = 9; + * @return the durability + */ + public int getDurability() { + return durability; + } + + /** + * optional uint32 durability = 9; + * @param value the durability to set + * @return this + */ + public GameRogueMiracle setDurability(final int value) { + bitField0_ |= 0x00000002; + durability = value; + return this; + } + + /** + * optional uint32 cur_times = 15; + * @return whether the curTimes field is set + */ + public boolean hasCurTimes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cur_times = 15; + * @return this + */ + public GameRogueMiracle clearCurTimes() { + bitField0_ &= ~0x00000004; + curTimes = 0; + return this; + } + + /** + * optional uint32 cur_times = 15; + * @return the curTimes + */ + public int getCurTimes() { + return curTimes; + } + + /** + * optional uint32 cur_times = 15; + * @param value the curTimes to set + * @return this + */ + public GameRogueMiracle setCurTimes(final int value) { + bitField0_ |= 0x00000004; + curTimes = value; + return this; + } + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 3; + * @return whether the jBFJGEIGGBA field is set + */ + public boolean hasJBFJGEIGGBA() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 3; + * @return this + */ + public GameRogueMiracle clearJBFJGEIGGBA() { + bitField0_ &= ~0x00000008; + jBFJGEIGGBA.clear(); + return this; + } + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 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 #getMutableJBFJGEIGGBA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getJBFJGEIGGBA() { + return jBFJGEIGGBA; + } + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 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 getMutableJBFJGEIGGBA() { + bitField0_ |= 0x00000008; + return jBFJGEIGGBA; + } + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 3; + * @param value the jBFJGEIGGBA to add + * @return this + */ + public GameRogueMiracle addJBFJGEIGGBA(final JBFJGEIGGBAEntry value) { + bitField0_ |= 0x00000008; + jBFJGEIGGBA.add(value); + return this; + } + + /** + * repeated .GameRogueMiracle.JBFJGEIGGBAEntry JBFJGEIGGBA = 3; + * @param values the jBFJGEIGGBA to add + * @return this + */ + public GameRogueMiracle addAllJBFJGEIGGBA(final JBFJGEIGGBAEntry... values) { + bitField0_ |= 0x00000008; + jBFJGEIGGBA.addAll(values); + return this; + } + + @Override + public GameRogueMiracle copyFrom(final GameRogueMiracle other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + miracleId = other.miracleId; + durability = other.durability; + curTimes = other.curTimes; + jBFJGEIGGBA.copyFrom(other.jBFJGEIGGBA); + } + return this; + } + + @Override + public GameRogueMiracle mergeFrom(final GameRogueMiracle other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMiracleId()) { + setMiracleId(other.miracleId); + } + if (other.hasDurability()) { + setDurability(other.durability); + } + if (other.hasCurTimes()) { + setCurTimes(other.curTimes); + } + if (other.hasJBFJGEIGGBA()) { + getMutableJBFJGEIGGBA().addAll(other.jBFJGEIGGBA); + } + return this; + } + + @Override + public GameRogueMiracle clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + miracleId = 0; + durability = 0; + curTimes = 0; + jBFJGEIGGBA.clear(); + return this; + } + + @Override + public GameRogueMiracle clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jBFJGEIGGBA.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GameRogueMiracle)) { + return false; + } + GameRogueMiracle other = (GameRogueMiracle) o; + return bitField0_ == other.bitField0_ + && (!hasMiracleId() || miracleId == other.miracleId) + && (!hasDurability() || durability == other.durability) + && (!hasCurTimes() || curTimes == other.curTimes) + && (!hasJBFJGEIGGBA() || jBFJGEIGGBA.equals(other.jBFJGEIGGBA)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(miracleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(durability); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(curTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < jBFJGEIGGBA.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(jBFJGEIGGBA.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(durability); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * jBFJGEIGGBA.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(jBFJGEIGGBA); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GameRogueMiracle mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // miracleId + miracleId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // durability + durability = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // curTimes + curTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // jBFJGEIGGBA + tag = input.readRepeatedMessage(jBFJGEIGGBA, 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.miracleId, miracleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.durability, durability); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.curTimes, curTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.jBFJGEIGGBA, jBFJGEIGGBA); + } + output.endObject(); + } + + @Override + public GameRogueMiracle mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -164571796: + case -806736983: { + if (input.isAtField(FieldNames.miracleId)) { + if (!input.trySkipNullValue()) { + miracleId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 716086281: { + if (input.isAtField(FieldNames.durability)) { + if (!input.trySkipNullValue()) { + durability = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 547814630: + case 127351943: { + if (input.isAtField(FieldNames.curTimes)) { + if (!input.trySkipNullValue()) { + curTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1130952882: { + if (input.isAtField(FieldNames.jBFJGEIGGBA)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(jBFJGEIGGBA); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GameRogueMiracle clone() { + return new GameRogueMiracle().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GameRogueMiracle parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GameRogueMiracle(), data).checkInitialized(); + } + + public static GameRogueMiracle parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GameRogueMiracle(), input).checkInitialized(); + } + + public static GameRogueMiracle parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GameRogueMiracle(), input).checkInitialized(); + } + + /** + * @return factory for creating GameRogueMiracle messages + */ + public static MessageFactory getFactory() { + return GameRogueMiracleFactory.INSTANCE; + } + + /** + * Protobuf type {@code JBFJGEIGGBAEntry} + */ + public static final class JBFJGEIGGBAEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional uint32 value = 2; + */ + private int value_; + + private JBFJGEIGGBAEntry() { + } + + /** + * @return a new empty instance of {@code JBFJGEIGGBAEntry} + */ + public static JBFJGEIGGBAEntry newInstance() { + return new JBFJGEIGGBAEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public JBFJGEIGGBAEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public JBFJGEIGGBAEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public JBFJGEIGGBAEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public JBFJGEIGGBAEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public JBFJGEIGGBAEntry copyFrom(final JBFJGEIGGBAEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public JBFJGEIGGBAEntry mergeFrom(final JBFJGEIGGBAEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public JBFJGEIGGBAEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public JBFJGEIGGBAEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JBFJGEIGGBAEntry)) { + return false; + } + JBFJGEIGGBAEntry other = (JBFJGEIGGBAEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JBFJGEIGGBAEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readUInt32(); + 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.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public JBFJGEIGGBAEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JBFJGEIGGBAEntry clone() { + return new JBFJGEIGGBAEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JBFJGEIGGBAEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JBFJGEIGGBAEntry(), data).checkInitialized(); + } + + public static JBFJGEIGGBAEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JBFJGEIGGBAEntry(), input).checkInitialized(); + } + + public static JBFJGEIGGBAEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JBFJGEIGGBAEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating JBFJGEIGGBAEntry messages + */ + public static MessageFactory getFactory() { + return JBFJGEIGGBAEntryFactory.INSTANCE; + } + + private enum JBFJGEIGGBAEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public JBFJGEIGGBAEntry create() { + return JBFJGEIGGBAEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + + private enum GameRogueMiracleFactory implements MessageFactory { + INSTANCE; + + @Override + public GameRogueMiracle create() { + return GameRogueMiracle.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); + + static final FieldName durability = FieldName.forField("durability"); + + static final FieldName curTimes = FieldName.forField("curTimes", "cur_times"); + + static final FieldName jBFJGEIGGBA = FieldName.forField("JBFJGEIGGBA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChessRogueBuffEnhanceInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChessRogueBuffEnhanceInfoCsReqOuterClass.java new file mode 100644 index 000000000..e82a17aff --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChessRogueBuffEnhanceInfoCsReqOuterClass.java @@ -0,0 +1,178 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class GetChessRogueBuffEnhanceInfoCsReqOuterClass { + /** + * Protobuf type {@code GetChessRogueBuffEnhanceInfoCsReq} + */ + public static final class GetChessRogueBuffEnhanceInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private GetChessRogueBuffEnhanceInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetChessRogueBuffEnhanceInfoCsReq} + */ + public static GetChessRogueBuffEnhanceInfoCsReq newInstance() { + return new GetChessRogueBuffEnhanceInfoCsReq(); + } + + @Override + public GetChessRogueBuffEnhanceInfoCsReq copyFrom( + final GetChessRogueBuffEnhanceInfoCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoCsReq mergeFrom( + final GetChessRogueBuffEnhanceInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChessRogueBuffEnhanceInfoCsReq)) { + return false; + } + GetChessRogueBuffEnhanceInfoCsReq other = (GetChessRogueBuffEnhanceInfoCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChessRogueBuffEnhanceInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public GetChessRogueBuffEnhanceInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoCsReq clone() { + return new GetChessRogueBuffEnhanceInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChessRogueBuffEnhanceInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChessRogueBuffEnhanceInfoCsReq(), data).checkInitialized(); + } + + public static GetChessRogueBuffEnhanceInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueBuffEnhanceInfoCsReq(), input).checkInitialized(); + } + + public static GetChessRogueBuffEnhanceInfoCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueBuffEnhanceInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChessRogueBuffEnhanceInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetChessRogueBuffEnhanceInfoCsReqFactory.INSTANCE; + } + + private enum GetChessRogueBuffEnhanceInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChessRogueBuffEnhanceInfoCsReq create() { + return GetChessRogueBuffEnhanceInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChessRogueBuffEnhanceInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChessRogueBuffEnhanceInfoScRspOuterClass.java new file mode 100644 index 000000000..bfbd7ac47 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChessRogueBuffEnhanceInfoScRspOuterClass.java @@ -0,0 +1,367 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class GetChessRogueBuffEnhanceInfoScRspOuterClass { + /** + * Protobuf type {@code GetChessRogueBuffEnhanceInfoScRsp} + */ + public static final class GetChessRogueBuffEnhanceInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 4; + */ + private final ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList buffEnhanceInfo = ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList.newInstance(); + + private GetChessRogueBuffEnhanceInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetChessRogueBuffEnhanceInfoScRsp} + */ + public static GetChessRogueBuffEnhanceInfoScRsp newInstance() { + return new GetChessRogueBuffEnhanceInfoScRsp(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public GetChessRogueBuffEnhanceInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public GetChessRogueBuffEnhanceInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 4; + * @return whether the buffEnhanceInfo field is set + */ + public boolean hasBuffEnhanceInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 4; + * @return this + */ + public GetChessRogueBuffEnhanceInfoScRsp clearBuffEnhanceInfo() { + bitField0_ &= ~0x00000002; + buffEnhanceInfo.clear(); + return this; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 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 #getMutableBuffEnhanceInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList getBuffEnhanceInfo() { + return buffEnhanceInfo; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 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 ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList getMutableBuffEnhanceInfo( + ) { + bitField0_ |= 0x00000002; + return buffEnhanceInfo; + } + + /** + * optional .ChessRogueBuffEnhanceList buff_enhance_info = 4; + * @param value the buffEnhanceInfo to set + * @return this + */ + public GetChessRogueBuffEnhanceInfoScRsp setBuffEnhanceInfo( + final ChessRogueBuffEnhanceListOuterClass.ChessRogueBuffEnhanceList value) { + bitField0_ |= 0x00000002; + buffEnhanceInfo.copyFrom(value); + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoScRsp copyFrom( + final GetChessRogueBuffEnhanceInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + buffEnhanceInfo.copyFrom(other.buffEnhanceInfo); + } + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoScRsp mergeFrom( + final GetChessRogueBuffEnhanceInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBuffEnhanceInfo()) { + getMutableBuffEnhanceInfo().mergeFrom(other.buffEnhanceInfo); + } + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + buffEnhanceInfo.clear(); + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffEnhanceInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChessRogueBuffEnhanceInfoScRsp)) { + return false; + } + GetChessRogueBuffEnhanceInfoScRsp other = (GetChessRogueBuffEnhanceInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasBuffEnhanceInfo() || buffEnhanceInfo.equals(other.buffEnhanceInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(buffEnhanceInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(buffEnhanceInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChessRogueBuffEnhanceInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // buffEnhanceInfo + input.readMessage(buffEnhanceInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.buffEnhanceInfo, buffEnhanceInfo); + } + output.endObject(); + } + + @Override + public GetChessRogueBuffEnhanceInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -734426583: + case 2143965195: { + if (input.isAtField(FieldNames.buffEnhanceInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(buffEnhanceInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChessRogueBuffEnhanceInfoScRsp clone() { + return new GetChessRogueBuffEnhanceInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChessRogueBuffEnhanceInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChessRogueBuffEnhanceInfoScRsp(), data).checkInitialized(); + } + + public static GetChessRogueBuffEnhanceInfoScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueBuffEnhanceInfoScRsp(), input).checkInitialized(); + } + + public static GetChessRogueBuffEnhanceInfoScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueBuffEnhanceInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChessRogueBuffEnhanceInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetChessRogueBuffEnhanceInfoScRspFactory.INSTANCE; + } + + private enum GetChessRogueBuffEnhanceInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChessRogueBuffEnhanceInfoScRsp create() { + return GetChessRogueBuffEnhanceInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName buffEnhanceInfo = FieldName.forField("buffEnhanceInfo", "buff_enhance_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoCsReqOuterClass.java new file mode 100644 index 000000000..1d2ed9d67 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoCsReqOuterClass.java @@ -0,0 +1,176 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class GetChessRogueNousStoryInfoCsReqOuterClass { + /** + * Protobuf type {@code GetChessRogueNousStoryInfoCsReq} + */ + public static final class GetChessRogueNousStoryInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private GetChessRogueNousStoryInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetChessRogueNousStoryInfoCsReq} + */ + public static GetChessRogueNousStoryInfoCsReq newInstance() { + return new GetChessRogueNousStoryInfoCsReq(); + } + + @Override + public GetChessRogueNousStoryInfoCsReq copyFrom(final GetChessRogueNousStoryInfoCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public GetChessRogueNousStoryInfoCsReq mergeFrom(final GetChessRogueNousStoryInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public GetChessRogueNousStoryInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public GetChessRogueNousStoryInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChessRogueNousStoryInfoCsReq)) { + return false; + } + GetChessRogueNousStoryInfoCsReq other = (GetChessRogueNousStoryInfoCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChessRogueNousStoryInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public GetChessRogueNousStoryInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChessRogueNousStoryInfoCsReq clone() { + return new GetChessRogueNousStoryInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChessRogueNousStoryInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoCsReq(), data).checkInitialized(); + } + + public static GetChessRogueNousStoryInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoCsReq(), input).checkInitialized(); + } + + public static GetChessRogueNousStoryInfoCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChessRogueNousStoryInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetChessRogueNousStoryInfoCsReqFactory.INSTANCE; + } + + private enum GetChessRogueNousStoryInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChessRogueNousStoryInfoCsReq create() { + return GetChessRogueNousStoryInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChessRogueStoryAeonTalkInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChessRogueStoryAeonTalkInfoCsReqOuterClass.java new file mode 100644 index 000000000..f92dc7ba2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChessRogueStoryAeonTalkInfoCsReqOuterClass.java @@ -0,0 +1,266 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class GetChessRogueStoryAeonTalkInfoCsReqOuterClass { + /** + * Protobuf type {@code GetChessRogueStoryAeonTalkInfoCsReq} + */ + public static final class GetChessRogueStoryAeonTalkInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_id = 5; + */ + private int eventId; + + private GetChessRogueStoryAeonTalkInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetChessRogueStoryAeonTalkInfoCsReq} + */ + public static GetChessRogueStoryAeonTalkInfoCsReq newInstance() { + return new GetChessRogueStoryAeonTalkInfoCsReq(); + } + + /** + * optional uint32 event_id = 5; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_id = 5; + * @return this + */ + public GetChessRogueStoryAeonTalkInfoCsReq clearEventId() { + bitField0_ &= ~0x00000001; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 5; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 5; + * @param value the eventId to set + * @return this + */ + public GetChessRogueStoryAeonTalkInfoCsReq setEventId(final int value) { + bitField0_ |= 0x00000001; + eventId = value; + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq copyFrom( + final GetChessRogueStoryAeonTalkInfoCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventId = other.eventId; + } + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq mergeFrom( + final GetChessRogueStoryAeonTalkInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventId()) { + setEventId(other.eventId); + } + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventId = 0; + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChessRogueStoryAeonTalkInfoCsReq)) { + return false; + } + GetChessRogueStoryAeonTalkInfoCsReq other = (GetChessRogueStoryAeonTalkInfoCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEventId() || eventId == other.eventId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(eventId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChessRogueStoryAeonTalkInfoCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // eventId + eventId = input.readUInt32(); + 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.writeUInt32(FieldNames.eventId, eventId); + } + output.endObject(); + } + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { + if (!input.trySkipNullValue()) { + eventId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq clone() { + return new GetChessRogueStoryAeonTalkInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChessRogueStoryAeonTalkInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChessRogueStoryAeonTalkInfoCsReq(), data).checkInitialized(); + } + + public static GetChessRogueStoryAeonTalkInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueStoryAeonTalkInfoCsReq(), input).checkInitialized(); + } + + public static GetChessRogueStoryAeonTalkInfoCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueStoryAeonTalkInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChessRogueStoryAeonTalkInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetChessRogueStoryAeonTalkInfoCsReqFactory.INSTANCE; + } + + private enum GetChessRogueStoryAeonTalkInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChessRogueStoryAeonTalkInfoCsReq create() { + return GetChessRogueStoryAeonTalkInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventId = FieldName.forField("eventId", "event_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChessRogueStoryAeonTalkInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChessRogueStoryAeonTalkInfoScRspOuterClass.java new file mode 100644 index 000000000..7d290334c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChessRogueStoryAeonTalkInfoScRspOuterClass.java @@ -0,0 +1,785 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class GetChessRogueStoryAeonTalkInfoScRspOuterClass { + /** + * Protobuf type {@code GetChessRogueStoryAeonTalkInfoScRsp} + */ + public static final class GetChessRogueStoryAeonTalkInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional uint32 event_id = 14; + */ + private int eventId; + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 4; + */ + private final RepeatedMessage fKDHDCGOIMF = RepeatedMessage.newEmptyInstance(FKDHDCGOIMFEntry.getFactory()); + + private GetChessRogueStoryAeonTalkInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetChessRogueStoryAeonTalkInfoScRsp} + */ + public static GetChessRogueStoryAeonTalkInfoScRsp newInstance() { + return new GetChessRogueStoryAeonTalkInfoScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 event_id = 14; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 event_id = 14; + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp clearEventId() { + bitField0_ &= ~0x00000002; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 14; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 14; + * @param value the eventId to set + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp setEventId(final int value) { + bitField0_ |= 0x00000002; + eventId = value; + return this; + } + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 4; + * @return whether the fKDHDCGOIMF field is set + */ + public boolean hasFKDHDCGOIMF() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 4; + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp clearFKDHDCGOIMF() { + bitField0_ &= ~0x00000004; + fKDHDCGOIMF.clear(); + return this; + } + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 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 #getMutableFKDHDCGOIMF()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFKDHDCGOIMF() { + return fKDHDCGOIMF; + } + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 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 getMutableFKDHDCGOIMF() { + bitField0_ |= 0x00000004; + return fKDHDCGOIMF; + } + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 4; + * @param value the fKDHDCGOIMF to add + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp addFKDHDCGOIMF(final FKDHDCGOIMFEntry value) { + bitField0_ |= 0x00000004; + fKDHDCGOIMF.add(value); + return this; + } + + /** + * repeated .GetChessRogueStoryAeonTalkInfoScRsp.FKDHDCGOIMFEntry FKDHDCGOIMF = 4; + * @param values the fKDHDCGOIMF to add + * @return this + */ + public GetChessRogueStoryAeonTalkInfoScRsp addAllFKDHDCGOIMF(final FKDHDCGOIMFEntry... values) { + bitField0_ |= 0x00000004; + fKDHDCGOIMF.addAll(values); + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp copyFrom( + final GetChessRogueStoryAeonTalkInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + eventId = other.eventId; + fKDHDCGOIMF.copyFrom(other.fKDHDCGOIMF); + } + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp mergeFrom( + final GetChessRogueStoryAeonTalkInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEventId()) { + setEventId(other.eventId); + } + if (other.hasFKDHDCGOIMF()) { + getMutableFKDHDCGOIMF().addAll(other.fKDHDCGOIMF); + } + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + eventId = 0; + fKDHDCGOIMF.clear(); + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fKDHDCGOIMF.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChessRogueStoryAeonTalkInfoScRsp)) { + return false; + } + GetChessRogueStoryAeonTalkInfoScRsp other = (GetChessRogueStoryAeonTalkInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasEventId() || eventId == other.eventId) + && (!hasFKDHDCGOIMF() || fKDHDCGOIMF.equals(other.fKDHDCGOIMF)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(eventId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < fKDHDCGOIMF.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(fKDHDCGOIMF.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * fKDHDCGOIMF.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(fKDHDCGOIMF); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChessRogueStoryAeonTalkInfoScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // eventId + eventId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // fKDHDCGOIMF + tag = input.readRepeatedMessage(fKDHDCGOIMF, 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eventId, eventId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.fKDHDCGOIMF, fKDHDCGOIMF); + } + output.endObject(); + } + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { + if (!input.trySkipNullValue()) { + eventId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1696143474: { + if (input.isAtField(FieldNames.fKDHDCGOIMF)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(fKDHDCGOIMF); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp clone() { + return new GetChessRogueStoryAeonTalkInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChessRogueStoryAeonTalkInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChessRogueStoryAeonTalkInfoScRsp(), data).checkInitialized(); + } + + public static GetChessRogueStoryAeonTalkInfoScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueStoryAeonTalkInfoScRsp(), input).checkInitialized(); + } + + public static GetChessRogueStoryAeonTalkInfoScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChessRogueStoryAeonTalkInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChessRogueStoryAeonTalkInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetChessRogueStoryAeonTalkInfoScRspFactory.INSTANCE; + } + + /** + * Protobuf type {@code FKDHDCGOIMFEntry} + */ + public static final class FKDHDCGOIMFEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional uint32 value = 2; + */ + private int value_; + + private FKDHDCGOIMFEntry() { + } + + /** + * @return a new empty instance of {@code FKDHDCGOIMFEntry} + */ + public static FKDHDCGOIMFEntry newInstance() { + return new FKDHDCGOIMFEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public FKDHDCGOIMFEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public FKDHDCGOIMFEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public FKDHDCGOIMFEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public FKDHDCGOIMFEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public FKDHDCGOIMFEntry copyFrom(final FKDHDCGOIMFEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public FKDHDCGOIMFEntry mergeFrom(final FKDHDCGOIMFEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public FKDHDCGOIMFEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public FKDHDCGOIMFEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FKDHDCGOIMFEntry)) { + return false; + } + FKDHDCGOIMFEntry other = (FKDHDCGOIMFEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FKDHDCGOIMFEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readUInt32(); + 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.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public FKDHDCGOIMFEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FKDHDCGOIMFEntry clone() { + return new FKDHDCGOIMFEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FKDHDCGOIMFEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), data).checkInitialized(); + } + + public static FKDHDCGOIMFEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), input).checkInitialized(); + } + + public static FKDHDCGOIMFEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating FKDHDCGOIMFEntry messages + */ + public static MessageFactory getFactory() { + return FKDHDCGOIMFEntryFactory.INSTANCE; + } + + private enum FKDHDCGOIMFEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public FKDHDCGOIMFEntry create() { + return FKDHDCGOIMFEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + + private enum GetChessRogueStoryAeonTalkInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChessRogueStoryAeonTalkInfoScRsp create() { + return GetChessRogueStoryAeonTalkInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName eventId = FieldName.forField("eventId", "event_id"); + + static final FieldName fKDHDCGOIMF = FieldName.forField("FKDHDCGOIMF"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueBuffEnhanceInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueBuffEnhanceInfoCsReqOuterClass.java new file mode 100644 index 000000000..fd2569f6a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetRogueBuffEnhanceInfoCsReqOuterClass.java @@ -0,0 +1,176 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class GetRogueBuffEnhanceInfoCsReqOuterClass { + /** + * Protobuf type {@code GetRogueBuffEnhanceInfoCsReq} + */ + public static final class GetRogueBuffEnhanceInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private GetRogueBuffEnhanceInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetRogueBuffEnhanceInfoCsReq} + */ + public static GetRogueBuffEnhanceInfoCsReq newInstance() { + return new GetRogueBuffEnhanceInfoCsReq(); + } + + @Override + public GetRogueBuffEnhanceInfoCsReq copyFrom(final GetRogueBuffEnhanceInfoCsReq other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public GetRogueBuffEnhanceInfoCsReq mergeFrom(final GetRogueBuffEnhanceInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public GetRogueBuffEnhanceInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public GetRogueBuffEnhanceInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetRogueBuffEnhanceInfoCsReq)) { + return false; + } + GetRogueBuffEnhanceInfoCsReq other = (GetRogueBuffEnhanceInfoCsReq) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetRogueBuffEnhanceInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public GetRogueBuffEnhanceInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetRogueBuffEnhanceInfoCsReq clone() { + return new GetRogueBuffEnhanceInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetRogueBuffEnhanceInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetRogueBuffEnhanceInfoCsReq(), data).checkInitialized(); + } + + public static GetRogueBuffEnhanceInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetRogueBuffEnhanceInfoCsReq(), input).checkInitialized(); + } + + public static GetRogueBuffEnhanceInfoCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetRogueBuffEnhanceInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetRogueBuffEnhanceInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetRogueBuffEnhanceInfoCsReqFactory.INSTANCE; + } + + private enum GetRogueBuffEnhanceInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetRogueBuffEnhanceInfoCsReq create() { + return GetRogueBuffEnhanceInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HDGLNDMEMEDOuterClass.java b/src/generated/main/emu/lunarcore/proto/HDGLNDMEMEDOuterClass.java new file mode 100644 index 000000000..79084cc5a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HDGLNDMEMEDOuterClass.java @@ -0,0 +1,383 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class HDGLNDMEMEDOuterClass { + /** + * Protobuf type {@code HDGLNDMEMED} + */ + public static final class HDGLNDMEMED extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .CellMonsterInfo boss_info = 5; + */ + private final CellMonsterInfoOuterClass.CellMonsterInfo bossInfo = CellMonsterInfoOuterClass.CellMonsterInfo.newInstance(); + + /** + * optional .CellMonsterSelectInfo select_boss_info = 7; + */ + private final CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo selectBossInfo = CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo.newInstance(); + + private HDGLNDMEMED() { + } + + /** + * @return a new empty instance of {@code HDGLNDMEMED} + */ + public static HDGLNDMEMED newInstance() { + return new HDGLNDMEMED(); + } + + /** + * optional .CellMonsterInfo boss_info = 5; + * @return whether the bossInfo field is set + */ + public boolean hasBossInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .CellMonsterInfo boss_info = 5; + * @return this + */ + public HDGLNDMEMED clearBossInfo() { + bitField0_ &= ~0x00000001; + bossInfo.clear(); + return this; + } + + /** + * optional .CellMonsterInfo boss_info = 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 #getMutableBossInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellMonsterInfoOuterClass.CellMonsterInfo getBossInfo() { + return bossInfo; + } + + /** + * optional .CellMonsterInfo boss_info = 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 CellMonsterInfoOuterClass.CellMonsterInfo getMutableBossInfo() { + bitField0_ |= 0x00000001; + return bossInfo; + } + + /** + * optional .CellMonsterInfo boss_info = 5; + * @param value the bossInfo to set + * @return this + */ + public HDGLNDMEMED setBossInfo(final CellMonsterInfoOuterClass.CellMonsterInfo value) { + bitField0_ |= 0x00000001; + bossInfo.copyFrom(value); + return this; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 7; + * @return whether the selectBossInfo field is set + */ + public boolean hasSelectBossInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 7; + * @return this + */ + public HDGLNDMEMED clearSelectBossInfo() { + bitField0_ &= ~0x00000002; + selectBossInfo.clear(); + return this; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 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 #getMutableSelectBossInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo getSelectBossInfo() { + return selectBossInfo; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 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 CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo getMutableSelectBossInfo() { + bitField0_ |= 0x00000002; + return selectBossInfo; + } + + /** + * optional .CellMonsterSelectInfo select_boss_info = 7; + * @param value the selectBossInfo to set + * @return this + */ + public HDGLNDMEMED setSelectBossInfo( + final CellMonsterSelectInfoOuterClass.CellMonsterSelectInfo value) { + bitField0_ |= 0x00000002; + selectBossInfo.copyFrom(value); + return this; + } + + @Override + public HDGLNDMEMED copyFrom(final HDGLNDMEMED other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bossInfo.copyFrom(other.bossInfo); + selectBossInfo.copyFrom(other.selectBossInfo); + } + return this; + } + + @Override + public HDGLNDMEMED mergeFrom(final HDGLNDMEMED other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBossInfo()) { + getMutableBossInfo().mergeFrom(other.bossInfo); + } + if (other.hasSelectBossInfo()) { + getMutableSelectBossInfo().mergeFrom(other.selectBossInfo); + } + return this; + } + + @Override + public HDGLNDMEMED clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossInfo.clear(); + selectBossInfo.clear(); + return this; + } + + @Override + public HDGLNDMEMED clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bossInfo.clearQuick(); + selectBossInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof HDGLNDMEMED)) { + return false; + } + HDGLNDMEMED other = (HDGLNDMEMED) o; + return bitField0_ == other.bitField0_ + && (!hasBossInfo() || bossInfo.equals(other.bossInfo)) + && (!hasSelectBossInfo() || selectBossInfo.equals(other.selectBossInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(bossInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(selectBossInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(bossInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(selectBossInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public HDGLNDMEMED mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // bossInfo + input.readMessage(bossInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // selectBossInfo + input.readMessage(selectBossInfo); + 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.bossInfo, bossInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.selectBossInfo, selectBossInfo); + } + output.endObject(); + } + + @Override + public HDGLNDMEMED mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2126222779: + case 1508572736: { + if (input.isAtField(FieldNames.bossInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(bossInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1216449833: + case -1646648643: { + if (input.isAtField(FieldNames.selectBossInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(selectBossInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public HDGLNDMEMED clone() { + return new HDGLNDMEMED().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HDGLNDMEMED parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HDGLNDMEMED(), data).checkInitialized(); + } + + public static HDGLNDMEMED parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HDGLNDMEMED(), input).checkInitialized(); + } + + public static HDGLNDMEMED parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HDGLNDMEMED(), input).checkInitialized(); + } + + /** + * @return factory for creating HDGLNDMEMED messages + */ + public static MessageFactory getFactory() { + return HDGLNDMEMEDFactory.INSTANCE; + } + + private enum HDGLNDMEMEDFactory implements MessageFactory { + INSTANCE; + + @Override + public HDGLNDMEMED create() { + return HDGLNDMEMED.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bossInfo = FieldName.forField("bossInfo", "boss_info"); + + static final FieldName selectBossInfo = FieldName.forField("selectBossInfo", "select_boss_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HGBBFBLLJLGOuterClass.java b/src/generated/main/emu/lunarcore/proto/HGBBFBLLJLGOuterClass.java new file mode 100644 index 000000000..a3f0720c9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HGBBFBLLJLGOuterClass.java @@ -0,0 +1,280 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class HGBBFBLLJLGOuterClass { + /** + * Protobuf type {@code HGBBFBLLJLG} + */ + public static final class HGBBFBLLJLG extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ItemList item_list = 5; + */ + private final ItemListOuterClass.ItemList itemList = ItemListOuterClass.ItemList.newInstance(); + + private HGBBFBLLJLG() { + } + + /** + * @return a new empty instance of {@code HGBBFBLLJLG} + */ + public static HGBBFBLLJLG newInstance() { + return new HGBBFBLLJLG(); + } + + /** + * optional .ItemList item_list = 5; + * @return whether the itemList field is set + */ + public boolean hasItemList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ItemList item_list = 5; + * @return this + */ + public HGBBFBLLJLG clearItemList() { + bitField0_ &= ~0x00000001; + itemList.clear(); + return this; + } + + /** + * optional .ItemList item_list = 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 #getMutableItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getItemList() { + return itemList; + } + + /** + * optional .ItemList item_list = 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 ItemListOuterClass.ItemList getMutableItemList() { + bitField0_ |= 0x00000001; + return itemList; + } + + /** + * optional .ItemList item_list = 5; + * @param value the itemList to set + * @return this + */ + public HGBBFBLLJLG setItemList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000001; + itemList.copyFrom(value); + return this; + } + + @Override + public HGBBFBLLJLG copyFrom(final HGBBFBLLJLG other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemList.copyFrom(other.itemList); + } + return this; + } + + @Override + public HGBBFBLLJLG mergeFrom(final HGBBFBLLJLG other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemList()) { + getMutableItemList().mergeFrom(other.itemList); + } + return this; + } + + @Override + public HGBBFBLLJLG clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemList.clear(); + return this; + } + + @Override + public HGBBFBLLJLG clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof HGBBFBLLJLG)) { + return false; + } + HGBBFBLLJLG other = (HGBBFBLLJLG) o; + return bitField0_ == other.bitField0_ + && (!hasItemList() || itemList.equals(other.itemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(itemList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public HGBBFBLLJLG mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // itemList + input.readMessage(itemList); + 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.writeMessage(FieldNames.itemList, itemList); + } + output.endObject(); + } + + @Override + public HGBBFBLLJLG mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1177280081: + case -2141396406: { + if (input.isAtField(FieldNames.itemList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public HGBBFBLLJLG clone() { + return new HGBBFBLLJLG().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HGBBFBLLJLG parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HGBBFBLLJLG(), data).checkInitialized(); + } + + public static HGBBFBLLJLG parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HGBBFBLLJLG(), input).checkInitialized(); + } + + public static HGBBFBLLJLG parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HGBBFBLLJLG(), input).checkInitialized(); + } + + /** + * @return factory for creating HGBBFBLLJLG messages + */ + public static MessageFactory getFactory() { + return HGBBFBLLJLGFactory.INSTANCE; + } + + private enum HGBBFBLLJLGFactory implements MessageFactory { + INSTANCE; + + @Override + public HGBBFBLLJLG create() { + return HGBBFBLLJLG.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemList = FieldName.forField("itemList", "item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ICNMLEMMHKLOuterClass.java b/src/generated/main/emu/lunarcore/proto/ICNMLEMMHKLOuterClass.java new file mode 100644 index 000000000..89fa09316 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ICNMLEMMHKLOuterClass.java @@ -0,0 +1,292 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class ICNMLEMMHKLOuterClass { + /** + * Protobuf type {@code ICNMLEMMHKL} + */ + public static final class ICNMLEMMHKL extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueModifier BCLODKIFEBJ = 15; + */ + private final RepeatedMessage bCLODKIFEBJ = RepeatedMessage.newEmptyInstance(RogueModifierOuterClass.RogueModifier.getFactory()); + + private ICNMLEMMHKL() { + } + + /** + * @return a new empty instance of {@code ICNMLEMMHKL} + */ + public static ICNMLEMMHKL newInstance() { + return new ICNMLEMMHKL(); + } + + /** + * repeated .RogueModifier BCLODKIFEBJ = 15; + * @return whether the bCLODKIFEBJ field is set + */ + public boolean hasBCLODKIFEBJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueModifier BCLODKIFEBJ = 15; + * @return this + */ + public ICNMLEMMHKL clearBCLODKIFEBJ() { + bitField0_ &= ~0x00000001; + bCLODKIFEBJ.clear(); + return this; + } + + /** + * repeated .RogueModifier BCLODKIFEBJ = 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 #getMutableBCLODKIFEBJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBCLODKIFEBJ() { + return bCLODKIFEBJ; + } + + /** + * repeated .RogueModifier BCLODKIFEBJ = 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 getMutableBCLODKIFEBJ() { + bitField0_ |= 0x00000001; + return bCLODKIFEBJ; + } + + /** + * repeated .RogueModifier BCLODKIFEBJ = 15; + * @param value the bCLODKIFEBJ to add + * @return this + */ + public ICNMLEMMHKL addBCLODKIFEBJ(final RogueModifierOuterClass.RogueModifier value) { + bitField0_ |= 0x00000001; + bCLODKIFEBJ.add(value); + return this; + } + + /** + * repeated .RogueModifier BCLODKIFEBJ = 15; + * @param values the bCLODKIFEBJ to add + * @return this + */ + public ICNMLEMMHKL addAllBCLODKIFEBJ(final RogueModifierOuterClass.RogueModifier... values) { + bitField0_ |= 0x00000001; + bCLODKIFEBJ.addAll(values); + return this; + } + + @Override + public ICNMLEMMHKL copyFrom(final ICNMLEMMHKL other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bCLODKIFEBJ.copyFrom(other.bCLODKIFEBJ); + } + return this; + } + + @Override + public ICNMLEMMHKL mergeFrom(final ICNMLEMMHKL other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBCLODKIFEBJ()) { + getMutableBCLODKIFEBJ().addAll(other.bCLODKIFEBJ); + } + return this; + } + + @Override + public ICNMLEMMHKL clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bCLODKIFEBJ.clear(); + return this; + } + + @Override + public ICNMLEMMHKL clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bCLODKIFEBJ.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ICNMLEMMHKL)) { + return false; + } + ICNMLEMMHKL other = (ICNMLEMMHKL) o; + return bitField0_ == other.bitField0_ + && (!hasBCLODKIFEBJ() || bCLODKIFEBJ.equals(other.bCLODKIFEBJ)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < bCLODKIFEBJ.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(bCLODKIFEBJ.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * bCLODKIFEBJ.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bCLODKIFEBJ); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ICNMLEMMHKL mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 122: { + // bCLODKIFEBJ + tag = input.readRepeatedMessage(bCLODKIFEBJ, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.bCLODKIFEBJ, bCLODKIFEBJ); + } + output.endObject(); + } + + @Override + public ICNMLEMMHKL mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -163233051: { + if (input.isAtField(FieldNames.bCLODKIFEBJ)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(bCLODKIFEBJ); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ICNMLEMMHKL clone() { + return new ICNMLEMMHKL().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ICNMLEMMHKL parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ICNMLEMMHKL(), data).checkInitialized(); + } + + public static ICNMLEMMHKL parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ICNMLEMMHKL(), input).checkInitialized(); + } + + public static ICNMLEMMHKL parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ICNMLEMMHKL(), input).checkInitialized(); + } + + /** + * @return factory for creating ICNMLEMMHKL messages + */ + public static MessageFactory getFactory() { + return ICNMLEMMHKLFactory.INSTANCE; + } + + private enum ICNMLEMMHKLFactory implements MessageFactory { + INSTANCE; + + @Override + public ICNMLEMMHKL create() { + return ICNMLEMMHKL.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bCLODKIFEBJ = FieldName.forField("BCLODKIFEBJ"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/IEKOLCJKMMLOuterClass.java b/src/generated/main/emu/lunarcore/proto/IEKOLCJKMMLOuterClass.java new file mode 100644 index 000000000..78cee9c2b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/IEKOLCJKMMLOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class IEKOLCJKMMLOuterClass { + /** + * Protobuf type {@code IEKOLCJKMML} + */ + public static final class IEKOLCJKMML extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 2; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 IPAPJCOAIFG = 5; + */ + private final RepeatedInt iPAPJCOAIFG = RepeatedInt.newEmptyInstance(); + + private IEKOLCJKMML() { + } + + /** + * @return a new empty instance of {@code IEKOLCJKMML} + */ + public static IEKOLCJKMML newInstance() { + return new IEKOLCJKMML(); + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @return this + */ + public IEKOLCJKMML clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 2; + * @param value the dCECFOKFIHH to set + * @return this + */ + public IEKOLCJKMML setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 IPAPJCOAIFG = 5; + * @return whether the iPAPJCOAIFG field is set + */ + public boolean hasIPAPJCOAIFG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 IPAPJCOAIFG = 5; + * @return this + */ + public IEKOLCJKMML clearIPAPJCOAIFG() { + bitField0_ &= ~0x00000002; + iPAPJCOAIFG.clear(); + return this; + } + + /** + * repeated uint32 IPAPJCOAIFG = 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 #getMutableIPAPJCOAIFG()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getIPAPJCOAIFG() { + return iPAPJCOAIFG; + } + + /** + * repeated uint32 IPAPJCOAIFG = 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 getMutableIPAPJCOAIFG() { + bitField0_ |= 0x00000002; + return iPAPJCOAIFG; + } + + /** + * repeated uint32 IPAPJCOAIFG = 5; + * @param value the iPAPJCOAIFG to add + * @return this + */ + public IEKOLCJKMML addIPAPJCOAIFG(final int value) { + bitField0_ |= 0x00000002; + iPAPJCOAIFG.add(value); + return this; + } + + /** + * repeated uint32 IPAPJCOAIFG = 5; + * @param values the iPAPJCOAIFG to add + * @return this + */ + public IEKOLCJKMML addAllIPAPJCOAIFG(final int... values) { + bitField0_ |= 0x00000002; + iPAPJCOAIFG.addAll(values); + return this; + } + + @Override + public IEKOLCJKMML copyFrom(final IEKOLCJKMML other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + iPAPJCOAIFG.copyFrom(other.iPAPJCOAIFG); + } + return this; + } + + @Override + public IEKOLCJKMML mergeFrom(final IEKOLCJKMML other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasIPAPJCOAIFG()) { + getMutableIPAPJCOAIFG().addAll(other.iPAPJCOAIFG); + } + return this; + } + + @Override + public IEKOLCJKMML clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + iPAPJCOAIFG.clear(); + return this; + } + + @Override + public IEKOLCJKMML clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iPAPJCOAIFG.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof IEKOLCJKMML)) { + return false; + } + IEKOLCJKMML other = (IEKOLCJKMML) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasIPAPJCOAIFG() || iPAPJCOAIFG.equals(other.iPAPJCOAIFG)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < iPAPJCOAIFG.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(iPAPJCOAIFG.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * iPAPJCOAIFG.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iPAPJCOAIFG); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public IEKOLCJKMML mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // iPAPJCOAIFG [packed=true] + input.readPackedUInt32(iPAPJCOAIFG, 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 40: { + // iPAPJCOAIFG [packed=false] + tag = input.readRepeatedUInt32(iPAPJCOAIFG, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.iPAPJCOAIFG, iPAPJCOAIFG); + } + output.endObject(); + } + + @Override + public IEKOLCJKMML mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1455275575: { + if (input.isAtField(FieldNames.iPAPJCOAIFG)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(iPAPJCOAIFG); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public IEKOLCJKMML clone() { + return new IEKOLCJKMML().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static IEKOLCJKMML parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new IEKOLCJKMML(), data).checkInitialized(); + } + + public static IEKOLCJKMML parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new IEKOLCJKMML(), input).checkInitialized(); + } + + public static IEKOLCJKMML parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new IEKOLCJKMML(), input).checkInitialized(); + } + + /** + * @return factory for creating IEKOLCJKMML messages + */ + public static MessageFactory getFactory() { + return IEKOLCJKMMLFactory.INSTANCE; + } + + private enum IEKOLCJKMMLFactory implements MessageFactory { + INSTANCE; + + @Override + public IEKOLCJKMML create() { + return IEKOLCJKMML.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName iPAPJCOAIFG = FieldName.forField("IPAPJCOAIFG"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/JDIPIHPMEKNOuterClass.java b/src/generated/main/emu/lunarcore/proto/JDIPIHPMEKNOuterClass.java new file mode 100644 index 000000000..1803624e0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/JDIPIHPMEKNOuterClass.java @@ -0,0 +1,359 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class JDIPIHPMEKNOuterClass { + /** + * Protobuf type {@code JDIPIHPMEKN} + */ + public static final class JDIPIHPMEKN extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 NGHLOHOEOID = 10; + */ + private int nGHLOHOEOID; + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 14; + */ + private final ICNMLEMMHKLOuterClass.ICNMLEMMHKL fPGMAJOGPGG = ICNMLEMMHKLOuterClass.ICNMLEMMHKL.newInstance(); + + private JDIPIHPMEKN() { + } + + /** + * @return a new empty instance of {@code JDIPIHPMEKN} + */ + public static JDIPIHPMEKN newInstance() { + return new JDIPIHPMEKN(); + } + + /** + * optional uint32 NGHLOHOEOID = 10; + * @return whether the nGHLOHOEOID field is set + */ + public boolean hasNGHLOHOEOID() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 NGHLOHOEOID = 10; + * @return this + */ + public JDIPIHPMEKN clearNGHLOHOEOID() { + bitField0_ &= ~0x00000001; + nGHLOHOEOID = 0; + return this; + } + + /** + * optional uint32 NGHLOHOEOID = 10; + * @return the nGHLOHOEOID + */ + public int getNGHLOHOEOID() { + return nGHLOHOEOID; + } + + /** + * optional uint32 NGHLOHOEOID = 10; + * @param value the nGHLOHOEOID to set + * @return this + */ + public JDIPIHPMEKN setNGHLOHOEOID(final int value) { + bitField0_ |= 0x00000001; + nGHLOHOEOID = value; + return this; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 14; + * @return whether the fPGMAJOGPGG field is set + */ + public boolean hasFPGMAJOGPGG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 14; + * @return this + */ + public JDIPIHPMEKN clearFPGMAJOGPGG() { + bitField0_ &= ~0x00000002; + fPGMAJOGPGG.clear(); + return this; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 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 #getMutableFPGMAJOGPGG()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ICNMLEMMHKLOuterClass.ICNMLEMMHKL getFPGMAJOGPGG() { + return fPGMAJOGPGG; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 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 ICNMLEMMHKLOuterClass.ICNMLEMMHKL getMutableFPGMAJOGPGG() { + bitField0_ |= 0x00000002; + return fPGMAJOGPGG; + } + + /** + * optional .ICNMLEMMHKL FPGMAJOGPGG = 14; + * @param value the fPGMAJOGPGG to set + * @return this + */ + public JDIPIHPMEKN setFPGMAJOGPGG(final ICNMLEMMHKLOuterClass.ICNMLEMMHKL value) { + bitField0_ |= 0x00000002; + fPGMAJOGPGG.copyFrom(value); + return this; + } + + @Override + public JDIPIHPMEKN copyFrom(final JDIPIHPMEKN other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + nGHLOHOEOID = other.nGHLOHOEOID; + fPGMAJOGPGG.copyFrom(other.fPGMAJOGPGG); + } + return this; + } + + @Override + public JDIPIHPMEKN mergeFrom(final JDIPIHPMEKN other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNGHLOHOEOID()) { + setNGHLOHOEOID(other.nGHLOHOEOID); + } + if (other.hasFPGMAJOGPGG()) { + getMutableFPGMAJOGPGG().mergeFrom(other.fPGMAJOGPGG); + } + return this; + } + + @Override + public JDIPIHPMEKN clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nGHLOHOEOID = 0; + fPGMAJOGPGG.clear(); + return this; + } + + @Override + public JDIPIHPMEKN clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fPGMAJOGPGG.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JDIPIHPMEKN)) { + return false; + } + JDIPIHPMEKN other = (JDIPIHPMEKN) o; + return bitField0_ == other.bitField0_ + && (!hasNGHLOHOEOID() || nGHLOHOEOID == other.nGHLOHOEOID) + && (!hasFPGMAJOGPGG() || fPGMAJOGPGG.equals(other.fPGMAJOGPGG)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(nGHLOHOEOID); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(fPGMAJOGPGG); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nGHLOHOEOID); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(fPGMAJOGPGG); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JDIPIHPMEKN mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // nGHLOHOEOID + nGHLOHOEOID = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // fPGMAJOGPGG + input.readMessage(fPGMAJOGPGG); + 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.nGHLOHOEOID, nGHLOHOEOID); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.fPGMAJOGPGG, fPGMAJOGPGG); + } + output.endObject(); + } + + @Override + public JDIPIHPMEKN mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2055759550: { + if (input.isAtField(FieldNames.nGHLOHOEOID)) { + if (!input.trySkipNullValue()) { + nGHLOHOEOID = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1550313631: { + if (input.isAtField(FieldNames.fPGMAJOGPGG)) { + if (!input.trySkipNullValue()) { + input.readMessage(fPGMAJOGPGG); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JDIPIHPMEKN clone() { + return new JDIPIHPMEKN().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JDIPIHPMEKN parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JDIPIHPMEKN(), data).checkInitialized(); + } + + public static JDIPIHPMEKN parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JDIPIHPMEKN(), input).checkInitialized(); + } + + public static JDIPIHPMEKN parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JDIPIHPMEKN(), input).checkInitialized(); + } + + /** + * @return factory for creating JDIPIHPMEKN messages + */ + public static MessageFactory getFactory() { + return JDIPIHPMEKNFactory.INSTANCE; + } + + private enum JDIPIHPMEKNFactory implements MessageFactory { + INSTANCE; + + @Override + public JDIPIHPMEKN create() { + return JDIPIHPMEKN.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName nGHLOHOEOID = FieldName.forField("NGHLOHOEOID"); + + static final FieldName fPGMAJOGPGG = FieldName.forField("FPGMAJOGPGG"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/JPFECHLHHENOuterClass.java b/src/generated/main/emu/lunarcore/proto/JPFECHLHHENOuterClass.java new file mode 100644 index 000000000..772e010d2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/JPFECHLHHENOuterClass.java @@ -0,0 +1,941 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class JPFECHLHHENOuterClass { + /** + * Protobuf type {@code JPFECHLHHEN} + */ + public static final class JPFECHLHHEN extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 chess_rogue_main_story_id = 7; + */ + private int chessRogueMainStoryId; + + /** + * optional uint32 chess_rogue_sub_story_id = 11; + */ + private int chessRogueSubStoryId; + + /** + * optional uint32 OIIEELPECGL = 12; + */ + private int oIIEELPECGL; + + /** + * optional bool NJJKIOHDOMP = 8; + */ + private boolean nJJKIOHDOMP; + + /** + * optional bool ALNMBFMEIAC = 15; + */ + private boolean aLNMBFMEIAC; + + /** + * repeated uint32 NDJJNLKCNHM = 2; + */ + private final RepeatedInt nDJJNLKCNHM = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 PCOMKOLMBBG = 3; + */ + private final RepeatedInt pCOMKOLMBBG = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 NIMEABELKEH = 6; + */ + private final RepeatedInt nIMEABELKEH = RepeatedInt.newEmptyInstance(); + + private JPFECHLHHEN() { + } + + /** + * @return a new empty instance of {@code JPFECHLHHEN} + */ + public static JPFECHLHHEN newInstance() { + return new JPFECHLHHEN(); + } + + /** + * optional uint32 chess_rogue_main_story_id = 7; + * @return whether the chessRogueMainStoryId field is set + */ + public boolean hasChessRogueMainStoryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 chess_rogue_main_story_id = 7; + * @return this + */ + public JPFECHLHHEN clearChessRogueMainStoryId() { + bitField0_ &= ~0x00000001; + chessRogueMainStoryId = 0; + return this; + } + + /** + * optional uint32 chess_rogue_main_story_id = 7; + * @return the chessRogueMainStoryId + */ + public int getChessRogueMainStoryId() { + return chessRogueMainStoryId; + } + + /** + * optional uint32 chess_rogue_main_story_id = 7; + * @param value the chessRogueMainStoryId to set + * @return this + */ + public JPFECHLHHEN setChessRogueMainStoryId(final int value) { + bitField0_ |= 0x00000001; + chessRogueMainStoryId = value; + return this; + } + + /** + * optional uint32 chess_rogue_sub_story_id = 11; + * @return whether the chessRogueSubStoryId field is set + */ + public boolean hasChessRogueSubStoryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 chess_rogue_sub_story_id = 11; + * @return this + */ + public JPFECHLHHEN clearChessRogueSubStoryId() { + bitField0_ &= ~0x00000002; + chessRogueSubStoryId = 0; + return this; + } + + /** + * optional uint32 chess_rogue_sub_story_id = 11; + * @return the chessRogueSubStoryId + */ + public int getChessRogueSubStoryId() { + return chessRogueSubStoryId; + } + + /** + * optional uint32 chess_rogue_sub_story_id = 11; + * @param value the chessRogueSubStoryId to set + * @return this + */ + public JPFECHLHHEN setChessRogueSubStoryId(final int value) { + bitField0_ |= 0x00000002; + chessRogueSubStoryId = value; + return this; + } + + /** + * optional uint32 OIIEELPECGL = 12; + * @return whether the oIIEELPECGL field is set + */ + public boolean hasOIIEELPECGL() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 OIIEELPECGL = 12; + * @return this + */ + public JPFECHLHHEN clearOIIEELPECGL() { + bitField0_ &= ~0x00000004; + oIIEELPECGL = 0; + return this; + } + + /** + * optional uint32 OIIEELPECGL = 12; + * @return the oIIEELPECGL + */ + public int getOIIEELPECGL() { + return oIIEELPECGL; + } + + /** + * optional uint32 OIIEELPECGL = 12; + * @param value the oIIEELPECGL to set + * @return this + */ + public JPFECHLHHEN setOIIEELPECGL(final int value) { + bitField0_ |= 0x00000004; + oIIEELPECGL = value; + return this; + } + + /** + * optional bool NJJKIOHDOMP = 8; + * @return whether the nJJKIOHDOMP field is set + */ + public boolean hasNJJKIOHDOMP() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool NJJKIOHDOMP = 8; + * @return this + */ + public JPFECHLHHEN clearNJJKIOHDOMP() { + bitField0_ &= ~0x00000008; + nJJKIOHDOMP = false; + return this; + } + + /** + * optional bool NJJKIOHDOMP = 8; + * @return the nJJKIOHDOMP + */ + public boolean getNJJKIOHDOMP() { + return nJJKIOHDOMP; + } + + /** + * optional bool NJJKIOHDOMP = 8; + * @param value the nJJKIOHDOMP to set + * @return this + */ + public JPFECHLHHEN setNJJKIOHDOMP(final boolean value) { + bitField0_ |= 0x00000008; + nJJKIOHDOMP = value; + return this; + } + + /** + * optional bool ALNMBFMEIAC = 15; + * @return whether the aLNMBFMEIAC field is set + */ + public boolean hasALNMBFMEIAC() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool ALNMBFMEIAC = 15; + * @return this + */ + public JPFECHLHHEN clearALNMBFMEIAC() { + bitField0_ &= ~0x00000010; + aLNMBFMEIAC = false; + return this; + } + + /** + * optional bool ALNMBFMEIAC = 15; + * @return the aLNMBFMEIAC + */ + public boolean getALNMBFMEIAC() { + return aLNMBFMEIAC; + } + + /** + * optional bool ALNMBFMEIAC = 15; + * @param value the aLNMBFMEIAC to set + * @return this + */ + public JPFECHLHHEN setALNMBFMEIAC(final boolean value) { + bitField0_ |= 0x00000010; + aLNMBFMEIAC = value; + return this; + } + + /** + * repeated uint32 NDJJNLKCNHM = 2; + * @return whether the nDJJNLKCNHM field is set + */ + public boolean hasNDJJNLKCNHM() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 NDJJNLKCNHM = 2; + * @return this + */ + public JPFECHLHHEN clearNDJJNLKCNHM() { + bitField0_ &= ~0x00000020; + nDJJNLKCNHM.clear(); + return this; + } + + /** + * repeated uint32 NDJJNLKCNHM = 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 #getMutableNDJJNLKCNHM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNDJJNLKCNHM() { + return nDJJNLKCNHM; + } + + /** + * repeated uint32 NDJJNLKCNHM = 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 getMutableNDJJNLKCNHM() { + bitField0_ |= 0x00000020; + return nDJJNLKCNHM; + } + + /** + * repeated uint32 NDJJNLKCNHM = 2; + * @param value the nDJJNLKCNHM to add + * @return this + */ + public JPFECHLHHEN addNDJJNLKCNHM(final int value) { + bitField0_ |= 0x00000020; + nDJJNLKCNHM.add(value); + return this; + } + + /** + * repeated uint32 NDJJNLKCNHM = 2; + * @param values the nDJJNLKCNHM to add + * @return this + */ + public JPFECHLHHEN addAllNDJJNLKCNHM(final int... values) { + bitField0_ |= 0x00000020; + nDJJNLKCNHM.addAll(values); + return this; + } + + /** + * repeated uint32 PCOMKOLMBBG = 3; + * @return whether the pCOMKOLMBBG field is set + */ + public boolean hasPCOMKOLMBBG() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 PCOMKOLMBBG = 3; + * @return this + */ + public JPFECHLHHEN clearPCOMKOLMBBG() { + bitField0_ &= ~0x00000040; + pCOMKOLMBBG.clear(); + return this; + } + + /** + * repeated uint32 PCOMKOLMBBG = 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 #getMutablePCOMKOLMBBG()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPCOMKOLMBBG() { + return pCOMKOLMBBG; + } + + /** + * repeated uint32 PCOMKOLMBBG = 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 getMutablePCOMKOLMBBG() { + bitField0_ |= 0x00000040; + return pCOMKOLMBBG; + } + + /** + * repeated uint32 PCOMKOLMBBG = 3; + * @param value the pCOMKOLMBBG to add + * @return this + */ + public JPFECHLHHEN addPCOMKOLMBBG(final int value) { + bitField0_ |= 0x00000040; + pCOMKOLMBBG.add(value); + return this; + } + + /** + * repeated uint32 PCOMKOLMBBG = 3; + * @param values the pCOMKOLMBBG to add + * @return this + */ + public JPFECHLHHEN addAllPCOMKOLMBBG(final int... values) { + bitField0_ |= 0x00000040; + pCOMKOLMBBG.addAll(values); + return this; + } + + /** + * repeated uint32 NIMEABELKEH = 6; + * @return whether the nIMEABELKEH field is set + */ + public boolean hasNIMEABELKEH() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 NIMEABELKEH = 6; + * @return this + */ + public JPFECHLHHEN clearNIMEABELKEH() { + bitField0_ &= ~0x00000080; + nIMEABELKEH.clear(); + return this; + } + + /** + * repeated uint32 NIMEABELKEH = 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 #getMutableNIMEABELKEH()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNIMEABELKEH() { + return nIMEABELKEH; + } + + /** + * repeated uint32 NIMEABELKEH = 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 RepeatedInt getMutableNIMEABELKEH() { + bitField0_ |= 0x00000080; + return nIMEABELKEH; + } + + /** + * repeated uint32 NIMEABELKEH = 6; + * @param value the nIMEABELKEH to add + * @return this + */ + public JPFECHLHHEN addNIMEABELKEH(final int value) { + bitField0_ |= 0x00000080; + nIMEABELKEH.add(value); + return this; + } + + /** + * repeated uint32 NIMEABELKEH = 6; + * @param values the nIMEABELKEH to add + * @return this + */ + public JPFECHLHHEN addAllNIMEABELKEH(final int... values) { + bitField0_ |= 0x00000080; + nIMEABELKEH.addAll(values); + return this; + } + + @Override + public JPFECHLHHEN copyFrom(final JPFECHLHHEN other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + chessRogueMainStoryId = other.chessRogueMainStoryId; + chessRogueSubStoryId = other.chessRogueSubStoryId; + oIIEELPECGL = other.oIIEELPECGL; + nJJKIOHDOMP = other.nJJKIOHDOMP; + aLNMBFMEIAC = other.aLNMBFMEIAC; + nDJJNLKCNHM.copyFrom(other.nDJJNLKCNHM); + pCOMKOLMBBG.copyFrom(other.pCOMKOLMBBG); + nIMEABELKEH.copyFrom(other.nIMEABELKEH); + } + return this; + } + + @Override + public JPFECHLHHEN mergeFrom(final JPFECHLHHEN other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChessRogueMainStoryId()) { + setChessRogueMainStoryId(other.chessRogueMainStoryId); + } + if (other.hasChessRogueSubStoryId()) { + setChessRogueSubStoryId(other.chessRogueSubStoryId); + } + if (other.hasOIIEELPECGL()) { + setOIIEELPECGL(other.oIIEELPECGL); + } + if (other.hasNJJKIOHDOMP()) { + setNJJKIOHDOMP(other.nJJKIOHDOMP); + } + if (other.hasALNMBFMEIAC()) { + setALNMBFMEIAC(other.aLNMBFMEIAC); + } + if (other.hasNDJJNLKCNHM()) { + getMutableNDJJNLKCNHM().addAll(other.nDJJNLKCNHM); + } + if (other.hasPCOMKOLMBBG()) { + getMutablePCOMKOLMBBG().addAll(other.pCOMKOLMBBG); + } + if (other.hasNIMEABELKEH()) { + getMutableNIMEABELKEH().addAll(other.nIMEABELKEH); + } + return this; + } + + @Override + public JPFECHLHHEN clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chessRogueMainStoryId = 0; + chessRogueSubStoryId = 0; + oIIEELPECGL = 0; + nJJKIOHDOMP = false; + aLNMBFMEIAC = false; + nDJJNLKCNHM.clear(); + pCOMKOLMBBG.clear(); + nIMEABELKEH.clear(); + return this; + } + + @Override + public JPFECHLHHEN clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nDJJNLKCNHM.clear(); + pCOMKOLMBBG.clear(); + nIMEABELKEH.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JPFECHLHHEN)) { + return false; + } + JPFECHLHHEN other = (JPFECHLHHEN) o; + return bitField0_ == other.bitField0_ + && (!hasChessRogueMainStoryId() || chessRogueMainStoryId == other.chessRogueMainStoryId) + && (!hasChessRogueSubStoryId() || chessRogueSubStoryId == other.chessRogueSubStoryId) + && (!hasOIIEELPECGL() || oIIEELPECGL == other.oIIEELPECGL) + && (!hasNJJKIOHDOMP() || nJJKIOHDOMP == other.nJJKIOHDOMP) + && (!hasALNMBFMEIAC() || aLNMBFMEIAC == other.aLNMBFMEIAC) + && (!hasNDJJNLKCNHM() || nDJJNLKCNHM.equals(other.nDJJNLKCNHM)) + && (!hasPCOMKOLMBBG() || pCOMKOLMBBG.equals(other.pCOMKOLMBBG)) + && (!hasNIMEABELKEH() || nIMEABELKEH.equals(other.nIMEABELKEH)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(chessRogueMainStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(chessRogueSubStoryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(oIIEELPECGL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(nJJKIOHDOMP); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(aLNMBFMEIAC); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < nDJJNLKCNHM.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(nDJJNLKCNHM.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < pCOMKOLMBBG.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(pCOMKOLMBBG.array()[i]); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < nIMEABELKEH.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(nIMEABELKEH.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chessRogueMainStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chessRogueSubStoryId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oIIEELPECGL); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * nDJJNLKCNHM.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nDJJNLKCNHM); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * pCOMKOLMBBG.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pCOMKOLMBBG); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * nIMEABELKEH.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nIMEABELKEH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JPFECHLHHEN mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // chessRogueMainStoryId + chessRogueMainStoryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // chessRogueSubStoryId + chessRogueSubStoryId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // oIIEELPECGL + oIIEELPECGL = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // nJJKIOHDOMP + nJJKIOHDOMP = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // aLNMBFMEIAC + aLNMBFMEIAC = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // nDJJNLKCNHM [packed=true] + input.readPackedUInt32(nDJJNLKCNHM, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // pCOMKOLMBBG [packed=true] + input.readPackedUInt32(pCOMKOLMBBG, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // nIMEABELKEH [packed=true] + input.readPackedUInt32(nIMEABELKEH, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // nDJJNLKCNHM [packed=false] + tag = input.readRepeatedUInt32(nDJJNLKCNHM, tag); + bitField0_ |= 0x00000020; + break; + } + case 24: { + // pCOMKOLMBBG [packed=false] + tag = input.readRepeatedUInt32(pCOMKOLMBBG, tag); + bitField0_ |= 0x00000040; + break; + } + case 48: { + // nIMEABELKEH [packed=false] + tag = input.readRepeatedUInt32(nIMEABELKEH, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.chessRogueMainStoryId, chessRogueMainStoryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.chessRogueSubStoryId, chessRogueSubStoryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.oIIEELPECGL, oIIEELPECGL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.nJJKIOHDOMP, nJJKIOHDOMP); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.aLNMBFMEIAC, aLNMBFMEIAC); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.nDJJNLKCNHM, nDJJNLKCNHM); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.pCOMKOLMBBG, pCOMKOLMBBG); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.nIMEABELKEH, nIMEABELKEH); + } + output.endObject(); + } + + @Override + public JPFECHLHHEN mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2023751203: + case 1610113799: { + if (input.isAtField(FieldNames.chessRogueMainStoryId)) { + if (!input.trySkipNullValue()) { + chessRogueMainStoryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -570872598: + case 437588392: { + if (input.isAtField(FieldNames.chessRogueSubStoryId)) { + if (!input.trySkipNullValue()) { + chessRogueSubStoryId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1426117418: { + if (input.isAtField(FieldNames.oIIEELPECGL)) { + if (!input.trySkipNullValue()) { + oIIEELPECGL = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -432677965: { + if (input.isAtField(FieldNames.nJJKIOHDOMP)) { + if (!input.trySkipNullValue()) { + nJJKIOHDOMP = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -559983259: { + if (input.isAtField(FieldNames.aLNMBFMEIAC)) { + if (!input.trySkipNullValue()) { + aLNMBFMEIAC = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -937003961: { + if (input.isAtField(FieldNames.nDJJNLKCNHM)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(nDJJNLKCNHM); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2128713775: { + if (input.isAtField(FieldNames.pCOMKOLMBBG)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pCOMKOLMBBG); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2115298125: { + if (input.isAtField(FieldNames.nIMEABELKEH)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(nIMEABELKEH); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JPFECHLHHEN clone() { + return new JPFECHLHHEN().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JPFECHLHHEN parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JPFECHLHHEN(), data).checkInitialized(); + } + + public static JPFECHLHHEN parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JPFECHLHHEN(), input).checkInitialized(); + } + + public static JPFECHLHHEN parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JPFECHLHHEN(), input).checkInitialized(); + } + + /** + * @return factory for creating JPFECHLHHEN messages + */ + public static MessageFactory getFactory() { + return JPFECHLHHENFactory.INSTANCE; + } + + private enum JPFECHLHHENFactory implements MessageFactory { + INSTANCE; + + @Override + public JPFECHLHHEN create() { + return JPFECHLHHEN.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName chessRogueMainStoryId = FieldName.forField("chessRogueMainStoryId", "chess_rogue_main_story_id"); + + static final FieldName chessRogueSubStoryId = FieldName.forField("chessRogueSubStoryId", "chess_rogue_sub_story_id"); + + static final FieldName oIIEELPECGL = FieldName.forField("OIIEELPECGL"); + + static final FieldName nJJKIOHDOMP = FieldName.forField("NJJKIOHDOMP"); + + static final FieldName aLNMBFMEIAC = FieldName.forField("ALNMBFMEIAC"); + + static final FieldName nDJJNLKCNHM = FieldName.forField("NDJJNLKCNHM"); + + static final FieldName pCOMKOLMBBG = FieldName.forField("PCOMKOLMBBG"); + + static final FieldName nIMEABELKEH = FieldName.forField("NIMEABELKEH"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/KeywordUnlockValueOuterClass.java b/src/generated/main/emu/lunarcore/proto/KeywordUnlockValueOuterClass.java new file mode 100644 index 000000000..40d439bce --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/KeywordUnlockValueOuterClass.java @@ -0,0 +1,619 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class KeywordUnlockValueOuterClass { + /** + * Protobuf type {@code KeywordUnlockValue} + */ + public static final class KeywordUnlockValue extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 15; + */ + private final RepeatedMessage keywordUnlockMap = RepeatedMessage.newEmptyInstance(KeywordUnlockMapEntry.getFactory()); + + private KeywordUnlockValue() { + } + + /** + * @return a new empty instance of {@code KeywordUnlockValue} + */ + public static KeywordUnlockValue newInstance() { + return new KeywordUnlockValue(); + } + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 15; + * @return whether the keywordUnlockMap field is set + */ + public boolean hasKeywordUnlockMap() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 15; + * @return this + */ + public KeywordUnlockValue clearKeywordUnlockMap() { + bitField0_ &= ~0x00000001; + keywordUnlockMap.clear(); + return this; + } + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 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 #getMutableKeywordUnlockMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getKeywordUnlockMap() { + return keywordUnlockMap; + } + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 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 getMutableKeywordUnlockMap() { + bitField0_ |= 0x00000001; + return keywordUnlockMap; + } + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 15; + * @param value the keywordUnlockMap to add + * @return this + */ + public KeywordUnlockValue addKeywordUnlockMap(final KeywordUnlockMapEntry value) { + bitField0_ |= 0x00000001; + keywordUnlockMap.add(value); + return this; + } + + /** + * repeated .KeywordUnlockValue.KeywordUnlockMapEntry keyword_unlock_map = 15; + * @param values the keywordUnlockMap to add + * @return this + */ + public KeywordUnlockValue addAllKeywordUnlockMap(final KeywordUnlockMapEntry... values) { + bitField0_ |= 0x00000001; + keywordUnlockMap.addAll(values); + return this; + } + + @Override + public KeywordUnlockValue copyFrom(final KeywordUnlockValue other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + keywordUnlockMap.copyFrom(other.keywordUnlockMap); + } + return this; + } + + @Override + public KeywordUnlockValue mergeFrom(final KeywordUnlockValue other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKeywordUnlockMap()) { + getMutableKeywordUnlockMap().addAll(other.keywordUnlockMap); + } + return this; + } + + @Override + public KeywordUnlockValue clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + keywordUnlockMap.clear(); + return this; + } + + @Override + public KeywordUnlockValue clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + keywordUnlockMap.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof KeywordUnlockValue)) { + return false; + } + KeywordUnlockValue other = (KeywordUnlockValue) o; + return bitField0_ == other.bitField0_ + && (!hasKeywordUnlockMap() || keywordUnlockMap.equals(other.keywordUnlockMap)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < keywordUnlockMap.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(keywordUnlockMap.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * keywordUnlockMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(keywordUnlockMap); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public KeywordUnlockValue mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 122: { + // keywordUnlockMap + tag = input.readRepeatedMessage(keywordUnlockMap, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.keywordUnlockMap, keywordUnlockMap); + } + output.endObject(); + } + + @Override + public KeywordUnlockValue mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1585278863: + case -1820324361: { + if (input.isAtField(FieldNames.keywordUnlockMap)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(keywordUnlockMap); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public KeywordUnlockValue clone() { + return new KeywordUnlockValue().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static KeywordUnlockValue parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new KeywordUnlockValue(), data).checkInitialized(); + } + + public static KeywordUnlockValue parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new KeywordUnlockValue(), input).checkInitialized(); + } + + public static KeywordUnlockValue parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new KeywordUnlockValue(), input).checkInitialized(); + } + + /** + * @return factory for creating KeywordUnlockValue messages + */ + public static MessageFactory getFactory() { + return KeywordUnlockValueFactory.INSTANCE; + } + + /** + * Protobuf type {@code KeywordUnlockMapEntry} + */ + public static final class KeywordUnlockMapEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional bool value = 2; + */ + private boolean value_; + + private KeywordUnlockMapEntry() { + } + + /** + * @return a new empty instance of {@code KeywordUnlockMapEntry} + */ + public static KeywordUnlockMapEntry newInstance() { + return new KeywordUnlockMapEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public KeywordUnlockMapEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public KeywordUnlockMapEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional bool value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool value = 2; + * @return this + */ + public KeywordUnlockMapEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = false; + return this; + } + + /** + * optional bool value = 2; + * @return the value_ + */ + public boolean getValue() { + return value_; + } + + /** + * optional bool value = 2; + * @param value the value_ to set + * @return this + */ + public KeywordUnlockMapEntry setValue(final boolean value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public KeywordUnlockMapEntry copyFrom(final KeywordUnlockMapEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public KeywordUnlockMapEntry mergeFrom(final KeywordUnlockMapEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public KeywordUnlockMapEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = false; + return this; + } + + @Override + public KeywordUnlockMapEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof KeywordUnlockMapEntry)) { + return false; + } + KeywordUnlockMapEntry other = (KeywordUnlockMapEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public KeywordUnlockMapEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readBool(); + 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.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public KeywordUnlockMapEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public KeywordUnlockMapEntry clone() { + return new KeywordUnlockMapEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static KeywordUnlockMapEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new KeywordUnlockMapEntry(), data).checkInitialized(); + } + + public static KeywordUnlockMapEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new KeywordUnlockMapEntry(), input).checkInitialized(); + } + + public static KeywordUnlockMapEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new KeywordUnlockMapEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating KeywordUnlockMapEntry messages + */ + public static MessageFactory getFactory() { + return KeywordUnlockMapEntryFactory.INSTANCE; + } + + private enum KeywordUnlockMapEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public KeywordUnlockMapEntry create() { + return KeywordUnlockMapEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + + private enum KeywordUnlockValueFactory implements MessageFactory { + INSTANCE; + + @Override + public KeywordUnlockValue create() { + return KeywordUnlockValue.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName keywordUnlockMap = FieldName.forField("keywordUnlockMap", "keyword_unlock_map"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LJFDHIAPLAIOuterClass.java b/src/generated/main/emu/lunarcore/proto/LJFDHIAPLAIOuterClass.java new file mode 100644 index 000000000..713e0860f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LJFDHIAPLAIOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class LJFDHIAPLAIOuterClass { + /** + * Protobuf type {@code LJFDHIAPLAI} + */ + public static final class LJFDHIAPLAI extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 3; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 GEHJLOHEGGB = 9; + */ + private final RepeatedInt gEHJLOHEGGB = RepeatedInt.newEmptyInstance(); + + private LJFDHIAPLAI() { + } + + /** + * @return a new empty instance of {@code LJFDHIAPLAI} + */ + public static LJFDHIAPLAI newInstance() { + return new LJFDHIAPLAI(); + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return this + */ + public LJFDHIAPLAI clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @param value the dCECFOKFIHH to set + * @return this + */ + public LJFDHIAPLAI setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 GEHJLOHEGGB = 9; + * @return whether the gEHJLOHEGGB field is set + */ + public boolean hasGEHJLOHEGGB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 GEHJLOHEGGB = 9; + * @return this + */ + public LJFDHIAPLAI clearGEHJLOHEGGB() { + bitField0_ &= ~0x00000002; + gEHJLOHEGGB.clear(); + return this; + } + + /** + * repeated uint32 GEHJLOHEGGB = 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 #getMutableGEHJLOHEGGB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getGEHJLOHEGGB() { + return gEHJLOHEGGB; + } + + /** + * repeated uint32 GEHJLOHEGGB = 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 RepeatedInt getMutableGEHJLOHEGGB() { + bitField0_ |= 0x00000002; + return gEHJLOHEGGB; + } + + /** + * repeated uint32 GEHJLOHEGGB = 9; + * @param value the gEHJLOHEGGB to add + * @return this + */ + public LJFDHIAPLAI addGEHJLOHEGGB(final int value) { + bitField0_ |= 0x00000002; + gEHJLOHEGGB.add(value); + return this; + } + + /** + * repeated uint32 GEHJLOHEGGB = 9; + * @param values the gEHJLOHEGGB to add + * @return this + */ + public LJFDHIAPLAI addAllGEHJLOHEGGB(final int... values) { + bitField0_ |= 0x00000002; + gEHJLOHEGGB.addAll(values); + return this; + } + + @Override + public LJFDHIAPLAI copyFrom(final LJFDHIAPLAI other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + gEHJLOHEGGB.copyFrom(other.gEHJLOHEGGB); + } + return this; + } + + @Override + public LJFDHIAPLAI mergeFrom(final LJFDHIAPLAI other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasGEHJLOHEGGB()) { + getMutableGEHJLOHEGGB().addAll(other.gEHJLOHEGGB); + } + return this; + } + + @Override + public LJFDHIAPLAI clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + gEHJLOHEGGB.clear(); + return this; + } + + @Override + public LJFDHIAPLAI clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gEHJLOHEGGB.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LJFDHIAPLAI)) { + return false; + } + LJFDHIAPLAI other = (LJFDHIAPLAI) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasGEHJLOHEGGB() || gEHJLOHEGGB.equals(other.gEHJLOHEGGB)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < gEHJLOHEGGB.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(gEHJLOHEGGB.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * gEHJLOHEGGB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(gEHJLOHEGGB); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LJFDHIAPLAI mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // gEHJLOHEGGB [packed=true] + input.readPackedUInt32(gEHJLOHEGGB, 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 72: { + // gEHJLOHEGGB [packed=false] + tag = input.readRepeatedUInt32(gEHJLOHEGGB, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.gEHJLOHEGGB, gEHJLOHEGGB); + } + output.endObject(); + } + + @Override + public LJFDHIAPLAI mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 483311426: { + if (input.isAtField(FieldNames.gEHJLOHEGGB)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(gEHJLOHEGGB); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LJFDHIAPLAI clone() { + return new LJFDHIAPLAI().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LJFDHIAPLAI parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LJFDHIAPLAI(), data).checkInitialized(); + } + + public static LJFDHIAPLAI parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LJFDHIAPLAI(), input).checkInitialized(); + } + + public static LJFDHIAPLAI parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LJFDHIAPLAI(), input).checkInitialized(); + } + + /** + * @return factory for creating LJFDHIAPLAI messages + */ + public static MessageFactory getFactory() { + return LJFDHIAPLAIFactory.INSTANCE; + } + + private enum LJFDHIAPLAIFactory implements MessageFactory { + INSTANCE; + + @Override + public LJFDHIAPLAI create() { + return LJFDHIAPLAI.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName gEHJLOHEGGB = FieldName.forField("GEHJLOHEGGB"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MDALALGLJJCOuterClass.java b/src/generated/main/emu/lunarcore/proto/MDALALGLJJCOuterClass.java new file mode 100644 index 000000000..7b61ece42 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MDALALGLJJCOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class MDALALGLJJCOuterClass { + /** + * Protobuf type {@code MDALALGLJJC} + */ + public static final class MDALALGLJJC extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 1; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 NPAEJCNNIEN = 7; + */ + private final RepeatedInt nPAEJCNNIEN = RepeatedInt.newEmptyInstance(); + + private MDALALGLJJC() { + } + + /** + * @return a new empty instance of {@code MDALALGLJJC} + */ + public static MDALALGLJJC newInstance() { + return new MDALALGLJJC(); + } + + /** + * optional uint32 DCECFOKFIHH = 1; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 1; + * @return this + */ + public MDALALGLJJC clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 1; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 1; + * @param value the dCECFOKFIHH to set + * @return this + */ + public MDALALGLJJC setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 NPAEJCNNIEN = 7; + * @return whether the nPAEJCNNIEN field is set + */ + public boolean hasNPAEJCNNIEN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 NPAEJCNNIEN = 7; + * @return this + */ + public MDALALGLJJC clearNPAEJCNNIEN() { + bitField0_ &= ~0x00000002; + nPAEJCNNIEN.clear(); + return this; + } + + /** + * repeated uint32 NPAEJCNNIEN = 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 #getMutableNPAEJCNNIEN()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNPAEJCNNIEN() { + return nPAEJCNNIEN; + } + + /** + * repeated uint32 NPAEJCNNIEN = 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 getMutableNPAEJCNNIEN() { + bitField0_ |= 0x00000002; + return nPAEJCNNIEN; + } + + /** + * repeated uint32 NPAEJCNNIEN = 7; + * @param value the nPAEJCNNIEN to add + * @return this + */ + public MDALALGLJJC addNPAEJCNNIEN(final int value) { + bitField0_ |= 0x00000002; + nPAEJCNNIEN.add(value); + return this; + } + + /** + * repeated uint32 NPAEJCNNIEN = 7; + * @param values the nPAEJCNNIEN to add + * @return this + */ + public MDALALGLJJC addAllNPAEJCNNIEN(final int... values) { + bitField0_ |= 0x00000002; + nPAEJCNNIEN.addAll(values); + return this; + } + + @Override + public MDALALGLJJC copyFrom(final MDALALGLJJC other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + nPAEJCNNIEN.copyFrom(other.nPAEJCNNIEN); + } + return this; + } + + @Override + public MDALALGLJJC mergeFrom(final MDALALGLJJC other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasNPAEJCNNIEN()) { + getMutableNPAEJCNNIEN().addAll(other.nPAEJCNNIEN); + } + return this; + } + + @Override + public MDALALGLJJC clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + nPAEJCNNIEN.clear(); + return this; + } + + @Override + public MDALALGLJJC clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nPAEJCNNIEN.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MDALALGLJJC)) { + return false; + } + MDALALGLJJC other = (MDALALGLJJC) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasNPAEJCNNIEN() || nPAEJCNNIEN.equals(other.nPAEJCNNIEN)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < nPAEJCNNIEN.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(nPAEJCNNIEN.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * nPAEJCNNIEN.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nPAEJCNNIEN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MDALALGLJJC mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // nPAEJCNNIEN [packed=true] + input.readPackedUInt32(nPAEJCNNIEN, 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 56: { + // nPAEJCNNIEN [packed=false] + tag = input.readRepeatedUInt32(nPAEJCNNIEN, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.nPAEJCNNIEN, nPAEJCNNIEN); + } + output.endObject(); + } + + @Override + public MDALALGLJJC mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 453288755: { + if (input.isAtField(FieldNames.nPAEJCNNIEN)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(nPAEJCNNIEN); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MDALALGLJJC clone() { + return new MDALALGLJJC().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MDALALGLJJC parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MDALALGLJJC(), data).checkInitialized(); + } + + public static MDALALGLJJC parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MDALALGLJJC(), input).checkInitialized(); + } + + public static MDALALGLJJC parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MDALALGLJJC(), input).checkInitialized(); + } + + /** + * @return factory for creating MDALALGLJJC messages + */ + public static MessageFactory getFactory() { + return MDALALGLJJCFactory.INSTANCE; + } + + private enum MDALALGLJJCFactory implements MessageFactory { + INSTANCE; + + @Override + public MDALALGLJJC create() { + return MDALALGLJJC.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName nPAEJCNNIEN = FieldName.forField("NPAEJCNNIEN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MLPPNJOPPMLOuterClass.java b/src/generated/main/emu/lunarcore/proto/MLPPNJOPPMLOuterClass.java new file mode 100644 index 000000000..2696b345b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MLPPNJOPPMLOuterClass.java @@ -0,0 +1,181 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class MLPPNJOPPMLOuterClass { + /** + *
+   * repeated MPJPPKICHIG item_list = 9;
+   * 
+ * + * Protobuf type {@code MLPPNJOPPML} + */ + public static final class MLPPNJOPPML extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private MLPPNJOPPML() { + } + + /** + *
+     * repeated MPJPPKICHIG item_list = 9;
+     * 
+ * + * @return a new empty instance of {@code MLPPNJOPPML} + */ + public static MLPPNJOPPML newInstance() { + return new MLPPNJOPPML(); + } + + @Override + public MLPPNJOPPML copyFrom(final MLPPNJOPPML other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public MLPPNJOPPML mergeFrom(final MLPPNJOPPML other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public MLPPNJOPPML clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public MLPPNJOPPML clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MLPPNJOPPML)) { + return false; + } + MLPPNJOPPML other = (MLPPNJOPPML) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MLPPNJOPPML mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public MLPPNJOPPML mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MLPPNJOPPML clone() { + return new MLPPNJOPPML().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MLPPNJOPPML parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MLPPNJOPPML(), data).checkInitialized(); + } + + public static MLPPNJOPPML parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MLPPNJOPPML(), input).checkInitialized(); + } + + public static MLPPNJOPPML parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MLPPNJOPPML(), input).checkInitialized(); + } + + /** + * @return factory for creating MLPPNJOPPML messages + */ + public static MessageFactory getFactory() { + return MLPPNJOPPMLFactory.INSTANCE; + } + + private enum MLPPNJOPPMLFactory implements MessageFactory { + INSTANCE; + + @Override + public MLPPNJOPPML create() { + return MLPPNJOPPML.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MOICCEIFBBAOuterClass.java b/src/generated/main/emu/lunarcore/proto/MOICCEIFBBAOuterClass.java new file mode 100644 index 000000000..533701b95 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MOICCEIFBBAOuterClass.java @@ -0,0 +1,539 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class MOICCEIFBBAOuterClass { + /** + * Protobuf type {@code MOICCEIFBBA} + */ + public static final class MOICCEIFBBA extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 KJALGDHJNLN = 1; + */ + private int kJALGDHJNLN; + + /** + * optional uint32 INHOFMDEECK = 4; + */ + private int iNHOFMDEECK; + + /** + * optional bool ALNMBFMEIAC = 14; + */ + private boolean aLNMBFMEIAC; + + /** + * repeated uint32 GJHNPLHBGAE = 6; + */ + private final RepeatedInt gJHNPLHBGAE = RepeatedInt.newEmptyInstance(); + + private MOICCEIFBBA() { + } + + /** + * @return a new empty instance of {@code MOICCEIFBBA} + */ + public static MOICCEIFBBA newInstance() { + return new MOICCEIFBBA(); + } + + /** + * optional uint32 KJALGDHJNLN = 1; + * @return whether the kJALGDHJNLN field is set + */ + public boolean hasKJALGDHJNLN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 KJALGDHJNLN = 1; + * @return this + */ + public MOICCEIFBBA clearKJALGDHJNLN() { + bitField0_ &= ~0x00000001; + kJALGDHJNLN = 0; + return this; + } + + /** + * optional uint32 KJALGDHJNLN = 1; + * @return the kJALGDHJNLN + */ + public int getKJALGDHJNLN() { + return kJALGDHJNLN; + } + + /** + * optional uint32 KJALGDHJNLN = 1; + * @param value the kJALGDHJNLN to set + * @return this + */ + public MOICCEIFBBA setKJALGDHJNLN(final int value) { + bitField0_ |= 0x00000001; + kJALGDHJNLN = value; + return this; + } + + /** + * optional uint32 INHOFMDEECK = 4; + * @return whether the iNHOFMDEECK field is set + */ + public boolean hasINHOFMDEECK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 INHOFMDEECK = 4; + * @return this + */ + public MOICCEIFBBA clearINHOFMDEECK() { + bitField0_ &= ~0x00000002; + iNHOFMDEECK = 0; + return this; + } + + /** + * optional uint32 INHOFMDEECK = 4; + * @return the iNHOFMDEECK + */ + public int getINHOFMDEECK() { + return iNHOFMDEECK; + } + + /** + * optional uint32 INHOFMDEECK = 4; + * @param value the iNHOFMDEECK to set + * @return this + */ + public MOICCEIFBBA setINHOFMDEECK(final int value) { + bitField0_ |= 0x00000002; + iNHOFMDEECK = value; + return this; + } + + /** + * optional bool ALNMBFMEIAC = 14; + * @return whether the aLNMBFMEIAC field is set + */ + public boolean hasALNMBFMEIAC() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool ALNMBFMEIAC = 14; + * @return this + */ + public MOICCEIFBBA clearALNMBFMEIAC() { + bitField0_ &= ~0x00000004; + aLNMBFMEIAC = false; + return this; + } + + /** + * optional bool ALNMBFMEIAC = 14; + * @return the aLNMBFMEIAC + */ + public boolean getALNMBFMEIAC() { + return aLNMBFMEIAC; + } + + /** + * optional bool ALNMBFMEIAC = 14; + * @param value the aLNMBFMEIAC to set + * @return this + */ + public MOICCEIFBBA setALNMBFMEIAC(final boolean value) { + bitField0_ |= 0x00000004; + aLNMBFMEIAC = value; + return this; + } + + /** + * repeated uint32 GJHNPLHBGAE = 6; + * @return whether the gJHNPLHBGAE field is set + */ + public boolean hasGJHNPLHBGAE() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 GJHNPLHBGAE = 6; + * @return this + */ + public MOICCEIFBBA clearGJHNPLHBGAE() { + bitField0_ &= ~0x00000008; + gJHNPLHBGAE.clear(); + return this; + } + + /** + * repeated uint32 GJHNPLHBGAE = 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 #getMutableGJHNPLHBGAE()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getGJHNPLHBGAE() { + return gJHNPLHBGAE; + } + + /** + * repeated uint32 GJHNPLHBGAE = 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 RepeatedInt getMutableGJHNPLHBGAE() { + bitField0_ |= 0x00000008; + return gJHNPLHBGAE; + } + + /** + * repeated uint32 GJHNPLHBGAE = 6; + * @param value the gJHNPLHBGAE to add + * @return this + */ + public MOICCEIFBBA addGJHNPLHBGAE(final int value) { + bitField0_ |= 0x00000008; + gJHNPLHBGAE.add(value); + return this; + } + + /** + * repeated uint32 GJHNPLHBGAE = 6; + * @param values the gJHNPLHBGAE to add + * @return this + */ + public MOICCEIFBBA addAllGJHNPLHBGAE(final int... values) { + bitField0_ |= 0x00000008; + gJHNPLHBGAE.addAll(values); + return this; + } + + @Override + public MOICCEIFBBA copyFrom(final MOICCEIFBBA other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kJALGDHJNLN = other.kJALGDHJNLN; + iNHOFMDEECK = other.iNHOFMDEECK; + aLNMBFMEIAC = other.aLNMBFMEIAC; + gJHNPLHBGAE.copyFrom(other.gJHNPLHBGAE); + } + return this; + } + + @Override + public MOICCEIFBBA mergeFrom(final MOICCEIFBBA other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKJALGDHJNLN()) { + setKJALGDHJNLN(other.kJALGDHJNLN); + } + if (other.hasINHOFMDEECK()) { + setINHOFMDEECK(other.iNHOFMDEECK); + } + if (other.hasALNMBFMEIAC()) { + setALNMBFMEIAC(other.aLNMBFMEIAC); + } + if (other.hasGJHNPLHBGAE()) { + getMutableGJHNPLHBGAE().addAll(other.gJHNPLHBGAE); + } + return this; + } + + @Override + public MOICCEIFBBA clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kJALGDHJNLN = 0; + iNHOFMDEECK = 0; + aLNMBFMEIAC = false; + gJHNPLHBGAE.clear(); + return this; + } + + @Override + public MOICCEIFBBA clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gJHNPLHBGAE.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MOICCEIFBBA)) { + return false; + } + MOICCEIFBBA other = (MOICCEIFBBA) o; + return bitField0_ == other.bitField0_ + && (!hasKJALGDHJNLN() || kJALGDHJNLN == other.kJALGDHJNLN) + && (!hasINHOFMDEECK() || iNHOFMDEECK == other.iNHOFMDEECK) + && (!hasALNMBFMEIAC() || aLNMBFMEIAC == other.aLNMBFMEIAC) + && (!hasGJHNPLHBGAE() || gJHNPLHBGAE.equals(other.gJHNPLHBGAE)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(kJALGDHJNLN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(iNHOFMDEECK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(aLNMBFMEIAC); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < gJHNPLHBGAE.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(gJHNPLHBGAE.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kJALGDHJNLN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iNHOFMDEECK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * gJHNPLHBGAE.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(gJHNPLHBGAE); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MOICCEIFBBA mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // kJALGDHJNLN + kJALGDHJNLN = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // iNHOFMDEECK + iNHOFMDEECK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // aLNMBFMEIAC + aLNMBFMEIAC = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // gJHNPLHBGAE [packed=true] + input.readPackedUInt32(gJHNPLHBGAE, 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 48: { + // gJHNPLHBGAE [packed=false] + tag = input.readRepeatedUInt32(gJHNPLHBGAE, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.kJALGDHJNLN, kJALGDHJNLN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.iNHOFMDEECK, iNHOFMDEECK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.aLNMBFMEIAC, aLNMBFMEIAC); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.gJHNPLHBGAE, gJHNPLHBGAE); + } + output.endObject(); + } + + @Override + public MOICCEIFBBA mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -596510137: { + if (input.isAtField(FieldNames.kJALGDHJNLN)) { + if (!input.trySkipNullValue()) { + kJALGDHJNLN = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1551137671: { + if (input.isAtField(FieldNames.iNHOFMDEECK)) { + if (!input.trySkipNullValue()) { + iNHOFMDEECK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -559983259: { + if (input.isAtField(FieldNames.aLNMBFMEIAC)) { + if (!input.trySkipNullValue()) { + aLNMBFMEIAC = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1346088364: { + if (input.isAtField(FieldNames.gJHNPLHBGAE)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(gJHNPLHBGAE); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MOICCEIFBBA clone() { + return new MOICCEIFBBA().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MOICCEIFBBA parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MOICCEIFBBA(), data).checkInitialized(); + } + + public static MOICCEIFBBA parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MOICCEIFBBA(), input).checkInitialized(); + } + + public static MOICCEIFBBA parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MOICCEIFBBA(), input).checkInitialized(); + } + + /** + * @return factory for creating MOICCEIFBBA messages + */ + public static MessageFactory getFactory() { + return MOICCEIFBBAFactory.INSTANCE; + } + + private enum MOICCEIFBBAFactory implements MessageFactory { + INSTANCE; + + @Override + public MOICCEIFBBA create() { + return MOICCEIFBBA.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kJALGDHJNLN = FieldName.forField("KJALGDHJNLN"); + + static final FieldName iNHOFMDEECK = FieldName.forField("INHOFMDEECK"); + + static final FieldName aLNMBFMEIAC = FieldName.forField("ALNMBFMEIAC"); + + static final FieldName gJHNPLHBGAE = FieldName.forField("GJHNPLHBGAE"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NCAHFJEPBMOOuterClass.java b/src/generated/main/emu/lunarcore/proto/NCAHFJEPBMOOuterClass.java new file mode 100644 index 000000000..1b6e33a8e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/NCAHFJEPBMOOuterClass.java @@ -0,0 +1,258 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class NCAHFJEPBMOOuterClass { + /** + * Protobuf type {@code NCAHFJEPBMO} + */ + public static final class NCAHFJEPBMO extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LHMPHPEODNP = 9; + */ + private int lHMPHPEODNP; + + private NCAHFJEPBMO() { + } + + /** + * @return a new empty instance of {@code NCAHFJEPBMO} + */ + public static NCAHFJEPBMO newInstance() { + return new NCAHFJEPBMO(); + } + + /** + * optional uint32 LHMPHPEODNP = 9; + * @return whether the lHMPHPEODNP field is set + */ + public boolean hasLHMPHPEODNP() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LHMPHPEODNP = 9; + * @return this + */ + public NCAHFJEPBMO clearLHMPHPEODNP() { + bitField0_ &= ~0x00000001; + lHMPHPEODNP = 0; + return this; + } + + /** + * optional uint32 LHMPHPEODNP = 9; + * @return the lHMPHPEODNP + */ + public int getLHMPHPEODNP() { + return lHMPHPEODNP; + } + + /** + * optional uint32 LHMPHPEODNP = 9; + * @param value the lHMPHPEODNP to set + * @return this + */ + public NCAHFJEPBMO setLHMPHPEODNP(final int value) { + bitField0_ |= 0x00000001; + lHMPHPEODNP = value; + return this; + } + + @Override + public NCAHFJEPBMO copyFrom(final NCAHFJEPBMO other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lHMPHPEODNP = other.lHMPHPEODNP; + } + return this; + } + + @Override + public NCAHFJEPBMO mergeFrom(final NCAHFJEPBMO other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLHMPHPEODNP()) { + setLHMPHPEODNP(other.lHMPHPEODNP); + } + return this; + } + + @Override + public NCAHFJEPBMO clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lHMPHPEODNP = 0; + return this; + } + + @Override + public NCAHFJEPBMO clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof NCAHFJEPBMO)) { + return false; + } + NCAHFJEPBMO other = (NCAHFJEPBMO) o; + return bitField0_ == other.bitField0_ + && (!hasLHMPHPEODNP() || lHMPHPEODNP == other.lHMPHPEODNP); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(lHMPHPEODNP); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lHMPHPEODNP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NCAHFJEPBMO mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // lHMPHPEODNP + lHMPHPEODNP = input.readUInt32(); + 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.writeUInt32(FieldNames.lHMPHPEODNP, lHMPHPEODNP); + } + output.endObject(); + } + + @Override + public NCAHFJEPBMO mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1689644821: { + if (input.isAtField(FieldNames.lHMPHPEODNP)) { + if (!input.trySkipNullValue()) { + lHMPHPEODNP = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NCAHFJEPBMO clone() { + return new NCAHFJEPBMO().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NCAHFJEPBMO parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NCAHFJEPBMO(), data).checkInitialized(); + } + + public static NCAHFJEPBMO parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NCAHFJEPBMO(), input).checkInitialized(); + } + + public static NCAHFJEPBMO parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NCAHFJEPBMO(), input).checkInitialized(); + } + + /** + * @return factory for creating NCAHFJEPBMO messages + */ + public static MessageFactory getFactory() { + return NCAHFJEPBMOFactory.INSTANCE; + } + + private enum NCAHFJEPBMOFactory implements MessageFactory { + INSTANCE; + + @Override + public NCAHFJEPBMO create() { + return NCAHFJEPBMO.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lHMPHPEODNP = FieldName.forField("LHMPHPEODNP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NCHBHHHFBPMOuterClass.java b/src/generated/main/emu/lunarcore/proto/NCHBHHHFBPMOuterClass.java new file mode 100644 index 000000000..34a4bb877 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/NCHBHHHFBPMOuterClass.java @@ -0,0 +1,299 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class NCHBHHHFBPMOuterClass { + /** + * Protobuf type {@code NCHBHHHFBPM} + */ + public static final class NCHBHHHFBPM extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 GHJIDOPJDOM = 4; + */ + private final RepeatedInt gHJIDOPJDOM = RepeatedInt.newEmptyInstance(); + + private NCHBHHHFBPM() { + } + + /** + * @return a new empty instance of {@code NCHBHHHFBPM} + */ + public static NCHBHHHFBPM newInstance() { + return new NCHBHHHFBPM(); + } + + /** + * repeated uint32 GHJIDOPJDOM = 4; + * @return whether the gHJIDOPJDOM field is set + */ + public boolean hasGHJIDOPJDOM() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 GHJIDOPJDOM = 4; + * @return this + */ + public NCHBHHHFBPM clearGHJIDOPJDOM() { + bitField0_ &= ~0x00000001; + gHJIDOPJDOM.clear(); + return this; + } + + /** + * repeated uint32 GHJIDOPJDOM = 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 #getMutableGHJIDOPJDOM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getGHJIDOPJDOM() { + return gHJIDOPJDOM; + } + + /** + * repeated uint32 GHJIDOPJDOM = 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 getMutableGHJIDOPJDOM() { + bitField0_ |= 0x00000001; + return gHJIDOPJDOM; + } + + /** + * repeated uint32 GHJIDOPJDOM = 4; + * @param value the gHJIDOPJDOM to add + * @return this + */ + public NCHBHHHFBPM addGHJIDOPJDOM(final int value) { + bitField0_ |= 0x00000001; + gHJIDOPJDOM.add(value); + return this; + } + + /** + * repeated uint32 GHJIDOPJDOM = 4; + * @param values the gHJIDOPJDOM to add + * @return this + */ + public NCHBHHHFBPM addAllGHJIDOPJDOM(final int... values) { + bitField0_ |= 0x00000001; + gHJIDOPJDOM.addAll(values); + return this; + } + + @Override + public NCHBHHHFBPM copyFrom(final NCHBHHHFBPM other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gHJIDOPJDOM.copyFrom(other.gHJIDOPJDOM); + } + return this; + } + + @Override + public NCHBHHHFBPM mergeFrom(final NCHBHHHFBPM other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGHJIDOPJDOM()) { + getMutableGHJIDOPJDOM().addAll(other.gHJIDOPJDOM); + } + return this; + } + + @Override + public NCHBHHHFBPM clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gHJIDOPJDOM.clear(); + return this; + } + + @Override + public NCHBHHHFBPM clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gHJIDOPJDOM.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof NCHBHHHFBPM)) { + return false; + } + NCHBHHHFBPM other = (NCHBHHHFBPM) o; + return bitField0_ == other.bitField0_ + && (!hasGHJIDOPJDOM() || gHJIDOPJDOM.equals(other.gHJIDOPJDOM)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < gHJIDOPJDOM.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(gHJIDOPJDOM.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * gHJIDOPJDOM.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(gHJIDOPJDOM); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NCHBHHHFBPM mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 34: { + // gHJIDOPJDOM [packed=true] + input.readPackedUInt32(gHJIDOPJDOM, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // gHJIDOPJDOM [packed=false] + tag = input.readRepeatedUInt32(gHJIDOPJDOM, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.gHJIDOPJDOM, gHJIDOPJDOM); + } + output.endObject(); + } + + @Override + public NCHBHHHFBPM mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 328458589: { + if (input.isAtField(FieldNames.gHJIDOPJDOM)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(gHJIDOPJDOM); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NCHBHHHFBPM clone() { + return new NCHBHHHFBPM().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NCHBHHHFBPM parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NCHBHHHFBPM(), data).checkInitialized(); + } + + public static NCHBHHHFBPM parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NCHBHHHFBPM(), input).checkInitialized(); + } + + public static NCHBHHHFBPM parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NCHBHHHFBPM(), input).checkInitialized(); + } + + /** + * @return factory for creating NCHBHHHFBPM messages + */ + public static MessageFactory getFactory() { + return NCHBHHHFBPMFactory.INSTANCE; + } + + private enum NCHBHHHFBPMFactory implements MessageFactory { + INSTANCE; + + @Override + public NCHBHHHFBPM create() { + return NCHBHHHFBPM.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gHJIDOPJDOM = FieldName.forField("GHJIDOPJDOM"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NCLDKJHEPGMOuterClass.java b/src/generated/main/emu/lunarcore/proto/NCLDKJHEPGMOuterClass.java new file mode 100644 index 000000000..ddde5841a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/NCLDKJHEPGMOuterClass.java @@ -0,0 +1,258 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class NCLDKJHEPGMOuterClass { + /** + * Protobuf type {@code NCLDKJHEPGM} + */ + public static final class NCLDKJHEPGM extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 GDNBONNPGCN = 13; + */ + private int gDNBONNPGCN; + + private NCLDKJHEPGM() { + } + + /** + * @return a new empty instance of {@code NCLDKJHEPGM} + */ + public static NCLDKJHEPGM newInstance() { + return new NCLDKJHEPGM(); + } + + /** + * optional uint32 GDNBONNPGCN = 13; + * @return whether the gDNBONNPGCN field is set + */ + public boolean hasGDNBONNPGCN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 GDNBONNPGCN = 13; + * @return this + */ + public NCLDKJHEPGM clearGDNBONNPGCN() { + bitField0_ &= ~0x00000001; + gDNBONNPGCN = 0; + return this; + } + + /** + * optional uint32 GDNBONNPGCN = 13; + * @return the gDNBONNPGCN + */ + public int getGDNBONNPGCN() { + return gDNBONNPGCN; + } + + /** + * optional uint32 GDNBONNPGCN = 13; + * @param value the gDNBONNPGCN to set + * @return this + */ + public NCLDKJHEPGM setGDNBONNPGCN(final int value) { + bitField0_ |= 0x00000001; + gDNBONNPGCN = value; + return this; + } + + @Override + public NCLDKJHEPGM copyFrom(final NCLDKJHEPGM other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gDNBONNPGCN = other.gDNBONNPGCN; + } + return this; + } + + @Override + public NCLDKJHEPGM mergeFrom(final NCLDKJHEPGM other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGDNBONNPGCN()) { + setGDNBONNPGCN(other.gDNBONNPGCN); + } + return this; + } + + @Override + public NCLDKJHEPGM clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gDNBONNPGCN = 0; + return this; + } + + @Override + public NCLDKJHEPGM clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof NCLDKJHEPGM)) { + return false; + } + NCLDKJHEPGM other = (NCLDKJHEPGM) o; + return bitField0_ == other.bitField0_ + && (!hasGDNBONNPGCN() || gDNBONNPGCN == other.gDNBONNPGCN); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(gDNBONNPGCN); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gDNBONNPGCN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NCLDKJHEPGM mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // gDNBONNPGCN + gDNBONNPGCN = input.readUInt32(); + 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.writeUInt32(FieldNames.gDNBONNPGCN, gDNBONNPGCN); + } + output.endObject(); + } + + @Override + public NCLDKJHEPGM mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 7202560: { + if (input.isAtField(FieldNames.gDNBONNPGCN)) { + if (!input.trySkipNullValue()) { + gDNBONNPGCN = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NCLDKJHEPGM clone() { + return new NCLDKJHEPGM().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NCLDKJHEPGM parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NCLDKJHEPGM(), data).checkInitialized(); + } + + public static NCLDKJHEPGM parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NCLDKJHEPGM(), input).checkInitialized(); + } + + public static NCLDKJHEPGM parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NCLDKJHEPGM(), input).checkInitialized(); + } + + /** + * @return factory for creating NCLDKJHEPGM messages + */ + public static MessageFactory getFactory() { + return NCLDKJHEPGMFactory.INSTANCE; + } + + private enum NCLDKJHEPGMFactory implements MessageFactory { + INSTANCE; + + @Override + public NCLDKJHEPGM create() { + return NCLDKJHEPGM.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gDNBONNPGCN = FieldName.forField("GDNBONNPGCN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NILLPIGHKGKOuterClass.java b/src/generated/main/emu/lunarcore/proto/NILLPIGHKGKOuterClass.java new file mode 100644 index 000000000..e4a82b055 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/NILLPIGHKGKOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class NILLPIGHKGKOuterClass { + /** + * Protobuf type {@code NILLPIGHKGK} + */ + public static final class NILLPIGHKGK extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 3; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 IPAPJCOAIFG = 11; + */ + private final RepeatedInt iPAPJCOAIFG = RepeatedInt.newEmptyInstance(); + + private NILLPIGHKGK() { + } + + /** + * @return a new empty instance of {@code NILLPIGHKGK} + */ + public static NILLPIGHKGK newInstance() { + return new NILLPIGHKGK(); + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return this + */ + public NILLPIGHKGK clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 3; + * @param value the dCECFOKFIHH to set + * @return this + */ + public NILLPIGHKGK setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 IPAPJCOAIFG = 11; + * @return whether the iPAPJCOAIFG field is set + */ + public boolean hasIPAPJCOAIFG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 IPAPJCOAIFG = 11; + * @return this + */ + public NILLPIGHKGK clearIPAPJCOAIFG() { + bitField0_ &= ~0x00000002; + iPAPJCOAIFG.clear(); + return this; + } + + /** + * repeated uint32 IPAPJCOAIFG = 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 #getMutableIPAPJCOAIFG()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getIPAPJCOAIFG() { + return iPAPJCOAIFG; + } + + /** + * repeated uint32 IPAPJCOAIFG = 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 RepeatedInt getMutableIPAPJCOAIFG() { + bitField0_ |= 0x00000002; + return iPAPJCOAIFG; + } + + /** + * repeated uint32 IPAPJCOAIFG = 11; + * @param value the iPAPJCOAIFG to add + * @return this + */ + public NILLPIGHKGK addIPAPJCOAIFG(final int value) { + bitField0_ |= 0x00000002; + iPAPJCOAIFG.add(value); + return this; + } + + /** + * repeated uint32 IPAPJCOAIFG = 11; + * @param values the iPAPJCOAIFG to add + * @return this + */ + public NILLPIGHKGK addAllIPAPJCOAIFG(final int... values) { + bitField0_ |= 0x00000002; + iPAPJCOAIFG.addAll(values); + return this; + } + + @Override + public NILLPIGHKGK copyFrom(final NILLPIGHKGK other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + iPAPJCOAIFG.copyFrom(other.iPAPJCOAIFG); + } + return this; + } + + @Override + public NILLPIGHKGK mergeFrom(final NILLPIGHKGK other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasIPAPJCOAIFG()) { + getMutableIPAPJCOAIFG().addAll(other.iPAPJCOAIFG); + } + return this; + } + + @Override + public NILLPIGHKGK clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + iPAPJCOAIFG.clear(); + return this; + } + + @Override + public NILLPIGHKGK clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iPAPJCOAIFG.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof NILLPIGHKGK)) { + return false; + } + NILLPIGHKGK other = (NILLPIGHKGK) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasIPAPJCOAIFG() || iPAPJCOAIFG.equals(other.iPAPJCOAIFG)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < iPAPJCOAIFG.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(iPAPJCOAIFG.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * iPAPJCOAIFG.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iPAPJCOAIFG); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NILLPIGHKGK mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // iPAPJCOAIFG [packed=true] + input.readPackedUInt32(iPAPJCOAIFG, 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 88: { + // iPAPJCOAIFG [packed=false] + tag = input.readRepeatedUInt32(iPAPJCOAIFG, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.iPAPJCOAIFG, iPAPJCOAIFG); + } + output.endObject(); + } + + @Override + public NILLPIGHKGK mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1455275575: { + if (input.isAtField(FieldNames.iPAPJCOAIFG)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(iPAPJCOAIFG); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NILLPIGHKGK clone() { + return new NILLPIGHKGK().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NILLPIGHKGK parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NILLPIGHKGK(), data).checkInitialized(); + } + + public static NILLPIGHKGK parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NILLPIGHKGK(), input).checkInitialized(); + } + + public static NILLPIGHKGK parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NILLPIGHKGK(), input).checkInitialized(); + } + + /** + * @return factory for creating NILLPIGHKGK messages + */ + public static MessageFactory getFactory() { + return NILLPIGHKGKFactory.INSTANCE; + } + + private enum NILLPIGHKGKFactory implements MessageFactory { + INSTANCE; + + @Override + public NILLPIGHKGK create() { + return NILLPIGHKGK.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName iPAPJCOAIFG = FieldName.forField("IPAPJCOAIFG"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java new file mode 100644 index 000000000..1f7da575e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class NpcDialogueEventParamOuterClass { + /** + * Protobuf type {@code NpcDialogueEventParam} + */ + public static final class NpcDialogueEventParam extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 rogue_dialogue_event_id = 12; + */ + private int rogueDialogueEventId; + + /** + * optional uint32 arg_id = 13; + */ + private int argId; + + private NpcDialogueEventParam() { + } + + /** + * @return a new empty instance of {@code NpcDialogueEventParam} + */ + public static NpcDialogueEventParam newInstance() { + return new NpcDialogueEventParam(); + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @return whether the rogueDialogueEventId field is set + */ + public boolean hasRogueDialogueEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @return this + */ + public NpcDialogueEventParam clearRogueDialogueEventId() { + bitField0_ &= ~0x00000001; + rogueDialogueEventId = 0; + return this; + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @return the rogueDialogueEventId + */ + public int getRogueDialogueEventId() { + return rogueDialogueEventId; + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @param value the rogueDialogueEventId to set + * @return this + */ + public NpcDialogueEventParam setRogueDialogueEventId(final int value) { + bitField0_ |= 0x00000001; + rogueDialogueEventId = value; + return this; + } + + /** + * optional uint32 arg_id = 13; + * @return whether the argId field is set + */ + public boolean hasArgId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 arg_id = 13; + * @return this + */ + public NpcDialogueEventParam clearArgId() { + bitField0_ &= ~0x00000002; + argId = 0; + return this; + } + + /** + * optional uint32 arg_id = 13; + * @return the argId + */ + public int getArgId() { + return argId; + } + + /** + * optional uint32 arg_id = 13; + * @param value the argId to set + * @return this + */ + public NpcDialogueEventParam setArgId(final int value) { + bitField0_ |= 0x00000002; + argId = value; + return this; + } + + @Override + public NpcDialogueEventParam copyFrom(final NpcDialogueEventParam other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueDialogueEventId = other.rogueDialogueEventId; + argId = other.argId; + } + return this; + } + + @Override + public NpcDialogueEventParam mergeFrom(final NpcDialogueEventParam other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueDialogueEventId()) { + setRogueDialogueEventId(other.rogueDialogueEventId); + } + if (other.hasArgId()) { + setArgId(other.argId); + } + return this; + } + + @Override + public NpcDialogueEventParam clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueDialogueEventId = 0; + argId = 0; + return this; + } + + @Override + public NpcDialogueEventParam clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof NpcDialogueEventParam)) { + return false; + } + NpcDialogueEventParam other = (NpcDialogueEventParam) o; + return bitField0_ == other.bitField0_ + && (!hasRogueDialogueEventId() || rogueDialogueEventId == other.rogueDialogueEventId) + && (!hasArgId() || argId == other.argId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(rogueDialogueEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(argId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueDialogueEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NpcDialogueEventParam mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // rogueDialogueEventId + rogueDialogueEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // argId + argId = input.readUInt32(); + 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.rogueDialogueEventId, rogueDialogueEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.argId, argId); + } + output.endObject(); + } + + @Override + public NpcDialogueEventParam mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 262816547: + case -963375038: { + if (input.isAtField(FieldNames.rogueDialogueEventId)) { + if (!input.trySkipNullValue()) { + rogueDialogueEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 93079057: + case -1409495132: { + if (input.isAtField(FieldNames.argId)) { + if (!input.trySkipNullValue()) { + argId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NpcDialogueEventParam clone() { + return new NpcDialogueEventParam().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NpcDialogueEventParam parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NpcDialogueEventParam(), data).checkInitialized(); + } + + public static NpcDialogueEventParam parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NpcDialogueEventParam(), input).checkInitialized(); + } + + public static NpcDialogueEventParam parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NpcDialogueEventParam(), input).checkInitialized(); + } + + /** + * @return factory for creating NpcDialogueEventParam messages + */ + public static MessageFactory getFactory() { + return NpcDialogueEventParamFactory.INSTANCE; + } + + private enum NpcDialogueEventParamFactory implements MessageFactory { + INSTANCE; + + @Override + public NpcDialogueEventParam create() { + return NpcDialogueEventParam.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueDialogueEventId = FieldName.forField("rogueDialogueEventId", "rogue_dialogue_event_id"); + + static final FieldName argId = FieldName.forField("argId", "arg_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java index c79b91863..89a80ea31 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; public final class NpcRogueInfoOuterClass { /** @@ -19,18 +20,24 @@ public static final class NpcRogueInfo extends ProtoMessage implem private static final long serialVersionUID = 0L; /** - * optional uint32 rogue_npc_id = 11; + * optional uint32 OENLKDCLEOA = 2; */ - private int rogueNpcId; + private int oENLKDCLEOA; /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; + * optional uint32 event_unique_id = 4; + */ + private int eventUniqueId; + + /** + * optional uint32 event_id = 11; + */ + private int eventId; + + /** + * optional uint32 dialogue_id = 12; */ - private int dialogueGroupId; + private int dialogueId; /** * optional bool JFCBEHNMGNO = 1; @@ -38,18 +45,24 @@ public static final class NpcRogueInfo extends ProtoMessage implem private boolean jFCBEHNMGNO; /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool JOFMIKFBGHP = 9; + */ + private boolean jOFMIKFBGHP; + + /** + * optional bool finish_dialogue = 15; */ private boolean finishDialogue; /** - * optional bool CLFMCIDHJLM = 15; + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + */ + private final RepeatedMessage dialogueEventParamList = RepeatedMessage.newEmptyInstance(NpcDialogueEventParamOuterClass.NpcDialogueEventParam.getFactory()); + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; */ - private boolean cLFMCIDHJLM; + private final RepeatedMessage fKDHDCGOIMF = RepeatedMessage.newEmptyInstance(FKDHDCGOIMFEntry.getFactory()); private NpcRogueInfo() { } @@ -62,92 +75,150 @@ public static NpcRogueInfo newInstance() { } /** - * optional uint32 rogue_npc_id = 11; - * @return whether the rogueNpcId field is set + * optional uint32 OENLKDCLEOA = 2; + * @return whether the oENLKDCLEOA field is set */ - public boolean hasRogueNpcId() { + public boolean hasOENLKDCLEOA() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rogue_npc_id = 11; + * optional uint32 OENLKDCLEOA = 2; * @return this */ - public NpcRogueInfo clearRogueNpcId() { + public NpcRogueInfo clearOENLKDCLEOA() { bitField0_ &= ~0x00000001; - rogueNpcId = 0; + oENLKDCLEOA = 0; return this; } /** - * optional uint32 rogue_npc_id = 11; - * @return the rogueNpcId + * optional uint32 OENLKDCLEOA = 2; + * @return the oENLKDCLEOA */ - public int getRogueNpcId() { - return rogueNpcId; + public int getOENLKDCLEOA() { + return oENLKDCLEOA; } /** - * optional uint32 rogue_npc_id = 11; - * @param value the rogueNpcId to set + * optional uint32 OENLKDCLEOA = 2; + * @param value the oENLKDCLEOA to set * @return this */ - public NpcRogueInfo setRogueNpcId(final int value) { + public NpcRogueInfo setOENLKDCLEOA(final int value) { bitField0_ |= 0x00000001; - rogueNpcId = value; + oENLKDCLEOA = value; return this; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; - * @return whether the dialogueGroupId field is set + * optional uint32 event_unique_id = 4; + * @return whether the eventUniqueId field is set */ - public boolean hasDialogueGroupId() { + public boolean hasEventUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; + * optional uint32 event_unique_id = 4; * @return this */ - public NpcRogueInfo clearDialogueGroupId() { + public NpcRogueInfo clearEventUniqueId() { bitField0_ &= ~0x00000002; - dialogueGroupId = 0; + eventUniqueId = 0; return this; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; - * @return the dialogueGroupId + * optional uint32 event_unique_id = 4; + * @return the eventUniqueId */ - public int getDialogueGroupId() { - return dialogueGroupId; + public int getEventUniqueId() { + return eventUniqueId; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; - * @param value the dialogueGroupId to set + * optional uint32 event_unique_id = 4; + * @param value the eventUniqueId to set * @return this */ - public NpcRogueInfo setDialogueGroupId(final int value) { + public NpcRogueInfo setEventUniqueId(final int value) { bitField0_ |= 0x00000002; - dialogueGroupId = value; + eventUniqueId = value; + return this; + } + + /** + * optional uint32 event_id = 11; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 event_id = 11; + * @return this + */ + public NpcRogueInfo clearEventId() { + bitField0_ &= ~0x00000004; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 11; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 11; + * @param value the eventId to set + * @return this + */ + public NpcRogueInfo setEventId(final int value) { + bitField0_ |= 0x00000004; + eventId = value; + return this; + } + + /** + * optional uint32 dialogue_id = 12; + * @return whether the dialogueId field is set + */ + public boolean hasDialogueId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 dialogue_id = 12; + * @return this + */ + public NpcRogueInfo clearDialogueId() { + bitField0_ &= ~0x00000008; + dialogueId = 0; + return this; + } + + /** + * optional uint32 dialogue_id = 12; + * @return the dialogueId + */ + public int getDialogueId() { + return dialogueId; + } + + /** + * optional uint32 dialogue_id = 12; + * @param value the dialogueId to set + * @return this + */ + public NpcRogueInfo setDialogueId(final int value) { + bitField0_ |= 0x00000008; + dialogueId = value; return this; } @@ -156,7 +227,7 @@ public NpcRogueInfo setDialogueGroupId(final int value) { * @return whether the jFCBEHNMGNO field is set */ public boolean hasJFCBEHNMGNO() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -164,7 +235,7 @@ public boolean hasJFCBEHNMGNO() { * @return this */ public NpcRogueInfo clearJFCBEHNMGNO() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000010; jFCBEHNMGNO = false; return this; } @@ -183,43 +254,68 @@ public boolean getJFCBEHNMGNO() { * @return this */ public NpcRogueInfo setJFCBEHNMGNO(final boolean value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; jFCBEHNMGNO = value; return this; } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool JOFMIKFBGHP = 9; + * @return whether the jOFMIKFBGHP field is set + */ + public boolean hasJOFMIKFBGHP() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool JOFMIKFBGHP = 9; + * @return this + */ + public NpcRogueInfo clearJOFMIKFBGHP() { + bitField0_ &= ~0x00000020; + jOFMIKFBGHP = false; + return this; + } + + /** + * optional bool JOFMIKFBGHP = 9; + * @return the jOFMIKFBGHP + */ + public boolean getJOFMIKFBGHP() { + return jOFMIKFBGHP; + } + + /** + * optional bool JOFMIKFBGHP = 9; + * @param value the jOFMIKFBGHP to set + * @return this + */ + public NpcRogueInfo setJOFMIKFBGHP(final boolean value) { + bitField0_ |= 0x00000020; + jOFMIKFBGHP = value; + return this; + } + + /** + * optional bool finish_dialogue = 15; * @return whether the finishDialogue field is set */ public boolean hasFinishDialogue() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000040) != 0; } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool finish_dialogue = 15; * @return this */ public NpcRogueInfo clearFinishDialogue() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000040; finishDialogue = false; return this; } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool finish_dialogue = 15; * @return the finishDialogue */ public boolean getFinishDialogue() { @@ -227,54 +323,153 @@ public boolean getFinishDialogue() { } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool finish_dialogue = 15; * @param value the finishDialogue to set * @return this */ public NpcRogueInfo setFinishDialogue(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; finishDialogue = value; return this; } /** - * optional bool CLFMCIDHJLM = 15; - * @return whether the cLFMCIDHJLM field is set + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * @return whether the dialogueEventParamList field is set */ - public boolean hasCLFMCIDHJLM() { - return (bitField0_ & 0x00000010) != 0; + public boolean hasDialogueEventParamList() { + return (bitField0_ & 0x00000080) != 0; } /** - * optional bool CLFMCIDHJLM = 15; + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; * @return this */ - public NpcRogueInfo clearCLFMCIDHJLM() { - bitField0_ &= ~0x00000010; - cLFMCIDHJLM = false; + public NpcRogueInfo clearDialogueEventParamList() { + bitField0_ &= ~0x00000080; + dialogueEventParamList.clear(); return this; } /** - * optional bool CLFMCIDHJLM = 15; - * @return the cLFMCIDHJLM + * repeated .NpcDialogueEventParam dialogue_event_param_list = 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 #getMutableDialogueEventParamList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDialogueEventParamList( + ) { + return dialogueEventParamList; + } + + /** + * repeated .NpcDialogueEventParam dialogue_event_param_list = 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 boolean getCLFMCIDHJLM() { - return cLFMCIDHJLM; + public RepeatedMessage getMutableDialogueEventParamList( + ) { + bitField0_ |= 0x00000080; + return dialogueEventParamList; } /** - * optional bool CLFMCIDHJLM = 15; - * @param value the cLFMCIDHJLM to set + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * @param value the dialogueEventParamList to add * @return this */ - public NpcRogueInfo setCLFMCIDHJLM(final boolean value) { - bitField0_ |= 0x00000010; - cLFMCIDHJLM = value; + public NpcRogueInfo addDialogueEventParamList( + final NpcDialogueEventParamOuterClass.NpcDialogueEventParam value) { + bitField0_ |= 0x00000080; + dialogueEventParamList.add(value); + return this; + } + + /** + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * @param values the dialogueEventParamList to add + * @return this + */ + public NpcRogueInfo addAllDialogueEventParamList( + final NpcDialogueEventParamOuterClass.NpcDialogueEventParam... values) { + bitField0_ |= 0x00000080; + dialogueEventParamList.addAll(values); + return this; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @return whether the fKDHDCGOIMF field is set + */ + public boolean hasFKDHDCGOIMF() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @return this + */ + public NpcRogueInfo clearFKDHDCGOIMF() { + bitField0_ &= ~0x00000100; + fKDHDCGOIMF.clear(); + return this; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 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 #getMutableFKDHDCGOIMF()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFKDHDCGOIMF() { + return fKDHDCGOIMF; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 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 getMutableFKDHDCGOIMF() { + bitField0_ |= 0x00000100; + return fKDHDCGOIMF; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @param value the fKDHDCGOIMF to add + * @return this + */ + public NpcRogueInfo addFKDHDCGOIMF(final FKDHDCGOIMFEntry value) { + bitField0_ |= 0x00000100; + fKDHDCGOIMF.add(value); + return this; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @param values the fKDHDCGOIMF to add + * @return this + */ + public NpcRogueInfo addAllFKDHDCGOIMF(final FKDHDCGOIMFEntry... values) { + bitField0_ |= 0x00000100; + fKDHDCGOIMF.addAll(values); return this; } @@ -283,11 +478,15 @@ public NpcRogueInfo copyFrom(final NpcRogueInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueNpcId = other.rogueNpcId; - dialogueGroupId = other.dialogueGroupId; + oENLKDCLEOA = other.oENLKDCLEOA; + eventUniqueId = other.eventUniqueId; + eventId = other.eventId; + dialogueId = other.dialogueId; jFCBEHNMGNO = other.jFCBEHNMGNO; + jOFMIKFBGHP = other.jOFMIKFBGHP; finishDialogue = other.finishDialogue; - cLFMCIDHJLM = other.cLFMCIDHJLM; + dialogueEventParamList.copyFrom(other.dialogueEventParamList); + fKDHDCGOIMF.copyFrom(other.fKDHDCGOIMF); } return this; } @@ -298,20 +497,32 @@ public NpcRogueInfo mergeFrom(final NpcRogueInfo other) { return this; } cachedSize = -1; - if (other.hasRogueNpcId()) { - setRogueNpcId(other.rogueNpcId); + if (other.hasOENLKDCLEOA()) { + setOENLKDCLEOA(other.oENLKDCLEOA); } - if (other.hasDialogueGroupId()) { - setDialogueGroupId(other.dialogueGroupId); + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasEventId()) { + setEventId(other.eventId); + } + if (other.hasDialogueId()) { + setDialogueId(other.dialogueId); } if (other.hasJFCBEHNMGNO()) { setJFCBEHNMGNO(other.jFCBEHNMGNO); } + if (other.hasJOFMIKFBGHP()) { + setJOFMIKFBGHP(other.jOFMIKFBGHP); + } if (other.hasFinishDialogue()) { setFinishDialogue(other.finishDialogue); } - if (other.hasCLFMCIDHJLM()) { - setCLFMCIDHJLM(other.cLFMCIDHJLM); + if (other.hasDialogueEventParamList()) { + getMutableDialogueEventParamList().addAll(other.dialogueEventParamList); + } + if (other.hasFKDHDCGOIMF()) { + getMutableFKDHDCGOIMF().addAll(other.fKDHDCGOIMF); } return this; } @@ -323,11 +534,15 @@ public NpcRogueInfo clear() { } cachedSize = -1; bitField0_ = 0; - rogueNpcId = 0; - dialogueGroupId = 0; + oENLKDCLEOA = 0; + eventUniqueId = 0; + eventId = 0; + dialogueId = 0; jFCBEHNMGNO = false; + jOFMIKFBGHP = false; finishDialogue = false; - cLFMCIDHJLM = false; + dialogueEventParamList.clear(); + fKDHDCGOIMF.clear(); return this; } @@ -338,6 +553,8 @@ public NpcRogueInfo clearQuick() { } cachedSize = -1; bitField0_ = 0; + dialogueEventParamList.clearQuick(); + fKDHDCGOIMF.clearQuick(); return this; } @@ -351,34 +568,58 @@ public boolean equals(Object o) { } NpcRogueInfo other = (NpcRogueInfo) o; return bitField0_ == other.bitField0_ - && (!hasRogueNpcId() || rogueNpcId == other.rogueNpcId) - && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId) + && (!hasOENLKDCLEOA() || oENLKDCLEOA == other.oENLKDCLEOA) + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasEventId() || eventId == other.eventId) + && (!hasDialogueId() || dialogueId == other.dialogueId) && (!hasJFCBEHNMGNO() || jFCBEHNMGNO == other.jFCBEHNMGNO) + && (!hasJOFMIKFBGHP() || jOFMIKFBGHP == other.jOFMIKFBGHP) && (!hasFinishDialogue() || finishDialogue == other.finishDialogue) - && (!hasCLFMCIDHJLM() || cLFMCIDHJLM == other.cLFMCIDHJLM); + && (!hasDialogueEventParamList() || dialogueEventParamList.equals(other.dialogueEventParamList)) + && (!hasFKDHDCGOIMF() || fKDHDCGOIMF.equals(other.fKDHDCGOIMF)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(rogueNpcId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(oENLKDCLEOA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(dialogueGroupId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eventUniqueId); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(eventId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(dialogueId); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 8); output.writeBoolNoTag(jFCBEHNMGNO); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 72); - output.writeBoolNoTag(finishDialogue); + output.writeBoolNoTag(jOFMIKFBGHP); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 120); - output.writeBoolNoTag(cLFMCIDHJLM); + output.writeBoolNoTag(finishDialogue); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < dialogueEventParamList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(dialogueEventParamList.get(i)); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < fKDHDCGOIMF.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(fKDHDCGOIMF.get(i)); + } } } @@ -386,20 +627,32 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueNpcId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(oENLKDCLEOA); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } if ((bitField0_ & 0x00000008) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueId); } if ((bitField0_ & 0x00000010) != 0) { size += 2; } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * dialogueEventParamList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dialogueEventParamList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * fKDHDCGOIMF.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(fKDHDCGOIMF); + } return size; } @@ -410,19 +663,37 @@ public NpcRogueInfo mergeFrom(final ProtoSource input) throws IOException { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // rogueNpcId - rogueNpcId = input.readUInt32(); + case 16: { + // oENLKDCLEOA + oENLKDCLEOA = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // eventId + eventId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // dialogueGroupId - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; + // dialogueId + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 8) { break; @@ -431,26 +702,42 @@ public NpcRogueInfo mergeFrom(final ProtoSource input) throws IOException { case 8: { // jFCBEHNMGNO jFCBEHNMGNO = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 72) { break; } } case 72: { - // finishDialogue - finishDialogue = input.readBool(); - bitField0_ |= 0x00000008; + // jOFMIKFBGHP + jOFMIKFBGHP = input.readBool(); + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 120) { break; } } case 120: { - // cLFMCIDHJLM - cLFMCIDHJLM = input.readBool(); - bitField0_ |= 0x00000010; + // finishDialogue + finishDialogue = input.readBool(); + bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // dialogueEventParamList + tag = input.readRepeatedMessage(dialogueEventParamList, tag); + bitField0_ |= 0x00000080; + if (tag != 66) { + break; + } + } + case 66: { + // fKDHDCGOIMF + tag = input.readRepeatedMessage(fKDHDCGOIMF, tag); + bitField0_ |= 0x00000100; if (tag != 0) { break; } @@ -473,19 +760,31 @@ public NpcRogueInfo mergeFrom(final ProtoSource input) throws IOException { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueNpcId, rogueNpcId); + output.writeUInt32(FieldNames.oENLKDCLEOA, oENLKDCLEOA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.jFCBEHNMGNO, jFCBEHNMGNO); + output.writeUInt32(FieldNames.eventId, eventId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.finishDialogue, finishDialogue); + output.writeUInt32(FieldNames.dialogueId, dialogueId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.cLFMCIDHJLM, cLFMCIDHJLM); + output.writeBool(FieldNames.jFCBEHNMGNO, jFCBEHNMGNO); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.jOFMIKFBGHP, jOFMIKFBGHP); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.finishDialogue, finishDialogue); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.dialogueEventParamList, dialogueEventParamList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.fKDHDCGOIMF, fKDHDCGOIMF); } output.endObject(); } @@ -497,11 +796,10 @@ public NpcRogueInfo mergeFrom(final JsonSource input) throws IOException { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1140086238: - case 1751967038: { - if (input.isAtField(FieldNames.rogueNpcId)) { + case -983404159: { + if (input.isAtField(FieldNames.oENLKDCLEOA)) { if (!input.trySkipNullValue()) { - rogueNpcId = input.readUInt32(); + oENLKDCLEOA = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -509,11 +807,11 @@ public NpcRogueInfo mergeFrom(final JsonSource input) throws IOException { } break; } - case 1758320386: - case 1899979106: { - if (input.isAtField(FieldNames.dialogueGroupId)) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { if (!input.trySkipNullValue()) { - dialogueGroupId = input.readUInt32(); + eventUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -521,11 +819,46 @@ public NpcRogueInfo mergeFrom(final JsonSource input) throws IOException { } break; } + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { + if (!input.trySkipNullValue()) { + eventId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1384067821: + case 43591906: { + if (input.isAtField(FieldNames.dialogueId)) { + if (!input.trySkipNullValue()) { + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case 763452523: { if (input.isAtField(FieldNames.jFCBEHNMGNO)) { if (!input.trySkipNullValue()) { jFCBEHNMGNO = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -808301787: { + if (input.isAtField(FieldNames.jOFMIKFBGHP)) { + if (!input.trySkipNullValue()) { + jOFMIKFBGHP = input.readBool(); + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -537,18 +870,30 @@ public NpcRogueInfo mergeFrom(final JsonSource input) throws IOException { if (input.isAtField(FieldNames.finishDialogue)) { if (!input.trySkipNullValue()) { finishDialogue = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); } break; } - case -1613982031: { - if (input.isAtField(FieldNames.cLFMCIDHJLM)) { + case -340413111: + case -612945060: { + if (input.isAtField(FieldNames.dialogueEventParamList)) { if (!input.trySkipNullValue()) { - cLFMCIDHJLM = input.readBool(); - bitField0_ |= 0x00000010; + input.readRepeatedMessage(dialogueEventParamList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1696143474: { + if (input.isAtField(FieldNames.fKDHDCGOIMF)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(fKDHDCGOIMF); + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -594,6 +939,331 @@ public static MessageFactory getFactory() { return NpcRogueInfoFactory.INSTANCE; } + /** + * Protobuf type {@code FKDHDCGOIMFEntry} + */ + public static final class FKDHDCGOIMFEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional uint32 value = 2; + */ + private int value_; + + private FKDHDCGOIMFEntry() { + } + + /** + * @return a new empty instance of {@code FKDHDCGOIMFEntry} + */ + public static FKDHDCGOIMFEntry newInstance() { + return new FKDHDCGOIMFEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public FKDHDCGOIMFEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public FKDHDCGOIMFEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public FKDHDCGOIMFEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public FKDHDCGOIMFEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public FKDHDCGOIMFEntry copyFrom(final FKDHDCGOIMFEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public FKDHDCGOIMFEntry mergeFrom(final FKDHDCGOIMFEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public FKDHDCGOIMFEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public FKDHDCGOIMFEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FKDHDCGOIMFEntry)) { + return false; + } + FKDHDCGOIMFEntry other = (FKDHDCGOIMFEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FKDHDCGOIMFEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readUInt32(); + 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.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public FKDHDCGOIMFEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FKDHDCGOIMFEntry clone() { + return new FKDHDCGOIMFEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FKDHDCGOIMFEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), data).checkInitialized(); + } + + public static FKDHDCGOIMFEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), input).checkInitialized(); + } + + public static FKDHDCGOIMFEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating FKDHDCGOIMFEntry messages + */ + public static MessageFactory getFactory() { + return FKDHDCGOIMFEntryFactory.INSTANCE; + } + + private enum FKDHDCGOIMFEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public FKDHDCGOIMFEntry create() { + return FKDHDCGOIMFEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + private enum NpcRogueInfoFactory implements MessageFactory { INSTANCE; @@ -607,15 +1277,23 @@ public NpcRogueInfo create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueNpcId = FieldName.forField("rogueNpcId", "rogue_npc_id"); + static final FieldName oENLKDCLEOA = FieldName.forField("OENLKDCLEOA"); + + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName eventId = FieldName.forField("eventId", "event_id"); - static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); + static final FieldName dialogueId = FieldName.forField("dialogueId", "dialogue_id"); static final FieldName jFCBEHNMGNO = FieldName.forField("JFCBEHNMGNO"); + static final FieldName jOFMIKFBGHP = FieldName.forField("JOFMIKFBGHP"); + static final FieldName finishDialogue = FieldName.forField("finishDialogue", "finish_dialogue"); - static final FieldName cLFMCIDHJLM = FieldName.forField("CLFMCIDHJLM"); + static final FieldName dialogueEventParamList = FieldName.forField("dialogueEventParamList", "dialogue_event_param_list"); + + static final FieldName fKDHDCGOIMF = FieldName.forField("FKDHDCGOIMF"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/OABIBGMGIIEOuterClass.java b/src/generated/main/emu/lunarcore/proto/OABIBGMGIIEOuterClass.java new file mode 100644 index 000000000..e690b22fc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/OABIBGMGIIEOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class OABIBGMGIIEOuterClass { + /** + * Protobuf type {@code OABIBGMGIIE} + */ + public static final class OABIBGMGIIE extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DCECFOKFIHH = 10; + */ + private int dCECFOKFIHH; + + /** + * repeated uint32 ACDOBNPFPAP = 6; + */ + private final RepeatedInt aCDOBNPFPAP = RepeatedInt.newEmptyInstance(); + + private OABIBGMGIIE() { + } + + /** + * @return a new empty instance of {@code OABIBGMGIIE} + */ + public static OABIBGMGIIE newInstance() { + return new OABIBGMGIIE(); + } + + /** + * optional uint32 DCECFOKFIHH = 10; + * @return whether the dCECFOKFIHH field is set + */ + public boolean hasDCECFOKFIHH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DCECFOKFIHH = 10; + * @return this + */ + public OABIBGMGIIE clearDCECFOKFIHH() { + bitField0_ &= ~0x00000001; + dCECFOKFIHH = 0; + return this; + } + + /** + * optional uint32 DCECFOKFIHH = 10; + * @return the dCECFOKFIHH + */ + public int getDCECFOKFIHH() { + return dCECFOKFIHH; + } + + /** + * optional uint32 DCECFOKFIHH = 10; + * @param value the dCECFOKFIHH to set + * @return this + */ + public OABIBGMGIIE setDCECFOKFIHH(final int value) { + bitField0_ |= 0x00000001; + dCECFOKFIHH = value; + return this; + } + + /** + * repeated uint32 ACDOBNPFPAP = 6; + * @return whether the aCDOBNPFPAP field is set + */ + public boolean hasACDOBNPFPAP() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 ACDOBNPFPAP = 6; + * @return this + */ + public OABIBGMGIIE clearACDOBNPFPAP() { + bitField0_ &= ~0x00000002; + aCDOBNPFPAP.clear(); + return this; + } + + /** + * repeated uint32 ACDOBNPFPAP = 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 #getMutableACDOBNPFPAP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getACDOBNPFPAP() { + return aCDOBNPFPAP; + } + + /** + * repeated uint32 ACDOBNPFPAP = 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 RepeatedInt getMutableACDOBNPFPAP() { + bitField0_ |= 0x00000002; + return aCDOBNPFPAP; + } + + /** + * repeated uint32 ACDOBNPFPAP = 6; + * @param value the aCDOBNPFPAP to add + * @return this + */ + public OABIBGMGIIE addACDOBNPFPAP(final int value) { + bitField0_ |= 0x00000002; + aCDOBNPFPAP.add(value); + return this; + } + + /** + * repeated uint32 ACDOBNPFPAP = 6; + * @param values the aCDOBNPFPAP to add + * @return this + */ + public OABIBGMGIIE addAllACDOBNPFPAP(final int... values) { + bitField0_ |= 0x00000002; + aCDOBNPFPAP.addAll(values); + return this; + } + + @Override + public OABIBGMGIIE copyFrom(final OABIBGMGIIE other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dCECFOKFIHH = other.dCECFOKFIHH; + aCDOBNPFPAP.copyFrom(other.aCDOBNPFPAP); + } + return this; + } + + @Override + public OABIBGMGIIE mergeFrom(final OABIBGMGIIE other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDCECFOKFIHH()) { + setDCECFOKFIHH(other.dCECFOKFIHH); + } + if (other.hasACDOBNPFPAP()) { + getMutableACDOBNPFPAP().addAll(other.aCDOBNPFPAP); + } + return this; + } + + @Override + public OABIBGMGIIE clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dCECFOKFIHH = 0; + aCDOBNPFPAP.clear(); + return this; + } + + @Override + public OABIBGMGIIE clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aCDOBNPFPAP.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof OABIBGMGIIE)) { + return false; + } + OABIBGMGIIE other = (OABIBGMGIIE) o; + return bitField0_ == other.bitField0_ + && (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH) + && (!hasACDOBNPFPAP() || aCDOBNPFPAP.equals(other.aCDOBNPFPAP)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < aCDOBNPFPAP.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(aCDOBNPFPAP.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * aCDOBNPFPAP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aCDOBNPFPAP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public OABIBGMGIIE mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // dCECFOKFIHH + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // aCDOBNPFPAP [packed=true] + input.readPackedUInt32(aCDOBNPFPAP, 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 48: { + // aCDOBNPFPAP [packed=false] + tag = input.readRepeatedUInt32(aCDOBNPFPAP, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.aCDOBNPFPAP, aCDOBNPFPAP); + } + output.endObject(); + } + + @Override + public OABIBGMGIIE mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1537368920: { + if (input.isAtField(FieldNames.dCECFOKFIHH)) { + if (!input.trySkipNullValue()) { + dCECFOKFIHH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1525807408: { + if (input.isAtField(FieldNames.aCDOBNPFPAP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(aCDOBNPFPAP); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public OABIBGMGIIE clone() { + return new OABIBGMGIIE().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static OABIBGMGIIE parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new OABIBGMGIIE(), data).checkInitialized(); + } + + public static OABIBGMGIIE parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new OABIBGMGIIE(), input).checkInitialized(); + } + + public static OABIBGMGIIE parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new OABIBGMGIIE(), input).checkInitialized(); + } + + /** + * @return factory for creating OABIBGMGIIE messages + */ + public static MessageFactory getFactory() { + return OABIBGMGIIEFactory.INSTANCE; + } + + private enum OABIBGMGIIEFactory implements MessageFactory { + INSTANCE; + + @Override + public OABIBGMGIIE create() { + return OABIBGMGIIE.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH"); + + static final FieldName aCDOBNPFPAP = FieldName.forField("ACDOBNPFPAP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/OJAHMDLNMAKOuterClass.java b/src/generated/main/emu/lunarcore/proto/OJAHMDLNMAKOuterClass.java new file mode 100644 index 000000000..ccf371bdb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/OJAHMDLNMAKOuterClass.java @@ -0,0 +1,258 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class OJAHMDLNMAKOuterClass { + /** + * Protobuf type {@code OJAHMDLNMAK} + */ + public static final class OJAHMDLNMAK extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 KGBAJDMFAEP = 9; + */ + private int kGBAJDMFAEP; + + private OJAHMDLNMAK() { + } + + /** + * @return a new empty instance of {@code OJAHMDLNMAK} + */ + public static OJAHMDLNMAK newInstance() { + return new OJAHMDLNMAK(); + } + + /** + * optional int32 KGBAJDMFAEP = 9; + * @return whether the kGBAJDMFAEP field is set + */ + public boolean hasKGBAJDMFAEP() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 KGBAJDMFAEP = 9; + * @return this + */ + public OJAHMDLNMAK clearKGBAJDMFAEP() { + bitField0_ &= ~0x00000001; + kGBAJDMFAEP = 0; + return this; + } + + /** + * optional int32 KGBAJDMFAEP = 9; + * @return the kGBAJDMFAEP + */ + public int getKGBAJDMFAEP() { + return kGBAJDMFAEP; + } + + /** + * optional int32 KGBAJDMFAEP = 9; + * @param value the kGBAJDMFAEP to set + * @return this + */ + public OJAHMDLNMAK setKGBAJDMFAEP(final int value) { + bitField0_ |= 0x00000001; + kGBAJDMFAEP = value; + return this; + } + + @Override + public OJAHMDLNMAK copyFrom(final OJAHMDLNMAK other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kGBAJDMFAEP = other.kGBAJDMFAEP; + } + return this; + } + + @Override + public OJAHMDLNMAK mergeFrom(final OJAHMDLNMAK other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKGBAJDMFAEP()) { + setKGBAJDMFAEP(other.kGBAJDMFAEP); + } + return this; + } + + @Override + public OJAHMDLNMAK clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kGBAJDMFAEP = 0; + return this; + } + + @Override + public OJAHMDLNMAK clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof OJAHMDLNMAK)) { + return false; + } + OJAHMDLNMAK other = (OJAHMDLNMAK) o; + return bitField0_ == other.bitField0_ + && (!hasKGBAJDMFAEP() || kGBAJDMFAEP == other.kGBAJDMFAEP); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeInt32NoTag(kGBAJDMFAEP); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(kGBAJDMFAEP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public OJAHMDLNMAK mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // kGBAJDMFAEP + kGBAJDMFAEP = input.readInt32(); + 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.writeInt32(FieldNames.kGBAJDMFAEP, kGBAJDMFAEP); + } + output.endObject(); + } + + @Override + public OJAHMDLNMAK mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1138471810: { + if (input.isAtField(FieldNames.kGBAJDMFAEP)) { + if (!input.trySkipNullValue()) { + kGBAJDMFAEP = input.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public OJAHMDLNMAK clone() { + return new OJAHMDLNMAK().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static OJAHMDLNMAK parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new OJAHMDLNMAK(), data).checkInitialized(); + } + + public static OJAHMDLNMAK parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new OJAHMDLNMAK(), input).checkInitialized(); + } + + public static OJAHMDLNMAK parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new OJAHMDLNMAK(), input).checkInitialized(); + } + + /** + * @return factory for creating OJAHMDLNMAK messages + */ + public static MessageFactory getFactory() { + return OJAHMDLNMAKFactory.INSTANCE; + } + + private enum OJAHMDLNMAKFactory implements MessageFactory { + INSTANCE; + + @Override + public OJAHMDLNMAK create() { + return OJAHMDLNMAK.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kGBAJDMFAEP = FieldName.forField("KGBAJDMFAEP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PDANDAJEPHKOuterClass.java b/src/generated/main/emu/lunarcore/proto/PDANDAJEPHKOuterClass.java new file mode 100644 index 000000000..64ef59e38 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PDANDAJEPHKOuterClass.java @@ -0,0 +1,379 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class PDANDAJEPHKOuterClass { + /** + * Protobuf type {@code PDANDAJEPHK} + */ + public static final class PDANDAJEPHK extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 10; + */ + private int id; + + /** + * repeated uint32 DDNKEGAPKIA = 1; + */ + private final RepeatedInt dDNKEGAPKIA = RepeatedInt.newEmptyInstance(); + + private PDANDAJEPHK() { + } + + /** + * @return a new empty instance of {@code PDANDAJEPHK} + */ + public static PDANDAJEPHK newInstance() { + return new PDANDAJEPHK(); + } + + /** + * optional uint32 id = 10; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 10; + * @return this + */ + public PDANDAJEPHK clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 10; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 10; + * @param value the id to set + * @return this + */ + public PDANDAJEPHK setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * repeated uint32 DDNKEGAPKIA = 1; + * @return whether the dDNKEGAPKIA field is set + */ + public boolean hasDDNKEGAPKIA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 DDNKEGAPKIA = 1; + * @return this + */ + public PDANDAJEPHK clearDDNKEGAPKIA() { + bitField0_ &= ~0x00000002; + dDNKEGAPKIA.clear(); + return this; + } + + /** + * repeated uint32 DDNKEGAPKIA = 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 #getMutableDDNKEGAPKIA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDDNKEGAPKIA() { + return dDNKEGAPKIA; + } + + /** + * repeated uint32 DDNKEGAPKIA = 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 getMutableDDNKEGAPKIA() { + bitField0_ |= 0x00000002; + return dDNKEGAPKIA; + } + + /** + * repeated uint32 DDNKEGAPKIA = 1; + * @param value the dDNKEGAPKIA to add + * @return this + */ + public PDANDAJEPHK addDDNKEGAPKIA(final int value) { + bitField0_ |= 0x00000002; + dDNKEGAPKIA.add(value); + return this; + } + + /** + * repeated uint32 DDNKEGAPKIA = 1; + * @param values the dDNKEGAPKIA to add + * @return this + */ + public PDANDAJEPHK addAllDDNKEGAPKIA(final int... values) { + bitField0_ |= 0x00000002; + dDNKEGAPKIA.addAll(values); + return this; + } + + @Override + public PDANDAJEPHK copyFrom(final PDANDAJEPHK other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + dDNKEGAPKIA.copyFrom(other.dDNKEGAPKIA); + } + return this; + } + + @Override + public PDANDAJEPHK mergeFrom(final PDANDAJEPHK other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasDDNKEGAPKIA()) { + getMutableDDNKEGAPKIA().addAll(other.dDNKEGAPKIA); + } + return this; + } + + @Override + public PDANDAJEPHK clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + dDNKEGAPKIA.clear(); + return this; + } + + @Override + public PDANDAJEPHK clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dDNKEGAPKIA.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PDANDAJEPHK)) { + return false; + } + PDANDAJEPHK other = (PDANDAJEPHK) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasDDNKEGAPKIA() || dDNKEGAPKIA.equals(other.dDNKEGAPKIA)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < dDNKEGAPKIA.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(dDNKEGAPKIA.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * dDNKEGAPKIA.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dDNKEGAPKIA); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PDANDAJEPHK mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dDNKEGAPKIA [packed=true] + input.readPackedUInt32(dDNKEGAPKIA, 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: { + // dDNKEGAPKIA [packed=false] + tag = input.readRepeatedUInt32(dDNKEGAPKIA, tag); + bitField0_ |= 0x00000002; + 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.writeRepeatedUInt32(FieldNames.dDNKEGAPKIA, dDNKEGAPKIA); + } + output.endObject(); + } + + @Override + public PDANDAJEPHK mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -888994859: { + if (input.isAtField(FieldNames.dDNKEGAPKIA)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(dDNKEGAPKIA); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PDANDAJEPHK clone() { + return new PDANDAJEPHK().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PDANDAJEPHK parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PDANDAJEPHK(), data).checkInitialized(); + } + + public static PDANDAJEPHK parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PDANDAJEPHK(), input).checkInitialized(); + } + + public static PDANDAJEPHK parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PDANDAJEPHK(), input).checkInitialized(); + } + + /** + * @return factory for creating PDANDAJEPHK messages + */ + public static MessageFactory getFactory() { + return PDANDAJEPHKFactory.INSTANCE; + } + + private enum PDANDAJEPHKFactory implements MessageFactory { + INSTANCE; + + @Override + public PDANDAJEPHK create() { + return PDANDAJEPHK.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName dDNKEGAPKIA = FieldName.forField("DDNKEGAPKIA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PropChessRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropChessRogueInfoOuterClass.java new file mode 100644 index 000000000..18a12aea8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PropChessRogueInfoOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class PropChessRogueInfoOuterClass { + /** + * Protobuf type {@code PropChessRogueInfo} + */ + public static final class PropChessRogueInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool enter_next_cell = 4; + */ + private boolean enterNextCell; + + /** + * optional bool AFLGOJIEAKE = 11; + */ + private boolean aFLGOJIEAKE; + + private PropChessRogueInfo() { + } + + /** + * @return a new empty instance of {@code PropChessRogueInfo} + */ + public static PropChessRogueInfo newInstance() { + return new PropChessRogueInfo(); + } + + /** + * optional bool enter_next_cell = 4; + * @return whether the enterNextCell field is set + */ + public boolean hasEnterNextCell() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool enter_next_cell = 4; + * @return this + */ + public PropChessRogueInfo clearEnterNextCell() { + bitField0_ &= ~0x00000001; + enterNextCell = false; + return this; + } + + /** + * optional bool enter_next_cell = 4; + * @return the enterNextCell + */ + public boolean getEnterNextCell() { + return enterNextCell; + } + + /** + * optional bool enter_next_cell = 4; + * @param value the enterNextCell to set + * @return this + */ + public PropChessRogueInfo setEnterNextCell(final boolean value) { + bitField0_ |= 0x00000001; + enterNextCell = value; + return this; + } + + /** + * optional bool AFLGOJIEAKE = 11; + * @return whether the aFLGOJIEAKE field is set + */ + public boolean hasAFLGOJIEAKE() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool AFLGOJIEAKE = 11; + * @return this + */ + public PropChessRogueInfo clearAFLGOJIEAKE() { + bitField0_ &= ~0x00000002; + aFLGOJIEAKE = false; + return this; + } + + /** + * optional bool AFLGOJIEAKE = 11; + * @return the aFLGOJIEAKE + */ + public boolean getAFLGOJIEAKE() { + return aFLGOJIEAKE; + } + + /** + * optional bool AFLGOJIEAKE = 11; + * @param value the aFLGOJIEAKE to set + * @return this + */ + public PropChessRogueInfo setAFLGOJIEAKE(final boolean value) { + bitField0_ |= 0x00000002; + aFLGOJIEAKE = value; + return this; + } + + @Override + public PropChessRogueInfo copyFrom(final PropChessRogueInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + enterNextCell = other.enterNextCell; + aFLGOJIEAKE = other.aFLGOJIEAKE; + } + return this; + } + + @Override + public PropChessRogueInfo mergeFrom(final PropChessRogueInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEnterNextCell()) { + setEnterNextCell(other.enterNextCell); + } + if (other.hasAFLGOJIEAKE()) { + setAFLGOJIEAKE(other.aFLGOJIEAKE); + } + return this; + } + + @Override + public PropChessRogueInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + enterNextCell = false; + aFLGOJIEAKE = false; + return this; + } + + @Override + public PropChessRogueInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PropChessRogueInfo)) { + return false; + } + PropChessRogueInfo other = (PropChessRogueInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEnterNextCell() || enterNextCell == other.enterNextCell) + && (!hasAFLGOJIEAKE() || aFLGOJIEAKE == other.aFLGOJIEAKE); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(enterNextCell); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(aFLGOJIEAKE); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PropChessRogueInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // enterNextCell + enterNextCell = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // aFLGOJIEAKE + aFLGOJIEAKE = input.readBool(); + 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.enterNextCell, enterNextCell); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.aFLGOJIEAKE, aFLGOJIEAKE); + } + output.endObject(); + } + + @Override + public PropChessRogueInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1613501971: + case -621745529: { + if (input.isAtField(FieldNames.enterNextCell)) { + if (!input.trySkipNullValue()) { + enterNextCell = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1130540388: { + if (input.isAtField(FieldNames.aFLGOJIEAKE)) { + if (!input.trySkipNullValue()) { + aFLGOJIEAKE = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PropChessRogueInfo clone() { + return new PropChessRogueInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PropChessRogueInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PropChessRogueInfo(), data).checkInitialized(); + } + + public static PropChessRogueInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PropChessRogueInfo(), input).checkInitialized(); + } + + public static PropChessRogueInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PropChessRogueInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PropChessRogueInfo messages + */ + public static MessageFactory getFactory() { + return PropChessRogueInfoFactory.INSTANCE; + } + + private enum PropChessRogueInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PropChessRogueInfo create() { + return PropChessRogueInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName enterNextCell = FieldName.forField("enterNextCell", "enter_next_cell"); + + static final FieldName aFLGOJIEAKE = FieldName.forField("AFLGOJIEAKE"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ReviveRogueAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReviveRogueAvatarCsReqOuterClass.java new file mode 100644 index 000000000..ba3c67c64 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ReviveRogueAvatarCsReqOuterClass.java @@ -0,0 +1,584 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ReviveRogueAvatarCsReqOuterClass { + /** + * Protobuf type {@code ReviveRogueAvatarCsReq} + */ + public static final class ReviveRogueAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 1; + */ + private int baseAvatarId; + + /** + * optional uint32 monster_id = 7; + */ + private int monsterId; + + /** + * repeated uint32 base_avatar_id_list = 9; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 trial_avatar_id_list = 11; + */ + private final RepeatedInt trialAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ReviveRogueAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code ReviveRogueAvatarCsReq} + */ + public static ReviveRogueAvatarCsReq newInstance() { + return new ReviveRogueAvatarCsReq(); + } + + /** + * optional uint32 base_avatar_id = 1; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 1; + * @return this + */ + public ReviveRogueAvatarCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 1; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 1; + * @param value the baseAvatarId to set + * @return this + */ + public ReviveRogueAvatarCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 monster_id = 7; + * @return whether the monsterId field is set + */ + public boolean hasMonsterId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 monster_id = 7; + * @return this + */ + public ReviveRogueAvatarCsReq clearMonsterId() { + bitField0_ &= ~0x00000002; + monsterId = 0; + return this; + } + + /** + * optional uint32 monster_id = 7; + * @return the monsterId + */ + public int getMonsterId() { + return monsterId; + } + + /** + * optional uint32 monster_id = 7; + * @param value the monsterId to set + * @return this + */ + public ReviveRogueAvatarCsReq setMonsterId(final int value) { + bitField0_ |= 0x00000002; + monsterId = value; + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 9; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 9; + * @return this + */ + public ReviveRogueAvatarCsReq clearBaseAvatarIdList() { + bitField0_ &= ~0x00000004; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 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 RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000004; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 9; + * @param value the baseAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarCsReq addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000004; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 9; + * @param values the baseAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarCsReq addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000004; + baseAvatarIdList.addAll(values); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 11; + * @return whether the trialAvatarIdList field is set + */ + public boolean hasTrialAvatarIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 trial_avatar_id_list = 11; + * @return this + */ + public ReviveRogueAvatarCsReq clearTrialAvatarIdList() { + bitField0_ &= ~0x00000008; + trialAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 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 #getMutableTrialAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTrialAvatarIdList() { + return trialAvatarIdList; + } + + /** + * repeated uint32 trial_avatar_id_list = 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 RepeatedInt getMutableTrialAvatarIdList() { + bitField0_ |= 0x00000008; + return trialAvatarIdList; + } + + /** + * repeated uint32 trial_avatar_id_list = 11; + * @param value the trialAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarCsReq addTrialAvatarIdList(final int value) { + bitField0_ |= 0x00000008; + trialAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 11; + * @param values the trialAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarCsReq addAllTrialAvatarIdList(final int... values) { + bitField0_ |= 0x00000008; + trialAvatarIdList.addAll(values); + return this; + } + + @Override + public ReviveRogueAvatarCsReq copyFrom(final ReviveRogueAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + monsterId = other.monsterId; + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + trialAvatarIdList.copyFrom(other.trialAvatarIdList); + } + return this; + } + + @Override + public ReviveRogueAvatarCsReq mergeFrom(final ReviveRogueAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + if (other.hasTrialAvatarIdList()) { + getMutableTrialAvatarIdList().addAll(other.trialAvatarIdList); + } + return this; + } + + @Override + public ReviveRogueAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + monsterId = 0; + baseAvatarIdList.clear(); + trialAvatarIdList.clear(); + return this; + } + + @Override + public ReviveRogueAvatarCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarIdList.clear(); + trialAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ReviveRogueAvatarCsReq)) { + return false; + } + ReviveRogueAvatarCsReq other = (ReviveRogueAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)) + && (!hasTrialAvatarIdList() || trialAvatarIdList.equals(other.trialAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(monsterId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < trialAvatarIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(trialAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * trialAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(trialAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ReviveRogueAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // monsterId + monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // trialAvatarIdList [packed=true] + input.readPackedUInt32(trialAvatarIdList, 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 72: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + break; + } + case 88: { + // trialAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(trialAvatarIdList, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.monsterId, monsterId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.trialAvatarIdList, trialAvatarIdList); + } + output.endObject(); + } + + @Override + public ReviveRogueAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { + if (!input.trySkipNullValue()) { + monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -794352312: + case -1441143643: { + if (input.isAtField(FieldNames.trialAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(trialAvatarIdList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ReviveRogueAvatarCsReq clone() { + return new ReviveRogueAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ReviveRogueAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ReviveRogueAvatarCsReq(), data).checkInitialized(); + } + + public static ReviveRogueAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ReviveRogueAvatarCsReq(), input).checkInitialized(); + } + + public static ReviveRogueAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ReviveRogueAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ReviveRogueAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return ReviveRogueAvatarCsReqFactory.INSTANCE; + } + + private enum ReviveRogueAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ReviveRogueAvatarCsReq create() { + return ReviveRogueAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + + static final FieldName trialAvatarIdList = FieldName.forField("trialAvatarIdList", "trial_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ReviveRogueAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReviveRogueAvatarScRspOuterClass.java new file mode 100644 index 000000000..ad94713eb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ReviveRogueAvatarScRspOuterClass.java @@ -0,0 +1,766 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class ReviveRogueAvatarScRspOuterClass { + /** + * Protobuf type {@code ReviveRogueAvatarScRsp} + */ + public static final class ReviveRogueAvatarScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 1; + */ + private int baseAvatarId; + + /** + * optional uint32 ICKFEEIPHDK = 6; + */ + private int iCKFEEIPHDK; + + /** + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional .RogueReviveInfo revive_info = 10; + */ + private final RogueReviveInfoOuterClass.RogueReviveInfo reviveInfo = RogueReviveInfoOuterClass.RogueReviveInfo.newInstance(); + + /** + * repeated uint32 base_avatar_id_list = 4; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 trial_avatar_id_list = 12; + */ + private final RepeatedInt trialAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ReviveRogueAvatarScRsp() { + } + + /** + * @return a new empty instance of {@code ReviveRogueAvatarScRsp} + */ + public static ReviveRogueAvatarScRsp newInstance() { + return new ReviveRogueAvatarScRsp(); + } + + /** + * optional uint32 base_avatar_id = 1; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 1; + * @return this + */ + public ReviveRogueAvatarScRsp clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 1; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 1; + * @param value the baseAvatarId to set + * @return this + */ + public ReviveRogueAvatarScRsp setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 ICKFEEIPHDK = 6; + * @return whether the iCKFEEIPHDK field is set + */ + public boolean hasICKFEEIPHDK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ICKFEEIPHDK = 6; + * @return this + */ + public ReviveRogueAvatarScRsp clearICKFEEIPHDK() { + bitField0_ &= ~0x00000002; + iCKFEEIPHDK = 0; + return this; + } + + /** + * optional uint32 ICKFEEIPHDK = 6; + * @return the iCKFEEIPHDK + */ + public int getICKFEEIPHDK() { + return iCKFEEIPHDK; + } + + /** + * optional uint32 ICKFEEIPHDK = 6; + * @param value the iCKFEEIPHDK to set + * @return this + */ + public ReviveRogueAvatarScRsp setICKFEEIPHDK(final int value) { + bitField0_ |= 0x00000002; + iCKFEEIPHDK = value; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 8; + * @return this + */ + public ReviveRogueAvatarScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public ReviveRogueAvatarScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional .RogueReviveInfo revive_info = 10; + * @return whether the reviveInfo field is set + */ + public boolean hasReviveInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueReviveInfo revive_info = 10; + * @return this + */ + public ReviveRogueAvatarScRsp clearReviveInfo() { + bitField0_ &= ~0x00000008; + reviveInfo.clear(); + return this; + } + + /** + * optional .RogueReviveInfo revive_info = 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 #getMutableReviveInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueReviveInfoOuterClass.RogueReviveInfo getReviveInfo() { + return reviveInfo; + } + + /** + * optional .RogueReviveInfo revive_info = 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 RogueReviveInfoOuterClass.RogueReviveInfo getMutableReviveInfo() { + bitField0_ |= 0x00000008; + return reviveInfo; + } + + /** + * optional .RogueReviveInfo revive_info = 10; + * @param value the reviveInfo to set + * @return this + */ + public ReviveRogueAvatarScRsp setReviveInfo( + final RogueReviveInfoOuterClass.RogueReviveInfo value) { + bitField0_ |= 0x00000008; + reviveInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @return this + */ + public ReviveRogueAvatarScRsp clearBaseAvatarIdList() { + bitField0_ &= ~0x00000010; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_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 RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000010; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @param value the baseAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarScRsp addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000010; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 4; + * @param values the baseAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarScRsp addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000010; + baseAvatarIdList.addAll(values); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 12; + * @return whether the trialAvatarIdList field is set + */ + public boolean hasTrialAvatarIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 trial_avatar_id_list = 12; + * @return this + */ + public ReviveRogueAvatarScRsp clearTrialAvatarIdList() { + bitField0_ &= ~0x00000020; + trialAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 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 #getMutableTrialAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTrialAvatarIdList() { + return trialAvatarIdList; + } + + /** + * repeated uint32 trial_avatar_id_list = 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 RepeatedInt getMutableTrialAvatarIdList() { + bitField0_ |= 0x00000020; + return trialAvatarIdList; + } + + /** + * repeated uint32 trial_avatar_id_list = 12; + * @param value the trialAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarScRsp addTrialAvatarIdList(final int value) { + bitField0_ |= 0x00000020; + trialAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 12; + * @param values the trialAvatarIdList to add + * @return this + */ + public ReviveRogueAvatarScRsp addAllTrialAvatarIdList(final int... values) { + bitField0_ |= 0x00000020; + trialAvatarIdList.addAll(values); + return this; + } + + @Override + public ReviveRogueAvatarScRsp copyFrom(final ReviveRogueAvatarScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + iCKFEEIPHDK = other.iCKFEEIPHDK; + retcode = other.retcode; + reviveInfo.copyFrom(other.reviveInfo); + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + trialAvatarIdList.copyFrom(other.trialAvatarIdList); + } + return this; + } + + @Override + public ReviveRogueAvatarScRsp mergeFrom(final ReviveRogueAvatarScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasICKFEEIPHDK()) { + setICKFEEIPHDK(other.iCKFEEIPHDK); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasReviveInfo()) { + getMutableReviveInfo().mergeFrom(other.reviveInfo); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + if (other.hasTrialAvatarIdList()) { + getMutableTrialAvatarIdList().addAll(other.trialAvatarIdList); + } + return this; + } + + @Override + public ReviveRogueAvatarScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + iCKFEEIPHDK = 0; + retcode = 0; + reviveInfo.clear(); + baseAvatarIdList.clear(); + trialAvatarIdList.clear(); + return this; + } + + @Override + public ReviveRogueAvatarScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clearQuick(); + baseAvatarIdList.clear(); + trialAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ReviveRogueAvatarScRsp)) { + return false; + } + ReviveRogueAvatarScRsp other = (ReviveRogueAvatarScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasICKFEEIPHDK() || iCKFEEIPHDK == other.iCKFEEIPHDK) + && (!hasRetcode() || retcode == other.retcode) + && (!hasReviveInfo() || reviveInfo.equals(other.reviveInfo)) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)) + && (!hasTrialAvatarIdList() || trialAvatarIdList.equals(other.trialAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(iCKFEEIPHDK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < trialAvatarIdList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(trialAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iCKFEEIPHDK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * trialAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(trialAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ReviveRogueAvatarScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // iCKFEEIPHDK + iCKFEEIPHDK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // reviveInfo + input.readMessage(reviveInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // trialAvatarIdList [packed=true] + input.readPackedUInt32(trialAvatarIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000010; + break; + } + case 96: { + // trialAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(trialAvatarIdList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.iCKFEEIPHDK, iCKFEEIPHDK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.reviveInfo, reviveInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.trialAvatarIdList, trialAvatarIdList); + } + output.endObject(); + } + + @Override + public ReviveRogueAvatarScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -133897709: { + if (input.isAtField(FieldNames.iCKFEEIPHDK)) { + if (!input.trySkipNullValue()) { + iCKFEEIPHDK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1426382941: + case -1248022184: { + if (input.isAtField(FieldNames.reviveInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(reviveInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -794352312: + case -1441143643: { + if (input.isAtField(FieldNames.trialAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(trialAvatarIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ReviveRogueAvatarScRsp clone() { + return new ReviveRogueAvatarScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ReviveRogueAvatarScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ReviveRogueAvatarScRsp(), data).checkInitialized(); + } + + public static ReviveRogueAvatarScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ReviveRogueAvatarScRsp(), input).checkInitialized(); + } + + public static ReviveRogueAvatarScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ReviveRogueAvatarScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ReviveRogueAvatarScRsp messages + */ + public static MessageFactory getFactory() { + return ReviveRogueAvatarScRspFactory.INSTANCE; + } + + private enum ReviveRogueAvatarScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ReviveRogueAvatarScRsp create() { + return ReviveRogueAvatarScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName iCKFEEIPHDK = FieldName.forField("ICKFEEIPHDK"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName reviveInfo = FieldName.forField("reviveInfo", "revive_info"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + + static final FieldName trialAvatarIdList = FieldName.forField("trialAvatarIdList", "trial_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectCallbackOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectCallbackOuterClass.java new file mode 100644 index 000000000..904620ba8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectCallbackOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class RogueBonusSelectCallbackOuterClass { + /** + * Protobuf type {@code RogueBonusSelectCallback} + */ + public static final class RogueBonusSelectCallback extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueBonusSelectCallback() { + } + + /** + * @return a new empty instance of {@code RogueBonusSelectCallback} + */ + public static RogueBonusSelectCallback newInstance() { + return new RogueBonusSelectCallback(); + } + + @Override + public RogueBonusSelectCallback copyFrom(final RogueBonusSelectCallback other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueBonusSelectCallback mergeFrom(final RogueBonusSelectCallback other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBonusSelectCallback clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBonusSelectCallback clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBonusSelectCallback)) { + return false; + } + RogueBonusSelectCallback other = (RogueBonusSelectCallback) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBonusSelectCallback mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public RogueBonusSelectCallback mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBonusSelectCallback clone() { + return new RogueBonusSelectCallback().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBonusSelectCallback parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBonusSelectCallback(), data).checkInitialized(); + } + + public static RogueBonusSelectCallback parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBonusSelectCallback(), input).checkInitialized(); + } + + public static RogueBonusSelectCallback parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBonusSelectCallback(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBonusSelectCallback messages + */ + public static MessageFactory getFactory() { + return RogueBonusSelectCallbackFactory.INSTANCE; + } + + private enum RogueBonusSelectCallbackFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBonusSelectCallback create() { + return RogueBonusSelectCallback.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBoothStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBoothStatusOuterClass.java new file mode 100644 index 000000000..ac22652af --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBoothStatusOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueBoothStatusOuterClass { + /** + * Protobuf enum {@code RogueBoothStatus} + */ + public enum RogueBoothStatus implements ProtoEnum { + /** + * ROGUE_BOOTH_NONE = 0; + */ + ROGUE_BOOTH_NONE("ROGUE_BOOTH_NONE", 0), + + /** + * ROGUE_BOOTH_EMPTY = 1; + */ + ROGUE_BOOTH_EMPTY("ROGUE_BOOTH_EMPTY", 1), + + /** + * ROGUE_BOOTH_DISPLAY = 2; + */ + ROGUE_BOOTH_DISPLAY("ROGUE_BOOTH_DISPLAY", 2); + + /** + * ROGUE_BOOTH_NONE = 0; + */ + public static final int ROGUE_BOOTH_NONE_VALUE = 0; + + /** + * ROGUE_BOOTH_EMPTY = 1; + */ + public static final int ROGUE_BOOTH_EMPTY_VALUE = 1; + + /** + * ROGUE_BOOTH_DISPLAY = 2; + */ + public static final int ROGUE_BOOTH_DISPLAY_VALUE = 2; + + private final String name; + + private final int number; + + private RogueBoothStatus(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 RogueBoothStatusConverter.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 RogueBoothStatus forNumber(int value) { + return RogueBoothStatusConverter.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 RogueBoothStatus forNumberOr(int number, RogueBoothStatus other) { + RogueBoothStatus value = forNumber(number); + return value == null ? other : value; + } + + enum RogueBoothStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueBoothStatus[] lookup = new RogueBoothStatus[3]; + + static { + lookup[0] = ROGUE_BOOTH_NONE; + lookup[1] = ROGUE_BOOTH_EMPTY; + lookup[2] = ROGUE_BOOTH_DISPLAY; + } + + @Override + public final RogueBoothStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueBoothStatus forName(final CharSequence value) { + if (value.length() == 16) { + if (ProtoUtil.isEqual("ROGUE_BOOTH_NONE", value)) { + return ROGUE_BOOTH_NONE; + } + } + if (value.length() == 17) { + if (ProtoUtil.isEqual("ROGUE_BOOTH_EMPTY", value)) { + return ROGUE_BOOTH_EMPTY; + } + } + if (value.length() == 19) { + if (ProtoUtil.isEqual("ROGUE_BOOTH_DISPLAY", value)) { + return ROGUE_BOOTH_DISPLAY; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoListOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoListOuterClass.java new file mode 100644 index 000000000..cfa8b5959 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoListOuterClass.java @@ -0,0 +1,298 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class RogueBuffEnhanceInfoListOuterClass { + /** + * Protobuf type {@code RogueBuffEnhanceInfoList} + */ + public static final class RogueBuffEnhanceInfoList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 7; + */ + private final RepeatedMessage enhanceInfoList = RepeatedMessage.newEmptyInstance(RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo.getFactory()); + + private RogueBuffEnhanceInfoList() { + } + + /** + * @return a new empty instance of {@code RogueBuffEnhanceInfoList} + */ + public static RogueBuffEnhanceInfoList newInstance() { + return new RogueBuffEnhanceInfoList(); + } + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 7; + * @return whether the enhanceInfoList field is set + */ + public boolean hasEnhanceInfoList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 7; + * @return this + */ + public RogueBuffEnhanceInfoList clearEnhanceInfoList() { + bitField0_ &= ~0x00000001; + enhanceInfoList.clear(); + return this; + } + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 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 #getMutableEnhanceInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEnhanceInfoList( + ) { + return enhanceInfoList; + } + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 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 getMutableEnhanceInfoList( + ) { + bitField0_ |= 0x00000001; + return enhanceInfoList; + } + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 7; + * @param value the enhanceInfoList to add + * @return this + */ + public RogueBuffEnhanceInfoList addEnhanceInfoList( + final RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo value) { + bitField0_ |= 0x00000001; + enhanceInfoList.add(value); + return this; + } + + /** + * repeated .RogueBuffEnhanceInfo enhance_info_list = 7; + * @param values the enhanceInfoList to add + * @return this + */ + public RogueBuffEnhanceInfoList addAllEnhanceInfoList( + final RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo... values) { + bitField0_ |= 0x00000001; + enhanceInfoList.addAll(values); + return this; + } + + @Override + public RogueBuffEnhanceInfoList copyFrom(final RogueBuffEnhanceInfoList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + enhanceInfoList.copyFrom(other.enhanceInfoList); + } + return this; + } + + @Override + public RogueBuffEnhanceInfoList mergeFrom(final RogueBuffEnhanceInfoList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEnhanceInfoList()) { + getMutableEnhanceInfoList().addAll(other.enhanceInfoList); + } + return this; + } + + @Override + public RogueBuffEnhanceInfoList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + enhanceInfoList.clear(); + return this; + } + + @Override + public RogueBuffEnhanceInfoList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + enhanceInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffEnhanceInfoList)) { + return false; + } + RogueBuffEnhanceInfoList other = (RogueBuffEnhanceInfoList) o; + return bitField0_ == other.bitField0_ + && (!hasEnhanceInfoList() || enhanceInfoList.equals(other.enhanceInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < enhanceInfoList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(enhanceInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * enhanceInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(enhanceInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBuffEnhanceInfoList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // enhanceInfoList + tag = input.readRepeatedMessage(enhanceInfoList, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.enhanceInfoList, enhanceInfoList); + } + output.endObject(); + } + + @Override + public RogueBuffEnhanceInfoList mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1350900538: + case -88113858: { + if (input.isAtField(FieldNames.enhanceInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(enhanceInfoList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBuffEnhanceInfoList clone() { + return new RogueBuffEnhanceInfoList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffEnhanceInfoList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffEnhanceInfoList(), data).checkInitialized(); + } + + public static RogueBuffEnhanceInfoList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffEnhanceInfoList(), input).checkInitialized(); + } + + public static RogueBuffEnhanceInfoList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffEnhanceInfoList(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffEnhanceInfoList messages + */ + public static MessageFactory getFactory() { + return RogueBuffEnhanceInfoListFactory.INSTANCE; + } + + private enum RogueBuffEnhanceInfoListFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffEnhanceInfoList create() { + return RogueBuffEnhanceInfoList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName enhanceInfoList = FieldName.forField("enhanceInfoList", "enhance_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffRerollCallbackOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffRerollCallbackOuterClass.java new file mode 100644 index 000000000..9c75970f2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffRerollCallbackOuterClass.java @@ -0,0 +1,283 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueBuffRerollCallbackOuterClass { + /** + * Protobuf type {@code RogueBuffRerollCallback} + */ + public static final class RogueBuffRerollCallback extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 7; + */ + private final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo buffSelectInfo = RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo.newInstance(); + + private RogueBuffRerollCallback() { + } + + /** + * @return a new empty instance of {@code RogueBuffRerollCallback} + */ + public static RogueBuffRerollCallback newInstance() { + return new RogueBuffRerollCallback(); + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 7; + * @return whether the buffSelectInfo field is set + */ + public boolean hasBuffSelectInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 7; + * @return this + */ + public RogueBuffRerollCallback clearBuffSelectInfo() { + bitField0_ &= ~0x00000001; + buffSelectInfo.clear(); + return this; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 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 #getMutableBuffSelectInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getBuffSelectInfo() { + return buffSelectInfo; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 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 RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getMutableBuffSelectInfo( + ) { + bitField0_ |= 0x00000001; + return buffSelectInfo; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 7; + * @param value the buffSelectInfo to set + * @return this + */ + public RogueBuffRerollCallback setBuffSelectInfo( + final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo value) { + bitField0_ |= 0x00000001; + buffSelectInfo.copyFrom(value); + return this; + } + + @Override + public RogueBuffRerollCallback copyFrom(final RogueBuffRerollCallback other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffSelectInfo.copyFrom(other.buffSelectInfo); + } + return this; + } + + @Override + public RogueBuffRerollCallback mergeFrom(final RogueBuffRerollCallback other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffSelectInfo()) { + getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); + } + return this; + } + + @Override + public RogueBuffRerollCallback clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffSelectInfo.clear(); + return this; + } + + @Override + public RogueBuffRerollCallback clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffSelectInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffRerollCallback)) { + return false; + } + RogueBuffRerollCallback other = (RogueBuffRerollCallback) o; + return bitField0_ == other.bitField0_ + && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(buffSelectInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBuffRerollCallback mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // buffSelectInfo + input.readMessage(buffSelectInfo); + 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.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); + } + output.endObject(); + } + + @Override + public RogueBuffRerollCallback mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -255242115: + case 1500540965: { + if (input.isAtField(FieldNames.buffSelectInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(buffSelectInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBuffRerollCallback clone() { + return new RogueBuffRerollCallback().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffRerollCallback parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffRerollCallback(), data).checkInitialized(); + } + + public static RogueBuffRerollCallback parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffRerollCallback(), input).checkInitialized(); + } + + public static RogueBuffRerollCallback parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffRerollCallback(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffRerollCallback messages + */ + public static MessageFactory getFactory() { + return RogueBuffRerollCallbackFactory.INSTANCE; + } + + private enum RogueBuffRerollCallbackFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffRerollCallback create() { + return RogueBuffRerollCallback.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffRerollResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffRerollResultOuterClass.java new file mode 100644 index 000000000..0b7e67641 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffRerollResultOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class RogueBuffRerollResultOuterClass { + /** + * Protobuf type {@code RogueBuffRerollResult} + */ + public static final class RogueBuffRerollResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueBuffRerollResult() { + } + + /** + * @return a new empty instance of {@code RogueBuffRerollResult} + */ + public static RogueBuffRerollResult newInstance() { + return new RogueBuffRerollResult(); + } + + @Override + public RogueBuffRerollResult copyFrom(final RogueBuffRerollResult other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueBuffRerollResult mergeFrom(final RogueBuffRerollResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffRerollResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffRerollResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffRerollResult)) { + return false; + } + RogueBuffRerollResult other = (RogueBuffRerollResult) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBuffRerollResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public RogueBuffRerollResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBuffRerollResult clone() { + return new RogueBuffRerollResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffRerollResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffRerollResult(), data).checkInitialized(); + } + + public static RogueBuffRerollResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffRerollResult(), input).checkInitialized(); + } + + public static RogueBuffRerollResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffRerollResult(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffRerollResult messages + */ + public static MessageFactory getFactory() { + return RogueBuffRerollResultFactory.INSTANCE; + } + + private enum RogueBuffRerollResultFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffRerollResult create() { + return RogueBuffRerollResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectCallbackOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectCallbackOuterClass.java new file mode 100644 index 000000000..655bf3c1c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectCallbackOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class RogueBuffSelectCallbackOuterClass { + /** + * Protobuf type {@code RogueBuffSelectCallback} + */ + public static final class RogueBuffSelectCallback extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueBuffSelectCallback() { + } + + /** + * @return a new empty instance of {@code RogueBuffSelectCallback} + */ + public static RogueBuffSelectCallback newInstance() { + return new RogueBuffSelectCallback(); + } + + @Override + public RogueBuffSelectCallback copyFrom(final RogueBuffSelectCallback other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueBuffSelectCallback mergeFrom(final RogueBuffSelectCallback other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffSelectCallback clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffSelectCallback clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffSelectCallback)) { + return false; + } + RogueBuffSelectCallback other = (RogueBuffSelectCallback) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBuffSelectCallback mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public RogueBuffSelectCallback mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBuffSelectCallback clone() { + return new RogueBuffSelectCallback().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffSelectCallback parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffSelectCallback(), data).checkInitialized(); + } + + public static RogueBuffSelectCallback parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffSelectCallback(), input).checkInitialized(); + } + + public static RogueBuffSelectCallback parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffSelectCallback(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffSelectCallback messages + */ + public static MessageFactory getFactory() { + return RogueBuffSelectCallbackFactory.INSTANCE; + } + + private enum RogueBuffSelectCallbackFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffSelectCallback create() { + return RogueBuffSelectCallback.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectResultOuterClass.java new file mode 100644 index 000000000..aafc57ec2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectResultOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueBuffSelectResultOuterClass { + /** + * Protobuf type {@code RogueBuffSelectResult} + */ + public static final class RogueBuffSelectResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 buff_select_id = 4; + */ + private int buffSelectId; + + private RogueBuffSelectResult() { + } + + /** + * @return a new empty instance of {@code RogueBuffSelectResult} + */ + public static RogueBuffSelectResult newInstance() { + return new RogueBuffSelectResult(); + } + + /** + * optional uint32 buff_select_id = 4; + * @return whether the buffSelectId field is set + */ + public boolean hasBuffSelectId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 buff_select_id = 4; + * @return this + */ + public RogueBuffSelectResult clearBuffSelectId() { + bitField0_ &= ~0x00000001; + buffSelectId = 0; + return this; + } + + /** + * optional uint32 buff_select_id = 4; + * @return the buffSelectId + */ + public int getBuffSelectId() { + return buffSelectId; + } + + /** + * optional uint32 buff_select_id = 4; + * @param value the buffSelectId to set + * @return this + */ + public RogueBuffSelectResult setBuffSelectId(final int value) { + bitField0_ |= 0x00000001; + buffSelectId = value; + return this; + } + + @Override + public RogueBuffSelectResult copyFrom(final RogueBuffSelectResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffSelectId = other.buffSelectId; + } + return this; + } + + @Override + public RogueBuffSelectResult mergeFrom(final RogueBuffSelectResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffSelectId()) { + setBuffSelectId(other.buffSelectId); + } + return this; + } + + @Override + public RogueBuffSelectResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffSelectId = 0; + return this; + } + + @Override + public RogueBuffSelectResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffSelectResult)) { + return false; + } + RogueBuffSelectResult other = (RogueBuffSelectResult) o; + return bitField0_ == other.bitField0_ + && (!hasBuffSelectId() || buffSelectId == other.buffSelectId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(buffSelectId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffSelectId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBuffSelectResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // buffSelectId + buffSelectId = input.readUInt32(); + 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.writeUInt32(FieldNames.buffSelectId, buffSelectId); + } + output.endObject(); + } + + @Override + public RogueBuffSelectResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1309761366: + case 497650258: { + if (input.isAtField(FieldNames.buffSelectId)) { + if (!input.trySkipNullValue()) { + buffSelectId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBuffSelectResult clone() { + return new RogueBuffSelectResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffSelectResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffSelectResult(), data).checkInitialized(); + } + + public static RogueBuffSelectResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffSelectResult(), input).checkInitialized(); + } + + public static RogueBuffSelectResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffSelectResult(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffSelectResult messages + */ + public static MessageFactory getFactory() { + return RogueBuffSelectResultFactory.INSTANCE; + } + + private enum RogueBuffSelectResultFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffSelectResult create() { + return RogueBuffSelectResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buffSelectId = FieldName.forField("buffSelectId", "buff_select_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCollectionExhibitionOperateTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCollectionExhibitionOperateTypeOuterClass.java new file mode 100644 index 000000000..3d5e49ccd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCollectionExhibitionOperateTypeOuterClass.java @@ -0,0 +1,133 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueCollectionExhibitionOperateTypeOuterClass { + /** + * Protobuf enum {@code RogueCollectionExhibitionOperateType} + */ + public enum RogueCollectionExhibitionOperateType implements ProtoEnum { + /** + * ROGUE_COLLECTION_OPERATE_NONE = 0; + */ + ROGUE_COLLECTION_OPERATE_NONE("ROGUE_COLLECTION_OPERATE_NONE", 0), + + /** + * ROGUE_COLLECTION_OPERATE_SET = 1; + */ + ROGUE_COLLECTION_OPERATE_SET("ROGUE_COLLECTION_OPERATE_SET", 1), + + /** + * ROGUE_COLLECTION_OPERATE_UNSET = 2; + */ + ROGUE_COLLECTION_OPERATE_UNSET("ROGUE_COLLECTION_OPERATE_UNSET", 2); + + /** + * ROGUE_COLLECTION_OPERATE_NONE = 0; + */ + public static final int ROGUE_COLLECTION_OPERATE_NONE_VALUE = 0; + + /** + * ROGUE_COLLECTION_OPERATE_SET = 1; + */ + public static final int ROGUE_COLLECTION_OPERATE_SET_VALUE = 1; + + /** + * ROGUE_COLLECTION_OPERATE_UNSET = 2; + */ + public static final int ROGUE_COLLECTION_OPERATE_UNSET_VALUE = 2; + + private final String name; + + private final int number; + + private RogueCollectionExhibitionOperateType(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 RogueCollectionExhibitionOperateTypeConverter.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 RogueCollectionExhibitionOperateType forNumber(int value) { + return RogueCollectionExhibitionOperateTypeConverter.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 RogueCollectionExhibitionOperateType forNumberOr(int number, + RogueCollectionExhibitionOperateType other) { + RogueCollectionExhibitionOperateType value = forNumber(number); + return value == null ? other : value; + } + + enum RogueCollectionExhibitionOperateTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueCollectionExhibitionOperateType[] lookup = new RogueCollectionExhibitionOperateType[3]; + + static { + lookup[0] = ROGUE_COLLECTION_OPERATE_NONE; + lookup[1] = ROGUE_COLLECTION_OPERATE_SET; + lookup[2] = ROGUE_COLLECTION_OPERATE_UNSET; + } + + @Override + public final RogueCollectionExhibitionOperateType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueCollectionExhibitionOperateType forName(final CharSequence value) { + if (value.length() == 28) { + if (ProtoUtil.isEqual("ROGUE_COLLECTION_OPERATE_SET", value)) { + return ROGUE_COLLECTION_OPERATE_SET; + } + } + if (value.length() == 29) { + if (ProtoUtil.isEqual("ROGUE_COLLECTION_OPERATE_NONE", value)) { + return ROGUE_COLLECTION_OPERATE_NONE; + } + } + if (value.length() == 30) { + if (ProtoUtil.isEqual("ROGUE_COLLECTION_OPERATE_UNSET", value)) { + return ROGUE_COLLECTION_OPERATE_UNSET; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCollectionStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCollectionStatusOuterClass.java new file mode 100644 index 000000000..e6a3e3ec0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCollectionStatusOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueCollectionStatusOuterClass { + /** + * Protobuf enum {@code RogueCollectionStatus} + */ + public enum RogueCollectionStatus implements ProtoEnum { + /** + * ROGUE_COLLECTION_NONE = 0; + */ + ROGUE_COLLECTION_NONE("ROGUE_COLLECTION_NONE", 0), + + /** + * ROGUE_COLLECTION_UNLOCKED = 1; + */ + ROGUE_COLLECTION_UNLOCKED("ROGUE_COLLECTION_UNLOCKED", 1), + + /** + * ROGUE_COLLECTION_DISPLAY = 2; + */ + ROGUE_COLLECTION_DISPLAY("ROGUE_COLLECTION_DISPLAY", 2); + + /** + * ROGUE_COLLECTION_NONE = 0; + */ + public static final int ROGUE_COLLECTION_NONE_VALUE = 0; + + /** + * ROGUE_COLLECTION_UNLOCKED = 1; + */ + public static final int ROGUE_COLLECTION_UNLOCKED_VALUE = 1; + + /** + * ROGUE_COLLECTION_DISPLAY = 2; + */ + public static final int ROGUE_COLLECTION_DISPLAY_VALUE = 2; + + private final String name; + + private final int number; + + private RogueCollectionStatus(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 RogueCollectionStatusConverter.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 RogueCollectionStatus forNumber(int value) { + return RogueCollectionStatusConverter.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 RogueCollectionStatus forNumberOr(int number, RogueCollectionStatus other) { + RogueCollectionStatus value = forNumber(number); + return value == null ? other : value; + } + + enum RogueCollectionStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueCollectionStatus[] lookup = new RogueCollectionStatus[3]; + + static { + lookup[0] = ROGUE_COLLECTION_NONE; + lookup[1] = ROGUE_COLLECTION_UNLOCKED; + lookup[2] = ROGUE_COLLECTION_DISPLAY; + } + + @Override + public final RogueCollectionStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueCollectionStatus forName(final CharSequence value) { + if (value.length() == 21) { + if (ProtoUtil.isEqual("ROGUE_COLLECTION_NONE", value)) { + return ROGUE_COLLECTION_NONE; + } + } + if (value.length() == 24) { + if (ProtoUtil.isEqual("ROGUE_COLLECTION_DISPLAY", value)) { + return ROGUE_COLLECTION_DISPLAY; + } + } + if (value.length() == 25) { + if (ProtoUtil.isEqual("ROGUE_COLLECTION_UNLOCKED", value)) { + return ROGUE_COLLECTION_UNLOCKED; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDataOuterClass.java new file mode 100644 index 000000000..9b7fd62dd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDataOuterClass.java @@ -0,0 +1,1119 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonActionResultDataOuterClass { + /** + * Protobuf type {@code RogueCommonActionResultData} + */ + public static final class RogueCommonActionResultData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueCommonMoney remove_item_list = 2; + */ + private final RogueCommonMoneyOuterClass.RogueCommonMoney removeItemList = RogueCommonMoneyOuterClass.RogueCommonMoney.newInstance(); + + /** + * optional .RogueCommonMoney get_item_list = 6; + */ + private final RogueCommonMoneyOuterClass.RogueCommonMoney getItemList = RogueCommonMoneyOuterClass.RogueCommonMoney.newInstance(); + + /** + *
+     * EHLDCELKDKB KDGKHHFHFBJ = 1017;
+     * AFKGDNPFJAA DHHFCKKDFNJ = 861;
+     * FGOIJBNMIEP ONGBGHBJBBF = 217;
+     * FBIOOAHFDEM EKMBBHEHEPC = 1386;
+     * LPPPBHGHJDF HEIJFDDMMFJ = 265;
+     * KOMCCJGJHNM MICOCBNMEAJ = 330;
+     * 
+ * + * optional .RogueCommonFormula get_formula_list = 776; + */ + private final RogueCommonFormulaOuterClass.RogueCommonFormula getFormulaList = RogueCommonFormulaOuterClass.RogueCommonFormula.newInstance(); + + /** + * optional .RogueCommonMiracle get_miracle_list = 1263; + */ + private final RogueCommonMiracleOuterClass.RogueCommonMiracle getMiracleList = RogueCommonMiracleOuterClass.RogueCommonMiracle.newInstance(); + + /** + *
+     * BANENCLAHFH NKMIJHMBCJE = 2044;
+     * JCEGOHOHIGK GACMJKONLPO = 1519;
+     * FCKINKMKFOJ KDHCEKHEIEK = 1280;
+     * MEPPCFCOCMC OCFHDHJHOLH = 1843;
+     * 
+ * + * optional .RogueCommonKeyword get_keyword_list = 1434; + */ + private final RogueCommonKeywordOuterClass.RogueCommonKeyword getKeywordList = RogueCommonKeywordOuterClass.RogueCommonKeyword.newInstance(); + + /** + * optional .RogueCommonBuff remove_buff_list = 1544; + */ + private final RogueCommonBuffOuterClass.RogueCommonBuff removeBuffList = RogueCommonBuffOuterClass.RogueCommonBuff.newInstance(); + + /** + * optional .RogueCommonBuff get_buff_list = 1884; + */ + private final RogueCommonBuffOuterClass.RogueCommonBuff getBuffList = RogueCommonBuffOuterClass.RogueCommonBuff.newInstance(); + + private RogueCommonActionResultData() { + } + + /** + * @return a new empty instance of {@code RogueCommonActionResultData} + */ + public static RogueCommonActionResultData newInstance() { + return new RogueCommonActionResultData(); + } + + public boolean hasResultData() { + return (((bitField0_ & 0x0000007f)) != 0); + } + + public RogueCommonActionResultData clearResultData() { + if (hasResultData()) { + clearRemoveItemList(); + clearGetItemList(); + clearGetFormulaList(); + clearGetMiracleList(); + clearGetKeywordList(); + clearRemoveBuffList(); + clearGetBuffList(); + } + return this; + } + + private void clearResultDataOtherRemoveItemList() { + if ((((bitField0_ & 0x0000007e)) != 0)) { + clearGetItemList(); + clearGetFormulaList(); + clearGetMiracleList(); + clearGetKeywordList(); + clearRemoveBuffList(); + clearGetBuffList(); + } + } + + private void clearResultDataOtherGetItemList() { + if ((((bitField0_ & 0x0000007d)) != 0)) { + clearRemoveItemList(); + clearGetFormulaList(); + clearGetMiracleList(); + clearGetKeywordList(); + clearRemoveBuffList(); + clearGetBuffList(); + } + } + + private void clearResultDataOtherGetFormulaList() { + if ((((bitField0_ & 0x0000007b)) != 0)) { + clearRemoveItemList(); + clearGetItemList(); + clearGetMiracleList(); + clearGetKeywordList(); + clearRemoveBuffList(); + clearGetBuffList(); + } + } + + private void clearResultDataOtherGetMiracleList() { + if ((((bitField0_ & 0x00000077)) != 0)) { + clearRemoveItemList(); + clearGetItemList(); + clearGetFormulaList(); + clearGetKeywordList(); + clearRemoveBuffList(); + clearGetBuffList(); + } + } + + private void clearResultDataOtherGetKeywordList() { + if ((((bitField0_ & 0x0000006f)) != 0)) { + clearRemoveItemList(); + clearGetItemList(); + clearGetFormulaList(); + clearGetMiracleList(); + clearRemoveBuffList(); + clearGetBuffList(); + } + } + + private void clearResultDataOtherRemoveBuffList() { + if ((((bitField0_ & 0x0000005f)) != 0)) { + clearRemoveItemList(); + clearGetItemList(); + clearGetFormulaList(); + clearGetMiracleList(); + clearGetKeywordList(); + clearGetBuffList(); + } + } + + private void clearResultDataOtherGetBuffList() { + if ((((bitField0_ & 0x0000003f)) != 0)) { + clearRemoveItemList(); + clearGetItemList(); + clearGetFormulaList(); + clearGetMiracleList(); + clearGetKeywordList(); + clearRemoveBuffList(); + } + } + + /** + * optional .RogueCommonMoney remove_item_list = 2; + * @return whether the removeItemList field is set + */ + public boolean hasRemoveItemList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueCommonMoney remove_item_list = 2; + * @return this + */ + public RogueCommonActionResultData clearRemoveItemList() { + bitField0_ &= ~0x00000001; + removeItemList.clear(); + return this; + } + + /** + * optional .RogueCommonMoney remove_item_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 #getMutableRemoveItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonMoneyOuterClass.RogueCommonMoney getRemoveItemList() { + return removeItemList; + } + + /** + * optional .RogueCommonMoney remove_item_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 RogueCommonMoneyOuterClass.RogueCommonMoney getMutableRemoveItemList() { + clearResultDataOtherRemoveItemList(); + bitField0_ |= 0x00000001; + return removeItemList; + } + + /** + * optional .RogueCommonMoney remove_item_list = 2; + * @param value the removeItemList to set + * @return this + */ + public RogueCommonActionResultData setRemoveItemList( + final RogueCommonMoneyOuterClass.RogueCommonMoney value) { + clearResultDataOtherRemoveItemList(); + bitField0_ |= 0x00000001; + removeItemList.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonMoney get_item_list = 6; + * @return whether the getItemList field is set + */ + public boolean hasGetItemList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueCommonMoney get_item_list = 6; + * @return this + */ + public RogueCommonActionResultData clearGetItemList() { + bitField0_ &= ~0x00000002; + getItemList.clear(); + return this; + } + + /** + * optional .RogueCommonMoney get_item_list = 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 #getMutableGetItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonMoneyOuterClass.RogueCommonMoney getGetItemList() { + return getItemList; + } + + /** + * optional .RogueCommonMoney get_item_list = 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 RogueCommonMoneyOuterClass.RogueCommonMoney getMutableGetItemList() { + clearResultDataOtherGetItemList(); + bitField0_ |= 0x00000002; + return getItemList; + } + + /** + * optional .RogueCommonMoney get_item_list = 6; + * @param value the getItemList to set + * @return this + */ + public RogueCommonActionResultData setGetItemList( + final RogueCommonMoneyOuterClass.RogueCommonMoney value) { + clearResultDataOtherGetItemList(); + bitField0_ |= 0x00000002; + getItemList.copyFrom(value); + return this; + } + + /** + *
+     * EHLDCELKDKB KDGKHHFHFBJ = 1017;
+     * AFKGDNPFJAA DHHFCKKDFNJ = 861;
+     * FGOIJBNMIEP ONGBGHBJBBF = 217;
+     * FBIOOAHFDEM EKMBBHEHEPC = 1386;
+     * LPPPBHGHJDF HEIJFDDMMFJ = 265;
+     * KOMCCJGJHNM MICOCBNMEAJ = 330;
+     * 
+ * + * optional .RogueCommonFormula get_formula_list = 776; + * @return whether the getFormulaList field is set + */ + public boolean hasGetFormulaList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * EHLDCELKDKB KDGKHHFHFBJ = 1017;
+     * AFKGDNPFJAA DHHFCKKDFNJ = 861;
+     * FGOIJBNMIEP ONGBGHBJBBF = 217;
+     * FBIOOAHFDEM EKMBBHEHEPC = 1386;
+     * LPPPBHGHJDF HEIJFDDMMFJ = 265;
+     * KOMCCJGJHNM MICOCBNMEAJ = 330;
+     * 
+ * + * optional .RogueCommonFormula get_formula_list = 776; + * @return this + */ + public RogueCommonActionResultData clearGetFormulaList() { + bitField0_ &= ~0x00000004; + getFormulaList.clear(); + return this; + } + + /** + *
+     * EHLDCELKDKB KDGKHHFHFBJ = 1017;
+     * AFKGDNPFJAA DHHFCKKDFNJ = 861;
+     * FGOIJBNMIEP ONGBGHBJBBF = 217;
+     * FBIOOAHFDEM EKMBBHEHEPC = 1386;
+     * LPPPBHGHJDF HEIJFDDMMFJ = 265;
+     * KOMCCJGJHNM MICOCBNMEAJ = 330;
+     * 
+ * + * optional .RogueCommonFormula get_formula_list = 776; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGetFormulaList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonFormulaOuterClass.RogueCommonFormula getGetFormulaList() { + return getFormulaList; + } + + /** + *
+     * EHLDCELKDKB KDGKHHFHFBJ = 1017;
+     * AFKGDNPFJAA DHHFCKKDFNJ = 861;
+     * FGOIJBNMIEP ONGBGHBJBBF = 217;
+     * FBIOOAHFDEM EKMBBHEHEPC = 1386;
+     * LPPPBHGHJDF HEIJFDDMMFJ = 265;
+     * KOMCCJGJHNM MICOCBNMEAJ = 330;
+     * 
+ * + * optional .RogueCommonFormula get_formula_list = 776; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonFormulaOuterClass.RogueCommonFormula getMutableGetFormulaList() { + clearResultDataOtherGetFormulaList(); + bitField0_ |= 0x00000004; + return getFormulaList; + } + + /** + *
+     * EHLDCELKDKB KDGKHHFHFBJ = 1017;
+     * AFKGDNPFJAA DHHFCKKDFNJ = 861;
+     * FGOIJBNMIEP ONGBGHBJBBF = 217;
+     * FBIOOAHFDEM EKMBBHEHEPC = 1386;
+     * LPPPBHGHJDF HEIJFDDMMFJ = 265;
+     * KOMCCJGJHNM MICOCBNMEAJ = 330;
+     * 
+ * + * optional .RogueCommonFormula get_formula_list = 776; + * @param value the getFormulaList to set + * @return this + */ + public RogueCommonActionResultData setGetFormulaList( + final RogueCommonFormulaOuterClass.RogueCommonFormula value) { + clearResultDataOtherGetFormulaList(); + bitField0_ |= 0x00000004; + getFormulaList.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonMiracle get_miracle_list = 1263; + * @return whether the getMiracleList field is set + */ + public boolean hasGetMiracleList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueCommonMiracle get_miracle_list = 1263; + * @return this + */ + public RogueCommonActionResultData clearGetMiracleList() { + bitField0_ &= ~0x00000008; + getMiracleList.clear(); + return this; + } + + /** + * optional .RogueCommonMiracle get_miracle_list = 1263; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGetMiracleList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonMiracleOuterClass.RogueCommonMiracle getGetMiracleList() { + return getMiracleList; + } + + /** + * optional .RogueCommonMiracle get_miracle_list = 1263; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonMiracleOuterClass.RogueCommonMiracle getMutableGetMiracleList() { + clearResultDataOtherGetMiracleList(); + bitField0_ |= 0x00000008; + return getMiracleList; + } + + /** + * optional .RogueCommonMiracle get_miracle_list = 1263; + * @param value the getMiracleList to set + * @return this + */ + public RogueCommonActionResultData setGetMiracleList( + final RogueCommonMiracleOuterClass.RogueCommonMiracle value) { + clearResultDataOtherGetMiracleList(); + bitField0_ |= 0x00000008; + getMiracleList.copyFrom(value); + return this; + } + + /** + *
+     * BANENCLAHFH NKMIJHMBCJE = 2044;
+     * JCEGOHOHIGK GACMJKONLPO = 1519;
+     * FCKINKMKFOJ KDHCEKHEIEK = 1280;
+     * MEPPCFCOCMC OCFHDHJHOLH = 1843;
+     * 
+ * + * optional .RogueCommonKeyword get_keyword_list = 1434; + * @return whether the getKeywordList field is set + */ + public boolean hasGetKeywordList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     * BANENCLAHFH NKMIJHMBCJE = 2044;
+     * JCEGOHOHIGK GACMJKONLPO = 1519;
+     * FCKINKMKFOJ KDHCEKHEIEK = 1280;
+     * MEPPCFCOCMC OCFHDHJHOLH = 1843;
+     * 
+ * + * optional .RogueCommonKeyword get_keyword_list = 1434; + * @return this + */ + public RogueCommonActionResultData clearGetKeywordList() { + bitField0_ &= ~0x00000010; + getKeywordList.clear(); + return this; + } + + /** + *
+     * BANENCLAHFH NKMIJHMBCJE = 2044;
+     * JCEGOHOHIGK GACMJKONLPO = 1519;
+     * FCKINKMKFOJ KDHCEKHEIEK = 1280;
+     * MEPPCFCOCMC OCFHDHJHOLH = 1843;
+     * 
+ * + * optional .RogueCommonKeyword get_keyword_list = 1434; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGetKeywordList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonKeywordOuterClass.RogueCommonKeyword getGetKeywordList() { + return getKeywordList; + } + + /** + *
+     * BANENCLAHFH NKMIJHMBCJE = 2044;
+     * JCEGOHOHIGK GACMJKONLPO = 1519;
+     * FCKINKMKFOJ KDHCEKHEIEK = 1280;
+     * MEPPCFCOCMC OCFHDHJHOLH = 1843;
+     * 
+ * + * optional .RogueCommonKeyword get_keyword_list = 1434; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonKeywordOuterClass.RogueCommonKeyword getMutableGetKeywordList() { + clearResultDataOtherGetKeywordList(); + bitField0_ |= 0x00000010; + return getKeywordList; + } + + /** + *
+     * BANENCLAHFH NKMIJHMBCJE = 2044;
+     * JCEGOHOHIGK GACMJKONLPO = 1519;
+     * FCKINKMKFOJ KDHCEKHEIEK = 1280;
+     * MEPPCFCOCMC OCFHDHJHOLH = 1843;
+     * 
+ * + * optional .RogueCommonKeyword get_keyword_list = 1434; + * @param value the getKeywordList to set + * @return this + */ + public RogueCommonActionResultData setGetKeywordList( + final RogueCommonKeywordOuterClass.RogueCommonKeyword value) { + clearResultDataOtherGetKeywordList(); + bitField0_ |= 0x00000010; + getKeywordList.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonBuff remove_buff_list = 1544; + * @return whether the removeBuffList field is set + */ + public boolean hasRemoveBuffList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .RogueCommonBuff remove_buff_list = 1544; + * @return this + */ + public RogueCommonActionResultData clearRemoveBuffList() { + bitField0_ &= ~0x00000020; + removeBuffList.clear(); + return this; + } + + /** + * optional .RogueCommonBuff remove_buff_list = 1544; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRemoveBuffList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonBuffOuterClass.RogueCommonBuff getRemoveBuffList() { + return removeBuffList; + } + + /** + * optional .RogueCommonBuff remove_buff_list = 1544; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonBuffOuterClass.RogueCommonBuff getMutableRemoveBuffList() { + clearResultDataOtherRemoveBuffList(); + bitField0_ |= 0x00000020; + return removeBuffList; + } + + /** + * optional .RogueCommonBuff remove_buff_list = 1544; + * @param value the removeBuffList to set + * @return this + */ + public RogueCommonActionResultData setRemoveBuffList( + final RogueCommonBuffOuterClass.RogueCommonBuff value) { + clearResultDataOtherRemoveBuffList(); + bitField0_ |= 0x00000020; + removeBuffList.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonBuff get_buff_list = 1884; + * @return whether the getBuffList field is set + */ + public boolean hasGetBuffList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .RogueCommonBuff get_buff_list = 1884; + * @return this + */ + public RogueCommonActionResultData clearGetBuffList() { + bitField0_ &= ~0x00000040; + getBuffList.clear(); + return this; + } + + /** + * optional .RogueCommonBuff get_buff_list = 1884; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGetBuffList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonBuffOuterClass.RogueCommonBuff getGetBuffList() { + return getBuffList; + } + + /** + * optional .RogueCommonBuff get_buff_list = 1884; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonBuffOuterClass.RogueCommonBuff getMutableGetBuffList() { + clearResultDataOtherGetBuffList(); + bitField0_ |= 0x00000040; + return getBuffList; + } + + /** + * optional .RogueCommonBuff get_buff_list = 1884; + * @param value the getBuffList to set + * @return this + */ + public RogueCommonActionResultData setGetBuffList( + final RogueCommonBuffOuterClass.RogueCommonBuff value) { + clearResultDataOtherGetBuffList(); + bitField0_ |= 0x00000040; + getBuffList.copyFrom(value); + return this; + } + + @Override + public RogueCommonActionResultData copyFrom(final RogueCommonActionResultData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + removeItemList.copyFrom(other.removeItemList); + getItemList.copyFrom(other.getItemList); + getFormulaList.copyFrom(other.getFormulaList); + getMiracleList.copyFrom(other.getMiracleList); + getKeywordList.copyFrom(other.getKeywordList); + removeBuffList.copyFrom(other.removeBuffList); + getBuffList.copyFrom(other.getBuffList); + } + return this; + } + + @Override + public RogueCommonActionResultData mergeFrom(final RogueCommonActionResultData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRemoveItemList()) { + getMutableRemoveItemList().mergeFrom(other.removeItemList); + } + if (other.hasGetItemList()) { + getMutableGetItemList().mergeFrom(other.getItemList); + } + if (other.hasGetFormulaList()) { + getMutableGetFormulaList().mergeFrom(other.getFormulaList); + } + if (other.hasGetMiracleList()) { + getMutableGetMiracleList().mergeFrom(other.getMiracleList); + } + if (other.hasGetKeywordList()) { + getMutableGetKeywordList().mergeFrom(other.getKeywordList); + } + if (other.hasRemoveBuffList()) { + getMutableRemoveBuffList().mergeFrom(other.removeBuffList); + } + if (other.hasGetBuffList()) { + getMutableGetBuffList().mergeFrom(other.getBuffList); + } + return this; + } + + @Override + public RogueCommonActionResultData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + removeItemList.clear(); + getItemList.clear(); + getFormulaList.clear(); + getMiracleList.clear(); + getKeywordList.clear(); + removeBuffList.clear(); + getBuffList.clear(); + return this; + } + + @Override + public RogueCommonActionResultData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + removeItemList.clearQuick(); + getItemList.clearQuick(); + getFormulaList.clearQuick(); + getMiracleList.clearQuick(); + getKeywordList.clearQuick(); + removeBuffList.clearQuick(); + getBuffList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonActionResultData)) { + return false; + } + RogueCommonActionResultData other = (RogueCommonActionResultData) o; + return bitField0_ == other.bitField0_ + && (!hasRemoveItemList() || removeItemList.equals(other.removeItemList)) + && (!hasGetItemList() || getItemList.equals(other.getItemList)) + && (!hasGetFormulaList() || getFormulaList.equals(other.getFormulaList)) + && (!hasGetMiracleList() || getMiracleList.equals(other.getMiracleList)) + && (!hasGetKeywordList() || getKeywordList.equals(other.getKeywordList)) + && (!hasRemoveBuffList() || removeBuffList.equals(other.removeBuffList)) + && (!hasGetBuffList() || getBuffList.equals(other.getBuffList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(removeItemList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(getItemList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 12482); + output.writeMessageNoTag(getFormulaList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 20218); + output.writeMessageNoTag(getMiracleList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 22994); + output.writeMessageNoTag(getKeywordList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 24770); + output.writeMessageNoTag(removeBuffList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 30178); + output.writeMessageNoTag(getBuffList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(removeItemList); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(getItemList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(getFormulaList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(getMiracleList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(getKeywordList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(removeBuffList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(getBuffList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonActionResultData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // removeItemList + clearResultDataOtherRemoveItemList(); + input.readMessage(removeItemList); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // getItemList + clearResultDataOtherGetItemList(); + input.readMessage(getItemList); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 6210) { + break; + } + } + case 6210: { + // getFormulaList + clearResultDataOtherGetFormulaList(); + input.readMessage(getFormulaList); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10106) { + break; + } + } + case 10106: { + // getMiracleList + clearResultDataOtherGetMiracleList(); + input.readMessage(getMiracleList); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 11474) { + break; + } + } + case 11474: { + // getKeywordList + clearResultDataOtherGetKeywordList(); + input.readMessage(getKeywordList); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 12354) { + break; + } + } + case 12354: { + // removeBuffList + clearResultDataOtherRemoveBuffList(); + input.readMessage(removeBuffList); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 15074) { + break; + } + } + case 15074: { + // getBuffList + clearResultDataOtherGetBuffList(); + input.readMessage(getBuffList); + 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.removeItemList, removeItemList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.getItemList, getItemList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.getFormulaList, getFormulaList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.getMiracleList, getMiracleList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.getKeywordList, getKeywordList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.removeBuffList, removeBuffList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.getBuffList, getBuffList); + } + output.endObject(); + } + + @Override + public RogueCommonActionResultData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -417171723: + case -293666737: { + if (input.isAtField(FieldNames.removeItemList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherRemoveItemList(); + input.readMessage(removeItemList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1039787065: + case -1626556255: { + if (input.isAtField(FieldNames.getItemList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherGetItemList(); + input.readMessage(getItemList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1160157678: + case 270990880: { + if (input.isAtField(FieldNames.getFormulaList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherGetFormulaList(); + input.readMessage(getFormulaList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 120123257: + case -1905305099: { + if (input.isAtField(FieldNames.getMiracleList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherGetMiracleList(); + input.readMessage(getMiracleList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1939051279: + case -1315206275: { + if (input.isAtField(FieldNames.getKeywordList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherGetKeywordList(); + input.readMessage(getKeywordList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1177726005: + case 1903522575: { + if (input.isAtField(FieldNames.removeBuffList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherRemoveBuffList(); + input.readMessage(removeBuffList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 555110663: + case 570633057: { + if (input.isAtField(FieldNames.getBuffList)) { + if (!input.trySkipNullValue()) { + clearResultDataOtherGetBuffList(); + input.readMessage(getBuffList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonActionResultData clone() { + return new RogueCommonActionResultData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonActionResultData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonActionResultData(), data).checkInitialized(); + } + + public static RogueCommonActionResultData parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonActionResultData(), input).checkInitialized(); + } + + public static RogueCommonActionResultData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonActionResultData(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonActionResultData messages + */ + public static MessageFactory getFactory() { + return RogueCommonActionResultDataFactory.INSTANCE; + } + + private enum RogueCommonActionResultDataFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonActionResultData create() { + return RogueCommonActionResultData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName removeItemList = FieldName.forField("removeItemList", "remove_item_list"); + + static final FieldName getItemList = FieldName.forField("getItemList", "get_item_list"); + + static final FieldName getFormulaList = FieldName.forField("getFormulaList", "get_formula_list"); + + static final FieldName getMiracleList = FieldName.forField("getMiracleList", "get_miracle_list"); + + static final FieldName getKeywordList = FieldName.forField("getKeywordList", "get_keyword_list"); + + static final FieldName removeBuffList = FieldName.forField("removeBuffList", "remove_buff_list"); + + static final FieldName getBuffList = FieldName.forField("getBuffList", "get_buff_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultOuterClass.java new file mode 100644 index 000000000..d2782dd6a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultOuterClass.java @@ -0,0 +1,398 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonActionResultOuterClass { + /** + * Protobuf type {@code RogueCommonActionResult} + */ + public static final class RogueCommonActionResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueCommonActionResultSourceType source = 11; + */ + private int source; + + /** + * optional .RogueCommonActionResultData rogue_action = 4; + */ + private final RogueCommonActionResultDataOuterClass.RogueCommonActionResultData rogueAction = RogueCommonActionResultDataOuterClass.RogueCommonActionResultData.newInstance(); + + private RogueCommonActionResult() { + } + + /** + * @return a new empty instance of {@code RogueCommonActionResult} + */ + public static RogueCommonActionResult newInstance() { + return new RogueCommonActionResult(); + } + + /** + * optional .RogueCommonActionResultSourceType source = 11; + * @return whether the source field is set + */ + public boolean hasSource() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueCommonActionResultSourceType source = 11; + * @return this + */ + public RogueCommonActionResult clearSource() { + bitField0_ &= ~0x00000001; + source = 0; + return this; + } + + /** + * optional .RogueCommonActionResultSourceType source = 11; + * @return the source + */ + public RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType getSource( + ) { + return RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType.forNumber(source); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueCommonActionResult#getSource()}.getNumber(). + * + * @return numeric wire representation + */ + public int getSourceValue() { + return source; + } + + /** + * 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 RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType}. Setting an invalid value + * can cause {@link RogueCommonActionResult#getSource()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueCommonActionResult setSourceValue(final int value) { + bitField0_ |= 0x00000001; + source = value; + return this; + } + + /** + * optional .RogueCommonActionResultSourceType source = 11; + * @param value the source to set + * @return this + */ + public RogueCommonActionResult setSource( + final RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType value) { + bitField0_ |= 0x00000001; + source = value.getNumber(); + return this; + } + + /** + * optional .RogueCommonActionResultData rogue_action = 4; + * @return whether the rogueAction field is set + */ + public boolean hasRogueAction() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueCommonActionResultData rogue_action = 4; + * @return this + */ + public RogueCommonActionResult clearRogueAction() { + bitField0_ &= ~0x00000002; + rogueAction.clear(); + return this; + } + + /** + * optional .RogueCommonActionResultData rogue_action = 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 #getMutableRogueAction()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonActionResultDataOuterClass.RogueCommonActionResultData getRogueAction() { + return rogueAction; + } + + /** + * optional .RogueCommonActionResultData rogue_action = 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 RogueCommonActionResultDataOuterClass.RogueCommonActionResultData getMutableRogueAction( + ) { + bitField0_ |= 0x00000002; + return rogueAction; + } + + /** + * optional .RogueCommonActionResultData rogue_action = 4; + * @param value the rogueAction to set + * @return this + */ + public RogueCommonActionResult setRogueAction( + final RogueCommonActionResultDataOuterClass.RogueCommonActionResultData value) { + bitField0_ |= 0x00000002; + rogueAction.copyFrom(value); + return this; + } + + @Override + public RogueCommonActionResult copyFrom(final RogueCommonActionResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + source = other.source; + rogueAction.copyFrom(other.rogueAction); + } + return this; + } + + @Override + public RogueCommonActionResult mergeFrom(final RogueCommonActionResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSource()) { + setSourceValue(other.source); + } + if (other.hasRogueAction()) { + getMutableRogueAction().mergeFrom(other.rogueAction); + } + return this; + } + + @Override + public RogueCommonActionResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + source = 0; + rogueAction.clear(); + return this; + } + + @Override + public RogueCommonActionResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueAction.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonActionResult)) { + return false; + } + RogueCommonActionResult other = (RogueCommonActionResult) o; + return bitField0_ == other.bitField0_ + && (!hasSource() || source == other.source) + && (!hasRogueAction() || rogueAction.equals(other.rogueAction)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeEnumNoTag(source); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rogueAction); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(source); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAction); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonActionResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // source + final int value = input.readInt32(); + if (RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType.forNumber(value) != null) { + source = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // rogueAction + input.readMessage(rogueAction); + 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.writeEnum(FieldNames.source, source, RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueAction, rogueAction); + } + output.endObject(); + } + + @Override + public RogueCommonActionResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -896505829: { + if (input.isAtField(FieldNames.source)) { + if (!input.trySkipNullValue()) { + final RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType value = input.readEnum(RogueCommonActionResultSourceTypeOuterClass.RogueCommonActionResultSourceType.converter()); + if (value != null) { + source = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1366582096: + case 1368298555: { + if (input.isAtField(FieldNames.rogueAction)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAction); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonActionResult clone() { + return new RogueCommonActionResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonActionResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonActionResult(), data).checkInitialized(); + } + + public static RogueCommonActionResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonActionResult(), input).checkInitialized(); + } + + public static RogueCommonActionResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonActionResult(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonActionResult messages + */ + public static MessageFactory getFactory() { + return RogueCommonActionResultFactory.INSTANCE; + } + + private enum RogueCommonActionResultFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonActionResult create() { + return RogueCommonActionResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName source = FieldName.forField("source"); + + static final FieldName rogueAction = FieldName.forField("rogueAction", "rogue_action"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultSourceTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultSourceTypeOuterClass.java new file mode 100644 index 000000000..65d7f0432 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultSourceTypeOuterClass.java @@ -0,0 +1,307 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueCommonActionResultSourceTypeOuterClass { + /** + * Protobuf enum {@code RogueCommonActionResultSourceType} + */ + public enum RogueCommonActionResultSourceType implements ProtoEnum { + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE = 0; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE", 0), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT = 1; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT", 1), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE = 2; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE", 2), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE = 3; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE", 3), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE = 4; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE", 4), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS = 5; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS", 5), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP = 6; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP", 6), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE = 7; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE", 7), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON = 8; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON", 8), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT = 9; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT", 9), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL = 10; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL", 10), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM = 11; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM", 11), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF = 12; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF", 12), + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE = 13; + */ + ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE", 13); + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE = 0; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE_VALUE = 0; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT = 1; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT_VALUE = 1; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE = 2; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE_VALUE = 2; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE = 3; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE_VALUE = 3; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE = 4; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE_VALUE = 4; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS = 5; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS_VALUE = 5; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP = 6; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP_VALUE = 6; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE = 7; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE_VALUE = 7; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON = 8; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON_VALUE = 8; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT = 9; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT_VALUE = 9; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL = 10; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL_VALUE = 10; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM = 11; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM_VALUE = 11; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF = 12; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF_VALUE = 12; + + /** + * ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE = 13; + */ + public static final int ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE_VALUE = 13; + + private final String name; + + private final int number; + + private RogueCommonActionResultSourceType(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 RogueCommonActionResultSourceTypeConverter.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 RogueCommonActionResultSourceType forNumber(int value) { + return RogueCommonActionResultSourceTypeConverter.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 RogueCommonActionResultSourceType forNumberOr(int number, + RogueCommonActionResultSourceType other) { + RogueCommonActionResultSourceType value = forNumber(number); + return value == null ? other : value; + } + + enum RogueCommonActionResultSourceTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueCommonActionResultSourceType[] lookup = new RogueCommonActionResultSourceType[14]; + + static { + lookup[0] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE; + lookup[1] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT; + lookup[2] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE; + lookup[3] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE; + lookup[4] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE; + lookup[5] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS; + lookup[6] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP; + lookup[7] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE; + lookup[8] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON; + lookup[9] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT; + lookup[10] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL; + lookup[11] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM; + lookup[12] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF; + lookup[13] = ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE; + } + + @Override + public final RogueCommonActionResultSourceType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueCommonActionResultSourceType forName(final CharSequence value) { + switch (value.length()) { + case 43: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_NONE; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SHOP; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DICE; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_AEON; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BUFF; + } + break; + } + case 44: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BONUS; + } + break; + } + case 45: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_SELECT; + } + break; + } + case 46: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_ENHANCE; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MIRACLE; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_REFORGE; + } + break; + } + case 47: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_DIALOGUE; + } + break; + } + case 49: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_MAZE_SKILL; + } + break; + } + case 50: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_BOARD_EVENT; + } + break; + } + case 54: { + if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM", value)) { + return ROGUE_COMMON_ACTION_RESULT_SOURCE_TYPE_LEVEL_MECHANISM; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceTypeOuterClass.java new file mode 100644 index 000000000..4eb7929f9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceTypeOuterClass.java @@ -0,0 +1,169 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueCommonBuffSelectSourceTypeOuterClass { + /** + * Protobuf enum {@code RogueCommonBuffSelectSourceType} + */ + public enum RogueCommonBuffSelectSourceType implements ProtoEnum { + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE = 0; + */ + ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE", 0), + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL = 1; + */ + ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL", 1), + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON = 2; + */ + ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON", 2), + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT = 3; + */ + ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT", 3), + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM = 4; + */ + ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM", 4); + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE = 0; + */ + public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE_VALUE = 0; + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL = 1; + */ + public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL_VALUE = 1; + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON = 2; + */ + public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON_VALUE = 2; + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT = 3; + */ + public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT_VALUE = 3; + + /** + * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM = 4; + */ + public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM_VALUE = 4; + + private final String name; + + private final int number; + + private RogueCommonBuffSelectSourceType(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 RogueCommonBuffSelectSourceTypeConverter.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 RogueCommonBuffSelectSourceType forNumber(int value) { + return RogueCommonBuffSelectSourceTypeConverter.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 RogueCommonBuffSelectSourceType forNumberOr(int number, + RogueCommonBuffSelectSourceType other) { + RogueCommonBuffSelectSourceType value = forNumber(number); + return value == null ? other : value; + } + + enum RogueCommonBuffSelectSourceTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueCommonBuffSelectSourceType[] lookup = new RogueCommonBuffSelectSourceType[5]; + + static { + lookup[0] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE; + lookup[1] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL; + lookup[2] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON; + lookup[3] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT; + lookup[4] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM; + } + + @Override + public final RogueCommonBuffSelectSourceType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueCommonBuffSelectSourceType forName(final CharSequence value) { + switch (value.length()) { + case 41: { + if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE", value)) { + return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE; + } + if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON", value)) { + return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON; + } + break; + } + case 46: { + if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL", value)) { + return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL; + } + break; + } + case 48: { + if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT", value)) { + return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT; + } + break; + } + case 52: { + if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM", value)) { + return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java new file mode 100644 index 000000000..766ec3ce9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java @@ -0,0 +1,342 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonDialogueBasicInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueBasicInfo} + */ + public static final class RogueCommonDialogueBasicInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 dialogue_id = 4; + */ + private int dialogueId; + + /** + * optional uint32 sus = 5; + */ + private int sus; + + private RogueCommonDialogueBasicInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueBasicInfo} + */ + public static RogueCommonDialogueBasicInfo newInstance() { + return new RogueCommonDialogueBasicInfo(); + } + + /** + * optional uint32 dialogue_id = 4; + * @return whether the dialogueId field is set + */ + public boolean hasDialogueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 dialogue_id = 4; + * @return this + */ + public RogueCommonDialogueBasicInfo clearDialogueId() { + bitField0_ &= ~0x00000001; + dialogueId = 0; + return this; + } + + /** + * optional uint32 dialogue_id = 4; + * @return the dialogueId + */ + public int getDialogueId() { + return dialogueId; + } + + /** + * optional uint32 dialogue_id = 4; + * @param value the dialogueId to set + * @return this + */ + public RogueCommonDialogueBasicInfo setDialogueId(final int value) { + bitField0_ |= 0x00000001; + dialogueId = value; + return this; + } + + /** + * optional uint32 sus = 5; + * @return whether the sus field is set + */ + public boolean hasSus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 sus = 5; + * @return this + */ + public RogueCommonDialogueBasicInfo clearSus() { + bitField0_ &= ~0x00000002; + sus = 0; + return this; + } + + /** + * optional uint32 sus = 5; + * @return the sus + */ + public int getSus() { + return sus; + } + + /** + * optional uint32 sus = 5; + * @param value the sus to set + * @return this + */ + public RogueCommonDialogueBasicInfo setSus(final int value) { + bitField0_ |= 0x00000002; + sus = value; + return this; + } + + @Override + public RogueCommonDialogueBasicInfo copyFrom(final RogueCommonDialogueBasicInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dialogueId = other.dialogueId; + sus = other.sus; + } + return this; + } + + @Override + public RogueCommonDialogueBasicInfo mergeFrom(final RogueCommonDialogueBasicInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDialogueId()) { + setDialogueId(other.dialogueId); + } + if (other.hasSus()) { + setSus(other.sus); + } + return this; + } + + @Override + public RogueCommonDialogueBasicInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueId = 0; + sus = 0; + return this; + } + + @Override + public RogueCommonDialogueBasicInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueBasicInfo)) { + return false; + } + RogueCommonDialogueBasicInfo other = (RogueCommonDialogueBasicInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDialogueId() || dialogueId == other.dialogueId) + && (!hasSus() || sus == other.sus); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(dialogueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(sus); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sus); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueBasicInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // dialogueId + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // sus + sus = input.readUInt32(); + 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.dialogueId, dialogueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.sus, sus); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueBasicInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1384067821: + case 43591906: { + if (input.isAtField(FieldNames.dialogueId)) { + if (!input.trySkipNullValue()) { + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 114257: { + if (input.isAtField(FieldNames.sus)) { + if (!input.trySkipNullValue()) { + sus = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueBasicInfo clone() { + return new RogueCommonDialogueBasicInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueBasicInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueBasicInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueBasicInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueBasicInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueBasicInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueBasicInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueBasicInfo create() { + return RogueCommonDialogueBasicInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dialogueId = FieldName.forField("dialogueId", "dialogue_id"); + + static final FieldName sus = FieldName.forField("sus"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java new file mode 100644 index 000000000..6a261d796 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java @@ -0,0 +1,483 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class RogueCommonDialogueDataInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueDataInfo} + */ + public static final class RogueCommonDialogueDataInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 15; + */ + private int eventUniqueId; + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + */ + private final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo dialogueInfo = RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo.newInstance(); + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + */ + private final RepeatedMessage optionList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.getFactory()); + + private RogueCommonDialogueDataInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueDataInfo} + */ + public static RogueCommonDialogueDataInfo newInstance() { + return new RogueCommonDialogueDataInfo(); + } + + /** + * optional uint32 event_unique_id = 15; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 15; + * @return this + */ + public RogueCommonDialogueDataInfo clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 15; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 15; + * @param value the eventUniqueId to set + * @return this + */ + public RogueCommonDialogueDataInfo setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * @return whether the dialogueInfo field is set + */ + public boolean hasDialogueInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * @return this + */ + public RogueCommonDialogueDataInfo clearDialogueInfo() { + bitField0_ &= ~0x00000002; + dialogueInfo.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 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 #getMutableDialogueInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo getDialogueInfo() { + return dialogueInfo; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 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 RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo getMutableDialogueInfo() { + bitField0_ |= 0x00000002; + return dialogueInfo; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * @param value the dialogueInfo to set + * @return this + */ + public RogueCommonDialogueDataInfo setDialogueInfo( + final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo value) { + bitField0_ |= 0x00000002; + dialogueInfo.copyFrom(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @return whether the optionList field is set + */ + public boolean hasOptionList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @return this + */ + public RogueCommonDialogueDataInfo clearOptionList() { + bitField0_ &= ~0x00000004; + optionList.clear(); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_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 #getMutableOptionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOptionList( + ) { + return optionList; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_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 getMutableOptionList( + ) { + bitField0_ |= 0x00000004; + return optionList; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @param value the optionList to add + * @return this + */ + public RogueCommonDialogueDataInfo addOptionList( + final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) { + bitField0_ |= 0x00000004; + optionList.add(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @param values the optionList to add + * @return this + */ + public RogueCommonDialogueDataInfo addAllOptionList( + final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo... values) { + bitField0_ |= 0x00000004; + optionList.addAll(values); + return this; + } + + @Override + public RogueCommonDialogueDataInfo copyFrom(final RogueCommonDialogueDataInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + dialogueInfo.copyFrom(other.dialogueInfo); + optionList.copyFrom(other.optionList); + } + return this; + } + + @Override + public RogueCommonDialogueDataInfo mergeFrom(final RogueCommonDialogueDataInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasDialogueInfo()) { + getMutableDialogueInfo().mergeFrom(other.dialogueInfo); + } + if (other.hasOptionList()) { + getMutableOptionList().addAll(other.optionList); + } + return this; + } + + @Override + public RogueCommonDialogueDataInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + dialogueInfo.clear(); + optionList.clear(); + return this; + } + + @Override + public RogueCommonDialogueDataInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueInfo.clearQuick(); + optionList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueDataInfo)) { + return false; + } + RogueCommonDialogueDataInfo other = (RogueCommonDialogueDataInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasDialogueInfo() || dialogueInfo.equals(other.dialogueInfo)) + && (!hasOptionList() || optionList.equals(other.optionList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(dialogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < optionList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(optionList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * optionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(optionList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueDataInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // dialogueInfo + input.readMessage(dialogueInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // optionList + tag = input.readRepeatedMessage(optionList, 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.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.dialogueInfo, dialogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.optionList, optionList); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueDataInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1350698662: + case -1057838411: { + if (input.isAtField(FieldNames.dialogueInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1373334195: + case -358686168: { + if (input.isAtField(FieldNames.optionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(optionList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueDataInfo clone() { + return new RogueCommonDialogueDataInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueDataInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueDataInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueDataInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueDataInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueDataInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueDataInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueDataInfo create() { + return RogueCommonDialogueDataInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName dialogueInfo = FieldName.forField("dialogueInfo", "dialogue_info"); + + static final FieldName optionList = FieldName.forField("optionList", "option_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java new file mode 100644 index 000000000..c120f42f0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java @@ -0,0 +1,325 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonDialogueInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueInfo} + */ + public static final class RogueCommonDialogueInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + */ + private final RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo dialogueBasicInfo = RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo.newInstance(); + + private RogueCommonDialogueInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueInfo} + */ + public static RogueCommonDialogueInfo newInstance() { + return new RogueCommonDialogueInfo(); + } + + public boolean hasOBCDHEEJEFH() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public RogueCommonDialogueInfo clearOBCDHEEJEFH() { + if (hasOBCDHEEJEFH()) { + clearDialogueBasicInfo(); + } + return this; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + * @return whether the dialogueBasicInfo field is set + */ + public boolean hasDialogueBasicInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + * @return this + */ + public RogueCommonDialogueInfo clearDialogueBasicInfo() { + bitField0_ &= ~0x00000001; + dialogueBasicInfo.clear(); + return this; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 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 #getMutableDialogueBasicInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo getDialogueBasicInfo( + ) { + return dialogueBasicInfo; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 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 RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo getMutableDialogueBasicInfo( + ) { + bitField0_ |= 0x00000001; + return dialogueBasicInfo; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + * @param value the dialogueBasicInfo to set + * @return this + */ + public RogueCommonDialogueInfo setDialogueBasicInfo( + final RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo value) { + bitField0_ |= 0x00000001; + dialogueBasicInfo.copyFrom(value); + return this; + } + + @Override + public RogueCommonDialogueInfo copyFrom(final RogueCommonDialogueInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dialogueBasicInfo.copyFrom(other.dialogueBasicInfo); + } + return this; + } + + @Override + public RogueCommonDialogueInfo mergeFrom(final RogueCommonDialogueInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDialogueBasicInfo()) { + getMutableDialogueBasicInfo().mergeFrom(other.dialogueBasicInfo); + } + return this; + } + + @Override + public RogueCommonDialogueInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueBasicInfo.clear(); + return this; + } + + @Override + public RogueCommonDialogueInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueBasicInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueInfo)) { + return false; + } + RogueCommonDialogueInfo other = (RogueCommonDialogueInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDialogueBasicInfo() || dialogueBasicInfo.equals(other.dialogueBasicInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(dialogueBasicInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueBasicInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 106: { + // dialogueBasicInfo + input.readMessage(dialogueBasicInfo); + 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.writeMessage(FieldNames.dialogueBasicInfo, dialogueBasicInfo); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1607581444: + case -1887626522: { + if (input.isAtField(FieldNames.dialogueBasicInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueBasicInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueInfo clone() { + return new RogueCommonDialogueInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueInfo create() { + return RogueCommonDialogueInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dialogueBasicInfo = FieldName.forField("dialogueBasicInfo", "dialogue_basic_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java new file mode 100644 index 000000000..76987756f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java @@ -0,0 +1,266 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonDialogueOptionBattleResultInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionBattleResultInfo} + */ + public static final class RogueCommonDialogueOptionBattleResultInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 battle_event_id = 8; + */ + private int battleEventId; + + private RogueCommonDialogueOptionBattleResultInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionBattleResultInfo} + */ + public static RogueCommonDialogueOptionBattleResultInfo newInstance() { + return new RogueCommonDialogueOptionBattleResultInfo(); + } + + /** + * optional uint32 battle_event_id = 8; + * @return whether the battleEventId field is set + */ + public boolean hasBattleEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 battle_event_id = 8; + * @return this + */ + public RogueCommonDialogueOptionBattleResultInfo clearBattleEventId() { + bitField0_ &= ~0x00000001; + battleEventId = 0; + return this; + } + + /** + * optional uint32 battle_event_id = 8; + * @return the battleEventId + */ + public int getBattleEventId() { + return battleEventId; + } + + /** + * optional uint32 battle_event_id = 8; + * @param value the battleEventId to set + * @return this + */ + public RogueCommonDialogueOptionBattleResultInfo setBattleEventId(final int value) { + bitField0_ |= 0x00000001; + battleEventId = value; + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo copyFrom( + final RogueCommonDialogueOptionBattleResultInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleEventId = other.battleEventId; + } + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo mergeFrom( + final RogueCommonDialogueOptionBattleResultInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleEventId()) { + setBattleEventId(other.battleEventId); + } + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleEventId = 0; + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionBattleResultInfo)) { + return false; + } + RogueCommonDialogueOptionBattleResultInfo other = (RogueCommonDialogueOptionBattleResultInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBattleEventId() || battleEventId == other.battleEventId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(battleEventId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleEventId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionBattleResultInfo mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // battleEventId + battleEventId = input.readUInt32(); + 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.writeUInt32(FieldNames.battleEventId, battleEventId); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -79510147: + case -766250873: { + if (input.isAtField(FieldNames.battleEventId)) { + if (!input.trySkipNullValue()) { + battleEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo clone() { + return new RogueCommonDialogueOptionBattleResultInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionBattleResultInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionBattleResultInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionBattleResultInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionBattleResultInfo create() { + return RogueCommonDialogueOptionBattleResultInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleEventId = FieldName.forField("battleEventId", "battle_event_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java new file mode 100644 index 000000000..bc1184693 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java @@ -0,0 +1,348 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.ProtoUtil; + +public final class RogueCommonDialogueOptionDisplayInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionDisplayInfo} + */ + public static final class RogueCommonDialogueOptionDisplayInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float display_float_value = 10; + */ + private float displayFloatValue; + + /** + * optional int32 display_int_value = 6; + */ + private int displayIntValue; + + private RogueCommonDialogueOptionDisplayInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionDisplayInfo} + */ + public static RogueCommonDialogueOptionDisplayInfo newInstance() { + return new RogueCommonDialogueOptionDisplayInfo(); + } + + /** + * optional float display_float_value = 10; + * @return whether the displayFloatValue field is set + */ + public boolean hasDisplayFloatValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float display_float_value = 10; + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo clearDisplayFloatValue() { + bitField0_ &= ~0x00000001; + displayFloatValue = 0F; + return this; + } + + /** + * optional float display_float_value = 10; + * @return the displayFloatValue + */ + public float getDisplayFloatValue() { + return displayFloatValue; + } + + /** + * optional float display_float_value = 10; + * @param value the displayFloatValue to set + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo setDisplayFloatValue(final float value) { + bitField0_ |= 0x00000001; + displayFloatValue = value; + return this; + } + + /** + * optional int32 display_int_value = 6; + * @return whether the displayIntValue field is set + */ + public boolean hasDisplayIntValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int32 display_int_value = 6; + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo clearDisplayIntValue() { + bitField0_ &= ~0x00000002; + displayIntValue = 0; + return this; + } + + /** + * optional int32 display_int_value = 6; + * @return the displayIntValue + */ + public int getDisplayIntValue() { + return displayIntValue; + } + + /** + * optional int32 display_int_value = 6; + * @param value the displayIntValue to set + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo setDisplayIntValue(final int value) { + bitField0_ |= 0x00000002; + displayIntValue = value; + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo copyFrom( + final RogueCommonDialogueOptionDisplayInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + displayFloatValue = other.displayFloatValue; + displayIntValue = other.displayIntValue; + } + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo mergeFrom( + final RogueCommonDialogueOptionDisplayInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDisplayFloatValue()) { + setDisplayFloatValue(other.displayFloatValue); + } + if (other.hasDisplayIntValue()) { + setDisplayIntValue(other.displayIntValue); + } + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayFloatValue = 0F; + displayIntValue = 0; + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionDisplayInfo)) { + return false; + } + RogueCommonDialogueOptionDisplayInfo other = (RogueCommonDialogueOptionDisplayInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDisplayFloatValue() || ProtoUtil.isEqual(displayFloatValue, other.displayFloatValue)) + && (!hasDisplayIntValue() || displayIntValue == other.displayIntValue); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 85); + output.writeFloatNoTag(displayFloatValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeInt32NoTag(displayIntValue); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(displayIntValue); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionDisplayInfo mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 85: { + // displayFloatValue + displayFloatValue = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // displayIntValue + displayIntValue = input.readInt32(); + 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.writeFloat(FieldNames.displayFloatValue, displayFloatValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt32(FieldNames.displayIntValue, displayIntValue); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionDisplayInfo mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1495597783: + case -1607645743: { + if (input.isAtField(FieldNames.displayFloatValue)) { + if (!input.trySkipNullValue()) { + displayFloatValue = input.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -639090268: + case -626645532: { + if (input.isAtField(FieldNames.displayIntValue)) { + if (!input.trySkipNullValue()) { + displayIntValue = input.readInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo clone() { + return new RogueCommonDialogueOptionDisplayInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionDisplayInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionDisplayInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionDisplayInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionDisplayInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionDisplayInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionDisplayInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionDisplayInfo create() { + return RogueCommonDialogueOptionDisplayInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName displayFloatValue = FieldName.forField("displayFloatValue", "display_float_value"); + + static final FieldName displayIntValue = FieldName.forField("displayIntValue", "display_int_value"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java new file mode 100644 index 000000000..c667bf0ca --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java @@ -0,0 +1,728 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class RogueCommonDialogueOptionInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionInfo} + */ + public static final class RogueCommonDialogueOptionInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 arg_id = 6; + */ + private int argId; + + /** + * optional uint32 option_id = 9; + */ + private int optionId; + + /** + * optional bool is_valid = 5; + */ + private boolean isValid; + + /** + * optional bool confirm = 13; + */ + private boolean confirm; + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + */ + private final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo displayValue = RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo.newInstance(); + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + */ + private final RepeatedMessage optionResultInfo = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.getFactory()); + + private RogueCommonDialogueOptionInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionInfo} + */ + public static RogueCommonDialogueOptionInfo newInstance() { + return new RogueCommonDialogueOptionInfo(); + } + + /** + * optional uint32 arg_id = 6; + * @return whether the argId field is set + */ + public boolean hasArgId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 arg_id = 6; + * @return this + */ + public RogueCommonDialogueOptionInfo clearArgId() { + bitField0_ &= ~0x00000001; + argId = 0; + return this; + } + + /** + * optional uint32 arg_id = 6; + * @return the argId + */ + public int getArgId() { + return argId; + } + + /** + * optional uint32 arg_id = 6; + * @param value the argId to set + * @return this + */ + public RogueCommonDialogueOptionInfo setArgId(final int value) { + bitField0_ |= 0x00000001; + argId = value; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 9; + * @return this + */ + public RogueCommonDialogueOptionInfo clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 9; + * @param value the optionId to set + * @return this + */ + public RogueCommonDialogueOptionInfo setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + /** + * optional bool is_valid = 5; + * @return whether the isValid field is set + */ + public boolean hasIsValid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_valid = 5; + * @return this + */ + public RogueCommonDialogueOptionInfo clearIsValid() { + bitField0_ &= ~0x00000004; + isValid = false; + return this; + } + + /** + * optional bool is_valid = 5; + * @return the isValid + */ + public boolean getIsValid() { + return isValid; + } + + /** + * optional bool is_valid = 5; + * @param value the isValid to set + * @return this + */ + public RogueCommonDialogueOptionInfo setIsValid(final boolean value) { + bitField0_ |= 0x00000004; + isValid = value; + return this; + } + + /** + * optional bool confirm = 13; + * @return whether the confirm field is set + */ + public boolean hasConfirm() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool confirm = 13; + * @return this + */ + public RogueCommonDialogueOptionInfo clearConfirm() { + bitField0_ &= ~0x00000008; + confirm = false; + return this; + } + + /** + * optional bool confirm = 13; + * @return the confirm + */ + public boolean getConfirm() { + return confirm; + } + + /** + * optional bool confirm = 13; + * @param value the confirm to set + * @return this + */ + public RogueCommonDialogueOptionInfo setConfirm(final boolean value) { + bitField0_ |= 0x00000008; + confirm = value; + return this; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * @return whether the displayValue field is set + */ + public boolean hasDisplayValue() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * @return this + */ + public RogueCommonDialogueOptionInfo clearDisplayValue() { + bitField0_ &= ~0x00000010; + displayValue.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 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 #getMutableDisplayValue()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo getDisplayValue( + ) { + return displayValue; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 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 RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo getMutableDisplayValue( + ) { + bitField0_ |= 0x00000010; + return displayValue; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * @param value the displayValue to set + * @return this + */ + public RogueCommonDialogueOptionInfo setDisplayValue( + final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo value) { + bitField0_ |= 0x00000010; + displayValue.copyFrom(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @return whether the optionResultInfo field is set + */ + public boolean hasOptionResultInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @return this + */ + public RogueCommonDialogueOptionInfo clearOptionResultInfo() { + bitField0_ &= ~0x00000020; + optionResultInfo.clear(); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 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 #getMutableOptionResultInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOptionResultInfo( + ) { + return optionResultInfo; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 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 getMutableOptionResultInfo( + ) { + bitField0_ |= 0x00000020; + return optionResultInfo; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @param value the optionResultInfo to add + * @return this + */ + public RogueCommonDialogueOptionInfo addOptionResultInfo( + final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo value) { + bitField0_ |= 0x00000020; + optionResultInfo.add(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @param values the optionResultInfo to add + * @return this + */ + public RogueCommonDialogueOptionInfo addAllOptionResultInfo( + final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo... values) { + bitField0_ |= 0x00000020; + optionResultInfo.addAll(values); + return this; + } + + @Override + public RogueCommonDialogueOptionInfo copyFrom(final RogueCommonDialogueOptionInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + argId = other.argId; + optionId = other.optionId; + isValid = other.isValid; + confirm = other.confirm; + displayValue.copyFrom(other.displayValue); + optionResultInfo.copyFrom(other.optionResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionInfo mergeFrom(final RogueCommonDialogueOptionInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasArgId()) { + setArgId(other.argId); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + if (other.hasIsValid()) { + setIsValid(other.isValid); + } + if (other.hasConfirm()) { + setConfirm(other.confirm); + } + if (other.hasDisplayValue()) { + getMutableDisplayValue().mergeFrom(other.displayValue); + } + if (other.hasOptionResultInfo()) { + getMutableOptionResultInfo().addAll(other.optionResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + argId = 0; + optionId = 0; + isValid = false; + confirm = false; + displayValue.clear(); + optionResultInfo.clear(); + return this; + } + + @Override + public RogueCommonDialogueOptionInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayValue.clearQuick(); + optionResultInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionInfo)) { + return false; + } + RogueCommonDialogueOptionInfo other = (RogueCommonDialogueOptionInfo) o; + return bitField0_ == other.bitField0_ + && (!hasArgId() || argId == other.argId) + && (!hasOptionId() || optionId == other.optionId) + && (!hasIsValid() || isValid == other.isValid) + && (!hasConfirm() || confirm == other.confirm) + && (!hasDisplayValue() || displayValue.equals(other.displayValue)) + && (!hasOptionResultInfo() || optionResultInfo.equals(other.optionResultInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(argId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(isValid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(confirm); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(displayValue); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < optionResultInfo.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(optionResultInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(displayValue); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * optionResultInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(optionResultInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // argId + argId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // isValid + isValid = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // confirm + confirm = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // displayValue + input.readMessage(displayValue); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // optionResultInfo + tag = input.readRepeatedMessage(optionResultInfo, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.argId, argId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isValid, isValid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.confirm, confirm); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.displayValue, displayValue); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.optionResultInfo, optionResultInfo); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 93079057: + case -1409495132: { + if (input.isAtField(FieldNames.argId)) { + if (!input.trySkipNullValue()) { + argId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2073378034: + case 126941351: { + if (input.isAtField(FieldNames.isValid)) { + if (!input.trySkipNullValue()) { + isValid = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 951117504: { + if (input.isAtField(FieldNames.confirm)) { + if (!input.trySkipNullValue()) { + confirm = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1606398415: + case -1464536140: { + if (input.isAtField(FieldNames.displayValue)) { + if (!input.trySkipNullValue()) { + input.readMessage(displayValue); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -276995904: + case -1123762490: { + if (input.isAtField(FieldNames.optionResultInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(optionResultInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionInfo clone() { + return new RogueCommonDialogueOptionInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionInfo create() { + return RogueCommonDialogueOptionInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName argId = FieldName.forField("argId", "arg_id"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + + static final FieldName isValid = FieldName.forField("isValid", "is_valid"); + + static final FieldName confirm = FieldName.forField("confirm"); + + static final FieldName displayValue = FieldName.forField("displayValue", "display_value"); + + static final FieldName optionResultInfo = FieldName.forField("optionResultInfo", "option_result_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java new file mode 100644 index 000000000..1facdb1d1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java @@ -0,0 +1,325 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonDialogueOptionResultInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionResultInfo} + */ + public static final class RogueCommonDialogueOptionResultInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + */ + private final RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo battleResultInfo = RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo.newInstance(); + + private RogueCommonDialogueOptionResultInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionResultInfo} + */ + public static RogueCommonDialogueOptionResultInfo newInstance() { + return new RogueCommonDialogueOptionResultInfo(); + } + + public boolean hasOptionResult() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public RogueCommonDialogueOptionResultInfo clearOptionResult() { + if (hasOptionResult()) { + clearBattleResultInfo(); + } + return this; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * @return whether the battleResultInfo field is set + */ + public boolean hasBattleResultInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * @return this + */ + public RogueCommonDialogueOptionResultInfo clearBattleResultInfo() { + bitField0_ &= ~0x00000001; + battleResultInfo.clear(); + return this; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 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 #getMutableBattleResultInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo getBattleResultInfo( + ) { + return battleResultInfo; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 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 RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo getMutableBattleResultInfo( + ) { + bitField0_ |= 0x00000001; + return battleResultInfo; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * @param value the battleResultInfo to set + * @return this + */ + public RogueCommonDialogueOptionResultInfo setBattleResultInfo( + final RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo value) { + bitField0_ |= 0x00000001; + battleResultInfo.copyFrom(value); + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo copyFrom( + final RogueCommonDialogueOptionResultInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleResultInfo.copyFrom(other.battleResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo mergeFrom( + final RogueCommonDialogueOptionResultInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleResultInfo()) { + getMutableBattleResultInfo().mergeFrom(other.battleResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleResultInfo.clear(); + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleResultInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionResultInfo)) { + return false; + } + RogueCommonDialogueOptionResultInfo other = (RogueCommonDialogueOptionResultInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBattleResultInfo() || battleResultInfo.equals(other.battleResultInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(battleResultInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleResultInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionResultInfo mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 90: { + // battleResultInfo + input.readMessage(battleResultInfo); + 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.writeMessage(FieldNames.battleResultInfo, battleResultInfo); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionResultInfo mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 599519555: + case -605996407: { + if (input.isAtField(FieldNames.battleResultInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleResultInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo clone() { + return new RogueCommonDialogueOptionResultInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionResultInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionResultInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionResultInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionResultInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionResultInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionResultInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionResultInfo create() { + return RogueCommonDialogueOptionResultInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleResultInfo = FieldName.forField("battleResultInfo", "battle_result_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonFormulaOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonFormulaOuterClass.java new file mode 100644 index 000000000..687034f2c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonFormulaOuterClass.java @@ -0,0 +1,281 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonFormulaOuterClass { + /** + * Protobuf type {@code RogueCommonFormula} + */ + public static final class RogueCommonFormula extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .FormulaInfo formula_info = 4; + */ + private final FormulaInfoOuterClass.FormulaInfo formulaInfo = FormulaInfoOuterClass.FormulaInfo.newInstance(); + + private RogueCommonFormula() { + } + + /** + * @return a new empty instance of {@code RogueCommonFormula} + */ + public static RogueCommonFormula newInstance() { + return new RogueCommonFormula(); + } + + /** + * optional .FormulaInfo formula_info = 4; + * @return whether the formulaInfo field is set + */ + public boolean hasFormulaInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .FormulaInfo formula_info = 4; + * @return this + */ + public RogueCommonFormula clearFormulaInfo() { + bitField0_ &= ~0x00000001; + formulaInfo.clear(); + return this; + } + + /** + * optional .FormulaInfo formula_info = 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 #getMutableFormulaInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FormulaInfoOuterClass.FormulaInfo getFormulaInfo() { + return formulaInfo; + } + + /** + * optional .FormulaInfo formula_info = 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 FormulaInfoOuterClass.FormulaInfo getMutableFormulaInfo() { + bitField0_ |= 0x00000001; + return formulaInfo; + } + + /** + * optional .FormulaInfo formula_info = 4; + * @param value the formulaInfo to set + * @return this + */ + public RogueCommonFormula setFormulaInfo(final FormulaInfoOuterClass.FormulaInfo value) { + bitField0_ |= 0x00000001; + formulaInfo.copyFrom(value); + return this; + } + + @Override + public RogueCommonFormula copyFrom(final RogueCommonFormula other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + formulaInfo.copyFrom(other.formulaInfo); + } + return this; + } + + @Override + public RogueCommonFormula mergeFrom(final RogueCommonFormula other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFormulaInfo()) { + getMutableFormulaInfo().mergeFrom(other.formulaInfo); + } + return this; + } + + @Override + public RogueCommonFormula clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaInfo.clear(); + return this; + } + + @Override + public RogueCommonFormula clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonFormula)) { + return false; + } + RogueCommonFormula other = (RogueCommonFormula) o; + return bitField0_ == other.bitField0_ + && (!hasFormulaInfo() || formulaInfo.equals(other.formulaInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(formulaInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(formulaInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonFormula mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 34: { + // formulaInfo + input.readMessage(formulaInfo); + 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.writeMessage(FieldNames.formulaInfo, formulaInfo); + } + output.endObject(); + } + + @Override + public RogueCommonFormula mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1800341300: + case -3818521: { + if (input.isAtField(FieldNames.formulaInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(formulaInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonFormula clone() { + return new RogueCommonFormula().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonFormula parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonFormula(), data).checkInitialized(); + } + + public static RogueCommonFormula parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonFormula(), input).checkInitialized(); + } + + public static RogueCommonFormula parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonFormula(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonFormula messages + */ + public static MessageFactory getFactory() { + return RogueCommonFormulaFactory.INSTANCE; + } + + private enum RogueCommonFormulaFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonFormula create() { + return RogueCommonFormula.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName formulaInfo = FieldName.forField("formulaInfo", "formula_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonKeywordOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonKeywordOuterClass.java new file mode 100644 index 000000000..0bdec5a4e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonKeywordOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonKeywordOuterClass { + /** + * Protobuf type {@code RogueCommonKeyword} + */ + public static final class RogueCommonKeyword extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 keyword_id = 3; + */ + private int keywordId; + + private RogueCommonKeyword() { + } + + /** + * @return a new empty instance of {@code RogueCommonKeyword} + */ + public static RogueCommonKeyword newInstance() { + return new RogueCommonKeyword(); + } + + /** + * optional uint32 keyword_id = 3; + * @return whether the keywordId field is set + */ + public boolean hasKeywordId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 keyword_id = 3; + * @return this + */ + public RogueCommonKeyword clearKeywordId() { + bitField0_ &= ~0x00000001; + keywordId = 0; + return this; + } + + /** + * optional uint32 keyword_id = 3; + * @return the keywordId + */ + public int getKeywordId() { + return keywordId; + } + + /** + * optional uint32 keyword_id = 3; + * @param value the keywordId to set + * @return this + */ + public RogueCommonKeyword setKeywordId(final int value) { + bitField0_ |= 0x00000001; + keywordId = value; + return this; + } + + @Override + public RogueCommonKeyword copyFrom(final RogueCommonKeyword other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + keywordId = other.keywordId; + } + return this; + } + + @Override + public RogueCommonKeyword mergeFrom(final RogueCommonKeyword other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKeywordId()) { + setKeywordId(other.keywordId); + } + return this; + } + + @Override + public RogueCommonKeyword clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + keywordId = 0; + return this; + } + + @Override + public RogueCommonKeyword clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonKeyword)) { + return false; + } + RogueCommonKeyword other = (RogueCommonKeyword) o; + return bitField0_ == other.bitField0_ + && (!hasKeywordId() || keywordId == other.keywordId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(keywordId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(keywordId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonKeyword mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // keywordId + keywordId = input.readUInt32(); + 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.writeUInt32(FieldNames.keywordId, keywordId); + } + output.endObject(); + } + + @Override + public RogueCommonKeyword mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -962244380: + case 235216689: { + if (input.isAtField(FieldNames.keywordId)) { + if (!input.trySkipNullValue()) { + keywordId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonKeyword clone() { + return new RogueCommonKeyword().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonKeyword parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonKeyword(), data).checkInitialized(); + } + + public static RogueCommonKeyword parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonKeyword(), input).checkInitialized(); + } + + public static RogueCommonKeyword parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonKeyword(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonKeyword messages + */ + public static MessageFactory getFactory() { + return RogueCommonKeywordFactory.INSTANCE; + } + + private enum RogueCommonKeywordFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonKeyword create() { + return RogueCommonKeyword.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName keywordId = FieldName.forField("keywordId", "keyword_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonMiracleOuterClass.java new file mode 100644 index 000000000..2d1ec1d74 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonMiracleOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonMiracleOuterClass { + /** + * Protobuf type {@code RogueCommonMiracle} + */ + public static final class RogueCommonMiracle extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .GameRogueMiracle miracle_info = 13; + */ + private final GameRogueMiracleOuterClass.GameRogueMiracle miracleInfo = GameRogueMiracleOuterClass.GameRogueMiracle.newInstance(); + + private RogueCommonMiracle() { + } + + /** + * @return a new empty instance of {@code RogueCommonMiracle} + */ + public static RogueCommonMiracle newInstance() { + return new RogueCommonMiracle(); + } + + /** + * optional .GameRogueMiracle miracle_info = 13; + * @return whether the miracleInfo field is set + */ + public boolean hasMiracleInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .GameRogueMiracle miracle_info = 13; + * @return this + */ + public RogueCommonMiracle clearMiracleInfo() { + bitField0_ &= ~0x00000001; + miracleInfo.clear(); + return this; + } + + /** + * optional .GameRogueMiracle miracle_info = 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 #getMutableMiracleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public GameRogueMiracleOuterClass.GameRogueMiracle getMiracleInfo() { + return miracleInfo; + } + + /** + * optional .GameRogueMiracle miracle_info = 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 GameRogueMiracleOuterClass.GameRogueMiracle getMutableMiracleInfo() { + bitField0_ |= 0x00000001; + return miracleInfo; + } + + /** + * optional .GameRogueMiracle miracle_info = 13; + * @param value the miracleInfo to set + * @return this + */ + public RogueCommonMiracle setMiracleInfo( + final GameRogueMiracleOuterClass.GameRogueMiracle value) { + bitField0_ |= 0x00000001; + miracleInfo.copyFrom(value); + return this; + } + + @Override + public RogueCommonMiracle copyFrom(final RogueCommonMiracle other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + miracleInfo.copyFrom(other.miracleInfo); + } + return this; + } + + @Override + public RogueCommonMiracle mergeFrom(final RogueCommonMiracle other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMiracleInfo()) { + getMutableMiracleInfo().mergeFrom(other.miracleInfo); + } + return this; + } + + @Override + public RogueCommonMiracle clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + miracleInfo.clear(); + return this; + } + + @Override + public RogueCommonMiracle clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + miracleInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonMiracle)) { + return false; + } + RogueCommonMiracle other = (RogueCommonMiracle) o; + return bitField0_ == other.bitField0_ + && (!hasMiracleInfo() || miracleInfo.equals(other.miracleInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(miracleInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(miracleInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonMiracle mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 106: { + // miracleInfo + input.readMessage(miracleInfo); + 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.writeMessage(FieldNames.miracleInfo, miracleInfo); + } + output.endObject(); + } + + @Override + public RogueCommonMiracle mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 760306879: + case 2114852796: { + if (input.isAtField(FieldNames.miracleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(miracleInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonMiracle clone() { + return new RogueCommonMiracle().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonMiracle parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonMiracle(), data).checkInitialized(); + } + + public static RogueCommonMiracle parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonMiracle(), input).checkInitialized(); + } + + public static RogueCommonMiracle parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonMiracle(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonMiracle messages + */ + public static MessageFactory getFactory() { + return RogueCommonMiracleFactory.INSTANCE; + } + + private enum RogueCommonMiracleFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonMiracle create() { + return RogueCommonMiracle.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName miracleInfo = FieldName.forField("miracleInfo", "miracle_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonMoneyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonMoneyOuterClass.java new file mode 100644 index 000000000..4d471f2c2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonMoneyOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonMoneyOuterClass { + /** + * Protobuf type {@code RogueCommonMoney} + */ + public static final class RogueCommonMoney extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 display_type = 2; + */ + private int displayType; + + /** + * optional uint32 num = 14; + */ + private int num; + + private RogueCommonMoney() { + } + + /** + * @return a new empty instance of {@code RogueCommonMoney} + */ + public static RogueCommonMoney newInstance() { + return new RogueCommonMoney(); + } + + /** + * optional uint32 display_type = 2; + * @return whether the displayType field is set + */ + public boolean hasDisplayType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 display_type = 2; + * @return this + */ + public RogueCommonMoney clearDisplayType() { + bitField0_ &= ~0x00000001; + displayType = 0; + return this; + } + + /** + * optional uint32 display_type = 2; + * @return the displayType + */ + public int getDisplayType() { + return displayType; + } + + /** + * optional uint32 display_type = 2; + * @param value the displayType to set + * @return this + */ + public RogueCommonMoney setDisplayType(final int value) { + bitField0_ |= 0x00000001; + displayType = value; + return this; + } + + /** + * optional uint32 num = 14; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 num = 14; + * @return this + */ + public RogueCommonMoney clearNum() { + bitField0_ &= ~0x00000002; + num = 0; + return this; + } + + /** + * optional uint32 num = 14; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 14; + * @param value the num to set + * @return this + */ + public RogueCommonMoney setNum(final int value) { + bitField0_ |= 0x00000002; + num = value; + return this; + } + + @Override + public RogueCommonMoney copyFrom(final RogueCommonMoney other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + displayType = other.displayType; + num = other.num; + } + return this; + } + + @Override + public RogueCommonMoney mergeFrom(final RogueCommonMoney other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDisplayType()) { + setDisplayType(other.displayType); + } + if (other.hasNum()) { + setNum(other.num); + } + return this; + } + + @Override + public RogueCommonMoney clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayType = 0; + num = 0; + return this; + } + + @Override + public RogueCommonMoney clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonMoney)) { + return false; + } + RogueCommonMoney other = (RogueCommonMoney) o; + return bitField0_ == other.bitField0_ + && (!hasDisplayType() || displayType == other.displayType) + && (!hasNum() || num == other.num); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(displayType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(num); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(displayType); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonMoney mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // displayType + displayType = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // num + num = input.readUInt32(); + 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.displayType, displayType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.num, num); + } + output.endObject(); + } + + @Override + public RogueCommonMoney mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1714350876: + case 1615288471: { + if (input.isAtField(FieldNames.displayType)) { + if (!input.trySkipNullValue()) { + displayType = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonMoney clone() { + return new RogueCommonMoney().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonMoney parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonMoney(), data).checkInitialized(); + } + + public static RogueCommonMoney parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonMoney(), input).checkInitialized(); + } + + public static RogueCommonMoney parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonMoney(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonMoney messages + */ + public static MessageFactory getFactory() { + return RogueCommonMoneyFactory.INSTANCE; + } + + private enum RogueCommonMoneyFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonMoney create() { + return RogueCommonMoney.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName displayType = FieldName.forField("displayType", "display_type"); + + static final FieldName num = FieldName.forField("num"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonVirtualItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonVirtualItemInfoOuterClass.java new file mode 100644 index 000000000..5b0bd2a8d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonVirtualItemInfoOuterClass.java @@ -0,0 +1,381 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCommonVirtualItemInfoOuterClass { + /** + * Protobuf type {@code RogueCommonVirtualItemInfo} + */ + public static final class RogueCommonVirtualItemInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  11
+     * 
+ * + * optional uint32 virtual_item_id = 3; + */ + private int virtualItemId; + + /** + *
+     *  3
+     * 
+ * + * optional uint32 virtual_item_num = 11; + */ + private int virtualItemNum; + + private RogueCommonVirtualItemInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonVirtualItemInfo} + */ + public static RogueCommonVirtualItemInfo newInstance() { + return new RogueCommonVirtualItemInfo(); + } + + /** + *
+     *  11
+     * 
+ * + * optional uint32 virtual_item_id = 3; + * @return whether the virtualItemId field is set + */ + public boolean hasVirtualItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  11
+     * 
+ * + * optional uint32 virtual_item_id = 3; + * @return this + */ + public RogueCommonVirtualItemInfo clearVirtualItemId() { + bitField0_ &= ~0x00000001; + virtualItemId = 0; + return this; + } + + /** + *
+     *  11
+     * 
+ * + * optional uint32 virtual_item_id = 3; + * @return the virtualItemId + */ + public int getVirtualItemId() { + return virtualItemId; + } + + /** + *
+     *  11
+     * 
+ * + * optional uint32 virtual_item_id = 3; + * @param value the virtualItemId to set + * @return this + */ + public RogueCommonVirtualItemInfo setVirtualItemId(final int value) { + bitField0_ |= 0x00000001; + virtualItemId = value; + return this; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 virtual_item_num = 11; + * @return whether the virtualItemNum field is set + */ + public boolean hasVirtualItemNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 virtual_item_num = 11; + * @return this + */ + public RogueCommonVirtualItemInfo clearVirtualItemNum() { + bitField0_ &= ~0x00000002; + virtualItemNum = 0; + return this; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 virtual_item_num = 11; + * @return the virtualItemNum + */ + public int getVirtualItemNum() { + return virtualItemNum; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 virtual_item_num = 11; + * @param value the virtualItemNum to set + * @return this + */ + public RogueCommonVirtualItemInfo setVirtualItemNum(final int value) { + bitField0_ |= 0x00000002; + virtualItemNum = value; + return this; + } + + @Override + public RogueCommonVirtualItemInfo copyFrom(final RogueCommonVirtualItemInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + virtualItemId = other.virtualItemId; + virtualItemNum = other.virtualItemNum; + } + return this; + } + + @Override + public RogueCommonVirtualItemInfo mergeFrom(final RogueCommonVirtualItemInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasVirtualItemId()) { + setVirtualItemId(other.virtualItemId); + } + if (other.hasVirtualItemNum()) { + setVirtualItemNum(other.virtualItemNum); + } + return this; + } + + @Override + public RogueCommonVirtualItemInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + virtualItemId = 0; + virtualItemNum = 0; + return this; + } + + @Override + public RogueCommonVirtualItemInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonVirtualItemInfo)) { + return false; + } + RogueCommonVirtualItemInfo other = (RogueCommonVirtualItemInfo) o; + return bitField0_ == other.bitField0_ + && (!hasVirtualItemId() || virtualItemId == other.virtualItemId) + && (!hasVirtualItemNum() || virtualItemNum == other.virtualItemNum); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(virtualItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(virtualItemNum); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(virtualItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(virtualItemNum); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonVirtualItemInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // virtualItemId + virtualItemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // virtualItemNum + virtualItemNum = input.readUInt32(); + 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.virtualItemId, virtualItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.virtualItemNum, virtualItemNum); + } + output.endObject(); + } + + @Override + public RogueCommonVirtualItemInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 188637817: + case -170048365: { + if (input.isAtField(FieldNames.virtualItemId)) { + if (!input.trySkipNullValue()) { + virtualItemId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1552810472: + case -976526578: { + if (input.isAtField(FieldNames.virtualItemNum)) { + if (!input.trySkipNullValue()) { + virtualItemNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonVirtualItemInfo clone() { + return new RogueCommonVirtualItemInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonVirtualItemInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonVirtualItemInfo(), data).checkInitialized(); + } + + public static RogueCommonVirtualItemInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonVirtualItemInfo(), input).checkInitialized(); + } + + public static RogueCommonVirtualItemInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonVirtualItemInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonVirtualItemInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonVirtualItemInfoFactory.INSTANCE; + } + + private enum RogueCommonVirtualItemInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonVirtualItemInfo create() { + return RogueCommonVirtualItemInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName virtualItemId = FieldName.forField("virtualItemId", "virtual_item_id"); + + static final FieldName virtualItemNum = FieldName.forField("virtualItemNum", "virtual_item_num"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCurseChestInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCurseChestInfoOuterClass.java new file mode 100644 index 000000000..993f570f0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCurseChestInfoOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueCurseChestInfoOuterClass { + /** + * Protobuf type {@code RogueCurseChestInfo} + */ + public static final class RogueCurseChestInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 JHMOFNALMPO = 3; + */ + private int jHMOFNALMPO; + + private RogueCurseChestInfo() { + } + + /** + * @return a new empty instance of {@code RogueCurseChestInfo} + */ + public static RogueCurseChestInfo newInstance() { + return new RogueCurseChestInfo(); + } + + /** + * optional uint32 JHMOFNALMPO = 3; + * @return whether the jHMOFNALMPO field is set + */ + public boolean hasJHMOFNALMPO() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 JHMOFNALMPO = 3; + * @return this + */ + public RogueCurseChestInfo clearJHMOFNALMPO() { + bitField0_ &= ~0x00000001; + jHMOFNALMPO = 0; + return this; + } + + /** + * optional uint32 JHMOFNALMPO = 3; + * @return the jHMOFNALMPO + */ + public int getJHMOFNALMPO() { + return jHMOFNALMPO; + } + + /** + * optional uint32 JHMOFNALMPO = 3; + * @param value the jHMOFNALMPO to set + * @return this + */ + public RogueCurseChestInfo setJHMOFNALMPO(final int value) { + bitField0_ |= 0x00000001; + jHMOFNALMPO = value; + return this; + } + + @Override + public RogueCurseChestInfo copyFrom(final RogueCurseChestInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + jHMOFNALMPO = other.jHMOFNALMPO; + } + return this; + } + + @Override + public RogueCurseChestInfo mergeFrom(final RogueCurseChestInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasJHMOFNALMPO()) { + setJHMOFNALMPO(other.jHMOFNALMPO); + } + return this; + } + + @Override + public RogueCurseChestInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jHMOFNALMPO = 0; + return this; + } + + @Override + public RogueCurseChestInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCurseChestInfo)) { + return false; + } + RogueCurseChestInfo other = (RogueCurseChestInfo) o; + return bitField0_ == other.bitField0_ + && (!hasJHMOFNALMPO() || jHMOFNALMPO == other.jHMOFNALMPO); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(jHMOFNALMPO); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jHMOFNALMPO); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCurseChestInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // jHMOFNALMPO + jHMOFNALMPO = input.readUInt32(); + 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.writeUInt32(FieldNames.jHMOFNALMPO, jHMOFNALMPO); + } + output.endObject(); + } + + @Override + public RogueCurseChestInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1704696793: { + if (input.isAtField(FieldNames.jHMOFNALMPO)) { + if (!input.trySkipNullValue()) { + jHMOFNALMPO = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCurseChestInfo clone() { + return new RogueCurseChestInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCurseChestInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCurseChestInfo(), data).checkInitialized(); + } + + public static RogueCurseChestInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCurseChestInfo(), input).checkInitialized(); + } + + public static RogueCurseChestInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCurseChestInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCurseChestInfo messages + */ + public static MessageFactory getFactory() { + return RogueCurseChestInfoFactory.INSTANCE; + } + + private enum RogueCurseChestInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCurseChestInfo create() { + return RogueCurseChestInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName jHMOFNALMPO = FieldName.forField("JHMOFNALMPO"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueDifficultyLevelInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueDifficultyLevelInfoOuterClass.java new file mode 100644 index 000000000..e13413c62 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueDifficultyLevelInfoOuterClass.java @@ -0,0 +1,301 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class RogueDifficultyLevelInfoOuterClass { + /** + * Protobuf type {@code RogueDifficultyLevelInfo} + */ + public static final class RogueDifficultyLevelInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 difficulty_id_list = 14; + */ + private final RepeatedInt difficultyIdList = RepeatedInt.newEmptyInstance(); + + private RogueDifficultyLevelInfo() { + } + + /** + * @return a new empty instance of {@code RogueDifficultyLevelInfo} + */ + public static RogueDifficultyLevelInfo newInstance() { + return new RogueDifficultyLevelInfo(); + } + + /** + * repeated uint32 difficulty_id_list = 14; + * @return whether the difficultyIdList field is set + */ + public boolean hasDifficultyIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 difficulty_id_list = 14; + * @return this + */ + public RogueDifficultyLevelInfo clearDifficultyIdList() { + bitField0_ &= ~0x00000001; + difficultyIdList.clear(); + return this; + } + + /** + * repeated uint32 difficulty_id_list = 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 #getMutableDifficultyIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDifficultyIdList() { + return difficultyIdList; + } + + /** + * repeated uint32 difficulty_id_list = 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 RepeatedInt getMutableDifficultyIdList() { + bitField0_ |= 0x00000001; + return difficultyIdList; + } + + /** + * repeated uint32 difficulty_id_list = 14; + * @param value the difficultyIdList to add + * @return this + */ + public RogueDifficultyLevelInfo addDifficultyIdList(final int value) { + bitField0_ |= 0x00000001; + difficultyIdList.add(value); + return this; + } + + /** + * repeated uint32 difficulty_id_list = 14; + * @param values the difficultyIdList to add + * @return this + */ + public RogueDifficultyLevelInfo addAllDifficultyIdList(final int... values) { + bitField0_ |= 0x00000001; + difficultyIdList.addAll(values); + return this; + } + + @Override + public RogueDifficultyLevelInfo copyFrom(final RogueDifficultyLevelInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + difficultyIdList.copyFrom(other.difficultyIdList); + } + return this; + } + + @Override + public RogueDifficultyLevelInfo mergeFrom(final RogueDifficultyLevelInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDifficultyIdList()) { + getMutableDifficultyIdList().addAll(other.difficultyIdList); + } + return this; + } + + @Override + public RogueDifficultyLevelInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + difficultyIdList.clear(); + return this; + } + + @Override + public RogueDifficultyLevelInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + difficultyIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueDifficultyLevelInfo)) { + return false; + } + RogueDifficultyLevelInfo other = (RogueDifficultyLevelInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDifficultyIdList() || difficultyIdList.equals(other.difficultyIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < difficultyIdList.length(); i++) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(difficultyIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * difficultyIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(difficultyIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueDifficultyLevelInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 114: { + // difficultyIdList [packed=true] + input.readPackedUInt32(difficultyIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 112: { + // difficultyIdList [packed=false] + tag = input.readRepeatedUInt32(difficultyIdList, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.difficultyIdList, difficultyIdList); + } + output.endObject(); + } + + @Override + public RogueDifficultyLevelInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2107959308: + case 1982990526: { + if (input.isAtField(FieldNames.difficultyIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(difficultyIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueDifficultyLevelInfo clone() { + return new RogueDifficultyLevelInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueDifficultyLevelInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueDifficultyLevelInfo(), data).checkInitialized(); + } + + public static RogueDifficultyLevelInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueDifficultyLevelInfo(), input).checkInitialized(); + } + + public static RogueDifficultyLevelInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueDifficultyLevelInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueDifficultyLevelInfo messages + */ + public static MessageFactory getFactory() { + return RogueDifficultyLevelInfoFactory.INSTANCE; + } + + private enum RogueDifficultyLevelInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueDifficultyLevelInfo create() { + return RogueDifficultyLevelInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName difficultyIdList = FieldName.forField("difficultyIdList", "difficulty_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueExhibitionStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueExhibitionStatusOuterClass.java new file mode 100644 index 000000000..45fff2b4b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueExhibitionStatusOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueExhibitionStatusOuterClass { + /** + * Protobuf enum {@code RogueExhibitionStatus} + */ + public enum RogueExhibitionStatus implements ProtoEnum { + /** + * ROGUE_EXHIBITION_NONE = 0; + */ + ROGUE_EXHIBITION_NONE("ROGUE_EXHIBITION_NONE", 0), + + /** + * ROGUE_EXHIBITION_UNLOCKED = 1; + */ + ROGUE_EXHIBITION_UNLOCKED("ROGUE_EXHIBITION_UNLOCKED", 1), + + /** + * ROGUE_EXHIBITION_DISPLAY = 2; + */ + ROGUE_EXHIBITION_DISPLAY("ROGUE_EXHIBITION_DISPLAY", 2); + + /** + * ROGUE_EXHIBITION_NONE = 0; + */ + public static final int ROGUE_EXHIBITION_NONE_VALUE = 0; + + /** + * ROGUE_EXHIBITION_UNLOCKED = 1; + */ + public static final int ROGUE_EXHIBITION_UNLOCKED_VALUE = 1; + + /** + * ROGUE_EXHIBITION_DISPLAY = 2; + */ + public static final int ROGUE_EXHIBITION_DISPLAY_VALUE = 2; + + private final String name; + + private final int number; + + private RogueExhibitionStatus(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 RogueExhibitionStatusConverter.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 RogueExhibitionStatus forNumber(int value) { + return RogueExhibitionStatusConverter.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 RogueExhibitionStatus forNumberOr(int number, RogueExhibitionStatus other) { + RogueExhibitionStatus value = forNumber(number); + return value == null ? other : value; + } + + enum RogueExhibitionStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueExhibitionStatus[] lookup = new RogueExhibitionStatus[3]; + + static { + lookup[0] = ROGUE_EXHIBITION_NONE; + lookup[1] = ROGUE_EXHIBITION_UNLOCKED; + lookup[2] = ROGUE_EXHIBITION_DISPLAY; + } + + @Override + public final RogueExhibitionStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueExhibitionStatus forName(final CharSequence value) { + if (value.length() == 21) { + if (ProtoUtil.isEqual("ROGUE_EXHIBITION_NONE", value)) { + return ROGUE_EXHIBITION_NONE; + } + } + if (value.length() == 24) { + if (ProtoUtil.isEqual("ROGUE_EXHIBITION_DISPLAY", value)) { + return ROGUE_EXHIBITION_DISPLAY; + } + } + if (value.length() == 25) { + if (ProtoUtil.isEqual("ROGUE_EXHIBITION_UNLOCKED", value)) { + return ROGUE_EXHIBITION_UNLOCKED; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueExploreScoreInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueExploreScoreInfoOuterClass.java new file mode 100644 index 000000000..ca6175e6d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueExploreScoreInfoOuterClass.java @@ -0,0 +1,457 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.ProtoUtil; +import us.hebi.quickbuf.RepeatedMessage; + +public final class RogueExploreScoreInfoOuterClass { + /** + * Protobuf type {@code RogueExploreScoreInfo} + */ + public static final class RogueExploreScoreInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float KCILNHFLPFB = 2; + */ + private float kCILNHFLPFB; + + /** + * optional uint32 BABGDLHDFHE = 5; + */ + private int bABGDLHDFHE; + + /** + * repeated .RogueExploreScore score_list = 13; + */ + private final RepeatedMessage scoreList = RepeatedMessage.newEmptyInstance(RogueExploreScoreOuterClass.RogueExploreScore.getFactory()); + + private RogueExploreScoreInfo() { + } + + /** + * @return a new empty instance of {@code RogueExploreScoreInfo} + */ + public static RogueExploreScoreInfo newInstance() { + return new RogueExploreScoreInfo(); + } + + /** + * optional float KCILNHFLPFB = 2; + * @return whether the kCILNHFLPFB field is set + */ + public boolean hasKCILNHFLPFB() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float KCILNHFLPFB = 2; + * @return this + */ + public RogueExploreScoreInfo clearKCILNHFLPFB() { + bitField0_ &= ~0x00000001; + kCILNHFLPFB = 0F; + return this; + } + + /** + * optional float KCILNHFLPFB = 2; + * @return the kCILNHFLPFB + */ + public float getKCILNHFLPFB() { + return kCILNHFLPFB; + } + + /** + * optional float KCILNHFLPFB = 2; + * @param value the kCILNHFLPFB to set + * @return this + */ + public RogueExploreScoreInfo setKCILNHFLPFB(final float value) { + bitField0_ |= 0x00000001; + kCILNHFLPFB = value; + return this; + } + + /** + * optional uint32 BABGDLHDFHE = 5; + * @return whether the bABGDLHDFHE field is set + */ + public boolean hasBABGDLHDFHE() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BABGDLHDFHE = 5; + * @return this + */ + public RogueExploreScoreInfo clearBABGDLHDFHE() { + bitField0_ &= ~0x00000002; + bABGDLHDFHE = 0; + return this; + } + + /** + * optional uint32 BABGDLHDFHE = 5; + * @return the bABGDLHDFHE + */ + public int getBABGDLHDFHE() { + return bABGDLHDFHE; + } + + /** + * optional uint32 BABGDLHDFHE = 5; + * @param value the bABGDLHDFHE to set + * @return this + */ + public RogueExploreScoreInfo setBABGDLHDFHE(final int value) { + bitField0_ |= 0x00000002; + bABGDLHDFHE = value; + return this; + } + + /** + * repeated .RogueExploreScore score_list = 13; + * @return whether the scoreList field is set + */ + public boolean hasScoreList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueExploreScore score_list = 13; + * @return this + */ + public RogueExploreScoreInfo clearScoreList() { + bitField0_ &= ~0x00000004; + scoreList.clear(); + return this; + } + + /** + * repeated .RogueExploreScore score_list = 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 #getMutableScoreList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getScoreList() { + return scoreList; + } + + /** + * repeated .RogueExploreScore score_list = 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 RepeatedMessage getMutableScoreList() { + bitField0_ |= 0x00000004; + return scoreList; + } + + /** + * repeated .RogueExploreScore score_list = 13; + * @param value the scoreList to add + * @return this + */ + public RogueExploreScoreInfo addScoreList( + final RogueExploreScoreOuterClass.RogueExploreScore value) { + bitField0_ |= 0x00000004; + scoreList.add(value); + return this; + } + + /** + * repeated .RogueExploreScore score_list = 13; + * @param values the scoreList to add + * @return this + */ + public RogueExploreScoreInfo addAllScoreList( + final RogueExploreScoreOuterClass.RogueExploreScore... values) { + bitField0_ |= 0x00000004; + scoreList.addAll(values); + return this; + } + + @Override + public RogueExploreScoreInfo copyFrom(final RogueExploreScoreInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kCILNHFLPFB = other.kCILNHFLPFB; + bABGDLHDFHE = other.bABGDLHDFHE; + scoreList.copyFrom(other.scoreList); + } + return this; + } + + @Override + public RogueExploreScoreInfo mergeFrom(final RogueExploreScoreInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKCILNHFLPFB()) { + setKCILNHFLPFB(other.kCILNHFLPFB); + } + if (other.hasBABGDLHDFHE()) { + setBABGDLHDFHE(other.bABGDLHDFHE); + } + if (other.hasScoreList()) { + getMutableScoreList().addAll(other.scoreList); + } + return this; + } + + @Override + public RogueExploreScoreInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kCILNHFLPFB = 0F; + bABGDLHDFHE = 0; + scoreList.clear(); + return this; + } + + @Override + public RogueExploreScoreInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scoreList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueExploreScoreInfo)) { + return false; + } + RogueExploreScoreInfo other = (RogueExploreScoreInfo) o; + return bitField0_ == other.bitField0_ + && (!hasKCILNHFLPFB() || ProtoUtil.isEqual(kCILNHFLPFB, other.kCILNHFLPFB)) + && (!hasBABGDLHDFHE() || bABGDLHDFHE == other.bABGDLHDFHE) + && (!hasScoreList() || scoreList.equals(other.scoreList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 21); + output.writeFloatNoTag(kCILNHFLPFB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(bABGDLHDFHE); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < scoreList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(scoreList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bABGDLHDFHE); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * scoreList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(scoreList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueExploreScoreInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 21: { + // kCILNHFLPFB + kCILNHFLPFB = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // bABGDLHDFHE + bABGDLHDFHE = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // scoreList + tag = input.readRepeatedMessage(scoreList, 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.writeFloat(FieldNames.kCILNHFLPFB, kCILNHFLPFB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.bABGDLHDFHE, bABGDLHDFHE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.scoreList, scoreList); + } + output.endObject(); + } + + @Override + public RogueExploreScoreInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1234639921: { + if (input.isAtField(FieldNames.kCILNHFLPFB)) { + if (!input.trySkipNullValue()) { + kCILNHFLPFB = input.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 94535803: { + if (input.isAtField(FieldNames.bABGDLHDFHE)) { + if (!input.trySkipNullValue()) { + bABGDLHDFHE = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2128726608: + case 1583642155: { + if (input.isAtField(FieldNames.scoreList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(scoreList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueExploreScoreInfo clone() { + return new RogueExploreScoreInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueExploreScoreInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueExploreScoreInfo(), data).checkInitialized(); + } + + public static RogueExploreScoreInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueExploreScoreInfo(), input).checkInitialized(); + } + + public static RogueExploreScoreInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueExploreScoreInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueExploreScoreInfo messages + */ + public static MessageFactory getFactory() { + return RogueExploreScoreInfoFactory.INSTANCE; + } + + private enum RogueExploreScoreInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueExploreScoreInfo create() { + return RogueExploreScoreInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kCILNHFLPFB = FieldName.forField("KCILNHFLPFB"); + + static final FieldName bABGDLHDFHE = FieldName.forField("BABGDLHDFHE"); + + static final FieldName scoreList = FieldName.forField("scoreList", "score_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueExploreScoreOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueExploreScoreOuterClass.java new file mode 100644 index 000000000..78e332013 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueExploreScoreOuterClass.java @@ -0,0 +1,420 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueExploreScoreOuterClass { + /** + * Protobuf type {@code RogueExploreScore} + */ + public static final class RogueExploreScore extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 score_id = 2; + */ + private int scoreId; + + /** + * optional uint32 OOFAJAGAAOL = 4; + */ + private int oOFAJAGAAOL; + + /** + * optional uint32 HMGLNINOCGH = 11; + */ + private int hMGLNINOCGH; + + private RogueExploreScore() { + } + + /** + * @return a new empty instance of {@code RogueExploreScore} + */ + public static RogueExploreScore newInstance() { + return new RogueExploreScore(); + } + + /** + * optional uint32 score_id = 2; + * @return whether the scoreId field is set + */ + public boolean hasScoreId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 score_id = 2; + * @return this + */ + public RogueExploreScore clearScoreId() { + bitField0_ &= ~0x00000001; + scoreId = 0; + return this; + } + + /** + * optional uint32 score_id = 2; + * @return the scoreId + */ + public int getScoreId() { + return scoreId; + } + + /** + * optional uint32 score_id = 2; + * @param value the scoreId to set + * @return this + */ + public RogueExploreScore setScoreId(final int value) { + bitField0_ |= 0x00000001; + scoreId = value; + return this; + } + + /** + * optional uint32 OOFAJAGAAOL = 4; + * @return whether the oOFAJAGAAOL field is set + */ + public boolean hasOOFAJAGAAOL() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 OOFAJAGAAOL = 4; + * @return this + */ + public RogueExploreScore clearOOFAJAGAAOL() { + bitField0_ &= ~0x00000002; + oOFAJAGAAOL = 0; + return this; + } + + /** + * optional uint32 OOFAJAGAAOL = 4; + * @return the oOFAJAGAAOL + */ + public int getOOFAJAGAAOL() { + return oOFAJAGAAOL; + } + + /** + * optional uint32 OOFAJAGAAOL = 4; + * @param value the oOFAJAGAAOL to set + * @return this + */ + public RogueExploreScore setOOFAJAGAAOL(final int value) { + bitField0_ |= 0x00000002; + oOFAJAGAAOL = value; + return this; + } + + /** + * optional uint32 HMGLNINOCGH = 11; + * @return whether the hMGLNINOCGH field is set + */ + public boolean hasHMGLNINOCGH() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 HMGLNINOCGH = 11; + * @return this + */ + public RogueExploreScore clearHMGLNINOCGH() { + bitField0_ &= ~0x00000004; + hMGLNINOCGH = 0; + return this; + } + + /** + * optional uint32 HMGLNINOCGH = 11; + * @return the hMGLNINOCGH + */ + public int getHMGLNINOCGH() { + return hMGLNINOCGH; + } + + /** + * optional uint32 HMGLNINOCGH = 11; + * @param value the hMGLNINOCGH to set + * @return this + */ + public RogueExploreScore setHMGLNINOCGH(final int value) { + bitField0_ |= 0x00000004; + hMGLNINOCGH = value; + return this; + } + + @Override + public RogueExploreScore copyFrom(final RogueExploreScore other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + scoreId = other.scoreId; + oOFAJAGAAOL = other.oOFAJAGAAOL; + hMGLNINOCGH = other.hMGLNINOCGH; + } + return this; + } + + @Override + public RogueExploreScore mergeFrom(final RogueExploreScore other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasScoreId()) { + setScoreId(other.scoreId); + } + if (other.hasOOFAJAGAAOL()) { + setOOFAJAGAAOL(other.oOFAJAGAAOL); + } + if (other.hasHMGLNINOCGH()) { + setHMGLNINOCGH(other.hMGLNINOCGH); + } + return this; + } + + @Override + public RogueExploreScore clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scoreId = 0; + oOFAJAGAAOL = 0; + hMGLNINOCGH = 0; + return this; + } + + @Override + public RogueExploreScore clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueExploreScore)) { + return false; + } + RogueExploreScore other = (RogueExploreScore) o; + return bitField0_ == other.bitField0_ + && (!hasScoreId() || scoreId == other.scoreId) + && (!hasOOFAJAGAAOL() || oOFAJAGAAOL == other.oOFAJAGAAOL) + && (!hasHMGLNINOCGH() || hMGLNINOCGH == other.hMGLNINOCGH); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(scoreId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(oOFAJAGAAOL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(hMGLNINOCGH); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oOFAJAGAAOL); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hMGLNINOCGH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueExploreScore mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // scoreId + scoreId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // oOFAJAGAAOL + oOFAJAGAAOL = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // hMGLNINOCGH + hMGLNINOCGH = input.readUInt32(); + 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.scoreId, scoreId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oOFAJAGAAOL, oOFAJAGAAOL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.hMGLNINOCGH, hMGLNINOCGH); + } + output.endObject(); + } + + @Override + public RogueExploreScore mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1924000589: + case -485502488: { + if (input.isAtField(FieldNames.scoreId)) { + if (!input.trySkipNullValue()) { + scoreId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -39911182: { + if (input.isAtField(FieldNames.oOFAJAGAAOL)) { + if (!input.trySkipNullValue()) { + oOFAJAGAAOL = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -278572482: { + if (input.isAtField(FieldNames.hMGLNINOCGH)) { + if (!input.trySkipNullValue()) { + hMGLNINOCGH = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueExploreScore clone() { + return new RogueExploreScore().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueExploreScore parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueExploreScore(), data).checkInitialized(); + } + + public static RogueExploreScore parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueExploreScore(), input).checkInitialized(); + } + + public static RogueExploreScore parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueExploreScore(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueExploreScore messages + */ + public static MessageFactory getFactory() { + return RogueExploreScoreFactory.INSTANCE; + } + + private enum RogueExploreScoreFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueExploreScore create() { + return RogueExploreScore.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName scoreId = FieldName.forField("scoreId", "score_id"); + + static final FieldName oOFAJAGAAOL = FieldName.forField("OOFAJAGAAOL"); + + static final FieldName hMGLNINOCGH = FieldName.forField("HMGLNINOCGH"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueFormulaSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueFormulaSelectInfoOuterClass.java new file mode 100644 index 000000000..8bbcdc904 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueFormulaSelectInfoOuterClass.java @@ -0,0 +1,930 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class RogueFormulaSelectInfoOuterClass { + /** + * Protobuf type {@code RogueFormulaSelectInfo} + */ + public static final class RogueFormulaSelectInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 roll_formula_max_count = 2; + */ + private int rollFormulaMaxCount; + + /** + * optional uint32 roll_formula_free_count = 4; + */ + private int rollFormulaFreeCount; + + /** + * optional uint32 roll_formula_count = 6; + */ + private int rollFormulaCount; + + /** + * optional uint32 hint_id = 11; + */ + private int hintId; + + /** + * optional bool can_roll = 15; + */ + private boolean canRoll; + + /** + * optional .ItemCostList roll_formula_cost_data = 9; + */ + private final ItemCostListOuterClass.ItemCostList rollFormulaCostData = ItemCostListOuterClass.ItemCostList.newInstance(); + + /** + * repeated uint32 select_formula_id_list = 5; + */ + private final RepeatedInt selectFormulaIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 handbook_unlock_formula_id_list = 13; + */ + private final RepeatedInt handbookUnlockFormulaIdList = RepeatedInt.newEmptyInstance(); + + private RogueFormulaSelectInfo() { + } + + /** + * @return a new empty instance of {@code RogueFormulaSelectInfo} + */ + public static RogueFormulaSelectInfo newInstance() { + return new RogueFormulaSelectInfo(); + } + + /** + * optional uint32 roll_formula_max_count = 2; + * @return whether the rollFormulaMaxCount field is set + */ + public boolean hasRollFormulaMaxCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 roll_formula_max_count = 2; + * @return this + */ + public RogueFormulaSelectInfo clearRollFormulaMaxCount() { + bitField0_ &= ~0x00000001; + rollFormulaMaxCount = 0; + return this; + } + + /** + * optional uint32 roll_formula_max_count = 2; + * @return the rollFormulaMaxCount + */ + public int getRollFormulaMaxCount() { + return rollFormulaMaxCount; + } + + /** + * optional uint32 roll_formula_max_count = 2; + * @param value the rollFormulaMaxCount to set + * @return this + */ + public RogueFormulaSelectInfo setRollFormulaMaxCount(final int value) { + bitField0_ |= 0x00000001; + rollFormulaMaxCount = value; + return this; + } + + /** + * optional uint32 roll_formula_free_count = 4; + * @return whether the rollFormulaFreeCount field is set + */ + public boolean hasRollFormulaFreeCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 roll_formula_free_count = 4; + * @return this + */ + public RogueFormulaSelectInfo clearRollFormulaFreeCount() { + bitField0_ &= ~0x00000002; + rollFormulaFreeCount = 0; + return this; + } + + /** + * optional uint32 roll_formula_free_count = 4; + * @return the rollFormulaFreeCount + */ + public int getRollFormulaFreeCount() { + return rollFormulaFreeCount; + } + + /** + * optional uint32 roll_formula_free_count = 4; + * @param value the rollFormulaFreeCount to set + * @return this + */ + public RogueFormulaSelectInfo setRollFormulaFreeCount(final int value) { + bitField0_ |= 0x00000002; + rollFormulaFreeCount = value; + return this; + } + + /** + * optional uint32 roll_formula_count = 6; + * @return whether the rollFormulaCount field is set + */ + public boolean hasRollFormulaCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 roll_formula_count = 6; + * @return this + */ + public RogueFormulaSelectInfo clearRollFormulaCount() { + bitField0_ &= ~0x00000004; + rollFormulaCount = 0; + return this; + } + + /** + * optional uint32 roll_formula_count = 6; + * @return the rollFormulaCount + */ + public int getRollFormulaCount() { + return rollFormulaCount; + } + + /** + * optional uint32 roll_formula_count = 6; + * @param value the rollFormulaCount to set + * @return this + */ + public RogueFormulaSelectInfo setRollFormulaCount(final int value) { + bitField0_ |= 0x00000004; + rollFormulaCount = value; + return this; + } + + /** + * optional uint32 hint_id = 11; + * @return whether the hintId field is set + */ + public boolean hasHintId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 hint_id = 11; + * @return this + */ + public RogueFormulaSelectInfo clearHintId() { + bitField0_ &= ~0x00000008; + hintId = 0; + return this; + } + + /** + * optional uint32 hint_id = 11; + * @return the hintId + */ + public int getHintId() { + return hintId; + } + + /** + * optional uint32 hint_id = 11; + * @param value the hintId to set + * @return this + */ + public RogueFormulaSelectInfo setHintId(final int value) { + bitField0_ |= 0x00000008; + hintId = value; + return this; + } + + /** + * optional bool can_roll = 15; + * @return whether the canRoll field is set + */ + public boolean hasCanRoll() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool can_roll = 15; + * @return this + */ + public RogueFormulaSelectInfo clearCanRoll() { + bitField0_ &= ~0x00000010; + canRoll = false; + return this; + } + + /** + * optional bool can_roll = 15; + * @return the canRoll + */ + public boolean getCanRoll() { + return canRoll; + } + + /** + * optional bool can_roll = 15; + * @param value the canRoll to set + * @return this + */ + public RogueFormulaSelectInfo setCanRoll(final boolean value) { + bitField0_ |= 0x00000010; + canRoll = value; + return this; + } + + /** + * optional .ItemCostList roll_formula_cost_data = 9; + * @return whether the rollFormulaCostData field is set + */ + public boolean hasRollFormulaCostData() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ItemCostList roll_formula_cost_data = 9; + * @return this + */ + public RogueFormulaSelectInfo clearRollFormulaCostData() { + bitField0_ &= ~0x00000020; + rollFormulaCostData.clear(); + return this; + } + + /** + * optional .ItemCostList roll_formula_cost_data = 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 #getMutableRollFormulaCostData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getRollFormulaCostData() { + return rollFormulaCostData; + } + + /** + * optional .ItemCostList roll_formula_cost_data = 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 ItemCostListOuterClass.ItemCostList getMutableRollFormulaCostData() { + bitField0_ |= 0x00000020; + return rollFormulaCostData; + } + + /** + * optional .ItemCostList roll_formula_cost_data = 9; + * @param value the rollFormulaCostData to set + * @return this + */ + public RogueFormulaSelectInfo setRollFormulaCostData( + final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000020; + rollFormulaCostData.copyFrom(value); + return this; + } + + /** + * repeated uint32 select_formula_id_list = 5; + * @return whether the selectFormulaIdList field is set + */ + public boolean hasSelectFormulaIdList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 select_formula_id_list = 5; + * @return this + */ + public RogueFormulaSelectInfo clearSelectFormulaIdList() { + bitField0_ &= ~0x00000040; + selectFormulaIdList.clear(); + return this; + } + + /** + * repeated uint32 select_formula_id_list = 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 #getMutableSelectFormulaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSelectFormulaIdList() { + return selectFormulaIdList; + } + + /** + * repeated uint32 select_formula_id_list = 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 getMutableSelectFormulaIdList() { + bitField0_ |= 0x00000040; + return selectFormulaIdList; + } + + /** + * repeated uint32 select_formula_id_list = 5; + * @param value the selectFormulaIdList to add + * @return this + */ + public RogueFormulaSelectInfo addSelectFormulaIdList(final int value) { + bitField0_ |= 0x00000040; + selectFormulaIdList.add(value); + return this; + } + + /** + * repeated uint32 select_formula_id_list = 5; + * @param values the selectFormulaIdList to add + * @return this + */ + public RogueFormulaSelectInfo addAllSelectFormulaIdList(final int... values) { + bitField0_ |= 0x00000040; + selectFormulaIdList.addAll(values); + return this; + } + + /** + * repeated uint32 handbook_unlock_formula_id_list = 13; + * @return whether the handbookUnlockFormulaIdList field is set + */ + public boolean hasHandbookUnlockFormulaIdList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 handbook_unlock_formula_id_list = 13; + * @return this + */ + public RogueFormulaSelectInfo clearHandbookUnlockFormulaIdList() { + bitField0_ &= ~0x00000080; + handbookUnlockFormulaIdList.clear(); + return this; + } + + /** + * repeated uint32 handbook_unlock_formula_id_list = 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 #getMutableHandbookUnlockFormulaIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getHandbookUnlockFormulaIdList() { + return handbookUnlockFormulaIdList; + } + + /** + * repeated uint32 handbook_unlock_formula_id_list = 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 RepeatedInt getMutableHandbookUnlockFormulaIdList() { + bitField0_ |= 0x00000080; + return handbookUnlockFormulaIdList; + } + + /** + * repeated uint32 handbook_unlock_formula_id_list = 13; + * @param value the handbookUnlockFormulaIdList to add + * @return this + */ + public RogueFormulaSelectInfo addHandbookUnlockFormulaIdList(final int value) { + bitField0_ |= 0x00000080; + handbookUnlockFormulaIdList.add(value); + return this; + } + + /** + * repeated uint32 handbook_unlock_formula_id_list = 13; + * @param values the handbookUnlockFormulaIdList to add + * @return this + */ + public RogueFormulaSelectInfo addAllHandbookUnlockFormulaIdList(final int... values) { + bitField0_ |= 0x00000080; + handbookUnlockFormulaIdList.addAll(values); + return this; + } + + @Override + public RogueFormulaSelectInfo copyFrom(final RogueFormulaSelectInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rollFormulaMaxCount = other.rollFormulaMaxCount; + rollFormulaFreeCount = other.rollFormulaFreeCount; + rollFormulaCount = other.rollFormulaCount; + hintId = other.hintId; + canRoll = other.canRoll; + rollFormulaCostData.copyFrom(other.rollFormulaCostData); + selectFormulaIdList.copyFrom(other.selectFormulaIdList); + handbookUnlockFormulaIdList.copyFrom(other.handbookUnlockFormulaIdList); + } + return this; + } + + @Override + public RogueFormulaSelectInfo mergeFrom(final RogueFormulaSelectInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRollFormulaMaxCount()) { + setRollFormulaMaxCount(other.rollFormulaMaxCount); + } + if (other.hasRollFormulaFreeCount()) { + setRollFormulaFreeCount(other.rollFormulaFreeCount); + } + if (other.hasRollFormulaCount()) { + setRollFormulaCount(other.rollFormulaCount); + } + if (other.hasHintId()) { + setHintId(other.hintId); + } + if (other.hasCanRoll()) { + setCanRoll(other.canRoll); + } + if (other.hasRollFormulaCostData()) { + getMutableRollFormulaCostData().mergeFrom(other.rollFormulaCostData); + } + if (other.hasSelectFormulaIdList()) { + getMutableSelectFormulaIdList().addAll(other.selectFormulaIdList); + } + if (other.hasHandbookUnlockFormulaIdList()) { + getMutableHandbookUnlockFormulaIdList().addAll(other.handbookUnlockFormulaIdList); + } + return this; + } + + @Override + public RogueFormulaSelectInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rollFormulaMaxCount = 0; + rollFormulaFreeCount = 0; + rollFormulaCount = 0; + hintId = 0; + canRoll = false; + rollFormulaCostData.clear(); + selectFormulaIdList.clear(); + handbookUnlockFormulaIdList.clear(); + return this; + } + + @Override + public RogueFormulaSelectInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rollFormulaCostData.clearQuick(); + selectFormulaIdList.clear(); + handbookUnlockFormulaIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueFormulaSelectInfo)) { + return false; + } + RogueFormulaSelectInfo other = (RogueFormulaSelectInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRollFormulaMaxCount() || rollFormulaMaxCount == other.rollFormulaMaxCount) + && (!hasRollFormulaFreeCount() || rollFormulaFreeCount == other.rollFormulaFreeCount) + && (!hasRollFormulaCount() || rollFormulaCount == other.rollFormulaCount) + && (!hasHintId() || hintId == other.hintId) + && (!hasCanRoll() || canRoll == other.canRoll) + && (!hasRollFormulaCostData() || rollFormulaCostData.equals(other.rollFormulaCostData)) + && (!hasSelectFormulaIdList() || selectFormulaIdList.equals(other.selectFormulaIdList)) + && (!hasHandbookUnlockFormulaIdList() || handbookUnlockFormulaIdList.equals(other.handbookUnlockFormulaIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rollFormulaMaxCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(rollFormulaFreeCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(rollFormulaCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(hintId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(canRoll); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rollFormulaCostData); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < selectFormulaIdList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(selectFormulaIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < handbookUnlockFormulaIdList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(handbookUnlockFormulaIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollFormulaMaxCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollFormulaFreeCount); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollFormulaCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hintId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rollFormulaCostData); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * selectFormulaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(selectFormulaIdList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * handbookUnlockFormulaIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(handbookUnlockFormulaIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueFormulaSelectInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // rollFormulaMaxCount + rollFormulaMaxCount = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // rollFormulaFreeCount + rollFormulaFreeCount = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // rollFormulaCount + rollFormulaCount = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // hintId + hintId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // canRoll + canRoll = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // rollFormulaCostData + input.readMessage(rollFormulaCostData); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // selectFormulaIdList [packed=true] + input.readPackedUInt32(selectFormulaIdList, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // handbookUnlockFormulaIdList [packed=true] + input.readPackedUInt32(handbookUnlockFormulaIdList, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // selectFormulaIdList [packed=false] + tag = input.readRepeatedUInt32(selectFormulaIdList, tag); + bitField0_ |= 0x00000040; + break; + } + case 104: { + // handbookUnlockFormulaIdList [packed=false] + tag = input.readRepeatedUInt32(handbookUnlockFormulaIdList, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.rollFormulaMaxCount, rollFormulaMaxCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.rollFormulaFreeCount, rollFormulaFreeCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rollFormulaCount, rollFormulaCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.hintId, hintId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.canRoll, canRoll); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.rollFormulaCostData, rollFormulaCostData); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.selectFormulaIdList, selectFormulaIdList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.handbookUnlockFormulaIdList, handbookUnlockFormulaIdList); + } + output.endObject(); + } + + @Override + public RogueFormulaSelectInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1686763348: + case 823994265: { + if (input.isAtField(FieldNames.rollFormulaMaxCount)) { + if (!input.trySkipNullValue()) { + rollFormulaMaxCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1330223578: + case -1656683273: { + if (input.isAtField(FieldNames.rollFormulaFreeCount)) { + if (!input.trySkipNullValue()) { + rollFormulaFreeCount = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1509490790: + case 1587811508: { + if (input.isAtField(FieldNames.rollFormulaCount)) { + if (!input.trySkipNullValue()) { + rollFormulaCount = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1217175038: + case 922300883: { + if (input.isAtField(FieldNames.hintId)) { + if (!input.trySkipNullValue()) { + hintId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 549719149: + case -126477428: { + if (input.isAtField(FieldNames.canRoll)) { + if (!input.trySkipNullValue()) { + canRoll = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 879485536: + case 802830849: { + if (input.isAtField(FieldNames.rollFormulaCostData)) { + if (!input.trySkipNullValue()) { + input.readMessage(rollFormulaCostData); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 307771843: + case -75392474: { + if (input.isAtField(FieldNames.selectFormulaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(selectFormulaIdList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -67362429: + case 718902453: { + if (input.isAtField(FieldNames.handbookUnlockFormulaIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(handbookUnlockFormulaIdList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueFormulaSelectInfo clone() { + return new RogueFormulaSelectInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueFormulaSelectInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueFormulaSelectInfo(), data).checkInitialized(); + } + + public static RogueFormulaSelectInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueFormulaSelectInfo(), input).checkInitialized(); + } + + public static RogueFormulaSelectInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueFormulaSelectInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueFormulaSelectInfo messages + */ + public static MessageFactory getFactory() { + return RogueFormulaSelectInfoFactory.INSTANCE; + } + + private enum RogueFormulaSelectInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueFormulaSelectInfo create() { + return RogueFormulaSelectInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rollFormulaMaxCount = FieldName.forField("rollFormulaMaxCount", "roll_formula_max_count"); + + static final FieldName rollFormulaFreeCount = FieldName.forField("rollFormulaFreeCount", "roll_formula_free_count"); + + static final FieldName rollFormulaCount = FieldName.forField("rollFormulaCount", "roll_formula_count"); + + static final FieldName hintId = FieldName.forField("hintId", "hint_id"); + + static final FieldName canRoll = FieldName.forField("canRoll", "can_roll"); + + static final FieldName rollFormulaCostData = FieldName.forField("rollFormulaCostData", "roll_formula_cost_data"); + + static final FieldName selectFormulaIdList = FieldName.forField("selectFormulaIdList", "select_formula_id_list"); + + static final FieldName handbookUnlockFormulaIdList = FieldName.forField("handbookUnlockFormulaIdList", "handbook_unlock_formula_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueGameInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueGameInfoOuterClass.java new file mode 100644 index 000000000..04a1ed61e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueGameInfoOuterClass.java @@ -0,0 +1,1149 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueGameInfoOuterClass { + /** + * Protobuf type {@code RogueGameInfo} + */ + public static final class RogueGameInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChessRogueBuffInfo rogue_buff_info = 2; + */ + private final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo rogueBuffInfo = ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo.newInstance(); + + /** + * optional .RogueTournFormulaInfo rogue_tourn_formula_info = 7; + */ + private final RogueTournFormulaInfoOuterClass.RogueTournFormulaInfo rogueTournFormulaInfo = RogueTournFormulaInfoOuterClass.RogueTournFormulaInfo.newInstance(); + + /** + * optional .ChessRogueMiracleInfo game_miracle_info = 10; + */ + private final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo gameMiracleInfo = ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo.newInstance(); + + /** + * optional .RogueDifficultyLevelInfo rogue_difficulty_info = 11; + */ + private final RogueDifficultyLevelInfoOuterClass.RogueDifficultyLevelInfo rogueDifficultyInfo = RogueDifficultyLevelInfoOuterClass.RogueDifficultyLevelInfo.newInstance(); + + /** + * optional .RogueTournVirtualItem rogue_lineup_info = 12; + */ + private final RogueTournVirtualItemOuterClass.RogueTournVirtualItem rogueLineupInfo = RogueTournVirtualItemOuterClass.RogueTournVirtualItem.newInstance(); + + /** + * optional .ChessRogueGameAeonInfo rogue_aeon_info = 13; + */ + private final ChessRogueGameAeonInfoOuterClass.ChessRogueGameAeonInfo rogueAeonInfo = ChessRogueGameAeonInfoOuterClass.ChessRogueGameAeonInfo.newInstance(); + + /** + * optional .KeywordUnlockValue keyword_unlock_value = 14; + */ + private final KeywordUnlockValueOuterClass.KeywordUnlockValue keywordUnlockValue = KeywordUnlockValueOuterClass.KeywordUnlockValue.newInstance(); + + /** + * optional .RogueGameItemValue game_item_value = 15; + */ + private final RogueGameItemValueOuterClass.RogueGameItemValue gameItemValue = RogueGameItemValueOuterClass.RogueGameItemValue.newInstance(); + + private RogueGameInfo() { + } + + /** + * @return a new empty instance of {@code RogueGameInfo} + */ + public static RogueGameInfo newInstance() { + return new RogueGameInfo(); + } + + public boolean hasACNDNONOJPJ() { + return (((bitField0_ & 0x000000ff)) != 0); + } + + public RogueGameInfo clearACNDNONOJPJ() { + if (hasACNDNONOJPJ()) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + return this; + } + + private void clearACNDNONOJPJOtherRogueBuffInfo() { + if ((((bitField0_ & 0x000000fe)) != 0)) { + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherRogueTournFormulaInfo() { + if ((((bitField0_ & 0x000000fd)) != 0)) { + clearRogueBuffInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherGameMiracleInfo() { + if ((((bitField0_ & 0x000000fb)) != 0)) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherRogueDifficultyInfo() { + if ((((bitField0_ & 0x000000f7)) != 0)) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherRogueLineupInfo() { + if ((((bitField0_ & 0x000000ef)) != 0)) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherRogueAeonInfo() { + if ((((bitField0_ & 0x000000df)) != 0)) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearKeywordUnlockValue(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherKeywordUnlockValue() { + if ((((bitField0_ & 0x000000bf)) != 0)) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearGameItemValue(); + } + } + + private void clearACNDNONOJPJOtherGameItemValue() { + if ((((bitField0_ & 0x0000007f)) != 0)) { + clearRogueBuffInfo(); + clearRogueTournFormulaInfo(); + clearGameMiracleInfo(); + clearRogueDifficultyInfo(); + clearRogueLineupInfo(); + clearRogueAeonInfo(); + clearKeywordUnlockValue(); + } + } + + /** + * optional .ChessRogueBuffInfo rogue_buff_info = 2; + * @return whether the rogueBuffInfo field is set + */ + public boolean hasRogueBuffInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueBuffInfo rogue_buff_info = 2; + * @return this + */ + public RogueGameInfo clearRogueBuffInfo() { + bitField0_ &= ~0x00000001; + rogueBuffInfo.clear(); + return this; + } + + /** + * optional .ChessRogueBuffInfo rogue_buff_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 #getMutableRogueBuffInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getRogueBuffInfo() { + return rogueBuffInfo; + } + + /** + * optional .ChessRogueBuffInfo rogue_buff_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 ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getMutableRogueBuffInfo() { + clearACNDNONOJPJOtherRogueBuffInfo(); + bitField0_ |= 0x00000001; + return rogueBuffInfo; + } + + /** + * optional .ChessRogueBuffInfo rogue_buff_info = 2; + * @param value the rogueBuffInfo to set + * @return this + */ + public RogueGameInfo setRogueBuffInfo( + final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo value) { + clearACNDNONOJPJOtherRogueBuffInfo(); + bitField0_ |= 0x00000001; + rogueBuffInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueTournFormulaInfo rogue_tourn_formula_info = 7; + * @return whether the rogueTournFormulaInfo field is set + */ + public boolean hasRogueTournFormulaInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueTournFormulaInfo rogue_tourn_formula_info = 7; + * @return this + */ + public RogueGameInfo clearRogueTournFormulaInfo() { + bitField0_ &= ~0x00000002; + rogueTournFormulaInfo.clear(); + return this; + } + + /** + * optional .RogueTournFormulaInfo rogue_tourn_formula_info = 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 #getMutableRogueTournFormulaInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueTournFormulaInfoOuterClass.RogueTournFormulaInfo getRogueTournFormulaInfo() { + return rogueTournFormulaInfo; + } + + /** + * optional .RogueTournFormulaInfo rogue_tourn_formula_info = 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 RogueTournFormulaInfoOuterClass.RogueTournFormulaInfo getMutableRogueTournFormulaInfo() { + clearACNDNONOJPJOtherRogueTournFormulaInfo(); + bitField0_ |= 0x00000002; + return rogueTournFormulaInfo; + } + + /** + * optional .RogueTournFormulaInfo rogue_tourn_formula_info = 7; + * @param value the rogueTournFormulaInfo to set + * @return this + */ + public RogueGameInfo setRogueTournFormulaInfo( + final RogueTournFormulaInfoOuterClass.RogueTournFormulaInfo value) { + clearACNDNONOJPJOtherRogueTournFormulaInfo(); + bitField0_ |= 0x00000002; + rogueTournFormulaInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueMiracleInfo game_miracle_info = 10; + * @return whether the gameMiracleInfo field is set + */ + public boolean hasGameMiracleInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChessRogueMiracleInfo game_miracle_info = 10; + * @return this + */ + public RogueGameInfo clearGameMiracleInfo() { + bitField0_ &= ~0x00000004; + gameMiracleInfo.clear(); + return this; + } + + /** + * optional .ChessRogueMiracleInfo game_miracle_info = 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 #getMutableGameMiracleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getGameMiracleInfo() { + return gameMiracleInfo; + } + + /** + * optional .ChessRogueMiracleInfo game_miracle_info = 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 ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMutableGameMiracleInfo() { + clearACNDNONOJPJOtherGameMiracleInfo(); + bitField0_ |= 0x00000004; + return gameMiracleInfo; + } + + /** + * optional .ChessRogueMiracleInfo game_miracle_info = 10; + * @param value the gameMiracleInfo to set + * @return this + */ + public RogueGameInfo setGameMiracleInfo( + final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo value) { + clearACNDNONOJPJOtherGameMiracleInfo(); + bitField0_ |= 0x00000004; + gameMiracleInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueDifficultyLevelInfo rogue_difficulty_info = 11; + * @return whether the rogueDifficultyInfo field is set + */ + public boolean hasRogueDifficultyInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueDifficultyLevelInfo rogue_difficulty_info = 11; + * @return this + */ + public RogueGameInfo clearRogueDifficultyInfo() { + bitField0_ &= ~0x00000008; + rogueDifficultyInfo.clear(); + return this; + } + + /** + * optional .RogueDifficultyLevelInfo rogue_difficulty_info = 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 #getMutableRogueDifficultyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueDifficultyLevelInfoOuterClass.RogueDifficultyLevelInfo getRogueDifficultyInfo() { + return rogueDifficultyInfo; + } + + /** + * optional .RogueDifficultyLevelInfo rogue_difficulty_info = 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 RogueDifficultyLevelInfoOuterClass.RogueDifficultyLevelInfo getMutableRogueDifficultyInfo( + ) { + clearACNDNONOJPJOtherRogueDifficultyInfo(); + bitField0_ |= 0x00000008; + return rogueDifficultyInfo; + } + + /** + * optional .RogueDifficultyLevelInfo rogue_difficulty_info = 11; + * @param value the rogueDifficultyInfo to set + * @return this + */ + public RogueGameInfo setRogueDifficultyInfo( + final RogueDifficultyLevelInfoOuterClass.RogueDifficultyLevelInfo value) { + clearACNDNONOJPJOtherRogueDifficultyInfo(); + bitField0_ |= 0x00000008; + rogueDifficultyInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueTournVirtualItem rogue_lineup_info = 12; + * @return whether the rogueLineupInfo field is set + */ + public boolean hasRogueLineupInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueTournVirtualItem rogue_lineup_info = 12; + * @return this + */ + public RogueGameInfo clearRogueLineupInfo() { + bitField0_ &= ~0x00000010; + rogueLineupInfo.clear(); + return this; + } + + /** + * optional .RogueTournVirtualItem rogue_lineup_info = 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 #getMutableRogueLineupInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueTournVirtualItemOuterClass.RogueTournVirtualItem getRogueLineupInfo() { + return rogueLineupInfo; + } + + /** + * optional .RogueTournVirtualItem rogue_lineup_info = 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 RogueTournVirtualItemOuterClass.RogueTournVirtualItem getMutableRogueLineupInfo() { + clearACNDNONOJPJOtherRogueLineupInfo(); + bitField0_ |= 0x00000010; + return rogueLineupInfo; + } + + /** + * optional .RogueTournVirtualItem rogue_lineup_info = 12; + * @param value the rogueLineupInfo to set + * @return this + */ + public RogueGameInfo setRogueLineupInfo( + final RogueTournVirtualItemOuterClass.RogueTournVirtualItem value) { + clearACNDNONOJPJOtherRogueLineupInfo(); + bitField0_ |= 0x00000010; + rogueLineupInfo.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueGameAeonInfo rogue_aeon_info = 13; + * @return whether the rogueAeonInfo field is set + */ + public boolean hasRogueAeonInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChessRogueGameAeonInfo rogue_aeon_info = 13; + * @return this + */ + public RogueGameInfo clearRogueAeonInfo() { + bitField0_ &= ~0x00000020; + rogueAeonInfo.clear(); + return this; + } + + /** + * optional .ChessRogueGameAeonInfo rogue_aeon_info = 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 #getMutableRogueAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueGameAeonInfoOuterClass.ChessRogueGameAeonInfo getRogueAeonInfo() { + return rogueAeonInfo; + } + + /** + * optional .ChessRogueGameAeonInfo rogue_aeon_info = 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 ChessRogueGameAeonInfoOuterClass.ChessRogueGameAeonInfo getMutableRogueAeonInfo() { + clearACNDNONOJPJOtherRogueAeonInfo(); + bitField0_ |= 0x00000020; + return rogueAeonInfo; + } + + /** + * optional .ChessRogueGameAeonInfo rogue_aeon_info = 13; + * @param value the rogueAeonInfo to set + * @return this + */ + public RogueGameInfo setRogueAeonInfo( + final ChessRogueGameAeonInfoOuterClass.ChessRogueGameAeonInfo value) { + clearACNDNONOJPJOtherRogueAeonInfo(); + bitField0_ |= 0x00000020; + rogueAeonInfo.copyFrom(value); + return this; + } + + /** + * optional .KeywordUnlockValue keyword_unlock_value = 14; + * @return whether the keywordUnlockValue field is set + */ + public boolean hasKeywordUnlockValue() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .KeywordUnlockValue keyword_unlock_value = 14; + * @return this + */ + public RogueGameInfo clearKeywordUnlockValue() { + bitField0_ &= ~0x00000040; + keywordUnlockValue.clear(); + return this; + } + + /** + * optional .KeywordUnlockValue keyword_unlock_value = 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 #getMutableKeywordUnlockValue()} if you want to modify it. + * + * @return internal storage object for reading + */ + public KeywordUnlockValueOuterClass.KeywordUnlockValue getKeywordUnlockValue() { + return keywordUnlockValue; + } + + /** + * optional .KeywordUnlockValue keyword_unlock_value = 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 KeywordUnlockValueOuterClass.KeywordUnlockValue getMutableKeywordUnlockValue() { + clearACNDNONOJPJOtherKeywordUnlockValue(); + bitField0_ |= 0x00000040; + return keywordUnlockValue; + } + + /** + * optional .KeywordUnlockValue keyword_unlock_value = 14; + * @param value the keywordUnlockValue to set + * @return this + */ + public RogueGameInfo setKeywordUnlockValue( + final KeywordUnlockValueOuterClass.KeywordUnlockValue value) { + clearACNDNONOJPJOtherKeywordUnlockValue(); + bitField0_ |= 0x00000040; + keywordUnlockValue.copyFrom(value); + return this; + } + + /** + * optional .RogueGameItemValue game_item_value = 15; + * @return whether the gameItemValue field is set + */ + public boolean hasGameItemValue() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .RogueGameItemValue game_item_value = 15; + * @return this + */ + public RogueGameInfo clearGameItemValue() { + bitField0_ &= ~0x00000080; + gameItemValue.clear(); + return this; + } + + /** + * optional .RogueGameItemValue game_item_value = 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 #getMutableGameItemValue()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueGameItemValueOuterClass.RogueGameItemValue getGameItemValue() { + return gameItemValue; + } + + /** + * optional .RogueGameItemValue game_item_value = 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 RogueGameItemValueOuterClass.RogueGameItemValue getMutableGameItemValue() { + clearACNDNONOJPJOtherGameItemValue(); + bitField0_ |= 0x00000080; + return gameItemValue; + } + + /** + * optional .RogueGameItemValue game_item_value = 15; + * @param value the gameItemValue to set + * @return this + */ + public RogueGameInfo setGameItemValue( + final RogueGameItemValueOuterClass.RogueGameItemValue value) { + clearACNDNONOJPJOtherGameItemValue(); + bitField0_ |= 0x00000080; + gameItemValue.copyFrom(value); + return this; + } + + @Override + public RogueGameInfo copyFrom(final RogueGameInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueBuffInfo.copyFrom(other.rogueBuffInfo); + rogueTournFormulaInfo.copyFrom(other.rogueTournFormulaInfo); + gameMiracleInfo.copyFrom(other.gameMiracleInfo); + rogueDifficultyInfo.copyFrom(other.rogueDifficultyInfo); + rogueLineupInfo.copyFrom(other.rogueLineupInfo); + rogueAeonInfo.copyFrom(other.rogueAeonInfo); + keywordUnlockValue.copyFrom(other.keywordUnlockValue); + gameItemValue.copyFrom(other.gameItemValue); + } + return this; + } + + @Override + public RogueGameInfo mergeFrom(final RogueGameInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueBuffInfo()) { + getMutableRogueBuffInfo().mergeFrom(other.rogueBuffInfo); + } + if (other.hasRogueTournFormulaInfo()) { + getMutableRogueTournFormulaInfo().mergeFrom(other.rogueTournFormulaInfo); + } + if (other.hasGameMiracleInfo()) { + getMutableGameMiracleInfo().mergeFrom(other.gameMiracleInfo); + } + if (other.hasRogueDifficultyInfo()) { + getMutableRogueDifficultyInfo().mergeFrom(other.rogueDifficultyInfo); + } + if (other.hasRogueLineupInfo()) { + getMutableRogueLineupInfo().mergeFrom(other.rogueLineupInfo); + } + if (other.hasRogueAeonInfo()) { + getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); + } + if (other.hasKeywordUnlockValue()) { + getMutableKeywordUnlockValue().mergeFrom(other.keywordUnlockValue); + } + if (other.hasGameItemValue()) { + getMutableGameItemValue().mergeFrom(other.gameItemValue); + } + return this; + } + + @Override + public RogueGameInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueBuffInfo.clear(); + rogueTournFormulaInfo.clear(); + gameMiracleInfo.clear(); + rogueDifficultyInfo.clear(); + rogueLineupInfo.clear(); + rogueAeonInfo.clear(); + keywordUnlockValue.clear(); + gameItemValue.clear(); + return this; + } + + @Override + public RogueGameInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueBuffInfo.clearQuick(); + rogueTournFormulaInfo.clearQuick(); + gameMiracleInfo.clearQuick(); + rogueDifficultyInfo.clearQuick(); + rogueLineupInfo.clearQuick(); + rogueAeonInfo.clearQuick(); + keywordUnlockValue.clearQuick(); + gameItemValue.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueGameInfo)) { + return false; + } + RogueGameInfo other = (RogueGameInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRogueBuffInfo() || rogueBuffInfo.equals(other.rogueBuffInfo)) + && (!hasRogueTournFormulaInfo() || rogueTournFormulaInfo.equals(other.rogueTournFormulaInfo)) + && (!hasGameMiracleInfo() || gameMiracleInfo.equals(other.gameMiracleInfo)) + && (!hasRogueDifficultyInfo() || rogueDifficultyInfo.equals(other.rogueDifficultyInfo)) + && (!hasRogueLineupInfo() || rogueLineupInfo.equals(other.rogueLineupInfo)) + && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)) + && (!hasKeywordUnlockValue() || keywordUnlockValue.equals(other.keywordUnlockValue)) + && (!hasGameItemValue() || gameItemValue.equals(other.gameItemValue)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rogueBuffInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(rogueTournFormulaInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(gameMiracleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueLineupInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(rogueAeonInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(keywordUnlockValue); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(gameItemValue); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuffInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueTournFormulaInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(gameMiracleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueLineupInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(keywordUnlockValue); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(gameItemValue); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueGameInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // rogueBuffInfo + clearACNDNONOJPJOtherRogueBuffInfo(); + input.readMessage(rogueBuffInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // rogueTournFormulaInfo + clearACNDNONOJPJOtherRogueTournFormulaInfo(); + input.readMessage(rogueTournFormulaInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // gameMiracleInfo + clearACNDNONOJPJOtherGameMiracleInfo(); + input.readMessage(gameMiracleInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // rogueDifficultyInfo + clearACNDNONOJPJOtherRogueDifficultyInfo(); + input.readMessage(rogueDifficultyInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rogueLineupInfo + clearACNDNONOJPJOtherRogueLineupInfo(); + input.readMessage(rogueLineupInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // rogueAeonInfo + clearACNDNONOJPJOtherRogueAeonInfo(); + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // keywordUnlockValue + clearACNDNONOJPJOtherKeywordUnlockValue(); + input.readMessage(keywordUnlockValue); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // gameItemValue + clearACNDNONOJPJOtherGameItemValue(); + input.readMessage(gameItemValue); + 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.writeMessage(FieldNames.rogueBuffInfo, rogueBuffInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueTournFormulaInfo, rogueTournFormulaInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.gameMiracleInfo, gameMiracleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueDifficultyInfo, rogueDifficultyInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueLineupInfo, rogueLineupInfo); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.keywordUnlockValue, keywordUnlockValue); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.gameItemValue, gameItemValue); + } + output.endObject(); + } + + @Override + public RogueGameInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1107898267: + case -694847243: { + if (input.isAtField(FieldNames.rogueBuffInfo)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherRogueBuffInfo(); + input.readMessage(rogueBuffInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -62180808: + case -1311740171: { + if (input.isAtField(FieldNames.rogueTournFormulaInfo)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherRogueTournFormulaInfo(); + input.readMessage(rogueTournFormulaInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -471061139: + case 1278717673: { + if (input.isAtField(FieldNames.gameMiracleInfo)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherGameMiracleInfo(); + input.readMessage(gameMiracleInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 664895363: + case -318397875: { + if (input.isAtField(FieldNames.rogueDifficultyInfo)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherRogueDifficultyInfo(); + input.readMessage(rogueDifficultyInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -781427625: + case -1245441415: { + if (input.isAtField(FieldNames.rogueLineupInfo)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherRogueLineupInfo(); + input.readMessage(rogueLineupInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1685018549: + case -1375922619: { + if (input.isAtField(FieldNames.rogueAeonInfo)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherRogueAeonInfo(); + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1252091164: + case -1271709876: { + if (input.isAtField(FieldNames.keywordUnlockValue)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherKeywordUnlockValue(); + input.readMessage(keywordUnlockValue); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1632879028: + case 534254514: { + if (input.isAtField(FieldNames.gameItemValue)) { + if (!input.trySkipNullValue()) { + clearACNDNONOJPJOtherGameItemValue(); + input.readMessage(gameItemValue); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueGameInfo clone() { + return new RogueGameInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueGameInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueGameInfo(), data).checkInitialized(); + } + + public static RogueGameInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGameInfo(), input).checkInitialized(); + } + + public static RogueGameInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGameInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueGameInfo messages + */ + public static MessageFactory getFactory() { + return RogueGameInfoFactory.INSTANCE; + } + + private enum RogueGameInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueGameInfo create() { + return RogueGameInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueBuffInfo = FieldName.forField("rogueBuffInfo", "rogue_buff_info"); + + static final FieldName rogueTournFormulaInfo = FieldName.forField("rogueTournFormulaInfo", "rogue_tourn_formula_info"); + + static final FieldName gameMiracleInfo = FieldName.forField("gameMiracleInfo", "game_miracle_info"); + + static final FieldName rogueDifficultyInfo = FieldName.forField("rogueDifficultyInfo", "rogue_difficulty_info"); + + static final FieldName rogueLineupInfo = FieldName.forField("rogueLineupInfo", "rogue_lineup_info"); + + static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); + + static final FieldName keywordUnlockValue = FieldName.forField("keywordUnlockValue", "keyword_unlock_value"); + + static final FieldName gameItemValue = FieldName.forField("gameItemValue", "game_item_value"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueGameItemValueOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueGameItemValueOuterClass.java new file mode 100644 index 000000000..cff0792b3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueGameItemValueOuterClass.java @@ -0,0 +1,619 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class RogueGameItemValueOuterClass { + /** + * Protobuf type {@code RogueGameItemValue} + */ + public static final class RogueGameItemValue extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 2; + */ + private final RepeatedMessage virtualItem = RepeatedMessage.newEmptyInstance(VirtualItemEntry.getFactory()); + + private RogueGameItemValue() { + } + + /** + * @return a new empty instance of {@code RogueGameItemValue} + */ + public static RogueGameItemValue newInstance() { + return new RogueGameItemValue(); + } + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 2; + * @return whether the virtualItem field is set + */ + public boolean hasVirtualItem() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 2; + * @return this + */ + public RogueGameItemValue clearVirtualItem() { + bitField0_ &= ~0x00000001; + virtualItem.clear(); + return this; + } + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 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 #getMutableVirtualItem()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getVirtualItem() { + return virtualItem; + } + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 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 getMutableVirtualItem() { + bitField0_ |= 0x00000001; + return virtualItem; + } + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 2; + * @param value the virtualItem to add + * @return this + */ + public RogueGameItemValue addVirtualItem(final VirtualItemEntry value) { + bitField0_ |= 0x00000001; + virtualItem.add(value); + return this; + } + + /** + * repeated .RogueGameItemValue.VirtualItemEntry virtual_item = 2; + * @param values the virtualItem to add + * @return this + */ + public RogueGameItemValue addAllVirtualItem(final VirtualItemEntry... values) { + bitField0_ |= 0x00000001; + virtualItem.addAll(values); + return this; + } + + @Override + public RogueGameItemValue copyFrom(final RogueGameItemValue other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + virtualItem.copyFrom(other.virtualItem); + } + return this; + } + + @Override + public RogueGameItemValue mergeFrom(final RogueGameItemValue other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasVirtualItem()) { + getMutableVirtualItem().addAll(other.virtualItem); + } + return this; + } + + @Override + public RogueGameItemValue clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + virtualItem.clear(); + return this; + } + + @Override + public RogueGameItemValue clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + virtualItem.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueGameItemValue)) { + return false; + } + RogueGameItemValue other = (RogueGameItemValue) o; + return bitField0_ == other.bitField0_ + && (!hasVirtualItem() || virtualItem.equals(other.virtualItem)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < virtualItem.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(virtualItem.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * virtualItem.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(virtualItem); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueGameItemValue mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // virtualItem + tag = input.readRepeatedMessage(virtualItem, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.virtualItem, virtualItem); + } + output.endObject(); + } + + @Override + public RogueGameItemValue mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -991981378: + case -666647609: { + if (input.isAtField(FieldNames.virtualItem)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(virtualItem); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueGameItemValue clone() { + return new RogueGameItemValue().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueGameItemValue parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueGameItemValue(), data).checkInitialized(); + } + + public static RogueGameItemValue parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGameItemValue(), input).checkInitialized(); + } + + public static RogueGameItemValue parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGameItemValue(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueGameItemValue messages + */ + public static MessageFactory getFactory() { + return RogueGameItemValueFactory.INSTANCE; + } + + /** + * Protobuf type {@code VirtualItemEntry} + */ + public static final class VirtualItemEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional uint32 value = 2; + */ + private int value_; + + private VirtualItemEntry() { + } + + /** + * @return a new empty instance of {@code VirtualItemEntry} + */ + public static VirtualItemEntry newInstance() { + return new VirtualItemEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public VirtualItemEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public VirtualItemEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public VirtualItemEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public VirtualItemEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public VirtualItemEntry copyFrom(final VirtualItemEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public VirtualItemEntry mergeFrom(final VirtualItemEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public VirtualItemEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public VirtualItemEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof VirtualItemEntry)) { + return false; + } + VirtualItemEntry other = (VirtualItemEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public VirtualItemEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readUInt32(); + 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.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public VirtualItemEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public VirtualItemEntry clone() { + return new VirtualItemEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static VirtualItemEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new VirtualItemEntry(), data).checkInitialized(); + } + + public static VirtualItemEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new VirtualItemEntry(), input).checkInitialized(); + } + + public static VirtualItemEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new VirtualItemEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating VirtualItemEntry messages + */ + public static MessageFactory getFactory() { + return VirtualItemEntryFactory.INSTANCE; + } + + private enum VirtualItemEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public VirtualItemEntry create() { + return VirtualItemEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + + private enum RogueGameItemValueFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueGameItemValue create() { + return RogueGameItemValue.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName virtualItem = FieldName.forField("virtualItem", "virtual_item"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueGetInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueGetInfoOuterClass.java new file mode 100644 index 000000000..cfee6f0c6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueGetInfoOuterClass.java @@ -0,0 +1,691 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueGetInfoOuterClass { + /** + * Protobuf type {@code RogueGetInfo} + */ + public static final class RogueGetInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueGetVirtualItemInfo rogue_virtual_item_info = 2; + */ + private final RogueGetVirtualItemInfoOuterClass.RogueGetVirtualItemInfo rogueVirtualItemInfo = RogueGetVirtualItemInfoOuterClass.RogueGetVirtualItemInfo.newInstance(); + + /** + * optional .RogueAeonInfo rogue_aeon_info = 3; + */ + private final RogueAeonInfoOuterClass.RogueAeonInfo rogueAeonInfo = RogueAeonInfoOuterClass.RogueAeonInfo.newInstance(); + + /** + * optional .RogueSeasonInfo rogue_season_info = 5; + */ + private final RogueSeasonInfoOuterClass.RogueSeasonInfo rogueSeasonInfo = RogueSeasonInfoOuterClass.RogueSeasonInfo.newInstance(); + + /** + * optional .RogueScoreRewardInfo rogue_score_reward_info = 10; + */ + private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo rogueScoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + + /** + * optional .RogueAreaInfo rogue_area_info = 12; + */ + private final RogueAreaInfoOuterClass.RogueAreaInfo rogueAreaInfo = RogueAreaInfoOuterClass.RogueAreaInfo.newInstance(); + + private RogueGetInfo() { + } + + /** + * @return a new empty instance of {@code RogueGetInfo} + */ + public static RogueGetInfo newInstance() { + return new RogueGetInfo(); + } + + /** + * optional .RogueGetVirtualItemInfo rogue_virtual_item_info = 2; + * @return whether the rogueVirtualItemInfo field is set + */ + public boolean hasRogueVirtualItemInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueGetVirtualItemInfo rogue_virtual_item_info = 2; + * @return this + */ + public RogueGetInfo clearRogueVirtualItemInfo() { + bitField0_ &= ~0x00000001; + rogueVirtualItemInfo.clear(); + return this; + } + + /** + * optional .RogueGetVirtualItemInfo rogue_virtual_item_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 #getMutableRogueVirtualItemInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueGetVirtualItemInfoOuterClass.RogueGetVirtualItemInfo getRogueVirtualItemInfo() { + return rogueVirtualItemInfo; + } + + /** + * optional .RogueGetVirtualItemInfo rogue_virtual_item_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 RogueGetVirtualItemInfoOuterClass.RogueGetVirtualItemInfo getMutableRogueVirtualItemInfo( + ) { + bitField0_ |= 0x00000001; + return rogueVirtualItemInfo; + } + + /** + * optional .RogueGetVirtualItemInfo rogue_virtual_item_info = 2; + * @param value the rogueVirtualItemInfo to set + * @return this + */ + public RogueGetInfo setRogueVirtualItemInfo( + final RogueGetVirtualItemInfoOuterClass.RogueGetVirtualItemInfo value) { + bitField0_ |= 0x00000001; + rogueVirtualItemInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 3; + * @return whether the rogueAeonInfo field is set + */ + public boolean hasRogueAeonInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 3; + * @return this + */ + public RogueGetInfo clearRogueAeonInfo() { + bitField0_ &= ~0x00000002; + rogueAeonInfo.clear(); + return this; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 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 #getMutableRogueAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAeonInfoOuterClass.RogueAeonInfo getRogueAeonInfo() { + return rogueAeonInfo; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 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 RogueAeonInfoOuterClass.RogueAeonInfo getMutableRogueAeonInfo() { + bitField0_ |= 0x00000002; + return rogueAeonInfo; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 3; + * @param value the rogueAeonInfo to set + * @return this + */ + public RogueGetInfo setRogueAeonInfo(final RogueAeonInfoOuterClass.RogueAeonInfo value) { + bitField0_ |= 0x00000002; + rogueAeonInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueSeasonInfo rogue_season_info = 5; + * @return whether the rogueSeasonInfo field is set + */ + public boolean hasRogueSeasonInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueSeasonInfo rogue_season_info = 5; + * @return this + */ + public RogueGetInfo clearRogueSeasonInfo() { + bitField0_ &= ~0x00000004; + rogueSeasonInfo.clear(); + return this; + } + + /** + * optional .RogueSeasonInfo rogue_season_info = 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 #getMutableRogueSeasonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueSeasonInfoOuterClass.RogueSeasonInfo getRogueSeasonInfo() { + return rogueSeasonInfo; + } + + /** + * optional .RogueSeasonInfo rogue_season_info = 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 RogueSeasonInfoOuterClass.RogueSeasonInfo getMutableRogueSeasonInfo() { + bitField0_ |= 0x00000004; + return rogueSeasonInfo; + } + + /** + * optional .RogueSeasonInfo rogue_season_info = 5; + * @param value the rogueSeasonInfo to set + * @return this + */ + public RogueGetInfo setRogueSeasonInfo(final RogueSeasonInfoOuterClass.RogueSeasonInfo value) { + bitField0_ |= 0x00000004; + rogueSeasonInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueScoreRewardInfo rogue_score_reward_info = 10; + * @return whether the rogueScoreRewardInfo field is set + */ + public boolean hasRogueScoreRewardInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueScoreRewardInfo rogue_score_reward_info = 10; + * @return this + */ + public RogueGetInfo clearRogueScoreRewardInfo() { + bitField0_ &= ~0x00000008; + rogueScoreRewardInfo.clear(); + return this; + } + + /** + * optional .RogueScoreRewardInfo rogue_score_reward_info = 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 #getMutableRogueScoreRewardInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getRogueScoreRewardInfo() { + return rogueScoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo rogue_score_reward_info = 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 RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableRogueScoreRewardInfo() { + bitField0_ |= 0x00000008; + return rogueScoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo rogue_score_reward_info = 10; + * @param value the rogueScoreRewardInfo to set + * @return this + */ + public RogueGetInfo setRogueScoreRewardInfo( + final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + bitField0_ |= 0x00000008; + rogueScoreRewardInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 12; + * @return whether the rogueAreaInfo field is set + */ + public boolean hasRogueAreaInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 12; + * @return this + */ + public RogueGetInfo clearRogueAreaInfo() { + bitField0_ &= ~0x00000010; + rogueAreaInfo.clear(); + return this; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 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 #getMutableRogueAreaInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAreaInfoOuterClass.RogueAreaInfo getRogueAreaInfo() { + return rogueAreaInfo; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 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 RogueAreaInfoOuterClass.RogueAreaInfo getMutableRogueAreaInfo() { + bitField0_ |= 0x00000010; + return rogueAreaInfo; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 12; + * @param value the rogueAreaInfo to set + * @return this + */ + public RogueGetInfo setRogueAreaInfo(final RogueAreaInfoOuterClass.RogueAreaInfo value) { + bitField0_ |= 0x00000010; + rogueAreaInfo.copyFrom(value); + return this; + } + + @Override + public RogueGetInfo copyFrom(final RogueGetInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueVirtualItemInfo.copyFrom(other.rogueVirtualItemInfo); + rogueAeonInfo.copyFrom(other.rogueAeonInfo); + rogueSeasonInfo.copyFrom(other.rogueSeasonInfo); + rogueScoreRewardInfo.copyFrom(other.rogueScoreRewardInfo); + rogueAreaInfo.copyFrom(other.rogueAreaInfo); + } + return this; + } + + @Override + public RogueGetInfo mergeFrom(final RogueGetInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueVirtualItemInfo()) { + getMutableRogueVirtualItemInfo().mergeFrom(other.rogueVirtualItemInfo); + } + if (other.hasRogueAeonInfo()) { + getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); + } + if (other.hasRogueSeasonInfo()) { + getMutableRogueSeasonInfo().mergeFrom(other.rogueSeasonInfo); + } + if (other.hasRogueScoreRewardInfo()) { + getMutableRogueScoreRewardInfo().mergeFrom(other.rogueScoreRewardInfo); + } + if (other.hasRogueAreaInfo()) { + getMutableRogueAreaInfo().mergeFrom(other.rogueAreaInfo); + } + return this; + } + + @Override + public RogueGetInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueVirtualItemInfo.clear(); + rogueAeonInfo.clear(); + rogueSeasonInfo.clear(); + rogueScoreRewardInfo.clear(); + rogueAreaInfo.clear(); + return this; + } + + @Override + public RogueGetInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueVirtualItemInfo.clearQuick(); + rogueAeonInfo.clearQuick(); + rogueSeasonInfo.clearQuick(); + rogueScoreRewardInfo.clearQuick(); + rogueAreaInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueGetInfo)) { + return false; + } + RogueGetInfo other = (RogueGetInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRogueVirtualItemInfo() || rogueVirtualItemInfo.equals(other.rogueVirtualItemInfo)) + && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)) + && (!hasRogueSeasonInfo() || rogueSeasonInfo.equals(other.rogueSeasonInfo)) + && (!hasRogueScoreRewardInfo() || rogueScoreRewardInfo.equals(other.rogueScoreRewardInfo)) + && (!hasRogueAreaInfo() || rogueAreaInfo.equals(other.rogueAreaInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rogueVirtualItemInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(rogueAeonInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(rogueSeasonInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(rogueScoreRewardInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueAreaInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItemInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueSeasonInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueScoreRewardInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAreaInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueGetInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // rogueVirtualItemInfo + input.readMessage(rogueVirtualItemInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // rogueAeonInfo + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // rogueSeasonInfo + input.readMessage(rogueSeasonInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // rogueScoreRewardInfo + input.readMessage(rogueScoreRewardInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rogueAreaInfo + input.readMessage(rogueAreaInfo); + 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.writeMessage(FieldNames.rogueVirtualItemInfo, rogueVirtualItemInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueSeasonInfo, rogueSeasonInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.rogueScoreRewardInfo, rogueScoreRewardInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueAreaInfo, rogueAreaInfo); + } + output.endObject(); + } + + @Override + public RogueGetInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1066755410: + case 1452147457: { + if (input.isAtField(FieldNames.rogueVirtualItemInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueVirtualItemInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1685018549: + case -1375922619: { + if (input.isAtField(FieldNames.rogueAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1037341781: + case -588845659: { + if (input.isAtField(FieldNames.rogueSeasonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueSeasonInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 846991221: + case -1883919764: { + if (input.isAtField(FieldNames.rogueScoreRewardInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueScoreRewardInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 964297429: + case -851505925: { + if (input.isAtField(FieldNames.rogueAreaInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAreaInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueGetInfo clone() { + return new RogueGetInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueGetInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueGetInfo(), data).checkInitialized(); + } + + public static RogueGetInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGetInfo(), input).checkInitialized(); + } + + public static RogueGetInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGetInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueGetInfo messages + */ + public static MessageFactory getFactory() { + return RogueGetInfoFactory.INSTANCE; + } + + private enum RogueGetInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueGetInfo create() { + return RogueGetInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueVirtualItemInfo = FieldName.forField("rogueVirtualItemInfo", "rogue_virtual_item_info"); + + static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); + + static final FieldName rogueSeasonInfo = FieldName.forField("rogueSeasonInfo", "rogue_season_info"); + + static final FieldName rogueScoreRewardInfo = FieldName.forField("rogueScoreRewardInfo", "rogue_score_reward_info"); + + static final FieldName rogueAreaInfo = FieldName.forField("rogueAreaInfo", "rogue_area_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueGetVirtualItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueGetVirtualItemInfoOuterClass.java new file mode 100644 index 000000000..7c5d98b2b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueGetVirtualItemInfoOuterClass.java @@ -0,0 +1,339 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueGetVirtualItemInfoOuterClass { + /** + * Protobuf type {@code RogueGetVirtualItemInfo} + */ + public static final class RogueGetVirtualItemInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 ABOGJOHIGJL = 12; + */ + private int aBOGJOHIGJL; + + /** + * optional uint32 EPOPDGELPCH = 15; + */ + private int ePOPDGELPCH; + + private RogueGetVirtualItemInfo() { + } + + /** + * @return a new empty instance of {@code RogueGetVirtualItemInfo} + */ + public static RogueGetVirtualItemInfo newInstance() { + return new RogueGetVirtualItemInfo(); + } + + /** + * optional uint32 ABOGJOHIGJL = 12; + * @return whether the aBOGJOHIGJL field is set + */ + public boolean hasABOGJOHIGJL() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 ABOGJOHIGJL = 12; + * @return this + */ + public RogueGetVirtualItemInfo clearABOGJOHIGJL() { + bitField0_ &= ~0x00000001; + aBOGJOHIGJL = 0; + return this; + } + + /** + * optional uint32 ABOGJOHIGJL = 12; + * @return the aBOGJOHIGJL + */ + public int getABOGJOHIGJL() { + return aBOGJOHIGJL; + } + + /** + * optional uint32 ABOGJOHIGJL = 12; + * @param value the aBOGJOHIGJL to set + * @return this + */ + public RogueGetVirtualItemInfo setABOGJOHIGJL(final int value) { + bitField0_ |= 0x00000001; + aBOGJOHIGJL = value; + return this; + } + + /** + * optional uint32 EPOPDGELPCH = 15; + * @return whether the ePOPDGELPCH field is set + */ + public boolean hasEPOPDGELPCH() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 EPOPDGELPCH = 15; + * @return this + */ + public RogueGetVirtualItemInfo clearEPOPDGELPCH() { + bitField0_ &= ~0x00000002; + ePOPDGELPCH = 0; + return this; + } + + /** + * optional uint32 EPOPDGELPCH = 15; + * @return the ePOPDGELPCH + */ + public int getEPOPDGELPCH() { + return ePOPDGELPCH; + } + + /** + * optional uint32 EPOPDGELPCH = 15; + * @param value the ePOPDGELPCH to set + * @return this + */ + public RogueGetVirtualItemInfo setEPOPDGELPCH(final int value) { + bitField0_ |= 0x00000002; + ePOPDGELPCH = value; + return this; + } + + @Override + public RogueGetVirtualItemInfo copyFrom(final RogueGetVirtualItemInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aBOGJOHIGJL = other.aBOGJOHIGJL; + ePOPDGELPCH = other.ePOPDGELPCH; + } + return this; + } + + @Override + public RogueGetVirtualItemInfo mergeFrom(final RogueGetVirtualItemInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasABOGJOHIGJL()) { + setABOGJOHIGJL(other.aBOGJOHIGJL); + } + if (other.hasEPOPDGELPCH()) { + setEPOPDGELPCH(other.ePOPDGELPCH); + } + return this; + } + + @Override + public RogueGetVirtualItemInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aBOGJOHIGJL = 0; + ePOPDGELPCH = 0; + return this; + } + + @Override + public RogueGetVirtualItemInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueGetVirtualItemInfo)) { + return false; + } + RogueGetVirtualItemInfo other = (RogueGetVirtualItemInfo) o; + return bitField0_ == other.bitField0_ + && (!hasABOGJOHIGJL() || aBOGJOHIGJL == other.aBOGJOHIGJL) + && (!hasEPOPDGELPCH() || ePOPDGELPCH == other.ePOPDGELPCH); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(aBOGJOHIGJL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(ePOPDGELPCH); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aBOGJOHIGJL); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(ePOPDGELPCH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueGetVirtualItemInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // aBOGJOHIGJL + aBOGJOHIGJL = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // ePOPDGELPCH + ePOPDGELPCH = input.readUInt32(); + 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.aBOGJOHIGJL, aBOGJOHIGJL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.ePOPDGELPCH, ePOPDGELPCH); + } + output.endObject(); + } + + @Override + public RogueGetVirtualItemInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 788994346: { + if (input.isAtField(FieldNames.aBOGJOHIGJL)) { + if (!input.trySkipNullValue()) { + aBOGJOHIGJL = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 978564799: { + if (input.isAtField(FieldNames.ePOPDGELPCH)) { + if (!input.trySkipNullValue()) { + ePOPDGELPCH = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueGetVirtualItemInfo clone() { + return new RogueGetVirtualItemInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueGetVirtualItemInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueGetVirtualItemInfo(), data).checkInitialized(); + } + + public static RogueGetVirtualItemInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGetVirtualItemInfo(), input).checkInitialized(); + } + + public static RogueGetVirtualItemInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueGetVirtualItemInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueGetVirtualItemInfo messages + */ + public static MessageFactory getFactory() { + return RogueGetVirtualItemInfoFactory.INSTANCE; + } + + private enum RogueGetVirtualItemInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueGetVirtualItemInfo create() { + return RogueGetVirtualItemInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aBOGJOHIGJL = FieldName.forField("ABOGJOHIGJL"); + + static final FieldName ePOPDGELPCH = FieldName.forField("EPOPDGELPCH"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueLineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueLineupInfoOuterClass.java new file mode 100644 index 000000000..09db85520 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueLineupInfoOuterClass.java @@ -0,0 +1,644 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class RogueLineupInfoOuterClass { + /** + * Protobuf type {@code RogueLineupInfo} + */ + public static final class RogueLineupInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueReviveInfo revive_info = 3; + */ + private final RogueReviveInfoOuterClass.RogueReviveInfo reviveInfo = RogueReviveInfoOuterClass.RogueReviveInfo.newInstance(); + + /** + * repeated uint32 trial_avatar_id_list = 9; + */ + private final RepeatedInt trialAvatarIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 base_avatar_id_list = 13; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 ABOLLMBDFJP = 15; + */ + private final RepeatedInt aBOLLMBDFJP = RepeatedInt.newEmptyInstance(); + + private RogueLineupInfo() { + } + + /** + * @return a new empty instance of {@code RogueLineupInfo} + */ + public static RogueLineupInfo newInstance() { + return new RogueLineupInfo(); + } + + /** + * optional .RogueReviveInfo revive_info = 3; + * @return whether the reviveInfo field is set + */ + public boolean hasReviveInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueReviveInfo revive_info = 3; + * @return this + */ + public RogueLineupInfo clearReviveInfo() { + bitField0_ &= ~0x00000001; + reviveInfo.clear(); + return this; + } + + /** + * optional .RogueReviveInfo revive_info = 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 #getMutableReviveInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueReviveInfoOuterClass.RogueReviveInfo getReviveInfo() { + return reviveInfo; + } + + /** + * optional .RogueReviveInfo revive_info = 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 RogueReviveInfoOuterClass.RogueReviveInfo getMutableReviveInfo() { + bitField0_ |= 0x00000001; + return reviveInfo; + } + + /** + * optional .RogueReviveInfo revive_info = 3; + * @param value the reviveInfo to set + * @return this + */ + public RogueLineupInfo setReviveInfo(final RogueReviveInfoOuterClass.RogueReviveInfo value) { + bitField0_ |= 0x00000001; + reviveInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 9; + * @return whether the trialAvatarIdList field is set + */ + public boolean hasTrialAvatarIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 trial_avatar_id_list = 9; + * @return this + */ + public RogueLineupInfo clearTrialAvatarIdList() { + bitField0_ &= ~0x00000002; + trialAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 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 #getMutableTrialAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTrialAvatarIdList() { + return trialAvatarIdList; + } + + /** + * repeated uint32 trial_avatar_id_list = 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 RepeatedInt getMutableTrialAvatarIdList() { + bitField0_ |= 0x00000002; + return trialAvatarIdList; + } + + /** + * repeated uint32 trial_avatar_id_list = 9; + * @param value the trialAvatarIdList to add + * @return this + */ + public RogueLineupInfo addTrialAvatarIdList(final int value) { + bitField0_ |= 0x00000002; + trialAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 trial_avatar_id_list = 9; + * @param values the trialAvatarIdList to add + * @return this + */ + public RogueLineupInfo addAllTrialAvatarIdList(final int... values) { + bitField0_ |= 0x00000002; + trialAvatarIdList.addAll(values); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 13; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 13; + * @return this + */ + public RogueLineupInfo clearBaseAvatarIdList() { + bitField0_ &= ~0x00000004; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 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 #getMutableBaseAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarIdList() { + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 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 RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000004; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 13; + * @param value the baseAvatarIdList to add + * @return this + */ + public RogueLineupInfo addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000004; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 13; + * @param values the baseAvatarIdList to add + * @return this + */ + public RogueLineupInfo addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000004; + baseAvatarIdList.addAll(values); + return this; + } + + /** + * repeated uint32 ABOLLMBDFJP = 15; + * @return whether the aBOLLMBDFJP field is set + */ + public boolean hasABOLLMBDFJP() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 ABOLLMBDFJP = 15; + * @return this + */ + public RogueLineupInfo clearABOLLMBDFJP() { + bitField0_ &= ~0x00000008; + aBOLLMBDFJP.clear(); + return this; + } + + /** + * repeated uint32 ABOLLMBDFJP = 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 #getMutableABOLLMBDFJP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getABOLLMBDFJP() { + return aBOLLMBDFJP; + } + + /** + * repeated uint32 ABOLLMBDFJP = 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 getMutableABOLLMBDFJP() { + bitField0_ |= 0x00000008; + return aBOLLMBDFJP; + } + + /** + * repeated uint32 ABOLLMBDFJP = 15; + * @param value the aBOLLMBDFJP to add + * @return this + */ + public RogueLineupInfo addABOLLMBDFJP(final int value) { + bitField0_ |= 0x00000008; + aBOLLMBDFJP.add(value); + return this; + } + + /** + * repeated uint32 ABOLLMBDFJP = 15; + * @param values the aBOLLMBDFJP to add + * @return this + */ + public RogueLineupInfo addAllABOLLMBDFJP(final int... values) { + bitField0_ |= 0x00000008; + aBOLLMBDFJP.addAll(values); + return this; + } + + @Override + public RogueLineupInfo copyFrom(final RogueLineupInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reviveInfo.copyFrom(other.reviveInfo); + trialAvatarIdList.copyFrom(other.trialAvatarIdList); + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + aBOLLMBDFJP.copyFrom(other.aBOLLMBDFJP); + } + return this; + } + + @Override + public RogueLineupInfo mergeFrom(final RogueLineupInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReviveInfo()) { + getMutableReviveInfo().mergeFrom(other.reviveInfo); + } + if (other.hasTrialAvatarIdList()) { + getMutableTrialAvatarIdList().addAll(other.trialAvatarIdList); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + if (other.hasABOLLMBDFJP()) { + getMutableABOLLMBDFJP().addAll(other.aBOLLMBDFJP); + } + return this; + } + + @Override + public RogueLineupInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clear(); + trialAvatarIdList.clear(); + baseAvatarIdList.clear(); + aBOLLMBDFJP.clear(); + return this; + } + + @Override + public RogueLineupInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reviveInfo.clearQuick(); + trialAvatarIdList.clear(); + baseAvatarIdList.clear(); + aBOLLMBDFJP.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueLineupInfo)) { + return false; + } + RogueLineupInfo other = (RogueLineupInfo) o; + return bitField0_ == other.bitField0_ + && (!hasReviveInfo() || reviveInfo.equals(other.reviveInfo)) + && (!hasTrialAvatarIdList() || trialAvatarIdList.equals(other.trialAvatarIdList)) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)) + && (!hasABOLLMBDFJP() || aBOLLMBDFJP.equals(other.aBOLLMBDFJP)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < trialAvatarIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(trialAvatarIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < aBOLLMBDFJP.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(aBOLLMBDFJP.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reviveInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * trialAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(trialAvatarIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * aBOLLMBDFJP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aBOLLMBDFJP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueLineupInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // reviveInfo + input.readMessage(reviveInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // trialAvatarIdList [packed=true] + input.readPackedUInt32(trialAvatarIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // aBOLLMBDFJP [packed=true] + input.readPackedUInt32(aBOLLMBDFJP, 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 72: { + // trialAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(trialAvatarIdList, tag); + bitField0_ |= 0x00000002; + break; + } + case 104: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000004; + break; + } + case 120: { + // aBOLLMBDFJP [packed=false] + tag = input.readRepeatedUInt32(aBOLLMBDFJP, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.reviveInfo, reviveInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.trialAvatarIdList, trialAvatarIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.aBOLLMBDFJP, aBOLLMBDFJP); + } + output.endObject(); + } + + @Override + public RogueLineupInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1426382941: + case -1248022184: { + if (input.isAtField(FieldNames.reviveInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(reviveInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -794352312: + case -1441143643: { + if (input.isAtField(FieldNames.trialAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(trialAvatarIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1669797845: { + if (input.isAtField(FieldNames.aBOLLMBDFJP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(aBOLLMBDFJP); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueLineupInfo clone() { + return new RogueLineupInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueLineupInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueLineupInfo(), data).checkInitialized(); + } + + public static RogueLineupInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueLineupInfo(), input).checkInitialized(); + } + + public static RogueLineupInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueLineupInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueLineupInfo messages + */ + public static MessageFactory getFactory() { + return RogueLineupInfoFactory.INSTANCE; + } + + private enum RogueLineupInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueLineupInfo create() { + return RogueLineupInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reviveInfo = FieldName.forField("reviveInfo", "revive_info"); + + static final FieldName trialAvatarIdList = FieldName.forField("trialAvatarIdList", "trial_avatar_id_list"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + + static final FieldName aBOLLMBDFJP = FieldName.forField("ABOLLMBDFJP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectCallbackOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectCallbackOuterClass.java new file mode 100644 index 000000000..3d6caec87 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectCallbackOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class RogueMiracleSelectCallbackOuterClass { + /** + * Protobuf type {@code RogueMiracleSelectCallback} + */ + public static final class RogueMiracleSelectCallback extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueMiracleSelectCallback() { + } + + /** + * @return a new empty instance of {@code RogueMiracleSelectCallback} + */ + public static RogueMiracleSelectCallback newInstance() { + return new RogueMiracleSelectCallback(); + } + + @Override + public RogueMiracleSelectCallback copyFrom(final RogueMiracleSelectCallback other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueMiracleSelectCallback mergeFrom(final RogueMiracleSelectCallback other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueMiracleSelectCallback clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueMiracleSelectCallback clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueMiracleSelectCallback)) { + return false; + } + RogueMiracleSelectCallback other = (RogueMiracleSelectCallback) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueMiracleSelectCallback mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public RogueMiracleSelectCallback mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueMiracleSelectCallback clone() { + return new RogueMiracleSelectCallback().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueMiracleSelectCallback parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueMiracleSelectCallback(), data).checkInitialized(); + } + + public static RogueMiracleSelectCallback parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMiracleSelectCallback(), input).checkInitialized(); + } + + public static RogueMiracleSelectCallback parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMiracleSelectCallback(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueMiracleSelectCallback messages + */ + public static MessageFactory getFactory() { + return RogueMiracleSelectCallbackFactory.INSTANCE; + } + + private enum RogueMiracleSelectCallbackFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueMiracleSelectCallback create() { + return RogueMiracleSelectCallback.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierAddNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierAddNotifyOuterClass.java new file mode 100644 index 000000000..23f870e0b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierAddNotifyOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierAddNotifyOuterClass { + /** + * Protobuf type {@code RogueModifierAddNotify} + */ + public static final class RogueModifierAddNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 5; + */ + private final RogueModifierOuterClass.RogueModifier cHESSROGUECELLUPDATEREASONMODIFIER = RogueModifierOuterClass.RogueModifier.newInstance(); + + private RogueModifierAddNotify() { + } + + /** + * @return a new empty instance of {@code RogueModifierAddNotify} + */ + public static RogueModifierAddNotify newInstance() { + return new RogueModifierAddNotify(); + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 5; + * @return whether the cHESSROGUECELLUPDATEREASONMODIFIER field is set + */ + public boolean hasCHESSROGUECELLUPDATEREASONMODIFIER() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 5; + * @return this + */ + public RogueModifierAddNotify clearCHESSROGUECELLUPDATEREASONMODIFIER() { + bitField0_ &= ~0x00000001; + cHESSROGUECELLUPDATEREASONMODIFIER.clear(); + return this; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 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 #getMutableCHESSROGUECELLUPDATEREASONMODIFIER()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueModifierOuterClass.RogueModifier getCHESSROGUECELLUPDATEREASONMODIFIER() { + return cHESSROGUECELLUPDATEREASONMODIFIER; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 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 RogueModifierOuterClass.RogueModifier getMutableCHESSROGUECELLUPDATEREASONMODIFIER() { + bitField0_ |= 0x00000001; + return cHESSROGUECELLUPDATEREASONMODIFIER; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 5; + * @param value the cHESSROGUECELLUPDATEREASONMODIFIER to set + * @return this + */ + public RogueModifierAddNotify setCHESSROGUECELLUPDATEREASONMODIFIER( + final RogueModifierOuterClass.RogueModifier value) { + bitField0_ |= 0x00000001; + cHESSROGUECELLUPDATEREASONMODIFIER.copyFrom(value); + return this; + } + + @Override + public RogueModifierAddNotify copyFrom(final RogueModifierAddNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cHESSROGUECELLUPDATEREASONMODIFIER.copyFrom(other.cHESSROGUECELLUPDATEREASONMODIFIER); + } + return this; + } + + @Override + public RogueModifierAddNotify mergeFrom(final RogueModifierAddNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCHESSROGUECELLUPDATEREASONMODIFIER()) { + getMutableCHESSROGUECELLUPDATEREASONMODIFIER().mergeFrom(other.cHESSROGUECELLUPDATEREASONMODIFIER); + } + return this; + } + + @Override + public RogueModifierAddNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cHESSROGUECELLUPDATEREASONMODIFIER.clear(); + return this; + } + + @Override + public RogueModifierAddNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cHESSROGUECELLUPDATEREASONMODIFIER.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierAddNotify)) { + return false; + } + RogueModifierAddNotify other = (RogueModifierAddNotify) o; + return bitField0_ == other.bitField0_ + && (!hasCHESSROGUECELLUPDATEREASONMODIFIER() || cHESSROGUECELLUPDATEREASONMODIFIER.equals(other.cHESSROGUECELLUPDATEREASONMODIFIER)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(cHESSROGUECELLUPDATEREASONMODIFIER); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cHESSROGUECELLUPDATEREASONMODIFIER); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierAddNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // cHESSROGUECELLUPDATEREASONMODIFIER + input.readMessage(cHESSROGUECELLUPDATEREASONMODIFIER); + 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.writeMessage(FieldNames.cHESSROGUECELLUPDATEREASONMODIFIER, cHESSROGUECELLUPDATEREASONMODIFIER); + } + output.endObject(); + } + + @Override + public RogueModifierAddNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -83230880: + case 1690038229: { + if (input.isAtField(FieldNames.cHESSROGUECELLUPDATEREASONMODIFIER)) { + if (!input.trySkipNullValue()) { + input.readMessage(cHESSROGUECELLUPDATEREASONMODIFIER); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierAddNotify clone() { + return new RogueModifierAddNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierAddNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierAddNotify(), data).checkInitialized(); + } + + public static RogueModifierAddNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierAddNotify(), input).checkInitialized(); + } + + public static RogueModifierAddNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierAddNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierAddNotify messages + */ + public static MessageFactory getFactory() { + return RogueModifierAddNotifyFactory.INSTANCE; + } + + private enum RogueModifierAddNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierAddNotify create() { + return RogueModifierAddNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cHESSROGUECELLUPDATEREASONMODIFIER = FieldName.forField("CHESSROGUECELLUPDATEREASONMODIFIER", "CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierContentOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierContentOuterClass.java new file mode 100644 index 000000000..a43ac676d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierContentOuterClass.java @@ -0,0 +1,455 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierContentOuterClass { + /** + * Protobuf type {@code RogueModifierContent} + */ + public static final class RogueModifierContent extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 content_modifier_effect_id = 5; + */ + private int contentModifierEffectId; + + /** + * optional uint32 BKIEKCHKBHH = 13; + */ + private int bKIEKCHKBHH; + + /** + * optional .RogueModifierContentType modifier_content_type = 12; + */ + private int modifierContentType; + + private RogueModifierContent() { + } + + /** + * @return a new empty instance of {@code RogueModifierContent} + */ + public static RogueModifierContent newInstance() { + return new RogueModifierContent(); + } + + /** + * optional uint32 content_modifier_effect_id = 5; + * @return whether the contentModifierEffectId field is set + */ + public boolean hasContentModifierEffectId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 content_modifier_effect_id = 5; + * @return this + */ + public RogueModifierContent clearContentModifierEffectId() { + bitField0_ &= ~0x00000001; + contentModifierEffectId = 0; + return this; + } + + /** + * optional uint32 content_modifier_effect_id = 5; + * @return the contentModifierEffectId + */ + public int getContentModifierEffectId() { + return contentModifierEffectId; + } + + /** + * optional uint32 content_modifier_effect_id = 5; + * @param value the contentModifierEffectId to set + * @return this + */ + public RogueModifierContent setContentModifierEffectId(final int value) { + bitField0_ |= 0x00000001; + contentModifierEffectId = value; + return this; + } + + /** + * optional uint32 BKIEKCHKBHH = 13; + * @return whether the bKIEKCHKBHH field is set + */ + public boolean hasBKIEKCHKBHH() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BKIEKCHKBHH = 13; + * @return this + */ + public RogueModifierContent clearBKIEKCHKBHH() { + bitField0_ &= ~0x00000002; + bKIEKCHKBHH = 0; + return this; + } + + /** + * optional uint32 BKIEKCHKBHH = 13; + * @return the bKIEKCHKBHH + */ + public int getBKIEKCHKBHH() { + return bKIEKCHKBHH; + } + + /** + * optional uint32 BKIEKCHKBHH = 13; + * @param value the bKIEKCHKBHH to set + * @return this + */ + public RogueModifierContent setBKIEKCHKBHH(final int value) { + bitField0_ |= 0x00000002; + bKIEKCHKBHH = value; + return this; + } + + /** + * optional .RogueModifierContentType modifier_content_type = 12; + * @return whether the modifierContentType field is set + */ + public boolean hasModifierContentType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueModifierContentType modifier_content_type = 12; + * @return this + */ + public RogueModifierContent clearModifierContentType() { + bitField0_ &= ~0x00000004; + modifierContentType = 0; + return this; + } + + /** + * optional .RogueModifierContentType modifier_content_type = 12; + * @return the modifierContentType + */ + public RogueModifierContentTypeOuterClass.RogueModifierContentType getModifierContentType() { + return RogueModifierContentTypeOuterClass.RogueModifierContentType.forNumber(modifierContentType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueModifierContent#getModifierContentType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getModifierContentTypeValue() { + return modifierContentType; + } + + /** + * 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 RogueModifierContentTypeOuterClass.RogueModifierContentType}. Setting an invalid value + * can cause {@link RogueModifierContent#getModifierContentType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueModifierContent setModifierContentTypeValue(final int value) { + bitField0_ |= 0x00000004; + modifierContentType = value; + return this; + } + + /** + * optional .RogueModifierContentType modifier_content_type = 12; + * @param value the modifierContentType to set + * @return this + */ + public RogueModifierContent setModifierContentType( + final RogueModifierContentTypeOuterClass.RogueModifierContentType value) { + bitField0_ |= 0x00000004; + modifierContentType = value.getNumber(); + return this; + } + + @Override + public RogueModifierContent copyFrom(final RogueModifierContent other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + contentModifierEffectId = other.contentModifierEffectId; + bKIEKCHKBHH = other.bKIEKCHKBHH; + modifierContentType = other.modifierContentType; + } + return this; + } + + @Override + public RogueModifierContent mergeFrom(final RogueModifierContent other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasContentModifierEffectId()) { + setContentModifierEffectId(other.contentModifierEffectId); + } + if (other.hasBKIEKCHKBHH()) { + setBKIEKCHKBHH(other.bKIEKCHKBHH); + } + if (other.hasModifierContentType()) { + setModifierContentTypeValue(other.modifierContentType); + } + return this; + } + + @Override + public RogueModifierContent clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + contentModifierEffectId = 0; + bKIEKCHKBHH = 0; + modifierContentType = 0; + return this; + } + + @Override + public RogueModifierContent clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierContent)) { + return false; + } + RogueModifierContent other = (RogueModifierContent) o; + return bitField0_ == other.bitField0_ + && (!hasContentModifierEffectId() || contentModifierEffectId == other.contentModifierEffectId) + && (!hasBKIEKCHKBHH() || bKIEKCHKBHH == other.bKIEKCHKBHH) + && (!hasModifierContentType() || modifierContentType == other.modifierContentType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(contentModifierEffectId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(bKIEKCHKBHH); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(modifierContentType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(contentModifierEffectId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bKIEKCHKBHH); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(modifierContentType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierContent mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // contentModifierEffectId + contentModifierEffectId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // bKIEKCHKBHH + bKIEKCHKBHH = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // modifierContentType + final int value = input.readInt32(); + if (RogueModifierContentTypeOuterClass.RogueModifierContentType.forNumber(value) != null) { + modifierContentType = value; + 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.contentModifierEffectId, contentModifierEffectId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.bKIEKCHKBHH, bKIEKCHKBHH); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.modifierContentType, modifierContentType, RogueModifierContentTypeOuterClass.RogueModifierContentType.converter()); + } + output.endObject(); + } + + @Override + public RogueModifierContent mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1161975524: + case -810842969: { + if (input.isAtField(FieldNames.contentModifierEffectId)) { + if (!input.trySkipNullValue()) { + contentModifierEffectId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 831568834: { + if (input.isAtField(FieldNames.bKIEKCHKBHH)) { + if (!input.trySkipNullValue()) { + bKIEKCHKBHH = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 409246716: + case 666629032: { + if (input.isAtField(FieldNames.modifierContentType)) { + if (!input.trySkipNullValue()) { + final RogueModifierContentTypeOuterClass.RogueModifierContentType value = input.readEnum(RogueModifierContentTypeOuterClass.RogueModifierContentType.converter()); + if (value != null) { + modifierContentType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierContent clone() { + return new RogueModifierContent().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierContent parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierContent(), data).checkInitialized(); + } + + public static RogueModifierContent parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierContent(), input).checkInitialized(); + } + + public static RogueModifierContent parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierContent(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierContent messages + */ + public static MessageFactory getFactory() { + return RogueModifierContentFactory.INSTANCE; + } + + private enum RogueModifierContentFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierContent create() { + return RogueModifierContent.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName contentModifierEffectId = FieldName.forField("contentModifierEffectId", "content_modifier_effect_id"); + + static final FieldName bKIEKCHKBHH = FieldName.forField("BKIEKCHKBHH"); + + static final FieldName modifierContentType = FieldName.forField("modifierContentType", "modifier_content_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierContentTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierContentTypeOuterClass.java new file mode 100644 index 000000000..65f2fb00b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierContentTypeOuterClass.java @@ -0,0 +1,116 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueModifierContentTypeOuterClass { + /** + * Protobuf enum {@code RogueModifierContentType} + */ + public enum RogueModifierContentType implements ProtoEnum { + /** + * ROGUE_MODIFIER_CONTENT_DEFINITE = 0; + */ + ROGUE_MODIFIER_CONTENT_DEFINITE("ROGUE_MODIFIER_CONTENT_DEFINITE", 0), + + /** + * ROGUE_MODIFIER_CONTENT_RANDOM = 1; + */ + ROGUE_MODIFIER_CONTENT_RANDOM("ROGUE_MODIFIER_CONTENT_RANDOM", 1); + + /** + * ROGUE_MODIFIER_CONTENT_DEFINITE = 0; + */ + public static final int ROGUE_MODIFIER_CONTENT_DEFINITE_VALUE = 0; + + /** + * ROGUE_MODIFIER_CONTENT_RANDOM = 1; + */ + public static final int ROGUE_MODIFIER_CONTENT_RANDOM_VALUE = 1; + + private final String name; + + private final int number; + + private RogueModifierContentType(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 RogueModifierContentTypeConverter.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 RogueModifierContentType forNumber(int value) { + return RogueModifierContentTypeConverter.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 RogueModifierContentType forNumberOr(int number, RogueModifierContentType other) { + RogueModifierContentType value = forNumber(number); + return value == null ? other : value; + } + + enum RogueModifierContentTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueModifierContentType[] lookup = new RogueModifierContentType[2]; + + static { + lookup[0] = ROGUE_MODIFIER_CONTENT_DEFINITE; + lookup[1] = ROGUE_MODIFIER_CONTENT_RANDOM; + } + + @Override + public final RogueModifierContentType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueModifierContentType forName(final CharSequence value) { + if (value.length() == 29) { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_CONTENT_RANDOM", value)) { + return ROGUE_MODIFIER_CONTENT_RANDOM; + } + } + if (value.length() == 31) { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_CONTENT_DEFINITE", value)) { + return ROGUE_MODIFIER_CONTENT_DEFINITE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierDelNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierDelNotifyOuterClass.java new file mode 100644 index 000000000..2dfda50a3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierDelNotifyOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierDelNotifyOuterClass { + /** + * Protobuf type {@code RogueModifierDelNotify} + */ + public static final class RogueModifierDelNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 main_modifier_effect = 9; + */ + private long mainModifierEffect; + + private RogueModifierDelNotify() { + } + + /** + * @return a new empty instance of {@code RogueModifierDelNotify} + */ + public static RogueModifierDelNotify newInstance() { + return new RogueModifierDelNotify(); + } + + /** + * optional uint64 main_modifier_effect = 9; + * @return whether the mainModifierEffect field is set + */ + public boolean hasMainModifierEffect() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 main_modifier_effect = 9; + * @return this + */ + public RogueModifierDelNotify clearMainModifierEffect() { + bitField0_ &= ~0x00000001; + mainModifierEffect = 0L; + return this; + } + + /** + * optional uint64 main_modifier_effect = 9; + * @return the mainModifierEffect + */ + public long getMainModifierEffect() { + return mainModifierEffect; + } + + /** + * optional uint64 main_modifier_effect = 9; + * @param value the mainModifierEffect to set + * @return this + */ + public RogueModifierDelNotify setMainModifierEffect(final long value) { + bitField0_ |= 0x00000001; + mainModifierEffect = value; + return this; + } + + @Override + public RogueModifierDelNotify copyFrom(final RogueModifierDelNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mainModifierEffect = other.mainModifierEffect; + } + return this; + } + + @Override + public RogueModifierDelNotify mergeFrom(final RogueModifierDelNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMainModifierEffect()) { + setMainModifierEffect(other.mainModifierEffect); + } + return this; + } + + @Override + public RogueModifierDelNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mainModifierEffect = 0L; + return this; + } + + @Override + public RogueModifierDelNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierDelNotify)) { + return false; + } + RogueModifierDelNotify other = (RogueModifierDelNotify) o; + return bitField0_ == other.bitField0_ + && (!hasMainModifierEffect() || mainModifierEffect == other.mainModifierEffect); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt64NoTag(mainModifierEffect); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(mainModifierEffect); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierDelNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // mainModifierEffect + mainModifierEffect = input.readUInt64(); + 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.writeUInt64(FieldNames.mainModifierEffect, mainModifierEffect); + } + output.endObject(); + } + + @Override + public RogueModifierDelNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -58014367: + case -1440158349: { + if (input.isAtField(FieldNames.mainModifierEffect)) { + if (!input.trySkipNullValue()) { + mainModifierEffect = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierDelNotify clone() { + return new RogueModifierDelNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierDelNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierDelNotify(), data).checkInitialized(); + } + + public static RogueModifierDelNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierDelNotify(), input).checkInitialized(); + } + + public static RogueModifierDelNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierDelNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierDelNotify messages + */ + public static MessageFactory getFactory() { + return RogueModifierDelNotifyFactory.INSTANCE; + } + + private enum RogueModifierDelNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierDelNotify create() { + return RogueModifierDelNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mainModifierEffect = FieldName.forField("mainModifierEffect", "main_modifier_effect"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierOuterClass.java new file mode 100644 index 000000000..f7490c2a2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierOuterClass.java @@ -0,0 +1,591 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierOuterClass { + /** + * Protobuf type {@code RogueModifier} + */ + public static final class RogueModifier extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 main_modifier_effect = 12; + */ + private long mainModifierEffect; + + /** + * optional .RogueModifierSourceType modifier_source_type = 11; + */ + private int modifierSourceType; + + /** + * optional .RogueModifierContent modifier_content = 4; + */ + private final RogueModifierContentOuterClass.RogueModifierContent modifierContent = RogueModifierContentOuterClass.RogueModifierContent.newInstance(); + + /** + * optional .ChessRogueModifierInfo modifier_info = 1044; + */ + private final ChessRogueModifierInfoOuterClass.ChessRogueModifierInfo modifierInfo = ChessRogueModifierInfoOuterClass.ChessRogueModifierInfo.newInstance(); + + private RogueModifier() { + } + + /** + * @return a new empty instance of {@code RogueModifier} + */ + public static RogueModifier newInstance() { + return new RogueModifier(); + } + + public boolean hasLIMAECOEBPE() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public RogueModifier clearLIMAECOEBPE() { + if (hasLIMAECOEBPE()) { + clearModifierInfo(); + } + return this; + } + + /** + * optional uint64 main_modifier_effect = 12; + * @return whether the mainModifierEffect field is set + */ + public boolean hasMainModifierEffect() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 main_modifier_effect = 12; + * @return this + */ + public RogueModifier clearMainModifierEffect() { + bitField0_ &= ~0x00000002; + mainModifierEffect = 0L; + return this; + } + + /** + * optional uint64 main_modifier_effect = 12; + * @return the mainModifierEffect + */ + public long getMainModifierEffect() { + return mainModifierEffect; + } + + /** + * optional uint64 main_modifier_effect = 12; + * @param value the mainModifierEffect to set + * @return this + */ + public RogueModifier setMainModifierEffect(final long value) { + bitField0_ |= 0x00000002; + mainModifierEffect = value; + return this; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 11; + * @return whether the modifierSourceType field is set + */ + public boolean hasModifierSourceType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 11; + * @return this + */ + public RogueModifier clearModifierSourceType() { + bitField0_ &= ~0x00000004; + modifierSourceType = 0; + return this; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 11; + * @return the modifierSourceType + */ + public RogueModifierSourceTypeOuterClass.RogueModifierSourceType getModifierSourceType() { + return RogueModifierSourceTypeOuterClass.RogueModifierSourceType.forNumber(modifierSourceType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueModifier#getModifierSourceType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getModifierSourceTypeValue() { + return modifierSourceType; + } + + /** + * 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 RogueModifierSourceTypeOuterClass.RogueModifierSourceType}. Setting an invalid value + * can cause {@link RogueModifier#getModifierSourceType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueModifier setModifierSourceTypeValue(final int value) { + bitField0_ |= 0x00000004; + modifierSourceType = value; + return this; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 11; + * @param value the modifierSourceType to set + * @return this + */ + public RogueModifier setModifierSourceType( + final RogueModifierSourceTypeOuterClass.RogueModifierSourceType value) { + bitField0_ |= 0x00000004; + modifierSourceType = value.getNumber(); + return this; + } + + /** + * optional .RogueModifierContent modifier_content = 4; + * @return whether the modifierContent field is set + */ + public boolean hasModifierContent() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueModifierContent modifier_content = 4; + * @return this + */ + public RogueModifier clearModifierContent() { + bitField0_ &= ~0x00000008; + modifierContent.clear(); + return this; + } + + /** + * optional .RogueModifierContent modifier_content = 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 #getMutableModifierContent()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueModifierContentOuterClass.RogueModifierContent getModifierContent() { + return modifierContent; + } + + /** + * optional .RogueModifierContent modifier_content = 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 RogueModifierContentOuterClass.RogueModifierContent getMutableModifierContent() { + bitField0_ |= 0x00000008; + return modifierContent; + } + + /** + * optional .RogueModifierContent modifier_content = 4; + * @param value the modifierContent to set + * @return this + */ + public RogueModifier setModifierContent( + final RogueModifierContentOuterClass.RogueModifierContent value) { + bitField0_ |= 0x00000008; + modifierContent.copyFrom(value); + return this; + } + + /** + * optional .ChessRogueModifierInfo modifier_info = 1044; + * @return whether the modifierInfo field is set + */ + public boolean hasModifierInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChessRogueModifierInfo modifier_info = 1044; + * @return this + */ + public RogueModifier clearModifierInfo() { + bitField0_ &= ~0x00000001; + modifierInfo.clear(); + return this; + } + + /** + * optional .ChessRogueModifierInfo modifier_info = 1044; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableModifierInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChessRogueModifierInfoOuterClass.ChessRogueModifierInfo getModifierInfo() { + return modifierInfo; + } + + /** + * optional .ChessRogueModifierInfo modifier_info = 1044; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChessRogueModifierInfoOuterClass.ChessRogueModifierInfo getMutableModifierInfo() { + bitField0_ |= 0x00000001; + return modifierInfo; + } + + /** + * optional .ChessRogueModifierInfo modifier_info = 1044; + * @param value the modifierInfo to set + * @return this + */ + public RogueModifier setModifierInfo( + final ChessRogueModifierInfoOuterClass.ChessRogueModifierInfo value) { + bitField0_ |= 0x00000001; + modifierInfo.copyFrom(value); + return this; + } + + @Override + public RogueModifier copyFrom(final RogueModifier other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mainModifierEffect = other.mainModifierEffect; + modifierSourceType = other.modifierSourceType; + modifierContent.copyFrom(other.modifierContent); + modifierInfo.copyFrom(other.modifierInfo); + } + return this; + } + + @Override + public RogueModifier mergeFrom(final RogueModifier other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMainModifierEffect()) { + setMainModifierEffect(other.mainModifierEffect); + } + if (other.hasModifierSourceType()) { + setModifierSourceTypeValue(other.modifierSourceType); + } + if (other.hasModifierContent()) { + getMutableModifierContent().mergeFrom(other.modifierContent); + } + if (other.hasModifierInfo()) { + getMutableModifierInfo().mergeFrom(other.modifierInfo); + } + return this; + } + + @Override + public RogueModifier clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mainModifierEffect = 0L; + modifierSourceType = 0; + modifierContent.clear(); + modifierInfo.clear(); + return this; + } + + @Override + public RogueModifier clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + modifierContent.clearQuick(); + modifierInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifier)) { + return false; + } + RogueModifier other = (RogueModifier) o; + return bitField0_ == other.bitField0_ + && (!hasMainModifierEffect() || mainModifierEffect == other.mainModifierEffect) + && (!hasModifierSourceType() || modifierSourceType == other.modifierSourceType) + && (!hasModifierContent() || modifierContent.equals(other.modifierContent)) + && (!hasModifierInfo() || modifierInfo.equals(other.modifierInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt64NoTag(mainModifierEffect); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeEnumNoTag(modifierSourceType); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(modifierContent); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 16802); + output.writeMessageNoTag(modifierInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(mainModifierEffect); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(modifierSourceType); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(modifierContent); + } + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(modifierInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifier mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // mainModifierEffect + mainModifierEffect = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // modifierSourceType + final int value = input.readInt32(); + if (RogueModifierSourceTypeOuterClass.RogueModifierSourceType.forNumber(value) != null) { + modifierSourceType = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // modifierContent + input.readMessage(modifierContent); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 8354) { + break; + } + } + case 8354: { + // modifierInfo + input.readMessage(modifierInfo); + 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_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.mainModifierEffect, mainModifierEffect); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.modifierSourceType, modifierSourceType, RogueModifierSourceTypeOuterClass.RogueModifierSourceType.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.modifierContent, modifierContent); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.modifierInfo, modifierInfo); + } + output.endObject(); + } + + @Override + public RogueModifier mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -58014367: + case -1440158349: { + if (input.isAtField(FieldNames.mainModifierEffect)) { + if (!input.trySkipNullValue()) { + mainModifierEffect = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 22701100: + case -1891070090: { + if (input.isAtField(FieldNames.modifierSourceType)) { + if (!input.trySkipNullValue()) { + final RogueModifierSourceTypeOuterClass.RogueModifierSourceType value = input.readEnum(RogueModifierSourceTypeOuterClass.RogueModifierSourceType.converter()); + if (value != null) { + modifierSourceType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1729509794: + case 1592661777: { + if (input.isAtField(FieldNames.modifierContent)) { + if (!input.trySkipNullValue()) { + input.readMessage(modifierContent); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -612919259: + case -1800451818: { + if (input.isAtField(FieldNames.modifierInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(modifierInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifier clone() { + return new RogueModifier().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifier parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifier(), data).checkInitialized(); + } + + public static RogueModifier parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifier(), input).checkInitialized(); + } + + public static RogueModifier parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifier(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifier messages + */ + public static MessageFactory getFactory() { + return RogueModifierFactory.INSTANCE; + } + + private enum RogueModifierFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifier create() { + return RogueModifier.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mainModifierEffect = FieldName.forField("mainModifierEffect", "main_modifier_effect"); + + static final FieldName modifierSourceType = FieldName.forField("modifierSourceType", "modifier_source_type"); + + static final FieldName modifierContent = FieldName.forField("modifierContent", "modifier_content"); + + static final FieldName modifierInfo = FieldName.forField("modifierInfo", "modifier_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierSelectCellCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierSelectCellCsReqOuterClass.java new file mode 100644 index 000000000..62b7842f3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierSelectCellCsReqOuterClass.java @@ -0,0 +1,262 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierSelectCellCsReqOuterClass { + /** + * Protobuf type {@code RogueModifierSelectCellCsReq} + */ + public static final class RogueModifierSelectCellCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cell_id = 2; + */ + private int cellId; + + private RogueModifierSelectCellCsReq() { + } + + /** + * @return a new empty instance of {@code RogueModifierSelectCellCsReq} + */ + public static RogueModifierSelectCellCsReq newInstance() { + return new RogueModifierSelectCellCsReq(); + } + + /** + * optional uint32 cell_id = 2; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cell_id = 2; + * @return this + */ + public RogueModifierSelectCellCsReq clearCellId() { + bitField0_ &= ~0x00000001; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 2; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 2; + * @param value the cellId to set + * @return this + */ + public RogueModifierSelectCellCsReq setCellId(final int value) { + bitField0_ |= 0x00000001; + cellId = value; + return this; + } + + @Override + public RogueModifierSelectCellCsReq copyFrom(final RogueModifierSelectCellCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cellId = other.cellId; + } + return this; + } + + @Override + public RogueModifierSelectCellCsReq mergeFrom(final RogueModifierSelectCellCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCellId()) { + setCellId(other.cellId); + } + return this; + } + + @Override + public RogueModifierSelectCellCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cellId = 0; + return this; + } + + @Override + public RogueModifierSelectCellCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierSelectCellCsReq)) { + return false; + } + RogueModifierSelectCellCsReq other = (RogueModifierSelectCellCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasCellId() || cellId == other.cellId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(cellId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierSelectCellCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // cellId + cellId = input.readUInt32(); + 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.writeUInt32(FieldNames.cellId, cellId); + } + output.endObject(); + } + + @Override + public RogueModifierSelectCellCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierSelectCellCsReq clone() { + return new RogueModifierSelectCellCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierSelectCellCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierSelectCellCsReq(), data).checkInitialized(); + } + + public static RogueModifierSelectCellCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueModifierSelectCellCsReq(), input).checkInitialized(); + } + + public static RogueModifierSelectCellCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueModifierSelectCellCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierSelectCellCsReq messages + */ + public static MessageFactory getFactory() { + return RogueModifierSelectCellCsReqFactory.INSTANCE; + } + + private enum RogueModifierSelectCellCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierSelectCellCsReq create() { + return RogueModifierSelectCellCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierSelectCellScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierSelectCellScRspOuterClass.java new file mode 100644 index 000000000..9d1560495 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierSelectCellScRspOuterClass.java @@ -0,0 +1,443 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierSelectCellScRspOuterClass { + /** + * Protobuf type {@code RogueModifierSelectCellScRsp} + */ + public static final class RogueModifierSelectCellScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 11; + */ + private int retcode; + + /** + * optional uint32 cell_id = 15; + */ + private int cellId; + + /** + * optional .ItemList IMOJCCEGMMM = 9; + */ + private final ItemListOuterClass.ItemList iMOJCCEGMMM = ItemListOuterClass.ItemList.newInstance(); + + private RogueModifierSelectCellScRsp() { + } + + /** + * @return a new empty instance of {@code RogueModifierSelectCellScRsp} + */ + public static RogueModifierSelectCellScRsp newInstance() { + return new RogueModifierSelectCellScRsp(); + } + + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public RogueModifierSelectCellScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public RogueModifierSelectCellScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 cell_id = 15; + * @return whether the cellId field is set + */ + public boolean hasCellId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cell_id = 15; + * @return this + */ + public RogueModifierSelectCellScRsp clearCellId() { + bitField0_ &= ~0x00000002; + cellId = 0; + return this; + } + + /** + * optional uint32 cell_id = 15; + * @return the cellId + */ + public int getCellId() { + return cellId; + } + + /** + * optional uint32 cell_id = 15; + * @param value the cellId to set + * @return this + */ + public RogueModifierSelectCellScRsp setCellId(final int value) { + bitField0_ |= 0x00000002; + cellId = value; + return this; + } + + /** + * optional .ItemList IMOJCCEGMMM = 9; + * @return whether the iMOJCCEGMMM field is set + */ + public boolean hasIMOJCCEGMMM() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ItemList IMOJCCEGMMM = 9; + * @return this + */ + public RogueModifierSelectCellScRsp clearIMOJCCEGMMM() { + bitField0_ &= ~0x00000004; + iMOJCCEGMMM.clear(); + return this; + } + + /** + * optional .ItemList IMOJCCEGMMM = 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 #getMutableIMOJCCEGMMM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getIMOJCCEGMMM() { + return iMOJCCEGMMM; + } + + /** + * optional .ItemList IMOJCCEGMMM = 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 ItemListOuterClass.ItemList getMutableIMOJCCEGMMM() { + bitField0_ |= 0x00000004; + return iMOJCCEGMMM; + } + + /** + * optional .ItemList IMOJCCEGMMM = 9; + * @param value the iMOJCCEGMMM to set + * @return this + */ + public RogueModifierSelectCellScRsp setIMOJCCEGMMM(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000004; + iMOJCCEGMMM.copyFrom(value); + return this; + } + + @Override + public RogueModifierSelectCellScRsp copyFrom(final RogueModifierSelectCellScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + cellId = other.cellId; + iMOJCCEGMMM.copyFrom(other.iMOJCCEGMMM); + } + return this; + } + + @Override + public RogueModifierSelectCellScRsp mergeFrom(final RogueModifierSelectCellScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCellId()) { + setCellId(other.cellId); + } + if (other.hasIMOJCCEGMMM()) { + getMutableIMOJCCEGMMM().mergeFrom(other.iMOJCCEGMMM); + } + return this; + } + + @Override + public RogueModifierSelectCellScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + cellId = 0; + iMOJCCEGMMM.clear(); + return this; + } + + @Override + public RogueModifierSelectCellScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iMOJCCEGMMM.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierSelectCellScRsp)) { + return false; + } + RogueModifierSelectCellScRsp other = (RogueModifierSelectCellScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCellId() || cellId == other.cellId) + && (!hasIMOJCCEGMMM() || iMOJCCEGMMM.equals(other.iMOJCCEGMMM)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(cellId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(iMOJCCEGMMM); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(iMOJCCEGMMM); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierSelectCellScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // cellId + cellId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // iMOJCCEGMMM + input.readMessage(iMOJCCEGMMM); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.cellId, cellId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.iMOJCCEGMMM, iMOJCCEGMMM); + } + output.endObject(); + } + + @Override + public RogueModifierSelectCellScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1364082147: + case 663147800: { + if (input.isAtField(FieldNames.cellId)) { + if (!input.trySkipNullValue()) { + cellId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 101135244: { + if (input.isAtField(FieldNames.iMOJCCEGMMM)) { + if (!input.trySkipNullValue()) { + input.readMessage(iMOJCCEGMMM); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierSelectCellScRsp clone() { + return new RogueModifierSelectCellScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierSelectCellScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierSelectCellScRsp(), data).checkInitialized(); + } + + public static RogueModifierSelectCellScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueModifierSelectCellScRsp(), input).checkInitialized(); + } + + public static RogueModifierSelectCellScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueModifierSelectCellScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierSelectCellScRsp messages + */ + public static MessageFactory getFactory() { + return RogueModifierSelectCellScRspFactory.INSTANCE; + } + + private enum RogueModifierSelectCellScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierSelectCellScRsp create() { + return RogueModifierSelectCellScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + + static final FieldName iMOJCCEGMMM = FieldName.forField("IMOJCCEGMMM"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierSourceTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierSourceTypeOuterClass.java new file mode 100644 index 000000000..1635d9ea5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierSourceTypeOuterClass.java @@ -0,0 +1,244 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueModifierSourceTypeOuterClass { + /** + * Protobuf enum {@code RogueModifierSourceType} + */ + public enum RogueModifierSourceType implements ProtoEnum { + /** + * ROGUE_MODIFIER_SOURCE_NONE = 0; + */ + ROGUE_MODIFIER_SOURCE_NONE("ROGUE_MODIFIER_SOURCE_NONE", 0), + + /** + * ROGUE_MODIFIER_SOURCE_DICE_ROLL = 1; + */ + ROGUE_MODIFIER_SOURCE_DICE_ROLL("ROGUE_MODIFIER_SOURCE_DICE_ROLL", 1), + + /** + * ROGUE_MODIFIER_SOURCE_AEON = 2; + */ + ROGUE_MODIFIER_SOURCE_AEON("ROGUE_MODIFIER_SOURCE_AEON", 2), + + /** + * ROGUE_MODIFIER_SOURCE_BOARD_EVENT = 3; + */ + ROGUE_MODIFIER_SOURCE_BOARD_EVENT("ROGUE_MODIFIER_SOURCE_BOARD_EVENT", 3), + + /** + * ROGUE_MODIFIER_SOURCE_DIALOG_EVENT = 4; + */ + ROGUE_MODIFIER_SOURCE_DIALOG_EVENT("ROGUE_MODIFIER_SOURCE_DIALOG_EVENT", 4), + + /** + * ROGUE_MODIFIER_SOURCE_MIRACLE = 5; + */ + ROGUE_MODIFIER_SOURCE_MIRACLE("ROGUE_MODIFIER_SOURCE_MIRACLE", 5), + + /** + * ROGUE_MODIFIER_SOURCE_CELL_MARK = 6; + */ + ROGUE_MODIFIER_SOURCE_CELL_MARK("ROGUE_MODIFIER_SOURCE_CELL_MARK", 6), + + /** + * ROGUE_MODIFIER_SOURCE_AEON_TALENT = 7; + */ + ROGUE_MODIFIER_SOURCE_AEON_TALENT("ROGUE_MODIFIER_SOURCE_AEON_TALENT", 7), + + /** + * ROGUE_MODIFIER_SOURCE_BOSS_DECAY = 8; + */ + ROGUE_MODIFIER_SOURCE_BOSS_DECAY("ROGUE_MODIFIER_SOURCE_BOSS_DECAY", 8), + + /** + * ROGUE_MODIFIER_SOURCE_DICE_BRANCH = 9; + */ + ROGUE_MODIFIER_SOURCE_DICE_BRANCH("ROGUE_MODIFIER_SOURCE_DICE_BRANCH", 9); + + /** + * ROGUE_MODIFIER_SOURCE_NONE = 0; + */ + public static final int ROGUE_MODIFIER_SOURCE_NONE_VALUE = 0; + + /** + * ROGUE_MODIFIER_SOURCE_DICE_ROLL = 1; + */ + public static final int ROGUE_MODIFIER_SOURCE_DICE_ROLL_VALUE = 1; + + /** + * ROGUE_MODIFIER_SOURCE_AEON = 2; + */ + public static final int ROGUE_MODIFIER_SOURCE_AEON_VALUE = 2; + + /** + * ROGUE_MODIFIER_SOURCE_BOARD_EVENT = 3; + */ + public static final int ROGUE_MODIFIER_SOURCE_BOARD_EVENT_VALUE = 3; + + /** + * ROGUE_MODIFIER_SOURCE_DIALOG_EVENT = 4; + */ + public static final int ROGUE_MODIFIER_SOURCE_DIALOG_EVENT_VALUE = 4; + + /** + * ROGUE_MODIFIER_SOURCE_MIRACLE = 5; + */ + public static final int ROGUE_MODIFIER_SOURCE_MIRACLE_VALUE = 5; + + /** + * ROGUE_MODIFIER_SOURCE_CELL_MARK = 6; + */ + public static final int ROGUE_MODIFIER_SOURCE_CELL_MARK_VALUE = 6; + + /** + * ROGUE_MODIFIER_SOURCE_AEON_TALENT = 7; + */ + public static final int ROGUE_MODIFIER_SOURCE_AEON_TALENT_VALUE = 7; + + /** + * ROGUE_MODIFIER_SOURCE_BOSS_DECAY = 8; + */ + public static final int ROGUE_MODIFIER_SOURCE_BOSS_DECAY_VALUE = 8; + + /** + * ROGUE_MODIFIER_SOURCE_DICE_BRANCH = 9; + */ + public static final int ROGUE_MODIFIER_SOURCE_DICE_BRANCH_VALUE = 9; + + private final String name; + + private final int number; + + private RogueModifierSourceType(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 RogueModifierSourceTypeConverter.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 RogueModifierSourceType forNumber(int value) { + return RogueModifierSourceTypeConverter.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 RogueModifierSourceType forNumberOr(int number, RogueModifierSourceType other) { + RogueModifierSourceType value = forNumber(number); + return value == null ? other : value; + } + + enum RogueModifierSourceTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueModifierSourceType[] lookup = new RogueModifierSourceType[10]; + + static { + lookup[0] = ROGUE_MODIFIER_SOURCE_NONE; + lookup[1] = ROGUE_MODIFIER_SOURCE_DICE_ROLL; + lookup[2] = ROGUE_MODIFIER_SOURCE_AEON; + lookup[3] = ROGUE_MODIFIER_SOURCE_BOARD_EVENT; + lookup[4] = ROGUE_MODIFIER_SOURCE_DIALOG_EVENT; + lookup[5] = ROGUE_MODIFIER_SOURCE_MIRACLE; + lookup[6] = ROGUE_MODIFIER_SOURCE_CELL_MARK; + lookup[7] = ROGUE_MODIFIER_SOURCE_AEON_TALENT; + lookup[8] = ROGUE_MODIFIER_SOURCE_BOSS_DECAY; + lookup[9] = ROGUE_MODIFIER_SOURCE_DICE_BRANCH; + } + + @Override + public final RogueModifierSourceType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueModifierSourceType forName(final CharSequence value) { + switch (value.length()) { + case 26: { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_NONE", value)) { + return ROGUE_MODIFIER_SOURCE_NONE; + } + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_AEON", value)) { + return ROGUE_MODIFIER_SOURCE_AEON; + } + break; + } + case 29: { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_MIRACLE", value)) { + return ROGUE_MODIFIER_SOURCE_MIRACLE; + } + break; + } + case 31: { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_DICE_ROLL", value)) { + return ROGUE_MODIFIER_SOURCE_DICE_ROLL; + } + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_CELL_MARK", value)) { + return ROGUE_MODIFIER_SOURCE_CELL_MARK; + } + break; + } + case 32: { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_BOSS_DECAY", value)) { + return ROGUE_MODIFIER_SOURCE_BOSS_DECAY; + } + break; + } + case 33: { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_BOARD_EVENT", value)) { + return ROGUE_MODIFIER_SOURCE_BOARD_EVENT; + } + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_AEON_TALENT", value)) { + return ROGUE_MODIFIER_SOURCE_AEON_TALENT; + } + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_DICE_BRANCH", value)) { + return ROGUE_MODIFIER_SOURCE_DICE_BRANCH; + } + break; + } + case 34: { + if (ProtoUtil.isEqual("ROGUE_MODIFIER_SOURCE_DIALOG_EVENT", value)) { + return ROGUE_MODIFIER_SOURCE_DIALOG_EVENT; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierStageStartNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierStageStartNotifyOuterClass.java new file mode 100644 index 000000000..6eb28dbe5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierStageStartNotifyOuterClass.java @@ -0,0 +1,296 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierStageStartNotifyOuterClass { + /** + * Protobuf type {@code RogueModifierStageStartNotify} + */ + public static final class RogueModifierStageStartNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueModifierSourceType modifier_source_type = 10; + */ + private int modifierSourceType; + + private RogueModifierStageStartNotify() { + } + + /** + * @return a new empty instance of {@code RogueModifierStageStartNotify} + */ + public static RogueModifierStageStartNotify newInstance() { + return new RogueModifierStageStartNotify(); + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 10; + * @return whether the modifierSourceType field is set + */ + public boolean hasModifierSourceType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 10; + * @return this + */ + public RogueModifierStageStartNotify clearModifierSourceType() { + bitField0_ &= ~0x00000001; + modifierSourceType = 0; + return this; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 10; + * @return the modifierSourceType + */ + public RogueModifierSourceTypeOuterClass.RogueModifierSourceType getModifierSourceType() { + return RogueModifierSourceTypeOuterClass.RogueModifierSourceType.forNumber(modifierSourceType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueModifierStageStartNotify#getModifierSourceType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getModifierSourceTypeValue() { + return modifierSourceType; + } + + /** + * 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 RogueModifierSourceTypeOuterClass.RogueModifierSourceType}. Setting an invalid value + * can cause {@link RogueModifierStageStartNotify#getModifierSourceType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueModifierStageStartNotify setModifierSourceTypeValue(final int value) { + bitField0_ |= 0x00000001; + modifierSourceType = value; + return this; + } + + /** + * optional .RogueModifierSourceType modifier_source_type = 10; + * @param value the modifierSourceType to set + * @return this + */ + public RogueModifierStageStartNotify setModifierSourceType( + final RogueModifierSourceTypeOuterClass.RogueModifierSourceType value) { + bitField0_ |= 0x00000001; + modifierSourceType = value.getNumber(); + return this; + } + + @Override + public RogueModifierStageStartNotify copyFrom(final RogueModifierStageStartNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + modifierSourceType = other.modifierSourceType; + } + return this; + } + + @Override + public RogueModifierStageStartNotify mergeFrom(final RogueModifierStageStartNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasModifierSourceType()) { + setModifierSourceTypeValue(other.modifierSourceType); + } + return this; + } + + @Override + public RogueModifierStageStartNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + modifierSourceType = 0; + return this; + } + + @Override + public RogueModifierStageStartNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierStageStartNotify)) { + return false; + } + RogueModifierStageStartNotify other = (RogueModifierStageStartNotify) o; + return bitField0_ == other.bitField0_ + && (!hasModifierSourceType() || modifierSourceType == other.modifierSourceType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeEnumNoTag(modifierSourceType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(modifierSourceType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierStageStartNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // modifierSourceType + final int value = input.readInt32(); + if (RogueModifierSourceTypeOuterClass.RogueModifierSourceType.forNumber(value) != null) { + modifierSourceType = value; + 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.writeEnum(FieldNames.modifierSourceType, modifierSourceType, RogueModifierSourceTypeOuterClass.RogueModifierSourceType.converter()); + } + output.endObject(); + } + + @Override + public RogueModifierStageStartNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 22701100: + case -1891070090: { + if (input.isAtField(FieldNames.modifierSourceType)) { + if (!input.trySkipNullValue()) { + final RogueModifierSourceTypeOuterClass.RogueModifierSourceType value = input.readEnum(RogueModifierSourceTypeOuterClass.RogueModifierSourceType.converter()); + if (value != null) { + modifierSourceType = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierStageStartNotify clone() { + return new RogueModifierStageStartNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierStageStartNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierStageStartNotify(), data).checkInitialized(); + } + + public static RogueModifierStageStartNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueModifierStageStartNotify(), input).checkInitialized(); + } + + public static RogueModifierStageStartNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueModifierStageStartNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierStageStartNotify messages + */ + public static MessageFactory getFactory() { + return RogueModifierStageStartNotifyFactory.INSTANCE; + } + + private enum RogueModifierStageStartNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierStageStartNotify create() { + return RogueModifierStageStartNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName modifierSourceType = FieldName.forField("modifierSourceType", "modifier_source_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModifierUpdateNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModifierUpdateNotifyOuterClass.java new file mode 100644 index 000000000..c3509abc7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModifierUpdateNotifyOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueModifierUpdateNotifyOuterClass { + /** + * Protobuf type {@code RogueModifierUpdateNotify} + */ + public static final class RogueModifierUpdateNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 6; + */ + private final RogueModifierOuterClass.RogueModifier cHESSROGUECELLUPDATEREASONMODIFIER = RogueModifierOuterClass.RogueModifier.newInstance(); + + private RogueModifierUpdateNotify() { + } + + /** + * @return a new empty instance of {@code RogueModifierUpdateNotify} + */ + public static RogueModifierUpdateNotify newInstance() { + return new RogueModifierUpdateNotify(); + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 6; + * @return whether the cHESSROGUECELLUPDATEREASONMODIFIER field is set + */ + public boolean hasCHESSROGUECELLUPDATEREASONMODIFIER() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 6; + * @return this + */ + public RogueModifierUpdateNotify clearCHESSROGUECELLUPDATEREASONMODIFIER() { + bitField0_ &= ~0x00000001; + cHESSROGUECELLUPDATEREASONMODIFIER.clear(); + return this; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 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 #getMutableCHESSROGUECELLUPDATEREASONMODIFIER()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueModifierOuterClass.RogueModifier getCHESSROGUECELLUPDATEREASONMODIFIER() { + return cHESSROGUECELLUPDATEREASONMODIFIER; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 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 RogueModifierOuterClass.RogueModifier getMutableCHESSROGUECELLUPDATEREASONMODIFIER() { + bitField0_ |= 0x00000001; + return cHESSROGUECELLUPDATEREASONMODIFIER; + } + + /** + * optional .RogueModifier CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER = 6; + * @param value the cHESSROGUECELLUPDATEREASONMODIFIER to set + * @return this + */ + public RogueModifierUpdateNotify setCHESSROGUECELLUPDATEREASONMODIFIER( + final RogueModifierOuterClass.RogueModifier value) { + bitField0_ |= 0x00000001; + cHESSROGUECELLUPDATEREASONMODIFIER.copyFrom(value); + return this; + } + + @Override + public RogueModifierUpdateNotify copyFrom(final RogueModifierUpdateNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + cHESSROGUECELLUPDATEREASONMODIFIER.copyFrom(other.cHESSROGUECELLUPDATEREASONMODIFIER); + } + return this; + } + + @Override + public RogueModifierUpdateNotify mergeFrom(final RogueModifierUpdateNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCHESSROGUECELLUPDATEREASONMODIFIER()) { + getMutableCHESSROGUECELLUPDATEREASONMODIFIER().mergeFrom(other.cHESSROGUECELLUPDATEREASONMODIFIER); + } + return this; + } + + @Override + public RogueModifierUpdateNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cHESSROGUECELLUPDATEREASONMODIFIER.clear(); + return this; + } + + @Override + public RogueModifierUpdateNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cHESSROGUECELLUPDATEREASONMODIFIER.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModifierUpdateNotify)) { + return false; + } + RogueModifierUpdateNotify other = (RogueModifierUpdateNotify) o; + return bitField0_ == other.bitField0_ + && (!hasCHESSROGUECELLUPDATEREASONMODIFIER() || cHESSROGUECELLUPDATEREASONMODIFIER.equals(other.cHESSROGUECELLUPDATEREASONMODIFIER)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(cHESSROGUECELLUPDATEREASONMODIFIER); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(cHESSROGUECELLUPDATEREASONMODIFIER); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModifierUpdateNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 50: { + // cHESSROGUECELLUPDATEREASONMODIFIER + input.readMessage(cHESSROGUECELLUPDATEREASONMODIFIER); + 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.writeMessage(FieldNames.cHESSROGUECELLUPDATEREASONMODIFIER, cHESSROGUECELLUPDATEREASONMODIFIER); + } + output.endObject(); + } + + @Override + public RogueModifierUpdateNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -83230880: + case 1690038229: { + if (input.isAtField(FieldNames.cHESSROGUECELLUPDATEREASONMODIFIER)) { + if (!input.trySkipNullValue()) { + input.readMessage(cHESSROGUECELLUPDATEREASONMODIFIER); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModifierUpdateNotify clone() { + return new RogueModifierUpdateNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModifierUpdateNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModifierUpdateNotify(), data).checkInitialized(); + } + + public static RogueModifierUpdateNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierUpdateNotify(), input).checkInitialized(); + } + + public static RogueModifierUpdateNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModifierUpdateNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModifierUpdateNotify messages + */ + public static MessageFactory getFactory() { + return RogueModifierUpdateNotifyFactory.INSTANCE; + } + + private enum RogueModifierUpdateNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModifierUpdateNotify create() { + return RogueModifierUpdateNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName cHESSROGUECELLUPDATEREASONMODIFIER = FieldName.forField("CHESSROGUECELLUPDATEREASONMODIFIER", "CHESS_ROGUE_CELL_UPDATE_REASON_MODIFIER"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueModuleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueModuleInfoOuterClass.java new file mode 100644 index 000000000..98c31a947 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueModuleInfoOuterClass.java @@ -0,0 +1,301 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class RogueModuleInfoOuterClass { + /** + * Protobuf type {@code RogueModuleInfo} + */ + public static final class RogueModuleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 module_id_list = 9; + */ + private final RepeatedInt moduleIdList = RepeatedInt.newEmptyInstance(); + + private RogueModuleInfo() { + } + + /** + * @return a new empty instance of {@code RogueModuleInfo} + */ + public static RogueModuleInfo newInstance() { + return new RogueModuleInfo(); + } + + /** + * repeated uint32 module_id_list = 9; + * @return whether the moduleIdList field is set + */ + public boolean hasModuleIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 module_id_list = 9; + * @return this + */ + public RogueModuleInfo clearModuleIdList() { + bitField0_ &= ~0x00000001; + moduleIdList.clear(); + return this; + } + + /** + * repeated uint32 module_id_list = 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 #getMutableModuleIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getModuleIdList() { + return moduleIdList; + } + + /** + * repeated uint32 module_id_list = 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 RepeatedInt getMutableModuleIdList() { + bitField0_ |= 0x00000001; + return moduleIdList; + } + + /** + * repeated uint32 module_id_list = 9; + * @param value the moduleIdList to add + * @return this + */ + public RogueModuleInfo addModuleIdList(final int value) { + bitField0_ |= 0x00000001; + moduleIdList.add(value); + return this; + } + + /** + * repeated uint32 module_id_list = 9; + * @param values the moduleIdList to add + * @return this + */ + public RogueModuleInfo addAllModuleIdList(final int... values) { + bitField0_ |= 0x00000001; + moduleIdList.addAll(values); + return this; + } + + @Override + public RogueModuleInfo copyFrom(final RogueModuleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + moduleIdList.copyFrom(other.moduleIdList); + } + return this; + } + + @Override + public RogueModuleInfo mergeFrom(final RogueModuleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasModuleIdList()) { + getMutableModuleIdList().addAll(other.moduleIdList); + } + return this; + } + + @Override + public RogueModuleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + moduleIdList.clear(); + return this; + } + + @Override + public RogueModuleInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + moduleIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueModuleInfo)) { + return false; + } + RogueModuleInfo other = (RogueModuleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasModuleIdList() || moduleIdList.equals(other.moduleIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < moduleIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(moduleIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * moduleIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(moduleIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueModuleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // moduleIdList [packed=true] + input.readPackedUInt32(moduleIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 72: { + // moduleIdList [packed=false] + tag = input.readRepeatedUInt32(moduleIdList, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.moduleIdList, moduleIdList); + } + output.endObject(); + } + + @Override + public RogueModuleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 969883109: + case 557086319: { + if (input.isAtField(FieldNames.moduleIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(moduleIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueModuleInfo clone() { + return new RogueModuleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueModuleInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueModuleInfo(), data).checkInitialized(); + } + + public static RogueModuleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModuleInfo(), input).checkInitialized(); + } + + public static RogueModuleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueModuleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueModuleInfo messages + */ + public static MessageFactory getFactory() { + return RogueModuleInfoFactory.INSTANCE; + } + + private enum RogueModuleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueModuleInfo create() { + return RogueModuleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName moduleIdList = FieldName.forField("moduleIdList", "module_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java index 62301511c..a6239a60f 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java @@ -19,9 +19,9 @@ public static final class RogueNpcDisappearCsReq extends ProtoMessageoptional uint32 entity_id = 15; + * optional uint32 disappear_npc_entity_id = 15; */ - private int entityId; + private int disappearNpcEntityId; private RogueNpcDisappearCsReq() { } @@ -34,39 +34,39 @@ public static RogueNpcDisappearCsReq newInstance() { } /** - * optional uint32 entity_id = 15; - * @return whether the entityId field is set + * optional uint32 disappear_npc_entity_id = 15; + * @return whether the disappearNpcEntityId field is set */ - public boolean hasEntityId() { + public boolean hasDisappearNpcEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 15; + * optional uint32 disappear_npc_entity_id = 15; * @return this */ - public RogueNpcDisappearCsReq clearEntityId() { + public RogueNpcDisappearCsReq clearDisappearNpcEntityId() { bitField0_ &= ~0x00000001; - entityId = 0; + disappearNpcEntityId = 0; return this; } /** - * optional uint32 entity_id = 15; - * @return the entityId + * optional uint32 disappear_npc_entity_id = 15; + * @return the disappearNpcEntityId */ - public int getEntityId() { - return entityId; + public int getDisappearNpcEntityId() { + return disappearNpcEntityId; } /** - * optional uint32 entity_id = 15; - * @param value the entityId to set + * optional uint32 disappear_npc_entity_id = 15; + * @param value the disappearNpcEntityId to set * @return this */ - public RogueNpcDisappearCsReq setEntityId(final int value) { + public RogueNpcDisappearCsReq setDisappearNpcEntityId(final int value) { bitField0_ |= 0x00000001; - entityId = value; + disappearNpcEntityId = value; return this; } @@ -75,7 +75,7 @@ public RogueNpcDisappearCsReq copyFrom(final RogueNpcDisappearCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; + disappearNpcEntityId = other.disappearNpcEntityId; } return this; } @@ -86,8 +86,8 @@ public RogueNpcDisappearCsReq mergeFrom(final RogueNpcDisappearCsReq other) { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); + if (other.hasDisappearNpcEntityId()) { + setDisappearNpcEntityId(other.disappearNpcEntityId); } return this; } @@ -99,7 +99,7 @@ public RogueNpcDisappearCsReq clear() { } cachedSize = -1; bitField0_ = 0; - entityId = 0; + disappearNpcEntityId = 0; return this; } @@ -123,14 +123,14 @@ public boolean equals(Object o) { } RogueNpcDisappearCsReq other = (RogueNpcDisappearCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId); + && (!hasDisappearNpcEntityId() || disappearNpcEntityId == other.disappearNpcEntityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(entityId); + output.writeUInt32NoTag(disappearNpcEntityId); } } @@ -138,7 +138,7 @@ public void writeTo(final ProtoSink output) throws IOException { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(disappearNpcEntityId); } return size; } @@ -151,8 +151,8 @@ public RogueNpcDisappearCsReq mergeFrom(final ProtoSource input) throws IOExcept while (true) { switch (tag) { case 120: { - // entityId - entityId = input.readUInt32(); + // disappearNpcEntityId + disappearNpcEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,7 +177,7 @@ public RogueNpcDisappearCsReq mergeFrom(final ProtoSource input) throws IOExcept public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.disappearNpcEntityId, disappearNpcEntityId); } output.endObject(); } @@ -189,11 +189,11 @@ public RogueNpcDisappearCsReq mergeFrom(final JsonSource input) throws IOExcepti } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case -1209630020: + case -1719695491: { + if (input.isAtField(FieldNames.disappearNpcEntityId)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + disappearNpcEntityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -254,7 +254,7 @@ public RogueNpcDisappearCsReq create() { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName disappearNpcEntityId = FieldName.forField("disappearNpcEntityId", "disappear_npc_entity_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java new file mode 100644 index 000000000..bc31e464a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueNpcDisappearScRspOuterClass { + /** + * Protobuf type {@code RogueNpcDisappearScRsp} + */ + public static final class RogueNpcDisappearScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + private RogueNpcDisappearScRsp() { + } + + /** + * @return a new empty instance of {@code RogueNpcDisappearScRsp} + */ + public static RogueNpcDisappearScRsp newInstance() { + return new RogueNpcDisappearScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public RogueNpcDisappearScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public RogueNpcDisappearScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + @Override + public RogueNpcDisappearScRsp copyFrom(final RogueNpcDisappearScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + } + return this; + } + + @Override + public RogueNpcDisappearScRsp mergeFrom(final RogueNpcDisappearScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public RogueNpcDisappearScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + return this; + } + + @Override + public RogueNpcDisappearScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueNpcDisappearScRsp)) { + return false; + } + RogueNpcDisappearScRsp other = (RogueNpcDisappearScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueNpcDisappearScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + 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.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public RogueNpcDisappearScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueNpcDisappearScRsp clone() { + return new RogueNpcDisappearScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueNpcDisappearScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), data).checkInitialized(); + } + + public static RogueNpcDisappearScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), input).checkInitialized(); + } + + public static RogueNpcDisappearScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueNpcDisappearScRsp messages + */ + public static MessageFactory getFactory() { + return RogueNpcDisappearScRspFactory.INSTANCE; + } + + private enum RogueNpcDisappearScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueNpcDisappearScRsp create() { + return RogueNpcDisappearScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueReviveInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueReviveInfoOuterClass.java new file mode 100644 index 000000000..1c5090efd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueReviveInfoOuterClass.java @@ -0,0 +1,562 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class RogueReviveInfoOuterClass { + /** + * Protobuf type {@code RogueReviveInfo} + */ + public static final class RogueReviveInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 MODHOJOGOBC = 1; + */ + private int mODHOJOGOBC; + + /** + * optional uint32 LAKLNFMHMLO = 8; + */ + private int lAKLNFMHMLO; + + /** + * optional .ItemCostList rogue_revive_cost = 14; + */ + private final ItemCostListOuterClass.ItemCostList rogueReviveCost = ItemCostListOuterClass.ItemCostList.newInstance(); + + /** + * repeated uint32 HIMNEOAEELB = 5; + */ + private final RepeatedInt hIMNEOAEELB = RepeatedInt.newEmptyInstance(); + + private RogueReviveInfo() { + } + + /** + * @return a new empty instance of {@code RogueReviveInfo} + */ + public static RogueReviveInfo newInstance() { + return new RogueReviveInfo(); + } + + /** + * optional uint32 MODHOJOGOBC = 1; + * @return whether the mODHOJOGOBC field is set + */ + public boolean hasMODHOJOGOBC() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 MODHOJOGOBC = 1; + * @return this + */ + public RogueReviveInfo clearMODHOJOGOBC() { + bitField0_ &= ~0x00000001; + mODHOJOGOBC = 0; + return this; + } + + /** + * optional uint32 MODHOJOGOBC = 1; + * @return the mODHOJOGOBC + */ + public int getMODHOJOGOBC() { + return mODHOJOGOBC; + } + + /** + * optional uint32 MODHOJOGOBC = 1; + * @param value the mODHOJOGOBC to set + * @return this + */ + public RogueReviveInfo setMODHOJOGOBC(final int value) { + bitField0_ |= 0x00000001; + mODHOJOGOBC = value; + return this; + } + + /** + * optional uint32 LAKLNFMHMLO = 8; + * @return whether the lAKLNFMHMLO field is set + */ + public boolean hasLAKLNFMHMLO() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LAKLNFMHMLO = 8; + * @return this + */ + public RogueReviveInfo clearLAKLNFMHMLO() { + bitField0_ &= ~0x00000002; + lAKLNFMHMLO = 0; + return this; + } + + /** + * optional uint32 LAKLNFMHMLO = 8; + * @return the lAKLNFMHMLO + */ + public int getLAKLNFMHMLO() { + return lAKLNFMHMLO; + } + + /** + * optional uint32 LAKLNFMHMLO = 8; + * @param value the lAKLNFMHMLO to set + * @return this + */ + public RogueReviveInfo setLAKLNFMHMLO(final int value) { + bitField0_ |= 0x00000002; + lAKLNFMHMLO = value; + return this; + } + + /** + * optional .ItemCostList rogue_revive_cost = 14; + * @return whether the rogueReviveCost field is set + */ + public boolean hasRogueReviveCost() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ItemCostList rogue_revive_cost = 14; + * @return this + */ + public RogueReviveInfo clearRogueReviveCost() { + bitField0_ &= ~0x00000004; + rogueReviveCost.clear(); + return this; + } + + /** + * optional .ItemCostList rogue_revive_cost = 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 #getMutableRogueReviveCost()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getRogueReviveCost() { + return rogueReviveCost; + } + + /** + * optional .ItemCostList rogue_revive_cost = 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 ItemCostListOuterClass.ItemCostList getMutableRogueReviveCost() { + bitField0_ |= 0x00000004; + return rogueReviveCost; + } + + /** + * optional .ItemCostList rogue_revive_cost = 14; + * @param value the rogueReviveCost to set + * @return this + */ + public RogueReviveInfo setRogueReviveCost(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000004; + rogueReviveCost.copyFrom(value); + return this; + } + + /** + * repeated uint32 HIMNEOAEELB = 5; + * @return whether the hIMNEOAEELB field is set + */ + public boolean hasHIMNEOAEELB() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 HIMNEOAEELB = 5; + * @return this + */ + public RogueReviveInfo clearHIMNEOAEELB() { + bitField0_ &= ~0x00000008; + hIMNEOAEELB.clear(); + return this; + } + + /** + * repeated uint32 HIMNEOAEELB = 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 #getMutableHIMNEOAEELB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getHIMNEOAEELB() { + return hIMNEOAEELB; + } + + /** + * repeated uint32 HIMNEOAEELB = 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 getMutableHIMNEOAEELB() { + bitField0_ |= 0x00000008; + return hIMNEOAEELB; + } + + /** + * repeated uint32 HIMNEOAEELB = 5; + * @param value the hIMNEOAEELB to add + * @return this + */ + public RogueReviveInfo addHIMNEOAEELB(final int value) { + bitField0_ |= 0x00000008; + hIMNEOAEELB.add(value); + return this; + } + + /** + * repeated uint32 HIMNEOAEELB = 5; + * @param values the hIMNEOAEELB to add + * @return this + */ + public RogueReviveInfo addAllHIMNEOAEELB(final int... values) { + bitField0_ |= 0x00000008; + hIMNEOAEELB.addAll(values); + return this; + } + + @Override + public RogueReviveInfo copyFrom(final RogueReviveInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mODHOJOGOBC = other.mODHOJOGOBC; + lAKLNFMHMLO = other.lAKLNFMHMLO; + rogueReviveCost.copyFrom(other.rogueReviveCost); + hIMNEOAEELB.copyFrom(other.hIMNEOAEELB); + } + return this; + } + + @Override + public RogueReviveInfo mergeFrom(final RogueReviveInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMODHOJOGOBC()) { + setMODHOJOGOBC(other.mODHOJOGOBC); + } + if (other.hasLAKLNFMHMLO()) { + setLAKLNFMHMLO(other.lAKLNFMHMLO); + } + if (other.hasRogueReviveCost()) { + getMutableRogueReviveCost().mergeFrom(other.rogueReviveCost); + } + if (other.hasHIMNEOAEELB()) { + getMutableHIMNEOAEELB().addAll(other.hIMNEOAEELB); + } + return this; + } + + @Override + public RogueReviveInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mODHOJOGOBC = 0; + lAKLNFMHMLO = 0; + rogueReviveCost.clear(); + hIMNEOAEELB.clear(); + return this; + } + + @Override + public RogueReviveInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueReviveCost.clearQuick(); + hIMNEOAEELB.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueReviveInfo)) { + return false; + } + RogueReviveInfo other = (RogueReviveInfo) o; + return bitField0_ == other.bitField0_ + && (!hasMODHOJOGOBC() || mODHOJOGOBC == other.mODHOJOGOBC) + && (!hasLAKLNFMHMLO() || lAKLNFMHMLO == other.lAKLNFMHMLO) + && (!hasRogueReviveCost() || rogueReviveCost.equals(other.rogueReviveCost)) + && (!hasHIMNEOAEELB() || hIMNEOAEELB.equals(other.hIMNEOAEELB)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(mODHOJOGOBC); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(lAKLNFMHMLO); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(rogueReviveCost); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < hIMNEOAEELB.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(hIMNEOAEELB.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mODHOJOGOBC); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lAKLNFMHMLO); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueReviveCost); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * hIMNEOAEELB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hIMNEOAEELB); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueReviveInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // mODHOJOGOBC + mODHOJOGOBC = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // lAKLNFMHMLO + lAKLNFMHMLO = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // rogueReviveCost + input.readMessage(rogueReviveCost); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // hIMNEOAEELB [packed=true] + input.readPackedUInt32(hIMNEOAEELB, 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 40: { + // hIMNEOAEELB [packed=false] + tag = input.readRepeatedUInt32(hIMNEOAEELB, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.mODHOJOGOBC, mODHOJOGOBC); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.lAKLNFMHMLO, lAKLNFMHMLO); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueReviveCost, rogueReviveCost); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.hIMNEOAEELB, hIMNEOAEELB); + } + output.endObject(); + } + + @Override + public RogueReviveInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1698470249: { + if (input.isAtField(FieldNames.mODHOJOGOBC)) { + if (!input.trySkipNullValue()) { + mODHOJOGOBC = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 459858439: { + if (input.isAtField(FieldNames.lAKLNFMHMLO)) { + if (!input.trySkipNullValue()) { + lAKLNFMHMLO = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1305263164: + case -977215086: { + if (input.isAtField(FieldNames.rogueReviveCost)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueReviveCost); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1794782517: { + if (input.isAtField(FieldNames.hIMNEOAEELB)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(hIMNEOAEELB); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueReviveInfo clone() { + return new RogueReviveInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueReviveInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueReviveInfo(), data).checkInitialized(); + } + + public static RogueReviveInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueReviveInfo(), input).checkInitialized(); + } + + public static RogueReviveInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueReviveInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueReviveInfo messages + */ + public static MessageFactory getFactory() { + return RogueReviveInfoFactory.INSTANCE; + } + + private enum RogueReviveInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueReviveInfo create() { + return RogueReviveInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mODHOJOGOBC = FieldName.forField("MODHOJOGOBC"); + + static final FieldName lAKLNFMHMLO = FieldName.forField("LAKLNFMHMLO"); + + static final FieldName rogueReviveCost = FieldName.forField("rogueReviveCost", "rogue_revive_cost"); + + static final FieldName hIMNEOAEELB = FieldName.forField("HIMNEOAEELB"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoListOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoListOuterClass.java new file mode 100644 index 000000000..5985a55ab --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoListOuterClass.java @@ -0,0 +1,296 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class RogueTalentInfoListOuterClass { + /** + * Protobuf type {@code RogueTalentInfoList} + */ + public static final class RogueTalentInfoList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueTalentInfo talent_info = 7; + */ + private final RepeatedMessage talentInfo = RepeatedMessage.newEmptyInstance(RogueTalentInfoOuterClass.RogueTalentInfo.getFactory()); + + private RogueTalentInfoList() { + } + + /** + * @return a new empty instance of {@code RogueTalentInfoList} + */ + public static RogueTalentInfoList newInstance() { + return new RogueTalentInfoList(); + } + + /** + * repeated .RogueTalentInfo talent_info = 7; + * @return whether the talentInfo field is set + */ + public boolean hasTalentInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueTalentInfo talent_info = 7; + * @return this + */ + public RogueTalentInfoList clearTalentInfo() { + bitField0_ &= ~0x00000001; + talentInfo.clear(); + return this; + } + + /** + * repeated .RogueTalentInfo talent_info = 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 #getMutableTalentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getTalentInfo() { + return talentInfo; + } + + /** + * repeated .RogueTalentInfo talent_info = 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 getMutableTalentInfo() { + bitField0_ |= 0x00000001; + return talentInfo; + } + + /** + * repeated .RogueTalentInfo talent_info = 7; + * @param value the talentInfo to add + * @return this + */ + public RogueTalentInfoList addTalentInfo( + final RogueTalentInfoOuterClass.RogueTalentInfo value) { + bitField0_ |= 0x00000001; + talentInfo.add(value); + return this; + } + + /** + * repeated .RogueTalentInfo talent_info = 7; + * @param values the talentInfo to add + * @return this + */ + public RogueTalentInfoList addAllTalentInfo( + final RogueTalentInfoOuterClass.RogueTalentInfo... values) { + bitField0_ |= 0x00000001; + talentInfo.addAll(values); + return this; + } + + @Override + public RogueTalentInfoList copyFrom(final RogueTalentInfoList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + talentInfo.copyFrom(other.talentInfo); + } + return this; + } + + @Override + public RogueTalentInfoList mergeFrom(final RogueTalentInfoList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTalentInfo()) { + getMutableTalentInfo().addAll(other.talentInfo); + } + return this; + } + + @Override + public RogueTalentInfoList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + talentInfo.clear(); + return this; + } + + @Override + public RogueTalentInfoList clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + talentInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueTalentInfoList)) { + return false; + } + RogueTalentInfoList other = (RogueTalentInfoList) o; + return bitField0_ == other.bitField0_ + && (!hasTalentInfo() || talentInfo.equals(other.talentInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < talentInfo.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(talentInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * talentInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(talentInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueTalentInfoList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // talentInfo + tag = input.readRepeatedMessage(talentInfo, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.talentInfo, talentInfo); + } + output.endObject(); + } + + @Override + public RogueTalentInfoList mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1396978618: + case 376840225: { + if (input.isAtField(FieldNames.talentInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(talentInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueTalentInfoList clone() { + return new RogueTalentInfoList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueTalentInfoList parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueTalentInfoList(), data).checkInitialized(); + } + + public static RogueTalentInfoList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTalentInfoList(), input).checkInitialized(); + } + + public static RogueTalentInfoList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTalentInfoList(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueTalentInfoList messages + */ + public static MessageFactory getFactory() { + return RogueTalentInfoListFactory.INSTANCE; + } + + private enum RogueTalentInfoListFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueTalentInfoList create() { + return RogueTalentInfoList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName talentInfo = FieldName.forField("talentInfo", "talent_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTournFormulaCallbackOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTournFormulaCallbackOuterClass.java new file mode 100644 index 000000000..0d3dfb7fd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueTournFormulaCallbackOuterClass.java @@ -0,0 +1,174 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +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; + +public final class RogueTournFormulaCallbackOuterClass { + /** + * Protobuf type {@code RogueTournFormulaCallback} + */ + public static final class RogueTournFormulaCallback extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueTournFormulaCallback() { + } + + /** + * @return a new empty instance of {@code RogueTournFormulaCallback} + */ + public static RogueTournFormulaCallback newInstance() { + return new RogueTournFormulaCallback(); + } + + @Override + public RogueTournFormulaCallback copyFrom(final RogueTournFormulaCallback other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueTournFormulaCallback mergeFrom(final RogueTournFormulaCallback other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueTournFormulaCallback clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueTournFormulaCallback clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueTournFormulaCallback)) { + return false; + } + RogueTournFormulaCallback other = (RogueTournFormulaCallback) o; + return true; + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + } + + @Override + protected int computeSerializedSize() { + int size = 0; + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueTournFormulaCallback mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + 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(); + output.endObject(); + } + + @Override + public RogueTournFormulaCallback mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueTournFormulaCallback clone() { + return new RogueTournFormulaCallback().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueTournFormulaCallback parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueTournFormulaCallback(), data).checkInitialized(); + } + + public static RogueTournFormulaCallback parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournFormulaCallback(), input).checkInitialized(); + } + + public static RogueTournFormulaCallback parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournFormulaCallback(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueTournFormulaCallback messages + */ + public static MessageFactory getFactory() { + return RogueTournFormulaCallbackFactory.INSTANCE; + } + + private enum RogueTournFormulaCallbackFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueTournFormulaCallback create() { + return RogueTournFormulaCallback.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTournFormulaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTournFormulaInfoOuterClass.java new file mode 100644 index 000000000..9a56df88f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueTournFormulaInfoOuterClass.java @@ -0,0 +1,398 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class RogueTournFormulaInfoOuterClass { + /** + * Protobuf type {@code RogueTournFormulaInfo} + */ + public static final class RogueTournFormulaInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .FormulaTypeValue formula_type_value = 9; + */ + private final FormulaTypeValueOuterClass.FormulaTypeValue formulaTypeValue = FormulaTypeValueOuterClass.FormulaTypeValue.newInstance(); + + /** + * repeated .FormulaInfo game_formula_info = 15; + */ + private final RepeatedMessage gameFormulaInfo = RepeatedMessage.newEmptyInstance(FormulaInfoOuterClass.FormulaInfo.getFactory()); + + private RogueTournFormulaInfo() { + } + + /** + * @return a new empty instance of {@code RogueTournFormulaInfo} + */ + public static RogueTournFormulaInfo newInstance() { + return new RogueTournFormulaInfo(); + } + + /** + * optional .FormulaTypeValue formula_type_value = 9; + * @return whether the formulaTypeValue field is set + */ + public boolean hasFormulaTypeValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .FormulaTypeValue formula_type_value = 9; + * @return this + */ + public RogueTournFormulaInfo clearFormulaTypeValue() { + bitField0_ &= ~0x00000001; + formulaTypeValue.clear(); + return this; + } + + /** + * optional .FormulaTypeValue formula_type_value = 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 #getMutableFormulaTypeValue()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FormulaTypeValueOuterClass.FormulaTypeValue getFormulaTypeValue() { + return formulaTypeValue; + } + + /** + * optional .FormulaTypeValue formula_type_value = 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 FormulaTypeValueOuterClass.FormulaTypeValue getMutableFormulaTypeValue() { + bitField0_ |= 0x00000001; + return formulaTypeValue; + } + + /** + * optional .FormulaTypeValue formula_type_value = 9; + * @param value the formulaTypeValue to set + * @return this + */ + public RogueTournFormulaInfo setFormulaTypeValue( + final FormulaTypeValueOuterClass.FormulaTypeValue value) { + bitField0_ |= 0x00000001; + formulaTypeValue.copyFrom(value); + return this; + } + + /** + * repeated .FormulaInfo game_formula_info = 15; + * @return whether the gameFormulaInfo field is set + */ + public boolean hasGameFormulaInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .FormulaInfo game_formula_info = 15; + * @return this + */ + public RogueTournFormulaInfo clearGameFormulaInfo() { + bitField0_ &= ~0x00000002; + gameFormulaInfo.clear(); + return this; + } + + /** + * repeated .FormulaInfo game_formula_info = 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 #getMutableGameFormulaInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGameFormulaInfo() { + return gameFormulaInfo; + } + + /** + * repeated .FormulaInfo game_formula_info = 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 getMutableGameFormulaInfo() { + bitField0_ |= 0x00000002; + return gameFormulaInfo; + } + + /** + * repeated .FormulaInfo game_formula_info = 15; + * @param value the gameFormulaInfo to add + * @return this + */ + public RogueTournFormulaInfo addGameFormulaInfo(final FormulaInfoOuterClass.FormulaInfo value) { + bitField0_ |= 0x00000002; + gameFormulaInfo.add(value); + return this; + } + + /** + * repeated .FormulaInfo game_formula_info = 15; + * @param values the gameFormulaInfo to add + * @return this + */ + public RogueTournFormulaInfo addAllGameFormulaInfo( + final FormulaInfoOuterClass.FormulaInfo... values) { + bitField0_ |= 0x00000002; + gameFormulaInfo.addAll(values); + return this; + } + + @Override + public RogueTournFormulaInfo copyFrom(final RogueTournFormulaInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + formulaTypeValue.copyFrom(other.formulaTypeValue); + gameFormulaInfo.copyFrom(other.gameFormulaInfo); + } + return this; + } + + @Override + public RogueTournFormulaInfo mergeFrom(final RogueTournFormulaInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFormulaTypeValue()) { + getMutableFormulaTypeValue().mergeFrom(other.formulaTypeValue); + } + if (other.hasGameFormulaInfo()) { + getMutableGameFormulaInfo().addAll(other.gameFormulaInfo); + } + return this; + } + + @Override + public RogueTournFormulaInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaTypeValue.clear(); + gameFormulaInfo.clear(); + return this; + } + + @Override + public RogueTournFormulaInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + formulaTypeValue.clearQuick(); + gameFormulaInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueTournFormulaInfo)) { + return false; + } + RogueTournFormulaInfo other = (RogueTournFormulaInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFormulaTypeValue() || formulaTypeValue.equals(other.formulaTypeValue)) + && (!hasGameFormulaInfo() || gameFormulaInfo.equals(other.gameFormulaInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(formulaTypeValue); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < gameFormulaInfo.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(gameFormulaInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(formulaTypeValue); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * gameFormulaInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gameFormulaInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueTournFormulaInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // formulaTypeValue + input.readMessage(formulaTypeValue); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // gameFormulaInfo + tag = input.readRepeatedMessage(gameFormulaInfo, 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.writeMessage(FieldNames.formulaTypeValue, formulaTypeValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.gameFormulaInfo, gameFormulaInfo); + } + output.endObject(); + } + + @Override + public RogueTournFormulaInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1932429201: + case -977536859: { + if (input.isAtField(FieldNames.formulaTypeValue)) { + if (!input.trySkipNullValue()) { + input.readMessage(formulaTypeValue); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 568973282: + case -839953644: { + if (input.isAtField(FieldNames.gameFormulaInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(gameFormulaInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueTournFormulaInfo clone() { + return new RogueTournFormulaInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueTournFormulaInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueTournFormulaInfo(), data).checkInitialized(); + } + + public static RogueTournFormulaInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournFormulaInfo(), input).checkInitialized(); + } + + public static RogueTournFormulaInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournFormulaInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueTournFormulaInfo messages + */ + public static MessageFactory getFactory() { + return RogueTournFormulaInfoFactory.INSTANCE; + } + + private enum RogueTournFormulaInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueTournFormulaInfo create() { + return RogueTournFormulaInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName formulaTypeValue = FieldName.forField("formulaTypeValue", "formula_type_value"); + + static final FieldName gameFormulaInfo = FieldName.forField("gameFormulaInfo", "game_formula_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTournFormulaResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTournFormulaResultOuterClass.java new file mode 100644 index 000000000..d1bef406a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueTournFormulaResultOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueTournFormulaResultOuterClass { + /** + * Protobuf type {@code RogueTournFormulaResult} + */ + public static final class RogueTournFormulaResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 tourn_formula_id = 11; + */ + private int tournFormulaId; + + private RogueTournFormulaResult() { + } + + /** + * @return a new empty instance of {@code RogueTournFormulaResult} + */ + public static RogueTournFormulaResult newInstance() { + return new RogueTournFormulaResult(); + } + + /** + * optional uint32 tourn_formula_id = 11; + * @return whether the tournFormulaId field is set + */ + public boolean hasTournFormulaId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 tourn_formula_id = 11; + * @return this + */ + public RogueTournFormulaResult clearTournFormulaId() { + bitField0_ &= ~0x00000001; + tournFormulaId = 0; + return this; + } + + /** + * optional uint32 tourn_formula_id = 11; + * @return the tournFormulaId + */ + public int getTournFormulaId() { + return tournFormulaId; + } + + /** + * optional uint32 tourn_formula_id = 11; + * @param value the tournFormulaId to set + * @return this + */ + public RogueTournFormulaResult setTournFormulaId(final int value) { + bitField0_ |= 0x00000001; + tournFormulaId = value; + return this; + } + + @Override + public RogueTournFormulaResult copyFrom(final RogueTournFormulaResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + tournFormulaId = other.tournFormulaId; + } + return this; + } + + @Override + public RogueTournFormulaResult mergeFrom(final RogueTournFormulaResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTournFormulaId()) { + setTournFormulaId(other.tournFormulaId); + } + return this; + } + + @Override + public RogueTournFormulaResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tournFormulaId = 0; + return this; + } + + @Override + public RogueTournFormulaResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueTournFormulaResult)) { + return false; + } + RogueTournFormulaResult other = (RogueTournFormulaResult) o; + return bitField0_ == other.bitField0_ + && (!hasTournFormulaId() || tournFormulaId == other.tournFormulaId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(tournFormulaId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tournFormulaId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueTournFormulaResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // tournFormulaId + tournFormulaId = input.readUInt32(); + 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.writeUInt32(FieldNames.tournFormulaId, tournFormulaId); + } + output.endObject(); + } + + @Override + public RogueTournFormulaResult mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1902686379: + case 1630005597: { + if (input.isAtField(FieldNames.tournFormulaId)) { + if (!input.trySkipNullValue()) { + tournFormulaId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueTournFormulaResult clone() { + return new RogueTournFormulaResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueTournFormulaResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueTournFormulaResult(), data).checkInitialized(); + } + + public static RogueTournFormulaResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournFormulaResult(), input).checkInitialized(); + } + + public static RogueTournFormulaResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournFormulaResult(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueTournFormulaResult messages + */ + public static MessageFactory getFactory() { + return RogueTournFormulaResultFactory.INSTANCE; + } + + private enum RogueTournFormulaResultFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueTournFormulaResult create() { + return RogueTournFormulaResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName tournFormulaId = FieldName.forField("tournFormulaId", "tourn_formula_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTournVirtualItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTournVirtualItemOuterClass.java new file mode 100644 index 000000000..8bea384c6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueTournVirtualItemOuterClass.java @@ -0,0 +1,282 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueTournVirtualItemOuterClass { + /** + * Protobuf type {@code RogueTournVirtualItem} + */ + public static final class RogueTournVirtualItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ItemCostList rogue_revive_cost = 5; + */ + private final ItemCostListOuterClass.ItemCostList rogueReviveCost = ItemCostListOuterClass.ItemCostList.newInstance(); + + private RogueTournVirtualItem() { + } + + /** + * @return a new empty instance of {@code RogueTournVirtualItem} + */ + public static RogueTournVirtualItem newInstance() { + return new RogueTournVirtualItem(); + } + + /** + * optional .ItemCostList rogue_revive_cost = 5; + * @return whether the rogueReviveCost field is set + */ + public boolean hasRogueReviveCost() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ItemCostList rogue_revive_cost = 5; + * @return this + */ + public RogueTournVirtualItem clearRogueReviveCost() { + bitField0_ &= ~0x00000001; + rogueReviveCost.clear(); + return this; + } + + /** + * optional .ItemCostList rogue_revive_cost = 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 #getMutableRogueReviveCost()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getRogueReviveCost() { + return rogueReviveCost; + } + + /** + * optional .ItemCostList rogue_revive_cost = 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 ItemCostListOuterClass.ItemCostList getMutableRogueReviveCost() { + bitField0_ |= 0x00000001; + return rogueReviveCost; + } + + /** + * optional .ItemCostList rogue_revive_cost = 5; + * @param value the rogueReviveCost to set + * @return this + */ + public RogueTournVirtualItem setRogueReviveCost( + final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000001; + rogueReviveCost.copyFrom(value); + return this; + } + + @Override + public RogueTournVirtualItem copyFrom(final RogueTournVirtualItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueReviveCost.copyFrom(other.rogueReviveCost); + } + return this; + } + + @Override + public RogueTournVirtualItem mergeFrom(final RogueTournVirtualItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueReviveCost()) { + getMutableRogueReviveCost().mergeFrom(other.rogueReviveCost); + } + return this; + } + + @Override + public RogueTournVirtualItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueReviveCost.clear(); + return this; + } + + @Override + public RogueTournVirtualItem clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueReviveCost.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueTournVirtualItem)) { + return false; + } + RogueTournVirtualItem other = (RogueTournVirtualItem) o; + return bitField0_ == other.bitField0_ + && (!hasRogueReviveCost() || rogueReviveCost.equals(other.rogueReviveCost)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(rogueReviveCost); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueReviveCost); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueTournVirtualItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // rogueReviveCost + input.readMessage(rogueReviveCost); + 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.writeMessage(FieldNames.rogueReviveCost, rogueReviveCost); + } + output.endObject(); + } + + @Override + public RogueTournVirtualItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1305263164: + case -977215086: { + if (input.isAtField(FieldNames.rogueReviveCost)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueReviveCost); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueTournVirtualItem clone() { + return new RogueTournVirtualItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueTournVirtualItem parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueTournVirtualItem(), data).checkInitialized(); + } + + public static RogueTournVirtualItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournVirtualItem(), input).checkInitialized(); + } + + public static RogueTournVirtualItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueTournVirtualItem(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueTournVirtualItem messages + */ + public static MessageFactory getFactory() { + return RogueTournVirtualItemFactory.INSTANCE; + } + + private enum RogueTournVirtualItemFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueTournVirtualItem create() { + return RogueTournVirtualItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueReviveCost = FieldName.forField("rogueReviveCost", "rogue_revive_cost"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueUnlockFunctionTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUnlockFunctionTypeOuterClass.java new file mode 100644 index 000000000..90fcfc2f0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueUnlockFunctionTypeOuterClass.java @@ -0,0 +1,160 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueUnlockFunctionTypeOuterClass { + /** + * Protobuf enum {@code RogueUnlockFunctionType} + */ + public enum RogueUnlockFunctionType implements ProtoEnum { + /** + * ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE = 0; + */ + ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE("ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE", 0), + + /** + * ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT = 1; + */ + ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT("ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT", 1), + + /** + * ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON = 2; + */ + ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON("ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON", 2), + + /** + * ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION = 3; + */ + ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION("ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION", 3), + + /** + * ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION = 4; + */ + ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION("ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION", 4); + + /** + * ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE = 0; + */ + public static final int ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE_VALUE = 0; + + /** + * ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT = 1; + */ + public static final int ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT_VALUE = 1; + + /** + * ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON = 2; + */ + public static final int ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON_VALUE = 2; + + /** + * ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION = 3; + */ + public static final int ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION_VALUE = 3; + + /** + * ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION = 4; + */ + public static final int ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION_VALUE = 4; + + private final String name; + + private final int number; + + private RogueUnlockFunctionType(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 RogueUnlockFunctionTypeConverter.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 RogueUnlockFunctionType forNumber(int value) { + return RogueUnlockFunctionTypeConverter.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 RogueUnlockFunctionType forNumberOr(int number, RogueUnlockFunctionType other) { + RogueUnlockFunctionType value = forNumber(number); + return value == null ? other : value; + } + + enum RogueUnlockFunctionTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueUnlockFunctionType[] lookup = new RogueUnlockFunctionType[5]; + + static { + lookup[0] = ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE; + lookup[1] = ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT; + lookup[2] = ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON; + lookup[3] = ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION; + lookup[4] = ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION; + } + + @Override + public final RogueUnlockFunctionType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueUnlockFunctionType forName(final CharSequence value) { + if (value.length() == 34) { + if (ProtoUtil.isEqual("ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE", value)) { + return ROGUE_UNLOCK_FUNCTION_TYPE_MIRACLE; + } + } + if (value.length() == 36) { + if (ProtoUtil.isEqual("ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT", value)) { + return ROGUE_UNLOCK_FUNCTION_TYPE_SHOW_HINT; + } + if (ProtoUtil.isEqual("ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION", value)) { + return ROGUE_UNLOCK_FUNTION_TYPE_EXHIBITION; + } + if (ProtoUtil.isEqual("ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION", value)) { + return ROGUE_UNLOCK_FUNTION_TYPE_COLLECTION; + } + } + if (value.length() == 42) { + if (ProtoUtil.isEqual("ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON", value)) { + return ROGUE_UNLOCK_FUNCTION_TYPE_COSMOS_BAN_AEON; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java new file mode 100644 index 000000000..838cee13e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java @@ -0,0 +1,500 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class RogueVirtualItemOuterClass { + /** + * Protobuf type {@code RogueVirtualItem} + */ + public static final class RogueVirtualItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DIHCFKEFJKL = 3; + */ + private int dIHCFKEFJKL; + + /** + * optional uint32 CFMBNFAAJCG = 5; + */ + private int cFMBNFAAJCG; + + /** + * optional uint32 rogue_money = 7; + */ + private int rogueMoney; + + /** + * optional uint32 CKOJDJGLADK = 12; + */ + private int cKOJDJGLADK; + + private RogueVirtualItem() { + } + + /** + * @return a new empty instance of {@code RogueVirtualItem} + */ + public static RogueVirtualItem newInstance() { + return new RogueVirtualItem(); + } + + /** + * optional uint32 DIHCFKEFJKL = 3; + * @return whether the dIHCFKEFJKL field is set + */ + public boolean hasDIHCFKEFJKL() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DIHCFKEFJKL = 3; + * @return this + */ + public RogueVirtualItem clearDIHCFKEFJKL() { + bitField0_ &= ~0x00000001; + dIHCFKEFJKL = 0; + return this; + } + + /** + * optional uint32 DIHCFKEFJKL = 3; + * @return the dIHCFKEFJKL + */ + public int getDIHCFKEFJKL() { + return dIHCFKEFJKL; + } + + /** + * optional uint32 DIHCFKEFJKL = 3; + * @param value the dIHCFKEFJKL to set + * @return this + */ + public RogueVirtualItem setDIHCFKEFJKL(final int value) { + bitField0_ |= 0x00000001; + dIHCFKEFJKL = value; + return this; + } + + /** + * optional uint32 CFMBNFAAJCG = 5; + * @return whether the cFMBNFAAJCG field is set + */ + public boolean hasCFMBNFAAJCG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 CFMBNFAAJCG = 5; + * @return this + */ + public RogueVirtualItem clearCFMBNFAAJCG() { + bitField0_ &= ~0x00000002; + cFMBNFAAJCG = 0; + return this; + } + + /** + * optional uint32 CFMBNFAAJCG = 5; + * @return the cFMBNFAAJCG + */ + public int getCFMBNFAAJCG() { + return cFMBNFAAJCG; + } + + /** + * optional uint32 CFMBNFAAJCG = 5; + * @param value the cFMBNFAAJCG to set + * @return this + */ + public RogueVirtualItem setCFMBNFAAJCG(final int value) { + bitField0_ |= 0x00000002; + cFMBNFAAJCG = value; + return this; + } + + /** + * optional uint32 rogue_money = 7; + * @return whether the rogueMoney field is set + */ + public boolean hasRogueMoney() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 rogue_money = 7; + * @return this + */ + public RogueVirtualItem clearRogueMoney() { + bitField0_ &= ~0x00000004; + rogueMoney = 0; + return this; + } + + /** + * optional uint32 rogue_money = 7; + * @return the rogueMoney + */ + public int getRogueMoney() { + return rogueMoney; + } + + /** + * optional uint32 rogue_money = 7; + * @param value the rogueMoney to set + * @return this + */ + public RogueVirtualItem setRogueMoney(final int value) { + bitField0_ |= 0x00000004; + rogueMoney = value; + return this; + } + + /** + * optional uint32 CKOJDJGLADK = 12; + * @return whether the cKOJDJGLADK field is set + */ + public boolean hasCKOJDJGLADK() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 CKOJDJGLADK = 12; + * @return this + */ + public RogueVirtualItem clearCKOJDJGLADK() { + bitField0_ &= ~0x00000008; + cKOJDJGLADK = 0; + return this; + } + + /** + * optional uint32 CKOJDJGLADK = 12; + * @return the cKOJDJGLADK + */ + public int getCKOJDJGLADK() { + return cKOJDJGLADK; + } + + /** + * optional uint32 CKOJDJGLADK = 12; + * @param value the cKOJDJGLADK to set + * @return this + */ + public RogueVirtualItem setCKOJDJGLADK(final int value) { + bitField0_ |= 0x00000008; + cKOJDJGLADK = value; + return this; + } + + @Override + public RogueVirtualItem copyFrom(final RogueVirtualItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dIHCFKEFJKL = other.dIHCFKEFJKL; + cFMBNFAAJCG = other.cFMBNFAAJCG; + rogueMoney = other.rogueMoney; + cKOJDJGLADK = other.cKOJDJGLADK; + } + return this; + } + + @Override + public RogueVirtualItem mergeFrom(final RogueVirtualItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDIHCFKEFJKL()) { + setDIHCFKEFJKL(other.dIHCFKEFJKL); + } + if (other.hasCFMBNFAAJCG()) { + setCFMBNFAAJCG(other.cFMBNFAAJCG); + } + if (other.hasRogueMoney()) { + setRogueMoney(other.rogueMoney); + } + if (other.hasCKOJDJGLADK()) { + setCKOJDJGLADK(other.cKOJDJGLADK); + } + return this; + } + + @Override + public RogueVirtualItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dIHCFKEFJKL = 0; + cFMBNFAAJCG = 0; + rogueMoney = 0; + cKOJDJGLADK = 0; + return this; + } + + @Override + public RogueVirtualItem clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueVirtualItem)) { + return false; + } + RogueVirtualItem other = (RogueVirtualItem) o; + return bitField0_ == other.bitField0_ + && (!hasDIHCFKEFJKL() || dIHCFKEFJKL == other.dIHCFKEFJKL) + && (!hasCFMBNFAAJCG() || cFMBNFAAJCG == other.cFMBNFAAJCG) + && (!hasRogueMoney() || rogueMoney == other.rogueMoney) + && (!hasCKOJDJGLADK() || cKOJDJGLADK == other.cKOJDJGLADK); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dIHCFKEFJKL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(cFMBNFAAJCG); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(rogueMoney); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(cKOJDJGLADK); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dIHCFKEFJKL); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cFMBNFAAJCG); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueMoney); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cKOJDJGLADK); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueVirtualItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // dIHCFKEFJKL + dIHCFKEFJKL = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // cFMBNFAAJCG + cFMBNFAAJCG = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // rogueMoney + rogueMoney = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // cKOJDJGLADK + cKOJDJGLADK = input.readUInt32(); + 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.dIHCFKEFJKL, dIHCFKEFJKL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.cFMBNFAAJCG, cFMBNFAAJCG); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rogueMoney, rogueMoney); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cKOJDJGLADK, cKOJDJGLADK); + } + output.endObject(); + } + + @Override + public RogueVirtualItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 331064581: { + if (input.isAtField(FieldNames.dIHCFKEFJKL)) { + if (!input.trySkipNullValue()) { + dIHCFKEFJKL = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1109485794: { + if (input.isAtField(FieldNames.cFMBNFAAJCG)) { + if (!input.trySkipNullValue()) { + cFMBNFAAJCG = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1141028090: + case -498616805: { + if (input.isAtField(FieldNames.rogueMoney)) { + if (!input.trySkipNullValue()) { + rogueMoney = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -519139558: { + if (input.isAtField(FieldNames.cKOJDJGLADK)) { + if (!input.trySkipNullValue()) { + cKOJDJGLADK = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueVirtualItem clone() { + return new RogueVirtualItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueVirtualItem parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueVirtualItem(), data).checkInitialized(); + } + + public static RogueVirtualItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueVirtualItem(), input).checkInitialized(); + } + + public static RogueVirtualItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueVirtualItem(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueVirtualItem messages + */ + public static MessageFactory getFactory() { + return RogueVirtualItemFactory.INSTANCE; + } + + private enum RogueVirtualItemFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueVirtualItem create() { + return RogueVirtualItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dIHCFKEFJKL = FieldName.forField("DIHCFKEFJKL"); + + static final FieldName cFMBNFAAJCG = FieldName.forField("CFMBNFAAJCG"); + + static final FieldName rogueMoney = FieldName.forField("rogueMoney", "rogue_money"); + + static final FieldName cKOJDJGLADK = FieldName.forField("CKOJDJGLADK"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java new file mode 100644 index 000000000..02770c354 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java @@ -0,0 +1,347 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class SelectRogueCommonDialogueOptionCsReqOuterClass { + /** + * Protobuf type {@code SelectRogueCommonDialogueOptionCsReq} + */ + public static final class SelectRogueCommonDialogueOptionCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 4; + */ + private int eventUniqueId; + + /** + * optional uint32 option_id = 9; + */ + private int optionId; + + private SelectRogueCommonDialogueOptionCsReq() { + } + + /** + * @return a new empty instance of {@code SelectRogueCommonDialogueOptionCsReq} + */ + public static SelectRogueCommonDialogueOptionCsReq newInstance() { + return new SelectRogueCommonDialogueOptionCsReq(); + } + + /** + * optional uint32 event_unique_id = 4; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 4; + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 4; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 4; + * @param value the eventUniqueId to set + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 9; + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 9; + * @param value the optionId to set + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq copyFrom( + final SelectRogueCommonDialogueOptionCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + optionId = other.optionId; + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq mergeFrom( + final SelectRogueCommonDialogueOptionCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + optionId = 0; + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectRogueCommonDialogueOptionCsReq)) { + return false; + } + SelectRogueCommonDialogueOptionCsReq other = (SelectRogueCommonDialogueOptionCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasOptionId() || optionId == other.optionId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(optionId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectRogueCommonDialogueOptionCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // optionId + optionId = input.readUInt32(); + 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.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + output.endObject(); + } + + @Override + public SelectRogueCommonDialogueOptionCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq clone() { + return new SelectRogueCommonDialogueOptionCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectRogueCommonDialogueOptionCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), data).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), input).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectRogueCommonDialogueOptionCsReq messages + */ + public static MessageFactory getFactory() { + return SelectRogueCommonDialogueOptionCsReqFactory.INSTANCE; + } + + private enum SelectRogueCommonDialogueOptionCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectRogueCommonDialogueOptionCsReq create() { + return SelectRogueCommonDialogueOptionCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java new file mode 100644 index 000000000..5abf53c90 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java @@ -0,0 +1,734 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedInt; + +public final class SelectRogueCommonDialogueOptionScRspOuterClass { + /** + * Protobuf type {@code SelectRogueCommonDialogueOptionScRsp} + */ + public static final class SelectRogueCommonDialogueOptionScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional uint32 option_id = 10; + */ + private int optionId; + + /** + * optional uint32 event_unique_id = 12; + */ + private int eventUniqueId; + + /** + * optional bool event_has_effect = 8; + */ + private boolean eventHasEffect; + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + */ + private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance(); + + /** + * repeated uint32 effect_event_id_list = 1; + */ + private final RepeatedInt effectEventIdList = RepeatedInt.newEmptyInstance(); + + private SelectRogueCommonDialogueOptionScRsp() { + } + + /** + * @return a new empty instance of {@code SelectRogueCommonDialogueOptionScRsp} + */ + public static SelectRogueCommonDialogueOptionScRsp newInstance() { + return new SelectRogueCommonDialogueOptionScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 option_id = 10; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 10; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 10; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 10; + * @param value the optionId to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + /** + * optional uint32 event_unique_id = 12; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 event_unique_id = 12; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearEventUniqueId() { + bitField0_ &= ~0x00000004; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 12; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 12; + * @param value the eventUniqueId to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setEventUniqueId(final int value) { + bitField0_ |= 0x00000004; + eventUniqueId = value; + return this; + } + + /** + * optional bool event_has_effect = 8; + * @return whether the eventHasEffect field is set + */ + public boolean hasEventHasEffect() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool event_has_effect = 8; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearEventHasEffect() { + bitField0_ &= ~0x00000008; + eventHasEffect = false; + return this; + } + + /** + * optional bool event_has_effect = 8; + * @return the eventHasEffect + */ + public boolean getEventHasEffect() { + return eventHasEffect; + } + + /** + * optional bool event_has_effect = 8; + * @param value the eventHasEffect to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setEventHasEffect(final boolean value) { + bitField0_ |= 0x00000008; + eventHasEffect = value; + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * @return whether the dialogueData field is set + */ + public boolean hasDialogueData() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearDialogueData() { + bitField0_ &= ~0x00000010; + dialogueData.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 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 #getMutableDialogueData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getDialogueData() { + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 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 RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getMutableDialogueData( + ) { + bitField0_ |= 0x00000010; + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * @param value the dialogueData to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setDialogueData( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { + bitField0_ |= 0x00000010; + dialogueData.copyFrom(value); + return this; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @return whether the effectEventIdList field is set + */ + public boolean hasEffectEventIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearEffectEventIdList() { + bitField0_ &= ~0x00000020; + effectEventIdList.clear(); + return this; + } + + /** + * repeated uint32 effect_event_id_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 #getMutableEffectEventIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getEffectEventIdList() { + return effectEventIdList; + } + + /** + * repeated uint32 effect_event_id_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 RepeatedInt getMutableEffectEventIdList() { + bitField0_ |= 0x00000020; + return effectEventIdList; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @param value the effectEventIdList to add + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp addEffectEventIdList(final int value) { + bitField0_ |= 0x00000020; + effectEventIdList.add(value); + return this; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @param values the effectEventIdList to add + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp addAllEffectEventIdList(final int... values) { + bitField0_ |= 0x00000020; + effectEventIdList.addAll(values); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp copyFrom( + final SelectRogueCommonDialogueOptionScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + optionId = other.optionId; + eventUniqueId = other.eventUniqueId; + eventHasEffect = other.eventHasEffect; + dialogueData.copyFrom(other.dialogueData); + effectEventIdList.copyFrom(other.effectEventIdList); + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp mergeFrom( + final SelectRogueCommonDialogueOptionScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasEventHasEffect()) { + setEventHasEffect(other.eventHasEffect); + } + if (other.hasDialogueData()) { + getMutableDialogueData().mergeFrom(other.dialogueData); + } + if (other.hasEffectEventIdList()) { + getMutableEffectEventIdList().addAll(other.effectEventIdList); + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + optionId = 0; + eventUniqueId = 0; + eventHasEffect = false; + dialogueData.clear(); + effectEventIdList.clear(); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueData.clearQuick(); + effectEventIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectRogueCommonDialogueOptionScRsp)) { + return false; + } + SelectRogueCommonDialogueOptionScRsp other = (SelectRogueCommonDialogueOptionScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasOptionId() || optionId == other.optionId) + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasEventHasEffect() || eventHasEffect == other.eventHasEffect) + && (!hasDialogueData() || dialogueData.equals(other.dialogueData)) + && (!hasEffectEventIdList() || effectEventIdList.equals(other.effectEventIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(eventHasEffect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(dialogueData); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < effectEventIdList.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(effectEventIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueData); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * effectEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(effectEventIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectRogueCommonDialogueOptionScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // eventHasEffect + eventHasEffect = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // dialogueData + input.readMessage(dialogueData); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // effectEventIdList [packed=true] + input.readPackedUInt32(effectEventIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // effectEventIdList [packed=false] + tag = input.readRepeatedUInt32(effectEventIdList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.eventHasEffect, eventHasEffect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.dialogueData, dialogueData); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.effectEventIdList, effectEventIdList); + } + output.endObject(); + } + + @Override + public SelectRogueCommonDialogueOptionScRsp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 269571921: + case 693895579: { + if (input.isAtField(FieldNames.eventHasEffect)) { + if (!input.trySkipNullValue()) { + eventHasEffect = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1350537634: + case -1057999439: { + if (input.isAtField(FieldNames.dialogueData)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueData); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1375491774: + case -1217188241: { + if (input.isAtField(FieldNames.effectEventIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(effectEventIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp clone() { + return new SelectRogueCommonDialogueOptionScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectRogueCommonDialogueOptionScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), data).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), input).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectRogueCommonDialogueOptionScRsp messages + */ + public static MessageFactory getFactory() { + return SelectRogueCommonDialogueOptionScRspFactory.INSTANCE; + } + + private enum SelectRogueCommonDialogueOptionScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectRogueCommonDialogueOptionScRsp create() { + return SelectRogueCommonDialogueOptionScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName eventHasEffect = FieldName.forField("eventHasEffect", "event_has_effect"); + + static final FieldName dialogueData = FieldName.forField("dialogueData", "dialogue_data"); + + static final FieldName effectEventIdList = FieldName.forField("effectEventIdList", "effect_event_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java new file mode 100644 index 000000000..6775b22a5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java @@ -0,0 +1,304 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class SyncRogueCommonDialogueDataScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueCommonDialogueDataScNotify} + */ + public static final class SyncRogueCommonDialogueDataScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + */ + private final RepeatedMessage dialogueDataList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.getFactory()); + + private SyncRogueCommonDialogueDataScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueCommonDialogueDataScNotify} + */ + public static SyncRogueCommonDialogueDataScNotify newInstance() { + return new SyncRogueCommonDialogueDataScNotify(); + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @return whether the dialogueDataList field is set + */ + public boolean hasDialogueDataList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @return this + */ + public SyncRogueCommonDialogueDataScNotify clearDialogueDataList() { + bitField0_ &= ~0x00000001; + dialogueDataList.clear(); + return this; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 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 #getMutableDialogueDataList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDialogueDataList( + ) { + return dialogueDataList; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 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 RepeatedMessage getMutableDialogueDataList( + ) { + bitField0_ |= 0x00000001; + return dialogueDataList; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @param value the dialogueDataList to add + * @return this + */ + public SyncRogueCommonDialogueDataScNotify addDialogueDataList( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { + bitField0_ |= 0x00000001; + dialogueDataList.add(value); + return this; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @param values the dialogueDataList to add + * @return this + */ + public SyncRogueCommonDialogueDataScNotify addAllDialogueDataList( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo... values) { + bitField0_ |= 0x00000001; + dialogueDataList.addAll(values); + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify copyFrom( + final SyncRogueCommonDialogueDataScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dialogueDataList.copyFrom(other.dialogueDataList); + } + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify mergeFrom( + final SyncRogueCommonDialogueDataScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDialogueDataList()) { + getMutableDialogueDataList().addAll(other.dialogueDataList); + } + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueDataList.clear(); + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueDataList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncRogueCommonDialogueDataScNotify)) { + return false; + } + SyncRogueCommonDialogueDataScNotify other = (SyncRogueCommonDialogueDataScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasDialogueDataList() || dialogueDataList.equals(other.dialogueDataList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < dialogueDataList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(dialogueDataList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * dialogueDataList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dialogueDataList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncRogueCommonDialogueDataScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 82: { + // dialogueDataList + tag = input.readRepeatedMessage(dialogueDataList, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.dialogueDataList, dialogueDataList); + } + output.endObject(); + } + + @Override + public SyncRogueCommonDialogueDataScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -44165792: + case -111142292: { + if (input.isAtField(FieldNames.dialogueDataList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dialogueDataList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify clone() { + return new SyncRogueCommonDialogueDataScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncRogueCommonDialogueDataScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), data).checkInitialized(); + } + + public static SyncRogueCommonDialogueDataScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), input).checkInitialized(); + } + + public static SyncRogueCommonDialogueDataScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncRogueCommonDialogueDataScNotify messages + */ + public static MessageFactory getFactory() { + return SyncRogueCommonDialogueDataScNotifyFactory.INSTANCE; + } + + private enum SyncRogueCommonDialogueDataScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncRogueCommonDialogueDataScNotify create() { + return SyncRogueCommonDialogueDataScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dialogueDataList = FieldName.forField("dialogueDataList", "dialogue_data_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java new file mode 100644 index 000000000..6b60c5316 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java @@ -0,0 +1,556 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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; + +public final class SyncRogueCommonDialogueOptionFinishScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueCommonDialogueOptionFinishScNotify} + */ + public static final class SyncRogueCommonDialogueOptionFinishScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 3; + */ + private int eventUniqueId; + + /** + * optional uint32 option_id = 7; + */ + private int optionId; + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + */ + private final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo resultOptionInfo = RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.newInstance(); + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + */ + private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance(); + + private SyncRogueCommonDialogueOptionFinishScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueCommonDialogueOptionFinishScNotify} + */ + public static SyncRogueCommonDialogueOptionFinishScNotify newInstance() { + return new SyncRogueCommonDialogueOptionFinishScNotify(); + } + + /** + * optional uint32 event_unique_id = 3; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 3; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 3; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 3; + * @param value the eventUniqueId to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + /** + * optional uint32 option_id = 7; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 7; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 7; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 7; + * @param value the optionId to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * @return whether the resultOptionInfo field is set + */ + public boolean hasResultOptionInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearResultOptionInfo() { + bitField0_ &= ~0x00000004; + resultOptionInfo.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_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 #getMutableResultOptionInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo getResultOptionInfo( + ) { + return resultOptionInfo; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_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 RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo getMutableResultOptionInfo( + ) { + bitField0_ |= 0x00000004; + return resultOptionInfo; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * @param value the resultOptionInfo to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setResultOptionInfo( + final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) { + bitField0_ |= 0x00000004; + resultOptionInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * @return whether the dialogueData field is set + */ + public boolean hasDialogueData() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearDialogueData() { + bitField0_ &= ~0x00000008; + dialogueData.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 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 #getMutableDialogueData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getDialogueData() { + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 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 RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getMutableDialogueData( + ) { + bitField0_ |= 0x00000008; + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * @param value the dialogueData to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setDialogueData( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { + bitField0_ |= 0x00000008; + dialogueData.copyFrom(value); + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify copyFrom( + final SyncRogueCommonDialogueOptionFinishScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + optionId = other.optionId; + resultOptionInfo.copyFrom(other.resultOptionInfo); + dialogueData.copyFrom(other.dialogueData); + } + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom( + final SyncRogueCommonDialogueOptionFinishScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + if (other.hasResultOptionInfo()) { + getMutableResultOptionInfo().mergeFrom(other.resultOptionInfo); + } + if (other.hasDialogueData()) { + getMutableDialogueData().mergeFrom(other.dialogueData); + } + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + optionId = 0; + resultOptionInfo.clear(); + dialogueData.clear(); + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + resultOptionInfo.clearQuick(); + dialogueData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncRogueCommonDialogueOptionFinishScNotify)) { + return false; + } + SyncRogueCommonDialogueOptionFinishScNotify other = (SyncRogueCommonDialogueOptionFinishScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasOptionId() || optionId == other.optionId) + && (!hasResultOptionInfo() || resultOptionInfo.equals(other.resultOptionInfo)) + && (!hasDialogueData() || dialogueData.equals(other.dialogueData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(resultOptionInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(dialogueData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(resultOptionInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // resultOptionInfo + input.readMessage(resultOptionInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // dialogueData + input.readMessage(dialogueData); + 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.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.resultOptionInfo, resultOptionInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.dialogueData, dialogueData); + } + output.endObject(); + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -565706048: + case -465340138: { + if (input.isAtField(FieldNames.resultOptionInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(resultOptionInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1350537634: + case -1057999439: { + if (input.isAtField(FieldNames.dialogueData)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueData); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify clone() { + return new SyncRogueCommonDialogueOptionFinishScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), data).checkInitialized(); + } + + public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), input).checkInitialized(); + } + + public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncRogueCommonDialogueOptionFinishScNotify messages + */ + public static MessageFactory getFactory() { + return SyncRogueCommonDialogueOptionFinishScNotifyFactory.INSTANCE; + } + + private enum SyncRogueCommonDialogueOptionFinishScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify create() { + return SyncRogueCommonDialogueOptionFinishScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + + static final FieldName resultOptionInfo = FieldName.forField("resultOptionInfo", "result_option_info"); + + static final FieldName dialogueData = FieldName.forField("dialogueData", "dialogue_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonVirtualItemInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonVirtualItemInfoScNotifyOuterClass.java new file mode 100644 index 000000000..94b97c3b8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonVirtualItemInfoScNotifyOuterClass.java @@ -0,0 +1,304 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.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.RepeatedMessage; + +public final class SyncRogueCommonVirtualItemInfoScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueCommonVirtualItemInfoScNotify} + */ + public static final class SyncRogueCommonVirtualItemInfoScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 8; + */ + private final RepeatedMessage commonItemInfo = RepeatedMessage.newEmptyInstance(RogueCommonVirtualItemInfoOuterClass.RogueCommonVirtualItemInfo.getFactory()); + + private SyncRogueCommonVirtualItemInfoScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueCommonVirtualItemInfoScNotify} + */ + public static SyncRogueCommonVirtualItemInfoScNotify newInstance() { + return new SyncRogueCommonVirtualItemInfoScNotify(); + } + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 8; + * @return whether the commonItemInfo field is set + */ + public boolean hasCommonItemInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 8; + * @return this + */ + public SyncRogueCommonVirtualItemInfoScNotify clearCommonItemInfo() { + bitField0_ &= ~0x00000001; + commonItemInfo.clear(); + return this; + } + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 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 #getMutableCommonItemInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCommonItemInfo( + ) { + return commonItemInfo; + } + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 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 getMutableCommonItemInfo( + ) { + bitField0_ |= 0x00000001; + return commonItemInfo; + } + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 8; + * @param value the commonItemInfo to add + * @return this + */ + public SyncRogueCommonVirtualItemInfoScNotify addCommonItemInfo( + final RogueCommonVirtualItemInfoOuterClass.RogueCommonVirtualItemInfo value) { + bitField0_ |= 0x00000001; + commonItemInfo.add(value); + return this; + } + + /** + * repeated .RogueCommonVirtualItemInfo common_item_info = 8; + * @param values the commonItemInfo to add + * @return this + */ + public SyncRogueCommonVirtualItemInfoScNotify addAllCommonItemInfo( + final RogueCommonVirtualItemInfoOuterClass.RogueCommonVirtualItemInfo... values) { + bitField0_ |= 0x00000001; + commonItemInfo.addAll(values); + return this; + } + + @Override + public SyncRogueCommonVirtualItemInfoScNotify copyFrom( + final SyncRogueCommonVirtualItemInfoScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + commonItemInfo.copyFrom(other.commonItemInfo); + } + return this; + } + + @Override + public SyncRogueCommonVirtualItemInfoScNotify mergeFrom( + final SyncRogueCommonVirtualItemInfoScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCommonItemInfo()) { + getMutableCommonItemInfo().addAll(other.commonItemInfo); + } + return this; + } + + @Override + public SyncRogueCommonVirtualItemInfoScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + commonItemInfo.clear(); + return this; + } + + @Override + public SyncRogueCommonVirtualItemInfoScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + commonItemInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncRogueCommonVirtualItemInfoScNotify)) { + return false; + } + SyncRogueCommonVirtualItemInfoScNotify other = (SyncRogueCommonVirtualItemInfoScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasCommonItemInfo() || commonItemInfo.equals(other.commonItemInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < commonItemInfo.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(commonItemInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * commonItemInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(commonItemInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncRogueCommonVirtualItemInfoScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 66: { + // commonItemInfo + tag = input.readRepeatedMessage(commonItemInfo, tag); + bitField0_ |= 0x00000001; + 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.writeRepeatedMessage(FieldNames.commonItemInfo, commonItemInfo); + } + output.endObject(); + } + + @Override + public SyncRogueCommonVirtualItemInfoScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1524434284: + case 1655476486: { + if (input.isAtField(FieldNames.commonItemInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(commonItemInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncRogueCommonVirtualItemInfoScNotify clone() { + return new SyncRogueCommonVirtualItemInfoScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncRogueCommonVirtualItemInfoScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncRogueCommonVirtualItemInfoScNotify(), data).checkInitialized(); + } + + public static SyncRogueCommonVirtualItemInfoScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonVirtualItemInfoScNotify(), input).checkInitialized(); + } + + public static SyncRogueCommonVirtualItemInfoScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonVirtualItemInfoScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncRogueCommonVirtualItemInfoScNotify messages + */ + public static MessageFactory getFactory() { + return SyncRogueCommonVirtualItemInfoScNotifyFactory.INSTANCE; + } + + private enum SyncRogueCommonVirtualItemInfoScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncRogueCommonVirtualItemInfoScNotify create() { + return SyncRogueCommonVirtualItemInfoScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName commonItemInfo = FieldName.forField("commonItemInfo", "common_item_info"); + } + } +} diff --git a/src/main/java/emu/lunarcore/data/GameData.java b/src/main/java/emu/lunarcore/data/GameData.java index c693451c1..3253409cf 100644 --- a/src/main/java/emu/lunarcore/data/GameData.java +++ b/src/main/java/emu/lunarcore/data/GameData.java @@ -55,6 +55,7 @@ public class GameData { @Getter private static Int2ObjectMap rogueRoomExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueMapExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueMonsterExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static Int2ObjectMap rogueNPCExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueDialogueEventList = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueBuffGroupExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueBuffTagExcelMap = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/lunarcore/data/GameDepot.java b/src/main/java/emu/lunarcore/data/GameDepot.java index 7ce3d9ce7..280cc9f12 100644 --- a/src/main/java/emu/lunarcore/data/GameDepot.java +++ b/src/main/java/emu/lunarcore/data/GameDepot.java @@ -35,7 +35,6 @@ public class GameDepot { @Getter private static List rogueRandomBuffList = new ArrayList<>(); @Getter private static List rogueRandomCommonBonusList = new ArrayList<>(); @Getter private static List rogueRandomMiracleList = new ArrayList<>(); - @Getter private static List rogueRandomNpcList = new ArrayList<>(); private static Int2ObjectMap> rogueMapDepot = new Int2ObjectOpenHashMap<>(); public static void addRelicMainAffix(RelicMainAffixExcel affix) { diff --git a/src/main/java/emu/lunarcore/data/ResourceLoader.java b/src/main/java/emu/lunarcore/data/ResourceLoader.java index 3fa6dbcc5..a5e6d7d88 100644 --- a/src/main/java/emu/lunarcore/data/ResourceLoader.java +++ b/src/main/java/emu/lunarcore/data/ResourceLoader.java @@ -9,6 +9,9 @@ import emu.lunarcore.data.config.*; +import emu.lunarcore.data.config.rogue.RogueDialogueEventConfigInfo; +import emu.lunarcore.data.config.rogue.RogueDialogueEventOptionConfigInfo; +import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo; import org.reflections.Reflections; import com.google.gson.Gson; @@ -354,18 +357,35 @@ private static void loadRogueDialogueEvent() { // Loaded configs count int count = 0; // Load dialogue event configs - for (var dialogueEventExcel : GameData.getRogueDialogueEventList().values()) { + for (var npcEventExcel : GameData.getRogueNPCExcelMap().values()) { // Get file - File file = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogueEventExcel.getJsonPath()); + if (npcEventExcel.getNPCJsonPath().isEmpty()) { + count++; + continue; + } + File file = new File(LunarCore.getConfig().getResourceDir() + "/" + npcEventExcel.getNPCJsonPath()); if (!file.exists()) { - file = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogueEventExcel.getSecondPath()); - if (!file.exists()) continue; + continue; } try (FileReader reader = new FileReader(file)) { - RogueDialogueEventInfo info = gson.fromJson(reader, RogueDialogueEventInfo.class); - dialogueEventExcel.setInfo(info); + RogueNPCConfigInfo info = gson.fromJson(reader, RogueNPCConfigInfo.class); + npcEventExcel.setRogueNpcConfig(info); + + // Load dialogue option + for (var dialogue : info.DialogueList) { + if (dialogue.getOptionPath() == null) { + count++; + continue; + } + File optionFile = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogue.getOptionPath()); + if (!file.exists()) { + continue; + } + RogueDialogueEventConfigInfo optionInfo = gson.fromJson(new FileReader(optionFile), RogueDialogueEventConfigInfo.class); + dialogue.setOptionInfo(optionInfo); + } count++; } catch (Exception e) { e.printStackTrace(); @@ -374,7 +394,7 @@ private static void loadRogueDialogueEvent() { // Notify the server owner if we are missing any files if (count < GameData.getRogueDialogueEventList().size()) { - //LunarCore.getLogger().warn("Rogue dialogue event configs are missing, please check your resources folder: {resources}/Config/Level/RogueDialogue/RogueDialogueEvent/Act. Rogue event may not work!"); + LunarCore.getLogger().warn("Rogue dialogue event configs are missing, please check your resources folder: {resources}/Config/Level/Rogue/. Rogue event may not work!"); } // Done LunarCore.getLogger().info("Loaded " + count + " rogue events."); diff --git a/src/main/java/emu/lunarcore/data/config/RogueDialogueEventInfo.java b/src/main/java/emu/lunarcore/data/config/RogueDialogueEventInfo.java deleted file mode 100644 index c96e5cba3..000000000 --- a/src/main/java/emu/lunarcore/data/config/RogueDialogueEventInfo.java +++ /dev/null @@ -1,39 +0,0 @@ -package emu.lunarcore.data.config; - -import com.google.gson.annotations.SerializedName; -import lombok.Getter; - -import java.util.ArrayList; -import java.util.List; - -/** - * Original name: LevelRogueDialogueEvent - */ -@Getter -public class RogueDialogueEventInfo { - private List OnInitSequece = new ArrayList<>(); - private List OnStartSequece = new ArrayList<>(); - - @Getter - public static class RogueDialogueEvent { - private List TaskList = new ArrayList<>(); - } - - @Getter - public static class TaskListInfo { - @SerializedName("$type") public String Type = ""; - private List OptionList = new ArrayList<>(); - private CustomStringInfo CustomString = new CustomStringInfo(); - } - - @Getter - public static class OptionListInfo { - private String TriggerCustomString; - private int DialogueEventID; - } - - @Getter - public static class CustomStringInfo { - private String Value; - } -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java new file mode 100644 index 000000000..db03b4ff8 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java @@ -0,0 +1,19 @@ +package emu.lunarcore.data.config.rogue; + +import lombok.Getter; +import lombok.Setter; + +import javax.annotation.Nullable; + +/** + * Original Name: RogueDialogueBaseConfig + */ +@Getter +public class RogueDialogueBaseConfigInfo { + public String OptionPath; + public String DialoguePath; + + @Nullable + @Setter + public RogueDialogueEventConfigInfo OptionInfo; +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java new file mode 100644 index 000000000..3d794b8b7 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java @@ -0,0 +1,14 @@ +package emu.lunarcore.data.config.rogue; + +import lombok.Getter; + +import java.util.ArrayList; +import java.util.List; + +/** + * Original Name: RogueDialogueEventConfig + */ +@Getter +public class RogueDialogueEventConfigInfo { + public List OptionList = new ArrayList<>(); +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java new file mode 100644 index 000000000..72d29d2ec --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java @@ -0,0 +1,22 @@ +package emu.lunarcore.data.config.rogue; + +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import lombok.Getter; + +import java.util.Map; + +/** + * Original Name: RogueDialogueEventOptionConfig + */ +@Getter +public class RogueDialogueEventOptionConfigInfo { + + public int OptionID; + public int DisplayID; + public int SpecialOptionID; + public Map DynamicMap = new Int2ObjectOpenHashMap(); + public int DescValue; + public int DescValue2; + public int DescValue3; + public int DescValue4; +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java new file mode 100644 index 000000000..2e799ab8a --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java @@ -0,0 +1,9 @@ +package emu.lunarcore.data.config.rogue; + +/** + * Original Name: RogueDialogueEventOptionDynamicConfig + */ +public class RogueDialogueEventOptionDynamicConfigInfo { + public int DisplayID; + public int DisplayID2; +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java new file mode 100644 index 000000000..6d69cead4 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java @@ -0,0 +1,13 @@ +package emu.lunarcore.data.config.rogue; + +import emu.lunarcore.game.enums.RogueDialogueType; +import lombok.Getter; + +import java.util.ArrayList; +import java.util.List; + +@Getter +public class RogueNPCConfigInfo { + public RogueDialogueType DialogueType; + public List DialogueList = new ArrayList<>(); +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java new file mode 100644 index 000000000..6efde7244 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java @@ -0,0 +1,7 @@ +package emu.lunarcore.data.config.rogue; + +public class RogueNPCDialogueConfigInfo extends RogueDialogueBaseConfigInfo { + public int DialogueProgress; + public int UnlockID; + public int TalkNameID; +} diff --git a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java index 0038ab737..8308002d7 100644 --- a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java @@ -3,13 +3,11 @@ import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameResource; import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.config.RogueDialogueEventInfo; import emu.lunarcore.game.enums.DialogueEventCostType; import emu.lunarcore.game.enums.DialogueEventType; import emu.lunarcore.game.rogue.RogueBuffType; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; -import lombok.Setter; @Getter @ResourceType(name = {"DialogueEvent.json"}) @@ -22,8 +20,6 @@ public class DialogueEventExcel extends GameResource { public IntArrayList ConditionIDList; public RogueBuffType AeonOption; - @Setter private RogueDialogueEventInfo info; - @Override public int getId() { return EventID; @@ -33,12 +29,4 @@ public int getId() { public void onLoad() { GameData.getRogueDialogueEventList().put(EventID, this); } - - public String getJsonPath() { - return "Config/Level/RogueDialogue/RogueDialogueEvent/Act/Act00" + this.getId() + ".json"; - } - - public String getSecondPath() { - return "Config/Level/RogueDialogue/RogueDialogueEvent/Act/Act4038" + this.getId() + ".json"; - } } diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java index 015324e7e..c817bc2ae 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java @@ -1,25 +1,27 @@ package emu.lunarcore.data.excel; +import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.GameResource; import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo; import lombok.Getter; +import lombok.Setter; + +import javax.annotation.Nullable; @Getter @ResourceType(name = {"RogueNPC.json"}) public class RogueNPCExcel extends GameResource { - private int RogueNPCID; - private int NPCID; + public int RogueNPCID; + public String NPCJsonPath; + + @Setter + @Nullable + public RogueNPCConfigInfo RogueNpcConfig; @Override public int getId() { return RogueNPCID; } - - @Override - public void onLoad() { - if (NPCID == 3013 && RogueNPCID >= 10000 && RogueNPCID <= 19999) { - GameDepot.getRogueRandomNpcList().add(this); - } - } } diff --git a/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java b/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java new file mode 100644 index 000000000..04232403e --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java @@ -0,0 +1,8 @@ +package emu.lunarcore.game.enums; + +public enum RogueDialogueType { + None, + Story, + Event, + Store +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java index b8b56fc8d..814870f74 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java @@ -1,7 +1,6 @@ package emu.lunarcore.game.rogue; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.MonsterInfo; import emu.lunarcore.data.config.NpcInfo; @@ -11,13 +10,14 @@ import emu.lunarcore.data.excel.RogueMonsterExcel; import emu.lunarcore.data.excel.RogueNPCExcel; import emu.lunarcore.game.enums.PropState; +import emu.lunarcore.game.rogue.event.RogueEventInstance; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.SceneEntityLoader; import emu.lunarcore.game.scene.entity.EntityMonster; import emu.lunarcore.game.scene.entity.EntityNpc; import emu.lunarcore.game.scene.entity.EntityProp; import emu.lunarcore.game.scene.entity.extra.PropRogueData; -import emu.lunarcore.server.packet.send.PacketSyncRogueDialogueEventDataScNotify; +import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueDataScNotify; import emu.lunarcore.util.Utils; public class RogueEntityLoader extends SceneEntityLoader { @@ -140,17 +140,16 @@ public EntityNpc loadNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { if (npc.getNpcId() == 3013) { int npcId; RogueInstance instance; + RogueEventInstance eventInstance; do { - RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameDepot.getRogueRandomNpcList()); + RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameData.getRogueNPCExcelMap().values().stream().toList()); npcId = rogueNpcExcel.getId(); instance = scene.getPlayer().getRogueInstance(); - } while (instance.setDialogueParams(npcId) == null); + eventInstance = instance.generateEvent(npcId, npc); + } while (eventInstance == null); - instance.getEventManager().setNowPercentage(0); - npc.setRogueNpcId(npcId); - npc.setEventId(++instance.eventUniqueId); - scene.getPlayer().sendPacket(new PacketSyncRogueDialogueEventDataScNotify(npcId, instance.curDialogueParams.get(npcId), - instance.eventUniqueId)); + npc.setEventInstance(eventInstance); + scene.getPlayer().sendPacket(new PacketSyncRogueCommonDialogueDataScNotify(eventInstance)); } return npc; diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java index 894c754a1..5b53e7918 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java @@ -3,7 +3,9 @@ import emu.lunarcore.LunarCore; import emu.lunarcore.data.GameData; import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.rogue.event.RogueEventResultInfo; import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; +import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueOptionFinishScNotify; import emu.lunarcore.util.Utils; import emu.lunarcore.util.WeightedList; import it.unimi.dsi.fastutil.ints.IntArrayList; @@ -14,22 +16,32 @@ public class RogueEventManager { private RogueInstance rogueInstance; private Player player; - @Setter private int nowPercentage = 0; public RogueEventManager(RogueInstance rogueInstance) { this.rogueInstance = rogueInstance; this.player = rogueInstance.getPlayer(); } - public int handleEvent(int eventId, int npcId) { - var event = GameData.getRogueDialogueEventList().get(eventId); + public int handleEvent(int optionId, int eventUniqueId) { + var event = GameData.getRogueDialogueEventList().get(optionId); if (event == null || event.getRogueEffectType() == null) return 0; IntArrayList param = event.getRogueEffectParamList(); + var instance = this.getRogueInstance().getRunningEvents().get(eventUniqueId); + boolean isEvent = false; + if (instance != null && instance.SelectedOptionId == 0) { + instance.SelectedOptionId = optionId; + isEvent = true; + } switch (event.getRogueEffectType()) { case GetItem -> rogueInstance.addDialogueCoin(param.getInt(1)); case TriggerBattle -> { - this.getPlayer().getServer().getBattleService().startBattle(player, param.getInt(0)); // handle in SceneEnterStageCsReq + var battleId = param.getInt(0); + var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst(); + if (option.isEmpty()) return 0; + var result = new RogueEventResultInfo(); + result.BattleEventId = battleId; + option.get().Results.add(result); } case TriggerRogueMiracleSelect -> this.getRogueInstance().createMiracleSelect(1); case TriggerRogueBuffSelect -> { @@ -59,10 +71,8 @@ public int handleEvent(int eventId, int npcId) { } case TriggerDialogueEventList -> { for (var id : param) { - this.handleEvent(id, npcId); - this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance() - .setDialogueEventId(id) - .setIsValid(true)); + this.handleEvent(id, eventUniqueId); + this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(id); } } case TriggerRandomEventList -> { @@ -77,8 +87,8 @@ public int handleEvent(int eventId, int npcId) { nextEventId = 0; } int randomEventId = weightList.next(); - handleCost(eventId); - this.handleEvent(randomEventId, npcId); + handleCost(optionId); + this.handleEvent(randomEventId, eventUniqueId); return randomEventId; } case GetAllRogueBuffInGroupAndGetItem -> { @@ -90,29 +100,27 @@ public int handleEvent(int eventId, int npcId) { var failEventId = param.getInt(0); var initialPercent = param.getInt(1); var increasePercent = param.getInt(2); - if (this.nowPercentage != 0) - this.nowPercentage = initialPercent; + var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst(); + if (option.isEmpty()) return 0; + var nowPercentage = option.get().Ratio; + if (nowPercentage != 0) + nowPercentage = initialPercent; var weightList = new WeightedList(); for (int i = 3; i < param.size(); i += 2) { weightList.add(param.getInt(i + 1), param.getInt(i)); } - int randomNum = Utils.randomRange(0, 100); - if (randomNum <= this.nowPercentage) { - handleCost(eventId); - //this.handleEvent(failEventId, npcId); - this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance() - .setDialogueEventId(failEventId) - .setIsValid(true)); + int randomNum = Utils.randomRange(0, 10000); + handleCost(optionId); + if (randomNum <= nowPercentage * 10000) { + this.handleEvent(failEventId, eventUniqueId); + this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(failEventId); return 0; } else { - this.nowPercentage += increasePercent; - handleCost(eventId); int nextEventId = weightList.next(); - this.handleEvent(nextEventId, npcId); - this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance() - .setDialogueEventId(nextEventId) - .setIsValid(true) - .setRatio(this.nowPercentage)); // not working + // add percentage + option.get().Ratio += increasePercent / 100f; + this.handleEvent(nextEventId, eventUniqueId); + this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(nextEventId); return 0; } } @@ -140,7 +148,12 @@ public int handleEvent(int eventId, int npcId) { LunarCore.getLogger().info("RogueEventManager: unhandled event type: " + event.getRogueEffectType()); // DEBUG } } - handleCost(eventId); + handleCost(optionId); + + if (isEvent) { + // Sync + this.getRogueInstance().getPlayer().sendPacket(new PacketSyncRogueCommonDialogueOptionFinishScNotify(instance)); + } return 0; } diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java index 43a334777..85acb262c 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java @@ -8,8 +8,11 @@ import emu.lunarcore.data.excel.*; import emu.lunarcore.game.battle.Battle; import emu.lunarcore.game.enums.RogueBuffAeonType; +import emu.lunarcore.game.enums.RogueDialogueType; import emu.lunarcore.game.player.Player; import emu.lunarcore.game.player.lineup.PlayerLineup; +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.game.scene.entity.EntityNpc; import emu.lunarcore.proto.AvatarTypeOuterClass.AvatarType; import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus; import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics; @@ -22,7 +25,6 @@ import emu.lunarcore.proto.RogueBuffSourceOuterClass.RogueBuffSource; import emu.lunarcore.proto.RogueCommonPendingActionOuterClass.RogueCommonPendingAction; import emu.lunarcore.proto.RogueCurrentInfoOuterClass.RogueCurrentInfo; -import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; import emu.lunarcore.proto.RogueFinishInfoOuterClass.RogueFinishInfo; import emu.lunarcore.proto.RogueMapInfoOuterClass.RogueMapInfo; import emu.lunarcore.proto.RogueMiracleInfoOuterClass.RogueMiracleInfo; @@ -70,7 +72,7 @@ public class RogueInstance { private int coin; // universal debris public int actionUniqueId = 0; public int eventUniqueId = 690; - public Int2ObjectMap> curDialogueParams = new Int2ObjectOpenHashMap<>(); + public Int2ObjectMap runningEvents = new Int2ObjectOpenHashMap<>(); private final Set normalBuff = GameData.getRogueBuffGroupExcelMap().get(100005).getRogueBuffList(); private final Set uncommonBuff = GameData.getRogueBuffGroupExcelMap().get(100003).getRogueBuffList(); @@ -442,57 +444,22 @@ public synchronized void pickAvatar(RepeatedInt avatarId) { this.getPlayer().sendPacket(new PacketPickRogueAvatarScRsp(newAvatarIds)); } - public synchronized List setDialogueParams(int npcId) { + public synchronized RogueEventInstance generateEvent(int npcId, EntityNpc npcEntity) { try { - this.curDialogueParams.clear(); + this.runningEvents.clear(); - DialogueEventExcel event = GameData.getRogueDialogueEventList().get(npcId); - var sequence = event.getInfo().getOnStartSequece(); + RogueNPCExcel npc = GameData.getRogueNPCExcelMap().get(npcId); - ArrayList params = new ArrayList<>(); - Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); - Map argMap = new HashMap<>(); - for (var e : sequence) { - var talkList = e.getTaskList(); - var tempName = ""; - - for (var talk : talkList) { - if (talk.getOptionList() != null && !talk.getOptionList().isEmpty()){ - for (var option : talk.getOptionList()) { - if (option.getDialogueEventID() != 0) { - map.put(option.getDialogueEventID(), option.getTriggerCustomString()); - } - } - continue; - } - - if (talk.Type.equals("RPG.GameCore.WaitCustomString")) { - tempName = talk.getCustomString().getValue(); - continue; - } - - if (!Objects.equals(tempName, "") && talk.Type.equals("RPG.GameCore.TriggerCustomString")) { - argMap.put(tempName, talk.getCustomString().getValue()); - tempName = ""; - } - } + if (npc == null || npc.getRogueNpcConfig() == null || + npc.getRogueNpcConfig().DialogueType != RogueDialogueType.Event) { // make sure the npc is an event npc + return null; } + + var instance = new RogueEventInstance(npc, npcEntity, this.eventUniqueId++); + + this.getRunningEvents().put(instance.EventUniqueId, instance); - map.forEach((k, v) -> { - var param = RogueDialogueEventParam.newInstance() - .setDialogueEventId(k) - .setIsValid(true); - - if (argMap.containsKey(v) && argMap.get(v).equals("RelateToBuff")) { - param.setArgId(this.getAeonId()); - } - - params.add(param); - }); - - this.getCurDialogueParams().put(npcId, params); - - return params; + return instance; } catch (Exception e) { return null; } @@ -557,8 +524,14 @@ public void onFinish() { // Dialogue stuff - public int onSelectDialogue(int dialogueEventId, int npcId) { - return this.eventManager.handleEvent(dialogueEventId, npcId); + public int onSelectDialogue(int dialogueEventId, int eventUniqueId) { + var instance = this.getRunningEvents().get(eventUniqueId); + if (instance == null) { + return 0; + } + + instance.SelectedOptionId = 0; // reset selected option + return this.eventManager.handleEvent(dialogueEventId, eventUniqueId); } // Battle diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java new file mode 100644 index 000000000..7ca9877e7 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java @@ -0,0 +1,54 @@ +package emu.lunarcore.game.rogue.event; + +import emu.lunarcore.data.excel.RogueNPCExcel; +import emu.lunarcore.game.scene.entity.EntityNpc; +import emu.lunarcore.proto.RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo; +import emu.lunarcore.proto.RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo; +import emu.lunarcore.proto.RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo; + +import java.util.ArrayList; +import java.util.List; + +public class RogueEventInstance +{ + public RogueEventInstance(RogueNPCExcel excel, EntityNpc npc, int uniqueId)// check in RogueInstance.cs + { + EventId = excel.getRogueNPCID(); + EventEntity = npc; + EventUniqueId = uniqueId; + + for (var option: excel.RogueNpcConfig.DialogueList.get(0).OptionInfo.OptionList) + { + var param = new RogueEventParam(); + param.OptionId = option.OptionID; + Options.add(param); + } + } + + public int EventId; + public boolean Finished; + public EntityNpc EventEntity; + public List Options = new ArrayList<>(); + public int EventUniqueId; + public int SelectedOptionId = 0; + public List EffectEventId = new ArrayList<>(); + + public RogueCommonDialogueDataInfo toProto() + { + var proto = RogueCommonDialogueDataInfo.newInstance() + .setDialogueInfo(toDialogueInfo()) + .setEventUniqueId(EventUniqueId); + + for (var option: Options) proto.addOptionList(option.ToProto()); + + System.out.println("RogueEventInstance.toProto: " + proto); + return proto; + } + + public RogueCommonDialogueInfo toDialogueInfo() + { + return RogueCommonDialogueInfo.newInstance() + .setDialogueBasicInfo(RogueCommonDialogueBasicInfo.newInstance() + .setDialogueId(EventId)); + } +} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java new file mode 100644 index 000000000..e12729034 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java @@ -0,0 +1,38 @@ +package emu.lunarcore.game.rogue.event; + +import emu.lunarcore.proto.NpcDialogueEventParamOuterClass.NpcDialogueEventParam; +import emu.lunarcore.proto.RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo; +import emu.lunarcore.proto.RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo; + +import java.util.ArrayList; +import java.util.List; + +public class RogueEventParam +{ + public int OptionId; + public int ArgId; + public float Ratio; + public boolean IsSelected; + public Boolean OverrideSelected = null; + public List Results = new ArrayList<>(); + + public RogueCommonDialogueOptionInfo ToProto() + { + var proto = RogueCommonDialogueOptionInfo.newInstance() + .setArgId(ArgId) + .setIsValid(true) + .setOptionId(OptionId) + .setDisplayValue(RogueCommonDialogueOptionDisplayInfo.newInstance() + .setDisplayFloatValue(Ratio)) + .setConfirm(OverrideSelected != null ? OverrideSelected : IsSelected); + + for (var result: Results) proto.addOptionResultInfo(result.ToProto()); + return proto; + } + + public NpcDialogueEventParam toNpcProto() { + return NpcDialogueEventParam.newInstance() + .setRogueDialogueEventId(OptionId) + .setArgId(ArgId); + } +} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java new file mode 100644 index 000000000..a7c7ebfc5 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java @@ -0,0 +1,14 @@ +package emu.lunarcore.game.rogue.event; + +import emu.lunarcore.proto.RogueCommonDialogueOptionBattleResultInfoOuterClass; +import emu.lunarcore.proto.RogueCommonDialogueOptionResultInfoOuterClass; + +public class RogueEventResultInfo { + public int BattleEventId; + + public RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo ToProto() { + return RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.newInstance() + .setBattleResultInfo(RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo.newInstance() + .setBattleEventId(BattleEventId)); + } +} diff --git a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java index 9b338dea6..16753cc58 100644 --- a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java +++ b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java @@ -2,6 +2,7 @@ import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.NpcInfo; +import emu.lunarcore.game.rogue.event.RogueEventInstance; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo; import emu.lunarcore.proto.NpcRogueInfoOuterClass.NpcRogueInfo; @@ -22,9 +23,7 @@ public class EntityNpc implements GameEntity { private final Position pos; private final Position rot; - @Setter private int rogueNpcId; - @Setter private boolean isDialogueFinished = false; - @Setter private int eventId = 0; + @Setter private RogueEventInstance eventInstance; public EntityNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { this.scene = scene; @@ -42,11 +41,14 @@ public SceneEntityInfo toSceneEntityProto() { .setNpcId(this.getNpcId()); // Rogue data - if (this.rogueNpcId > 0) { + if (this.eventInstance != null) { var rogue = NpcRogueInfo.newInstance() - .setRogueNpcId(this.rogueNpcId) - .setFinishDialogue(isDialogueFinished) - .setDialogueGroupId(eventId); + .setEventId(this.eventInstance.EventId) + .setFinishDialogue(this.eventInstance.Finished) + .setEventUniqueId(this.eventInstance.EventUniqueId); + + for (var option: this.eventInstance.Options) + rogue.addDialogueEventParamList(option.toNpcProto()); npc.getMutableExtraInfo().setRogueInfo(rogue); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java new file mode 100644 index 000000000..9cff8bffb --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.scene.entity.EntityNpc; +import emu.lunarcore.proto.FinishRogueCommonDialogueCsReqOuterClass.FinishRogueCommonDialogueCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; + +@Opcodes(CmdId.FinishRogueCommonDialogueCsReq) +public class HandlerFinishRogueCommonDialogueCsReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = FinishRogueCommonDialogueCsReq.parseFrom(data); + + var instance = session.getPlayer().getRogueInstance().getRunningEvents().get(req.getEventUniqueId()); + if (instance == null) return; + instance.Finished = true; + session.send(new PacketSceneGroupRefreshScNotify(instance.EventEntity, null)); + + session.send(CmdId.FinishRogueCommonDialogueScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java deleted file mode 100644 index 245f42920..000000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java +++ /dev/null @@ -1,25 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.FinishRogueDialogueGroupCsReqOuterClass.FinishRogueDialogueGroupCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; - -//@Opcodes(CmdId.FinishRogueDialogueGroupCsReq) -@Opcodes(CmdId.NONE) -public class HandlerFinishRogueDialogueGroupCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = FinishRogueDialogueGroupCsReq.parseFrom(data); - - EntityNpc npc = (EntityNpc)session.getPlayer().getScene().getEntityById(req.getEntityId()); - if (npc == null) return; - npc.setDialogueFinished(true); - session.send(new PacketSceneGroupRefreshScNotify(npc, null)); - - //session.send(CmdId.FinishRogueDialogueGroupScRsp); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java index 7b0f85c5a..30d8a4be8 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java @@ -14,7 +14,7 @@ public class HandlerRogueNpcDisappearCsReq extends PacketHandler { public void handle(GameSession session, byte[] data) throws Exception { var req = RogueNpcDisappearCsReq.parseFrom(data); - GameEntity entity = session.getPlayer().getScene().getEntityById(req.getEntityId()); + GameEntity entity = session.getPlayer().getScene().getEntityById(req.getDisappearNpcEntityId()); if (entity != null) { session.send(CmdId.RogueNpcDisappearScRsp); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java new file mode 100644 index 000000000..0ef1bd774 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java @@ -0,0 +1,30 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SelectRogueCommonDialogueOptionCsReqOuterClass.SelectRogueCommonDialogueOptionCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSelectRogueCommonDialogueOptionScRsp; + +@Opcodes(CmdId.SelectRogueCommonDialogueOptionCsReq) +public class HandlerSelectRogueCommonDialogueOptionCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SelectRogueCommonDialogueOptionCsReq.parseFrom(data); + + + if (session.getPlayer().getRogueInstance() == null) return; + + session.getPlayer().getRogueInstance().onSelectDialogue(req.getOptionId(), req.getEventUniqueId()); + RogueEventInstance eventInstance = session.getPlayer().getRogueInstance().getRunningEvents().get(req.getEventUniqueId()); + if (eventInstance == null) { + return; + } + + session.send(new PacketSelectRogueCommonDialogueOptionScRsp(eventInstance)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java deleted file mode 100644 index 5d7703083..000000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java +++ /dev/null @@ -1,31 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.SelectRogueDialogueEventCsReqOuterClass.SelectRogueDialogueEventCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSelectRogueDialogueEventScRsp; - -//@Opcodes(CmdId.SelectRogueDialogueEventCsReq) -@Opcodes(CmdId.NONE) -public class HandlerSelectRogueDialogueEventCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = SelectRogueDialogueEventCsReq.parseFrom(data); - - EntityNpc npc = (EntityNpc)session.getPlayer().getScene().getEntityById(req.getEntityId()); - - if (npc == null) return; - - int callback = 0; - if (session.getPlayer().getRogueInstance() != null) { - callback = session.getPlayer().getRogueInstance().onSelectDialogue(req.getDialogueEventId(), npc.getRogueNpcId()); - } - - session.send(new PacketSelectRogueDialogueEventScRsp(req.getDialogueEventId(), npc, callback)); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java new file mode 100644 index 000000000..2a1e8edb5 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java @@ -0,0 +1,25 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SelectRogueCommonDialogueOptionScRspOuterClass.SelectRogueCommonDialogueOptionScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSelectRogueCommonDialogueOptionScRsp extends BasePacket { + + public PacketSelectRogueCommonDialogueOptionScRsp(RogueEventInstance instance) { + super(CmdId.SelectRogueCommonDialogueOptionScRsp); + + var data = SelectRogueCommonDialogueOptionScRsp.newInstance() + .setDialogueData(instance.toProto()) + .setOptionId(instance.SelectedOptionId) + .setEventUniqueId(instance.EventUniqueId) + .setEventHasEffect(true); // TODO: improve it (if any option is selected) + + for (var eVi : instance.EffectEventId) { + data.addEffectEventIdList(eVi); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java deleted file mode 100644 index a8f119de8..000000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java +++ /dev/null @@ -1,46 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.DialogueResultOuterClass.DialogueResult; -import emu.lunarcore.proto.RogueDialogueEventOuterClass.RogueDialogueEvent; -import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; -import emu.lunarcore.proto.SelectRogueDialogueEventScRspOuterClass.SelectRogueDialogueEventScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSelectRogueDialogueEventScRsp extends BasePacket { - - public PacketSelectRogueDialogueEventScRsp(int dialogueEventId, EntityNpc npc, int nextEventId) { - //super(CmdId.SelectRogueDialogueEventScRsp); - super(CmdId.NONE); - - var data = SelectRogueDialogueEventScRsp.newInstance() - .setDialogueEventId(dialogueEventId); - - var instance = npc.getScene().getPlayer().getRogueInstance(); - - var params = instance.curDialogueParams.get(npc.getRogueNpcId()); - if (params == null) { - params = instance.setDialogueParams(npc.getRogueNpcId()); - } - - var event = RogueDialogueEvent.newInstance() - .setNpcId(npc.getRogueNpcId()) - .setGameModeType(5) - .addSelectEventId(dialogueEventId) - //.setEventUniqueId(instance.getEventUniqueId()) - .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new)); - - var l = DialogueResult.newInstance(); - for (var param : params) { - l.addEventIds(param.getDialogueEventId()); - } - if (nextEventId != 0) { - l.addEventIds(nextEventId); - } - data.setDialogueResult(l); - data.setEventData(event); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java new file mode 100644 index 000000000..9b00c56ce --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SyncRogueCommonDialogueDataScNotifyOuterClass.SyncRogueCommonDialogueDataScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSyncRogueCommonDialogueDataScNotify extends BasePacket { + public PacketSyncRogueCommonDialogueDataScNotify(RogueEventInstance event) { + super(CmdId.SyncRogueCommonDialogueDataScNotify); + + var proto = SyncRogueCommonDialogueDataScNotify.newInstance() + .addDialogueDataList(event.toProto()); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java new file mode 100644 index 000000000..dcd295423 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.SyncRogueCommonDialogueOptionFinishScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSyncRogueCommonDialogueOptionFinishScNotify extends BasePacket { + + public PacketSyncRogueCommonDialogueOptionFinishScNotify(RogueEventInstance instance) { + super(CmdId.SelectRogueCommonDialogueOptionScRsp); + + var proto = SyncRogueCommonDialogueOptionFinishScNotify.newInstance() + .setEventUniqueId(instance.EventUniqueId) + .setOptionId(instance.SelectedOptionId) + .setResultOptionInfo(instance.Options.stream().filter(o -> o.OptionId == instance.SelectedOptionId).findFirst().get().ToProto()); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java deleted file mode 100644 index 01ce5a946..000000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java +++ /dev/null @@ -1,29 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.RogueDialogueEventOuterClass.RogueDialogueEvent; -import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; -import emu.lunarcore.proto.SyncRogueDialogueEventDataScNotifyOuterClass.SyncRogueDialogueEventDataScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -import java.util.List; - -public class PacketSyncRogueDialogueEventDataScNotify extends BasePacket { - public PacketSyncRogueDialogueEventDataScNotify(RogueDialogueEvent event) { - //super(CmdId.SyncRogueDialogueEventDataScNotify); - super(CmdId.NONE); - - var proto = SyncRogueDialogueEventDataScNotify.newInstance() - .addRogueDialogueEvent(event); - - this.setData(proto); - } - - public PacketSyncRogueDialogueEventDataScNotify(int rogueNpcId, List params, int eventId) { - this(RogueDialogueEvent.newInstance() - .setGameModeType(5) // rogue explore - .setNpcId(rogueNpcId) - //.setEventUniqueId(eventId) - .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new))); - } -}