From bb2850385d4f5e7373184342a953ad60ddb0b3a4 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:19:45 -0800 Subject: [PATCH] Fix protos --- .../proto/BattlePassInfoNotifyOuterClass.java | 2669 ++++++++--------- .../ClientMailAttachmentItemOuterClass.java | 811 ++--- .../proto/DiscardRelicCsReqOuterClass.java | 808 ++--- .../EnableRogueTalentCsReqOuterClass.java | 669 ++--- .../EnableRogueTalentScRspOuterClass.java | 18 +- .../GetRogueHandbookDataScRspOuterClass.java | 32 +- ...etRogueScoreRewardInfoScRspOuterClass.java | 975 ++---- .../GetRogueTalentInfoScRspOuterClass.java | 32 +- .../lunarcore/proto/MazeGroupOuterClass.java | 810 ++--- .../proto/PlayerSettingInfoOuterClass.java | 952 +++--- .../RogueAchivedMiracleInfoOuterClass.java | 253 +- .../proto/RogueBuffSelectInfoOuterClass.java | 629 ++-- .../proto/RogueHandbookAeonOuterClass.java | 1672 ++++------- .../proto/RogueHandbookDataOuterClass.java | 449 +-- .../proto/RogueScoreRewardInfoOuterClass.java | 1832 +++++------ .../proto/RogueTalentInfoOuterClass.java | 18 +- .../proto/RogueTalentOuterClass.java | 50 +- .../proto/RogueUnlockProgressOuterClass.java | 953 +++--- .../SceneMonsterWaveParamOuterClass.java | 943 +++--- .../TakeChallengeRewardCsReqOuterClass.java | 669 ++--- .../TakeMailAttachmentCsReqOuterClass.java | 960 ++---- .../proto/TextJoinInfoOuterClass.java | 803 ++--- 22 files changed, 6879 insertions(+), 10128 deletions(-) diff --git a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java index f84c40c..646b1f5 100644 --- a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java @@ -1,1471 +1,1320 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BattlePassInfoNotify.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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.ProtoEnum; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.ProtoUtil; + public final class BattlePassInfoNotifyOuterClass { - private BattlePassInfoNotifyOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - BattlePassInfoNotifyOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface BattlePassInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:BattlePassInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return The enum numeric value on the wire for bpTierType. - */ - int getBpTierTypeValue(); - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return The bpTierType. - */ - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType getBpTierType(); - - /** - * uint64 taken_free_reward = 9; - * @return The takenFreeReward. - */ - long getTakenFreeReward(); - - /** - * uint64 taken_premium_reward1 = 4; - * @return The takenPremiumReward1. - */ - long getTakenPremiumReward1(); - - /** - * uint64 taken_premium_reward2 = 1; - * @return The takenPremiumReward2. - */ - long getTakenPremiumReward2(); - - /** - * uint64 taken_premium_extended_reward = 7; - * @return The takenPremiumExtendedReward. - */ - long getTakenPremiumExtendedReward(); - - /** - * uint64 unkfield = 2; - * @return The unkfield. - */ - long getUnkfield(); - - /** - * uint64 taken_premium_optional_reward = 8; - * @return The takenPremiumOptionalReward. - */ - long getTakenPremiumOptionalReward(); - - /** - * uint64 taken_free_extended_reward = 12; - * @return The takenFreeExtendedReward. - */ - long getTakenFreeExtendedReward(); - - /** - * uint32 cur_week_add_exp_sum = 3; - * @return The curWeekAddExpSum. - */ - int getCurWeekAddExpSum(); - - /** - * uint32 cur_bp_id = 5; - * @return The curBpId. - */ - int getCurBpId(); - - /** - * uint32 exp = 6; - * @return The exp. - */ - int getExp(); - - /** - * uint32 level = 10; - * @return The level. - */ - int getLevel(); - } /** * Protobuf type {@code BattlePassInfoNotify} */ - public static final class BattlePassInfoNotify extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:BattlePassInfoNotify) - BattlePassInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - BattlePassInfoNotify.class.getName()); - } - // Use BattlePassInfoNotify.newBuilder() to construct. - private BattlePassInfoNotify(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class BattlePassInfoNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 taken_premium_reward2 = 1; + */ + private long takenPremiumReward2; + + /** + * optional uint64 unkfield = 2; + */ + private long unkfield; + + /** + * optional uint64 taken_premium_reward1 = 4; + */ + private long takenPremiumReward1; + + /** + * optional uint64 taken_premium_extended_reward = 7; + */ + private long takenPremiumExtendedReward; + + /** + * optional uint64 taken_premium_optional_reward = 8; + */ + private long takenPremiumOptionalReward; + + /** + * optional uint64 taken_free_reward = 9; + */ + private long takenFreeReward; + + /** + * optional uint64 taken_free_extended_reward = 12; + */ + private long takenFreeExtendedReward; + + /** + * optional uint32 cur_week_add_exp_sum = 3; + */ + private int curWeekAddExpSum; + + /** + * optional uint32 cur_bp_id = 5; + */ + private int curBpId; + + /** + * optional uint32 exp = 6; + */ + private int exp; + + /** + * optional uint32 level = 10; + */ + private int level; + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; + */ + private int bpTierType; + private BattlePassInfoNotify() { - bpTierType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.internal_static_BattlePassInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.internal_static_BattlePassInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.class, emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.Builder.class); } /** - * Protobuf enum {@code BattlePassInfoNotify.BpTierType} + * @return a new empty instance of {@code BattlePassInfoNotify} */ - public enum BpTierType - implements com.google.protobuf.ProtocolMessageEnum { + public static BattlePassInfoNotify newInstance() { + return new BattlePassInfoNotify(); + } + + /** + * optional uint64 taken_premium_reward2 = 1; + * @return whether the takenPremiumReward2 field is set + */ + public boolean hasTakenPremiumReward2() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 taken_premium_reward2 = 1; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumReward2() { + bitField0_ &= ~0x00000001; + takenPremiumReward2 = 0L; + return this; + } + + /** + * optional uint64 taken_premium_reward2 = 1; + * @return the takenPremiumReward2 + */ + public long getTakenPremiumReward2() { + return takenPremiumReward2; + } + + /** + * optional uint64 taken_premium_reward2 = 1; + * @param value the takenPremiumReward2 to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumReward2(final long value) { + bitField0_ |= 0x00000001; + takenPremiumReward2 = value; + return this; + } + + /** + * optional uint64 unkfield = 2; + * @return whether the unkfield field is set + */ + public boolean hasUnkfield() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 unkfield = 2; + * @return this + */ + public BattlePassInfoNotify clearUnkfield() { + bitField0_ &= ~0x00000002; + unkfield = 0L; + return this; + } + + /** + * optional uint64 unkfield = 2; + * @return the unkfield + */ + public long getUnkfield() { + return unkfield; + } + + /** + * optional uint64 unkfield = 2; + * @param value the unkfield to set + * @return this + */ + public BattlePassInfoNotify setUnkfield(final long value) { + bitField0_ |= 0x00000002; + unkfield = value; + return this; + } + + /** + * optional uint64 taken_premium_reward1 = 4; + * @return whether the takenPremiumReward1 field is set + */ + public boolean hasTakenPremiumReward1() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint64 taken_premium_reward1 = 4; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumReward1() { + bitField0_ &= ~0x00000004; + takenPremiumReward1 = 0L; + return this; + } + + /** + * optional uint64 taken_premium_reward1 = 4; + * @return the takenPremiumReward1 + */ + public long getTakenPremiumReward1() { + return takenPremiumReward1; + } + + /** + * optional uint64 taken_premium_reward1 = 4; + * @param value the takenPremiumReward1 to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumReward1(final long value) { + bitField0_ |= 0x00000004; + takenPremiumReward1 = value; + return this; + } + + /** + * optional uint64 taken_premium_extended_reward = 7; + * @return whether the takenPremiumExtendedReward field is set + */ + public boolean hasTakenPremiumExtendedReward() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint64 taken_premium_extended_reward = 7; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumExtendedReward() { + bitField0_ &= ~0x00000008; + takenPremiumExtendedReward = 0L; + return this; + } + + /** + * optional uint64 taken_premium_extended_reward = 7; + * @return the takenPremiumExtendedReward + */ + public long getTakenPremiumExtendedReward() { + return takenPremiumExtendedReward; + } + + /** + * optional uint64 taken_premium_extended_reward = 7; + * @param value the takenPremiumExtendedReward to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumExtendedReward(final long value) { + bitField0_ |= 0x00000008; + takenPremiumExtendedReward = value; + return this; + } + + /** + * optional uint64 taken_premium_optional_reward = 8; + * @return whether the takenPremiumOptionalReward field is set + */ + public boolean hasTakenPremiumOptionalReward() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint64 taken_premium_optional_reward = 8; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumOptionalReward() { + bitField0_ &= ~0x00000010; + takenPremiumOptionalReward = 0L; + return this; + } + + /** + * optional uint64 taken_premium_optional_reward = 8; + * @return the takenPremiumOptionalReward + */ + public long getTakenPremiumOptionalReward() { + return takenPremiumOptionalReward; + } + + /** + * optional uint64 taken_premium_optional_reward = 8; + * @param value the takenPremiumOptionalReward to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumOptionalReward(final long value) { + bitField0_ |= 0x00000010; + takenPremiumOptionalReward = value; + return this; + } + + /** + * optional uint64 taken_free_reward = 9; + * @return whether the takenFreeReward field is set + */ + public boolean hasTakenFreeReward() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint64 taken_free_reward = 9; + * @return this + */ + public BattlePassInfoNotify clearTakenFreeReward() { + bitField0_ &= ~0x00000020; + takenFreeReward = 0L; + return this; + } + + /** + * optional uint64 taken_free_reward = 9; + * @return the takenFreeReward + */ + public long getTakenFreeReward() { + return takenFreeReward; + } + + /** + * optional uint64 taken_free_reward = 9; + * @param value the takenFreeReward to set + * @return this + */ + public BattlePassInfoNotify setTakenFreeReward(final long value) { + bitField0_ |= 0x00000020; + takenFreeReward = value; + return this; + } + + /** + * optional uint64 taken_free_extended_reward = 12; + * @return whether the takenFreeExtendedReward field is set + */ + public boolean hasTakenFreeExtendedReward() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint64 taken_free_extended_reward = 12; + * @return this + */ + public BattlePassInfoNotify clearTakenFreeExtendedReward() { + bitField0_ &= ~0x00000040; + takenFreeExtendedReward = 0L; + return this; + } + + /** + * optional uint64 taken_free_extended_reward = 12; + * @return the takenFreeExtendedReward + */ + public long getTakenFreeExtendedReward() { + return takenFreeExtendedReward; + } + + /** + * optional uint64 taken_free_extended_reward = 12; + * @param value the takenFreeExtendedReward to set + * @return this + */ + public BattlePassInfoNotify setTakenFreeExtendedReward(final long value) { + bitField0_ |= 0x00000040; + takenFreeExtendedReward = value; + return this; + } + + /** + * optional uint32 cur_week_add_exp_sum = 3; + * @return whether the curWeekAddExpSum field is set + */ + public boolean hasCurWeekAddExpSum() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 cur_week_add_exp_sum = 3; + * @return this + */ + public BattlePassInfoNotify clearCurWeekAddExpSum() { + bitField0_ &= ~0x00000080; + curWeekAddExpSum = 0; + return this; + } + + /** + * optional uint32 cur_week_add_exp_sum = 3; + * @return the curWeekAddExpSum + */ + public int getCurWeekAddExpSum() { + return curWeekAddExpSum; + } + + /** + * optional uint32 cur_week_add_exp_sum = 3; + * @param value the curWeekAddExpSum to set + * @return this + */ + public BattlePassInfoNotify setCurWeekAddExpSum(final int value) { + bitField0_ |= 0x00000080; + curWeekAddExpSum = value; + return this; + } + + /** + * optional uint32 cur_bp_id = 5; + * @return whether the curBpId field is set + */ + public boolean hasCurBpId() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 cur_bp_id = 5; + * @return this + */ + public BattlePassInfoNotify clearCurBpId() { + bitField0_ &= ~0x00000100; + curBpId = 0; + return this; + } + + /** + * optional uint32 cur_bp_id = 5; + * @return the curBpId + */ + public int getCurBpId() { + return curBpId; + } + + /** + * optional uint32 cur_bp_id = 5; + * @param value the curBpId to set + * @return this + */ + public BattlePassInfoNotify setCurBpId(final int value) { + bitField0_ |= 0x00000100; + curBpId = value; + return this; + } + + /** + * optional uint32 exp = 6; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional uint32 exp = 6; + * @return this + */ + public BattlePassInfoNotify clearExp() { + bitField0_ &= ~0x00000200; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 6; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 6; + * @param value the exp to set + * @return this + */ + public BattlePassInfoNotify setExp(final int value) { + bitField0_ |= 0x00000200; + exp = value; + return this; + } + + /** + * optional uint32 level = 10; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional uint32 level = 10; + * @return this + */ + public BattlePassInfoNotify clearLevel() { + bitField0_ &= ~0x00000400; + level = 0; + return this; + } + + /** + * optional uint32 level = 10; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 10; + * @param value the level to set + * @return this + */ + public BattlePassInfoNotify setLevel(final int value) { + bitField0_ |= 0x00000400; + level = value; + return this; + } + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; + * @return whether the bpTierType field is set + */ + public boolean hasBpTierType() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; + * @return this + */ + public BattlePassInfoNotify clearBpTierType() { + bitField0_ &= ~0x00000800; + bpTierType = 0; + return this; + } + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; + * @return the bpTierType + */ + public BpTierType getBpTierType() { + return BpTierType.forNumber(bpTierType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link BattlePassInfoNotify#getBpTierType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getBpTierTypeValue() { + return bpTierType; + } + + /** + * 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 BpTierType}. Setting an invalid value + * can cause {@link BattlePassInfoNotify#getBpTierType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public BattlePassInfoNotify setBpTierTypeValue(final int value) { + bitField0_ |= 0x00000800; + bpTierType = value; + return this; + } + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; + * @param value the bpTierType to set + * @return this + */ + public BattlePassInfoNotify setBpTierType(final BpTierType value) { + bitField0_ |= 0x00000800; + bpTierType = value.getNumber(); + return this; + } + + @Override + public BattlePassInfoNotify copyFrom(final BattlePassInfoNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + takenPremiumReward2 = other.takenPremiumReward2; + unkfield = other.unkfield; + takenPremiumReward1 = other.takenPremiumReward1; + takenPremiumExtendedReward = other.takenPremiumExtendedReward; + takenPremiumOptionalReward = other.takenPremiumOptionalReward; + takenFreeReward = other.takenFreeReward; + takenFreeExtendedReward = other.takenFreeExtendedReward; + curWeekAddExpSum = other.curWeekAddExpSum; + curBpId = other.curBpId; + exp = other.exp; + level = other.level; + bpTierType = other.bpTierType; + } + return this; + } + + @Override + public BattlePassInfoNotify mergeFrom(final BattlePassInfoNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTakenPremiumReward2()) { + setTakenPremiumReward2(other.takenPremiumReward2); + } + if (other.hasUnkfield()) { + setUnkfield(other.unkfield); + } + if (other.hasTakenPremiumReward1()) { + setTakenPremiumReward1(other.takenPremiumReward1); + } + if (other.hasTakenPremiumExtendedReward()) { + setTakenPremiumExtendedReward(other.takenPremiumExtendedReward); + } + if (other.hasTakenPremiumOptionalReward()) { + setTakenPremiumOptionalReward(other.takenPremiumOptionalReward); + } + if (other.hasTakenFreeReward()) { + setTakenFreeReward(other.takenFreeReward); + } + if (other.hasTakenFreeExtendedReward()) { + setTakenFreeExtendedReward(other.takenFreeExtendedReward); + } + if (other.hasCurWeekAddExpSum()) { + setCurWeekAddExpSum(other.curWeekAddExpSum); + } + if (other.hasCurBpId()) { + setCurBpId(other.curBpId); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasBpTierType()) { + setBpTierTypeValue(other.bpTierType); + } + return this; + } + + @Override + public BattlePassInfoNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + takenPremiumReward2 = 0L; + unkfield = 0L; + takenPremiumReward1 = 0L; + takenPremiumExtendedReward = 0L; + takenPremiumOptionalReward = 0L; + takenFreeReward = 0L; + takenFreeExtendedReward = 0L; + curWeekAddExpSum = 0; + curBpId = 0; + exp = 0; + level = 0; + bpTierType = 0; + return this; + } + + @Override + public BattlePassInfoNotify 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 BattlePassInfoNotify)) { + return false; + } + BattlePassInfoNotify other = (BattlePassInfoNotify) o; + return bitField0_ == other.bitField0_ + && (!hasTakenPremiumReward2() || takenPremiumReward2 == other.takenPremiumReward2) + && (!hasUnkfield() || unkfield == other.unkfield) + && (!hasTakenPremiumReward1() || takenPremiumReward1 == other.takenPremiumReward1) + && (!hasTakenPremiumExtendedReward() || takenPremiumExtendedReward == other.takenPremiumExtendedReward) + && (!hasTakenPremiumOptionalReward() || takenPremiumOptionalReward == other.takenPremiumOptionalReward) + && (!hasTakenFreeReward() || takenFreeReward == other.takenFreeReward) + && (!hasTakenFreeExtendedReward() || takenFreeExtendedReward == other.takenFreeExtendedReward) + && (!hasCurWeekAddExpSum() || curWeekAddExpSum == other.curWeekAddExpSum) + && (!hasCurBpId() || curBpId == other.curBpId) + && (!hasExp() || exp == other.exp) + && (!hasLevel() || level == other.level) + && (!hasBpTierType() || bpTierType == other.bpTierType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(takenPremiumReward2); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt64NoTag(unkfield); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt64NoTag(takenPremiumReward1); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt64NoTag(takenPremiumExtendedReward); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt64NoTag(takenPremiumOptionalReward); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt64NoTag(takenFreeReward); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt64NoTag(takenFreeExtendedReward); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(curWeekAddExpSum); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(curBpId); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 120); + output.writeEnumNoTag(bpTierType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward2); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(unkfield); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward1); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumOptionalReward); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeReward); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeExtendedReward); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curBpId); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(bpTierType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattlePassInfoNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // takenPremiumReward2 + takenPremiumReward2 = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // unkfield + unkfield = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // takenPremiumReward1 + takenPremiumReward1 = input.readUInt64(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // takenPremiumExtendedReward + takenPremiumExtendedReward = input.readUInt64(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // takenPremiumOptionalReward + takenPremiumOptionalReward = input.readUInt64(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // takenFreeReward + takenFreeReward = input.readUInt64(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // takenFreeExtendedReward + takenFreeExtendedReward = input.readUInt64(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // curWeekAddExpSum + curWeekAddExpSum = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // curBpId + curBpId = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // bpTierType + final int value = input.readInt32(); + if (BpTierType.forNumber(value) != null) { + bpTierType = value; + bitField0_ |= 0x00000800; + } + 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.takenPremiumReward2, takenPremiumReward2); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.unkfield, unkfield); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt64(FieldNames.takenPremiumReward1, takenPremiumReward1); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt64(FieldNames.takenPremiumExtendedReward, takenPremiumExtendedReward); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt64(FieldNames.takenPremiumOptionalReward, takenPremiumOptionalReward); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt64(FieldNames.takenFreeReward, takenFreeReward); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt64(FieldNames.takenFreeExtendedReward, takenFreeExtendedReward); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.curBpId, curBpId); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeEnum(FieldNames.bpTierType, bpTierType, BpTierType.converter()); + } + output.endObject(); + } + + @Override + public BattlePassInfoNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 226926899: + case 1195903363: { + if (input.isAtField(FieldNames.takenPremiumReward2)) { + if (!input.trySkipNullValue()) { + takenPremiumReward2 = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -247717048: { + if (input.isAtField(FieldNames.unkfield)) { + if (!input.trySkipNullValue()) { + unkfield = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 226926898: + case 1195903362: { + if (input.isAtField(FieldNames.takenPremiumReward1)) { + if (!input.trySkipNullValue()) { + takenPremiumReward1 = input.readUInt64(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1290021512: + case -2138632299: { + if (input.isAtField(FieldNames.takenPremiumExtendedReward)) { + if (!input.trySkipNullValue()) { + takenPremiumExtendedReward = input.readUInt64(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 736311903: + case 548161422: { + if (input.isAtField(FieldNames.takenPremiumOptionalReward)) { + if (!input.trySkipNullValue()) { + takenPremiumOptionalReward = input.readUInt64(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1065549026: + case 135671018: { + if (input.isAtField(FieldNames.takenFreeReward)) { + if (!input.trySkipNullValue()) { + takenFreeReward = input.readUInt64(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1116117893: + case 1257087386: { + if (input.isAtField(FieldNames.takenFreeExtendedReward)) { + if (!input.trySkipNullValue()) { + takenFreeExtendedReward = input.readUInt64(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 835771131: + case 26830815: { + if (input.isAtField(FieldNames.curWeekAddExpSum)) { + if (!input.trySkipNullValue()) { + curWeekAddExpSum = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1125519465: + case 110923757: { + if (input.isAtField(FieldNames.curBpId)) { + if (!input.trySkipNullValue()) { + curBpId = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -584657238: + case 779964614: { + if (input.isAtField(FieldNames.bpTierType)) { + if (!input.trySkipNullValue()) { + final BpTierType value = input.readEnum(BpTierType.converter()); + if (value != null) { + bpTierType = value.getNumber(); + bitField0_ |= 0x00000800; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattlePassInfoNotify clone() { + return new BattlePassInfoNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattlePassInfoNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattlePassInfoNotify(), data).checkInitialized(); + } + + public static BattlePassInfoNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattlePassInfoNotify(), input).checkInitialized(); + } + + public static BattlePassInfoNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattlePassInfoNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating BattlePassInfoNotify messages + */ + public static MessageFactory getFactory() { + return BattlePassInfoNotifyFactory.INSTANCE; + } + + /** + * Protobuf enum {@code BpTierType} + */ + public enum BpTierType implements ProtoEnum { /** * BP_TIER_TYPE_NONE = 0; */ - BP_TIER_TYPE_NONE(0), + BP_TIER_TYPE_NONE("BP_TIER_TYPE_NONE", 0), + /** * BP_TIER_TYPE_FREE = 1; */ - BP_TIER_TYPE_FREE(1), + BP_TIER_TYPE_FREE("BP_TIER_TYPE_FREE", 1), + /** * BP_TIER_TYPE_PREMIUM_1 = 2; */ - BP_TIER_TYPE_PREMIUM_1(2), + BP_TIER_TYPE_PREMIUM_1("BP_TIER_TYPE_PREMIUM_1", 2), + /** * BP_TIER_TYPE_PREMIUM_2 = 3; */ - BP_TIER_TYPE_PREMIUM_2(3), - UNRECOGNIZED(-1), - ; + BP_TIER_TYPE_PREMIUM_2("BP_TIER_TYPE_PREMIUM_2", 3); - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - BpTierType.class.getName()); - } /** * BP_TIER_TYPE_NONE = 0; */ public static final int BP_TIER_TYPE_NONE_VALUE = 0; + /** * BP_TIER_TYPE_FREE = 1; */ public static final int BP_TIER_TYPE_FREE_VALUE = 1; + /** * BP_TIER_TYPE_PREMIUM_1 = 2; */ public static final int BP_TIER_TYPE_PREMIUM_1_VALUE = 2; + /** * BP_TIER_TYPE_PREMIUM_2 = 3; */ public static final int BP_TIER_TYPE_PREMIUM_2_VALUE = 3; + private final String name; - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; + private final int number; + + private BpTierType(String name, int number) { + this.name = name; + this.number = number; } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. + * @return the string representation of enum entry */ - @java.lang.Deprecated - public static BpTierType valueOf(int value) { - return forNumber(value); + @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 BpTierTypeConverter.INSTANCE; } /** * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. + * @return The enum associated with the given numeric wire value, or null if unknown. */ public static BpTierType forNumber(int value) { - switch (value) { - case 0: return BP_TIER_TYPE_NONE; - case 1: return BP_TIER_TYPE_FREE; - case 2: return BP_TIER_TYPE_PREMIUM_1; - case 3: return BP_TIER_TYPE_PREMIUM_2; - default: return null; + return BpTierTypeConverter.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 BpTierType forNumberOr(int number, BpTierType other) { + BpTierType value = forNumber(number); + return value == null ? other : value; + } + + enum BpTierTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final BpTierType[] lookup = new BpTierType[4]; + + static { + lookup[0] = BP_TIER_TYPE_NONE; + lookup[1] = BP_TIER_TYPE_FREE; + lookup[2] = BP_TIER_TYPE_PREMIUM_1; + lookup[3] = BP_TIER_TYPE_PREMIUM_2; + } + + @Override + public final BpTierType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final BpTierType forName(final CharSequence value) { + if (value.length() == 17) { + if (ProtoUtil.isEqual("BP_TIER_TYPE_NONE", value)) { + return BP_TIER_TYPE_NONE; + } + if (ProtoUtil.isEqual("BP_TIER_TYPE_FREE", value)) { + return BP_TIER_TYPE_FREE; + } + } + if (value.length() == 22) { + if (ProtoUtil.isEqual("BP_TIER_TYPE_PREMIUM_1", value)) { + return BP_TIER_TYPE_PREMIUM_1; + } + if (ProtoUtil.isEqual("BP_TIER_TYPE_PREMIUM_2", value)) { + return BP_TIER_TYPE_PREMIUM_2; + } + } + return null; } } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BpTierType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BpTierType findValueByNumber(int number) { - return BpTierType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.getDescriptor().getEnumTypes().get(0); - } - - private static final BpTierType[] VALUES = values(); - - public static BpTierType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private BpTierType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:BattlePassInfoNotify.BpTierType) } - public static final int BP_TIER_TYPE_FIELD_NUMBER = 15; - private int bpTierType_ = 0; + private enum BattlePassInfoNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public BattlePassInfoNotify create() { + return BattlePassInfoNotify.newInstance(); + } + } + /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return The enum numeric value on the wire for bpTierType. + * Contains name constants used for serializing JSON */ - @java.lang.Override public int getBpTierTypeValue() { - return bpTierType_; + static class FieldNames { + static final FieldName takenPremiumReward2 = FieldName.forField("takenPremiumReward2", "taken_premium_reward2"); + + static final FieldName unkfield = FieldName.forField("unkfield"); + + static final FieldName takenPremiumReward1 = FieldName.forField("takenPremiumReward1", "taken_premium_reward1"); + + static final FieldName takenPremiumExtendedReward = FieldName.forField("takenPremiumExtendedReward", "taken_premium_extended_reward"); + + static final FieldName takenPremiumOptionalReward = FieldName.forField("takenPremiumOptionalReward", "taken_premium_optional_reward"); + + static final FieldName takenFreeReward = FieldName.forField("takenFreeReward", "taken_free_reward"); + + static final FieldName takenFreeExtendedReward = FieldName.forField("takenFreeExtendedReward", "taken_free_extended_reward"); + + static final FieldName curWeekAddExpSum = FieldName.forField("curWeekAddExpSum", "cur_week_add_exp_sum"); + + static final FieldName curBpId = FieldName.forField("curBpId", "cur_bp_id"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName bpTierType = FieldName.forField("bpTierType", "bp_tier_type"); } - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return The bpTierType. - */ - @java.lang.Override public emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType getBpTierType() { - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType result = emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType.forNumber(bpTierType_); - return result == null ? emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType.UNRECOGNIZED : result; - } - - public static final int TAKEN_FREE_REWARD_FIELD_NUMBER = 9; - private long takenFreeReward_ = 0L; - /** - * uint64 taken_free_reward = 9; - * @return The takenFreeReward. - */ - @java.lang.Override - public long getTakenFreeReward() { - return takenFreeReward_; - } - - public static final int TAKEN_PREMIUM_REWARD1_FIELD_NUMBER = 4; - private long takenPremiumReward1_ = 0L; - /** - * uint64 taken_premium_reward1 = 4; - * @return The takenPremiumReward1. - */ - @java.lang.Override - public long getTakenPremiumReward1() { - return takenPremiumReward1_; - } - - public static final int TAKEN_PREMIUM_REWARD2_FIELD_NUMBER = 1; - private long takenPremiumReward2_ = 0L; - /** - * uint64 taken_premium_reward2 = 1; - * @return The takenPremiumReward2. - */ - @java.lang.Override - public long getTakenPremiumReward2() { - return takenPremiumReward2_; - } - - public static final int TAKEN_PREMIUM_EXTENDED_REWARD_FIELD_NUMBER = 7; - private long takenPremiumExtendedReward_ = 0L; - /** - * uint64 taken_premium_extended_reward = 7; - * @return The takenPremiumExtendedReward. - */ - @java.lang.Override - public long getTakenPremiumExtendedReward() { - return takenPremiumExtendedReward_; - } - - public static final int UNKFIELD_FIELD_NUMBER = 2; - private long unkfield_ = 0L; - /** - * uint64 unkfield = 2; - * @return The unkfield. - */ - @java.lang.Override - public long getUnkfield() { - return unkfield_; - } - - public static final int TAKEN_PREMIUM_OPTIONAL_REWARD_FIELD_NUMBER = 8; - private long takenPremiumOptionalReward_ = 0L; - /** - * uint64 taken_premium_optional_reward = 8; - * @return The takenPremiumOptionalReward. - */ - @java.lang.Override - public long getTakenPremiumOptionalReward() { - return takenPremiumOptionalReward_; - } - - public static final int TAKEN_FREE_EXTENDED_REWARD_FIELD_NUMBER = 12; - private long takenFreeExtendedReward_ = 0L; - /** - * uint64 taken_free_extended_reward = 12; - * @return The takenFreeExtendedReward. - */ - @java.lang.Override - public long getTakenFreeExtendedReward() { - return takenFreeExtendedReward_; - } - - public static final int CUR_WEEK_ADD_EXP_SUM_FIELD_NUMBER = 3; - private int curWeekAddExpSum_ = 0; - /** - * uint32 cur_week_add_exp_sum = 3; - * @return The curWeekAddExpSum. - */ - @java.lang.Override - public int getCurWeekAddExpSum() { - return curWeekAddExpSum_; - } - - public static final int CUR_BP_ID_FIELD_NUMBER = 5; - private int curBpId_ = 0; - /** - * uint32 cur_bp_id = 5; - * @return The curBpId. - */ - @java.lang.Override - public int getCurBpId() { - return curBpId_; - } - - public static final int EXP_FIELD_NUMBER = 6; - private int exp_ = 0; - /** - * uint32 exp = 6; - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - - public static final int LEVEL_FIELD_NUMBER = 10; - private int level_ = 0; - /** - * uint32 level = 10; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (takenPremiumReward2_ != 0L) { - output.writeUInt64(1, takenPremiumReward2_); - } - if (unkfield_ != 0L) { - output.writeUInt64(2, unkfield_); - } - if (curWeekAddExpSum_ != 0) { - output.writeUInt32(3, curWeekAddExpSum_); - } - if (takenPremiumReward1_ != 0L) { - output.writeUInt64(4, takenPremiumReward1_); - } - if (curBpId_ != 0) { - output.writeUInt32(5, curBpId_); - } - if (exp_ != 0) { - output.writeUInt32(6, exp_); - } - if (takenPremiumExtendedReward_ != 0L) { - output.writeUInt64(7, takenPremiumExtendedReward_); - } - if (takenPremiumOptionalReward_ != 0L) { - output.writeUInt64(8, takenPremiumOptionalReward_); - } - if (takenFreeReward_ != 0L) { - output.writeUInt64(9, takenFreeReward_); - } - if (level_ != 0) { - output.writeUInt32(10, level_); - } - if (takenFreeExtendedReward_ != 0L) { - output.writeUInt64(12, takenFreeExtendedReward_); - } - if (bpTierType_ != emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType.BP_TIER_TYPE_NONE.getNumber()) { - output.writeEnum(15, bpTierType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (takenPremiumReward2_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, takenPremiumReward2_); - } - if (unkfield_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, unkfield_); - } - if (curWeekAddExpSum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, curWeekAddExpSum_); - } - if (takenPremiumReward1_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, takenPremiumReward1_); - } - if (curBpId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, curBpId_); - } - if (exp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, exp_); - } - if (takenPremiumExtendedReward_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, takenPremiumExtendedReward_); - } - if (takenPremiumOptionalReward_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, takenPremiumOptionalReward_); - } - if (takenFreeReward_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, takenFreeReward_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, level_); - } - if (takenFreeExtendedReward_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(12, takenFreeExtendedReward_); - } - if (bpTierType_ != emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType.BP_TIER_TYPE_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, bpTierType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify)) { - return super.equals(obj); - } - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify other = (emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify) obj; - - if (bpTierType_ != other.bpTierType_) return false; - if (getTakenFreeReward() - != other.getTakenFreeReward()) return false; - if (getTakenPremiumReward1() - != other.getTakenPremiumReward1()) return false; - if (getTakenPremiumReward2() - != other.getTakenPremiumReward2()) return false; - if (getTakenPremiumExtendedReward() - != other.getTakenPremiumExtendedReward()) return false; - if (getUnkfield() - != other.getUnkfield()) return false; - if (getTakenPremiumOptionalReward() - != other.getTakenPremiumOptionalReward()) return false; - if (getTakenFreeExtendedReward() - != other.getTakenFreeExtendedReward()) return false; - if (getCurWeekAddExpSum() - != other.getCurWeekAddExpSum()) return false; - if (getCurBpId() - != other.getCurBpId()) return false; - if (getExp() - != other.getExp()) return false; - if (getLevel() - != other.getLevel()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BP_TIER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + bpTierType_; - hash = (37 * hash) + TAKEN_FREE_REWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTakenFreeReward()); - hash = (37 * hash) + TAKEN_PREMIUM_REWARD1_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTakenPremiumReward1()); - hash = (37 * hash) + TAKEN_PREMIUM_REWARD2_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTakenPremiumReward2()); - hash = (37 * hash) + TAKEN_PREMIUM_EXTENDED_REWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTakenPremiumExtendedReward()); - hash = (37 * hash) + UNKFIELD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUnkfield()); - hash = (37 * hash) + TAKEN_PREMIUM_OPTIONAL_REWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTakenPremiumOptionalReward()); - hash = (37 * hash) + TAKEN_FREE_EXTENDED_REWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTakenFreeExtendedReward()); - hash = (37 * hash) + CUR_WEEK_ADD_EXP_SUM_FIELD_NUMBER; - hash = (53 * hash) + getCurWeekAddExpSum(); - hash = (37 * hash) + CUR_BP_ID_FIELD_NUMBER; - hash = (53 * hash) + getCurBpId(); - hash = (37 * hash) + EXP_FIELD_NUMBER; - hash = (53 * hash) + getExp(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code BattlePassInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:BattlePassInfoNotify) - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.internal_static_BattlePassInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.internal_static_BattlePassInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.class, emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.Builder.class); - } - - // Construct using emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bpTierType_ = 0; - takenFreeReward_ = 0L; - takenPremiumReward1_ = 0L; - takenPremiumReward2_ = 0L; - takenPremiumExtendedReward_ = 0L; - unkfield_ = 0L; - takenPremiumOptionalReward_ = 0L; - takenFreeExtendedReward_ = 0L; - curWeekAddExpSum_ = 0; - curBpId_ = 0; - exp_ = 0; - level_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.internal_static_BattlePassInfoNotify_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify getDefaultInstanceForType() { - return emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify build() { - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify buildPartial() { - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify result = new emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.bpTierType_ = bpTierType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.takenFreeReward_ = takenFreeReward_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.takenPremiumReward1_ = takenPremiumReward1_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.takenPremiumReward2_ = takenPremiumReward2_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.takenPremiumExtendedReward_ = takenPremiumExtendedReward_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.unkfield_ = unkfield_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.takenPremiumOptionalReward_ = takenPremiumOptionalReward_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.takenFreeExtendedReward_ = takenFreeExtendedReward_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.curWeekAddExpSum_ = curWeekAddExpSum_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.curBpId_ = curBpId_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.exp_ = exp_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.level_ = level_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify) { - return mergeFrom((emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify other) { - if (other == emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.getDefaultInstance()) return this; - if (other.bpTierType_ != 0) { - setBpTierTypeValue(other.getBpTierTypeValue()); - } - if (other.getTakenFreeReward() != 0L) { - setTakenFreeReward(other.getTakenFreeReward()); - } - if (other.getTakenPremiumReward1() != 0L) { - setTakenPremiumReward1(other.getTakenPremiumReward1()); - } - if (other.getTakenPremiumReward2() != 0L) { - setTakenPremiumReward2(other.getTakenPremiumReward2()); - } - if (other.getTakenPremiumExtendedReward() != 0L) { - setTakenPremiumExtendedReward(other.getTakenPremiumExtendedReward()); - } - if (other.getUnkfield() != 0L) { - setUnkfield(other.getUnkfield()); - } - if (other.getTakenPremiumOptionalReward() != 0L) { - setTakenPremiumOptionalReward(other.getTakenPremiumOptionalReward()); - } - if (other.getTakenFreeExtendedReward() != 0L) { - setTakenFreeExtendedReward(other.getTakenFreeExtendedReward()); - } - if (other.getCurWeekAddExpSum() != 0) { - setCurWeekAddExpSum(other.getCurWeekAddExpSum()); - } - if (other.getCurBpId() != 0) { - setCurBpId(other.getCurBpId()); - } - if (other.getExp() != 0) { - setExp(other.getExp()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - takenPremiumReward2_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 8 - case 16: { - unkfield_ = input.readUInt64(); - bitField0_ |= 0x00000020; - break; - } // case 16 - case 24: { - curWeekAddExpSum_ = input.readUInt32(); - bitField0_ |= 0x00000100; - break; - } // case 24 - case 32: { - takenPremiumReward1_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - curBpId_ = input.readUInt32(); - bitField0_ |= 0x00000200; - break; - } // case 40 - case 48: { - exp_ = input.readUInt32(); - bitField0_ |= 0x00000400; - break; - } // case 48 - case 56: { - takenPremiumExtendedReward_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 56 - case 64: { - takenPremiumOptionalReward_ = input.readUInt64(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: { - takenFreeReward_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 72 - case 80: { - level_ = input.readUInt32(); - bitField0_ |= 0x00000800; - break; - } // case 80 - case 96: { - takenFreeExtendedReward_ = input.readUInt64(); - bitField0_ |= 0x00000080; - break; - } // case 96 - case 120: { - bpTierType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 120 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int bpTierType_ = 0; - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return The enum numeric value on the wire for bpTierType. - */ - @java.lang.Override public int getBpTierTypeValue() { - return bpTierType_; - } - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @param value The enum numeric value on the wire for bpTierType to set. - * @return This builder for chaining. - */ - public Builder setBpTierTypeValue(int value) { - bpTierType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return The bpTierType. - */ - @java.lang.Override - public emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType getBpTierType() { - emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType result = emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType.forNumber(bpTierType_); - return result == null ? emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType.UNRECOGNIZED : result; - } - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @param value The bpTierType to set. - * @return This builder for chaining. - */ - public Builder setBpTierType(emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - bpTierType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return This builder for chaining. - */ - public Builder clearBpTierType() { - bitField0_ = (bitField0_ & ~0x00000001); - bpTierType_ = 0; - onChanged(); - return this; - } - - private long takenFreeReward_ ; - /** - * uint64 taken_free_reward = 9; - * @return The takenFreeReward. - */ - @java.lang.Override - public long getTakenFreeReward() { - return takenFreeReward_; - } - /** - * uint64 taken_free_reward = 9; - * @param value The takenFreeReward to set. - * @return This builder for chaining. - */ - public Builder setTakenFreeReward(long value) { - - takenFreeReward_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 taken_free_reward = 9; - * @return This builder for chaining. - */ - public Builder clearTakenFreeReward() { - bitField0_ = (bitField0_ & ~0x00000002); - takenFreeReward_ = 0L; - onChanged(); - return this; - } - - private long takenPremiumReward1_ ; - /** - * uint64 taken_premium_reward1 = 4; - * @return The takenPremiumReward1. - */ - @java.lang.Override - public long getTakenPremiumReward1() { - return takenPremiumReward1_; - } - /** - * uint64 taken_premium_reward1 = 4; - * @param value The takenPremiumReward1 to set. - * @return This builder for chaining. - */ - public Builder setTakenPremiumReward1(long value) { - - takenPremiumReward1_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 taken_premium_reward1 = 4; - * @return This builder for chaining. - */ - public Builder clearTakenPremiumReward1() { - bitField0_ = (bitField0_ & ~0x00000004); - takenPremiumReward1_ = 0L; - onChanged(); - return this; - } - - private long takenPremiumReward2_ ; - /** - * uint64 taken_premium_reward2 = 1; - * @return The takenPremiumReward2. - */ - @java.lang.Override - public long getTakenPremiumReward2() { - return takenPremiumReward2_; - } - /** - * uint64 taken_premium_reward2 = 1; - * @param value The takenPremiumReward2 to set. - * @return This builder for chaining. - */ - public Builder setTakenPremiumReward2(long value) { - - takenPremiumReward2_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 taken_premium_reward2 = 1; - * @return This builder for chaining. - */ - public Builder clearTakenPremiumReward2() { - bitField0_ = (bitField0_ & ~0x00000008); - takenPremiumReward2_ = 0L; - onChanged(); - return this; - } - - private long takenPremiumExtendedReward_ ; - /** - * uint64 taken_premium_extended_reward = 7; - * @return The takenPremiumExtendedReward. - */ - @java.lang.Override - public long getTakenPremiumExtendedReward() { - return takenPremiumExtendedReward_; - } - /** - * uint64 taken_premium_extended_reward = 7; - * @param value The takenPremiumExtendedReward to set. - * @return This builder for chaining. - */ - public Builder setTakenPremiumExtendedReward(long value) { - - takenPremiumExtendedReward_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 taken_premium_extended_reward = 7; - * @return This builder for chaining. - */ - public Builder clearTakenPremiumExtendedReward() { - bitField0_ = (bitField0_ & ~0x00000010); - takenPremiumExtendedReward_ = 0L; - onChanged(); - return this; - } - - private long unkfield_ ; - /** - * uint64 unkfield = 2; - * @return The unkfield. - */ - @java.lang.Override - public long getUnkfield() { - return unkfield_; - } - /** - * uint64 unkfield = 2; - * @param value The unkfield to set. - * @return This builder for chaining. - */ - public Builder setUnkfield(long value) { - - unkfield_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint64 unkfield = 2; - * @return This builder for chaining. - */ - public Builder clearUnkfield() { - bitField0_ = (bitField0_ & ~0x00000020); - unkfield_ = 0L; - onChanged(); - return this; - } - - private long takenPremiumOptionalReward_ ; - /** - * uint64 taken_premium_optional_reward = 8; - * @return The takenPremiumOptionalReward. - */ - @java.lang.Override - public long getTakenPremiumOptionalReward() { - return takenPremiumOptionalReward_; - } - /** - * uint64 taken_premium_optional_reward = 8; - * @param value The takenPremiumOptionalReward to set. - * @return This builder for chaining. - */ - public Builder setTakenPremiumOptionalReward(long value) { - - takenPremiumOptionalReward_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * uint64 taken_premium_optional_reward = 8; - * @return This builder for chaining. - */ - public Builder clearTakenPremiumOptionalReward() { - bitField0_ = (bitField0_ & ~0x00000040); - takenPremiumOptionalReward_ = 0L; - onChanged(); - return this; - } - - private long takenFreeExtendedReward_ ; - /** - * uint64 taken_free_extended_reward = 12; - * @return The takenFreeExtendedReward. - */ - @java.lang.Override - public long getTakenFreeExtendedReward() { - return takenFreeExtendedReward_; - } - /** - * uint64 taken_free_extended_reward = 12; - * @param value The takenFreeExtendedReward to set. - * @return This builder for chaining. - */ - public Builder setTakenFreeExtendedReward(long value) { - - takenFreeExtendedReward_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * uint64 taken_free_extended_reward = 12; - * @return This builder for chaining. - */ - public Builder clearTakenFreeExtendedReward() { - bitField0_ = (bitField0_ & ~0x00000080); - takenFreeExtendedReward_ = 0L; - onChanged(); - return this; - } - - private int curWeekAddExpSum_ ; - /** - * uint32 cur_week_add_exp_sum = 3; - * @return The curWeekAddExpSum. - */ - @java.lang.Override - public int getCurWeekAddExpSum() { - return curWeekAddExpSum_; - } - /** - * uint32 cur_week_add_exp_sum = 3; - * @param value The curWeekAddExpSum to set. - * @return This builder for chaining. - */ - public Builder setCurWeekAddExpSum(int value) { - - curWeekAddExpSum_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint32 cur_week_add_exp_sum = 3; - * @return This builder for chaining. - */ - public Builder clearCurWeekAddExpSum() { - bitField0_ = (bitField0_ & ~0x00000100); - curWeekAddExpSum_ = 0; - onChanged(); - return this; - } - - private int curBpId_ ; - /** - * uint32 cur_bp_id = 5; - * @return The curBpId. - */ - @java.lang.Override - public int getCurBpId() { - return curBpId_; - } - /** - * uint32 cur_bp_id = 5; - * @param value The curBpId to set. - * @return This builder for chaining. - */ - public Builder setCurBpId(int value) { - - curBpId_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * uint32 cur_bp_id = 5; - * @return This builder for chaining. - */ - public Builder clearCurBpId() { - bitField0_ = (bitField0_ & ~0x00000200); - curBpId_ = 0; - onChanged(); - return this; - } - - private int exp_ ; - /** - * uint32 exp = 6; - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - /** - * uint32 exp = 6; - * @param value The exp to set. - * @return This builder for chaining. - */ - public Builder setExp(int value) { - - exp_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * uint32 exp = 6; - * @return This builder for chaining. - */ - public Builder clearExp() { - bitField0_ = (bitField0_ & ~0x00000400); - exp_ = 0; - onChanged(); - return this; - } - - private int level_ ; - /** - * uint32 level = 10; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * uint32 level = 10; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * uint32 level = 10; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000800); - level_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:BattlePassInfoNotify) - } - - // @@protoc_insertion_point(class_scope:BattlePassInfoNotify) - private static final emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify(); - } - - public static emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BattlePassInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BattlePassInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_BattlePassInfoNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032BattlePassInfoNotify.proto\"\354\003\n\024BattleP" + - "assInfoNotify\0226\n\014bp_tier_type\030\017 \001(\0162 .Ba" + - "ttlePassInfoNotify.BpTierType\022\031\n\021taken_f" + - "ree_reward\030\t \001(\004\022\035\n\025taken_premium_reward" + - "1\030\004 \001(\004\022\035\n\025taken_premium_reward2\030\001 \001(\004\022%" + - "\n\035taken_premium_extended_reward\030\007 \001(\004\022\020\n" + - "\010unkfield\030\002 \001(\004\022%\n\035taken_premium_optiona" + - "l_reward\030\010 \001(\004\022\"\n\032taken_free_extended_re" + - "ward\030\014 \001(\004\022\034\n\024cur_week_add_exp_sum\030\003 \001(\r" + - "\022\021\n\tcur_bp_id\030\005 \001(\r\022\013\n\003exp\030\006 \001(\r\022\r\n\005leve" + - "l\030\n \001(\r\"r\n\nBpTierType\022\025\n\021BP_TIER_TYPE_NO" + - "NE\020\000\022\025\n\021BP_TIER_TYPE_FREE\020\001\022\032\n\026BP_TIER_T" + - "YPE_PREMIUM_1\020\002\022\032\n\026BP_TIER_TYPE_PREMIUM_" + - "2\020\003B\025\n\023emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_BattlePassInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_BattlePassInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_BattlePassInfoNotify_descriptor, - new java.lang.String[] { "BpTierType", "TakenFreeReward", "TakenPremiumReward1", "TakenPremiumReward2", "TakenPremiumExtendedReward", "Unkfield", "TakenPremiumOptionalReward", "TakenFreeExtendedReward", "CurWeekAddExpSum", "CurBpId", "Exp", "Level", }); - descriptor.resolveAllFeatures(); - } - - // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java index fc43b3d..5631213 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java @@ -1,566 +1,341 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClientMailAttachmentItem.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 ClientMailAttachmentItemOuterClass { - private ClientMailAttachmentItemOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - ClientMailAttachmentItemOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ClientMailAttachmentItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:ClientMailAttachmentItem) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 item_id = 8; - * @return The itemId. - */ - int getItemId(); - - /** - * uint32 mail_id = 1; - * @return The mailId. - */ - int getMailId(); - } /** * Protobuf type {@code ClientMailAttachmentItem} */ - public static final class ClientMailAttachmentItem extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ClientMailAttachmentItem) - ClientMailAttachmentItemOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - ClientMailAttachmentItem.class.getName()); - } - // Use ClientMailAttachmentItem.newBuilder() to construct. - private ClientMailAttachmentItem(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class ClientMailAttachmentItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 mail_id = 1; + */ + private int mailId; + + /** + * optional uint32 item_id = 8; + */ + private int itemId; + private ClientMailAttachmentItem() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.class, emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.Builder.class); - } - - public static final int ITEM_ID_FIELD_NUMBER = 8; - private int itemId_ = 0; /** - * uint32 item_id = 8; - * @return The itemId. + * @return a new empty instance of {@code ClientMailAttachmentItem} */ - @java.lang.Override - public int getItemId() { - return itemId_; + public static ClientMailAttachmentItem newInstance() { + return new ClientMailAttachmentItem(); } - public static final int MAIL_ID_FIELD_NUMBER = 1; - private int mailId_ = 0; /** - * uint32 mail_id = 1; - * @return The mailId. + * optional uint32 mail_id = 1; + * @return whether the mailId field is set + */ + public boolean hasMailId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 mail_id = 1; + * @return this + */ + public ClientMailAttachmentItem clearMailId() { + bitField0_ &= ~0x00000001; + mailId = 0; + return this; + } + + /** + * optional uint32 mail_id = 1; + * @return the mailId */ - @java.lang.Override public int getMailId() { - return mailId_; + return mailId; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 mail_id = 1; + * @param value the mailId to set + * @return this + */ + public ClientMailAttachmentItem setMailId(final int value) { + bitField0_ |= 0x00000001; + mailId = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mailId_ != 0) { - output.writeUInt32(1, mailId_); - } - if (itemId_ != 0) { - output.writeUInt32(8, itemId_); - } - getUnknownFields().writeTo(output); + /** + * optional uint32 item_id = 8; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000002) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * optional uint32 item_id = 8; + * @return this + */ + public ClientMailAttachmentItem clearItemId() { + bitField0_ &= ~0x00000002; + itemId = 0; + return this; + } - size = 0; - if (mailId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, mailId_); + /** + * optional uint32 item_id = 8; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 8; + * @param value the itemId to set + * @return this + */ + public ClientMailAttachmentItem setItemId(final int value) { + bitField0_ |= 0x00000002; + itemId = value; + return this; + } + + @Override + public ClientMailAttachmentItem copyFrom(final ClientMailAttachmentItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mailId = other.mailId; + itemId = other.itemId; } - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, itemId_); + return this; + } + + @Override + public ClientMailAttachmentItem mergeFrom(final ClientMailAttachmentItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMailId()) { + setMailId(other.mailId); + } + if (other.hasItemId()) { + setItemId(other.itemId); + } + return this; + } + + @Override + public ClientMailAttachmentItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mailId = 0; + itemId = 0; + return this; + } + + @Override + public ClientMailAttachmentItem 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 ClientMailAttachmentItem)) { + return false; + } + ClientMailAttachmentItem other = (ClientMailAttachmentItem) o; + return bitField0_ == other.bitField0_ + && (!hasMailId() || mailId == other.mailId) + && (!hasItemId() || itemId == other.itemId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(mailId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(itemId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mailId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public ClientMailAttachmentItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // mailId + mailId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // itemId + itemId = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.mailId, mailId); } - emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem other = (emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem) obj; - - if (getItemId() - != other.getItemId()) return false; - if (getMailId() - != other.getMailId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.itemId, itemId); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEM_ID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + MAIL_ID_FIELD_NUMBER; - hash = (53 * hash) + getMailId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + output.endObject(); } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ClientMailAttachmentItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ClientMailAttachmentItem) - emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.class, emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.Builder.class); - } - - // Construct using emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - itemId_ = 0; - mailId_ = 0; + @Override + public ClientMailAttachmentItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstanceForType() { - return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem build() { - emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem buildPartial() { - emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem result = new emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.itemId_ = itemId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.mailId_ = mailId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem) { - return mergeFrom((emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem other) { - if (other == emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.getDefaultInstance()) return this; - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getMailId() != 0) { - setMailId(other.getMailId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - mailId_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 64: { - itemId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1081574094: + case 830962851: { + if (input.isAtField(FieldNames.mailId)) { + if (!input.trySkipNullValue()) { + mailId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 64 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int itemId_ ; - /** - * uint32 item_id = 8; - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * uint32 item_id = 8; - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 item_id = 8; - * @return This builder for chaining. - */ - public Builder clearItemId() { - bitField0_ = (bitField0_ & ~0x00000001); - itemId_ = 0; - onChanged(); - return this; - } - - private int mailId_ ; - /** - * uint32 mail_id = 1; - * @return The mailId. - */ - @java.lang.Override - public int getMailId() { - return mailId_; - } - /** - * uint32 mail_id = 1; - * @param value The mailId to set. - * @return This builder for chaining. - */ - public Builder setMailId(int value) { - - mailId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 mail_id = 1; - * @return This builder for chaining. - */ - public Builder clearMailId() { - bitField0_ = (bitField0_ & ~0x00000002); - mailId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ClientMailAttachmentItem) - } - - // @@protoc_insertion_point(class_scope:ClientMailAttachmentItem) - private static final emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem(); - } - - public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientMailAttachmentItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public ClientMailAttachmentItem clone() { + return new ClientMailAttachmentItem().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static ClientMailAttachmentItem parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ClientMailAttachmentItem_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ClientMailAttachmentItem_fieldAccessorTable; + public static ClientMailAttachmentItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036ClientMailAttachmentItem.proto\"<\n\030Clie" + - "ntMailAttachmentItem\022\017\n\007item_id\030\010 \001(\r\022\017\n" + - "\007mail_id\030\001 \001(\rB\025\n\023emu.lunarcore.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ClientMailAttachmentItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ClientMailAttachmentItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ClientMailAttachmentItem_descriptor, - new java.lang.String[] { "ItemId", "MailId", }); - descriptor.resolveAllFeatures(); - } + public static ClientMailAttachmentItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating ClientMailAttachmentItem messages + */ + public static MessageFactory getFactory() { + return ClientMailAttachmentItemFactory.INSTANCE; + } + + private enum ClientMailAttachmentItemFactory implements MessageFactory { + INSTANCE; + + @Override + public ClientMailAttachmentItem create() { + return ClientMailAttachmentItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mailId = FieldName.forField("mailId", "mail_id"); + + static final FieldName itemId = FieldName.forField("itemId", "item_id"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java index dfdba42..7067200 100644 --- a/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java @@ -1,567 +1,341 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DiscardRelicCsReq.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 DiscardRelicCsReqOuterClass { - private DiscardRelicCsReqOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - DiscardRelicCsReqOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DiscardRelicCsReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:DiscardRelicCsReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 relic_unique_id = 13; - * @return The relicUniqueId. - */ - int getRelicUniqueId(); - - /** - * bool is_discard = 1; - * @return The isDiscard. - */ - boolean getIsDiscard(); - } /** * Protobuf type {@code DiscardRelicCsReq} */ - public static final class DiscardRelicCsReq extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:DiscardRelicCsReq) - DiscardRelicCsReqOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - DiscardRelicCsReq.class.getName()); - } - // Use DiscardRelicCsReq.newBuilder() to construct. - private DiscardRelicCsReq(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class DiscardRelicCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 relic_unique_id = 13; + */ + private int relicUniqueId; + + /** + * optional bool is_discard = 1; + */ + private boolean isDiscard; + private DiscardRelicCsReq() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.class, emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.Builder.class); - } - - public static final int RELIC_UNIQUE_ID_FIELD_NUMBER = 13; - private int relicUniqueId_ = 0; /** - * uint32 relic_unique_id = 13; - * @return The relicUniqueId. + * @return a new empty instance of {@code DiscardRelicCsReq} + */ + public static DiscardRelicCsReq newInstance() { + return new DiscardRelicCsReq(); + } + + /** + * optional uint32 relic_unique_id = 13; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 relic_unique_id = 13; + * @return this + */ + public DiscardRelicCsReq clearRelicUniqueId() { + bitField0_ &= ~0x00000001; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 13; + * @return the relicUniqueId */ - @java.lang.Override public int getRelicUniqueId() { - return relicUniqueId_; + return relicUniqueId; } - public static final int IS_DISCARD_FIELD_NUMBER = 1; - private boolean isDiscard_ = false; /** - * bool is_discard = 1; - * @return The isDiscard. + * optional uint32 relic_unique_id = 13; + * @param value the relicUniqueId to set + * @return this + */ + public DiscardRelicCsReq setRelicUniqueId(final int value) { + bitField0_ |= 0x00000001; + relicUniqueId = value; + return this; + } + + /** + * optional bool is_discard = 1; + * @return whether the isDiscard field is set + */ + public boolean hasIsDiscard() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_discard = 1; + * @return this + */ + public DiscardRelicCsReq clearIsDiscard() { + bitField0_ &= ~0x00000002; + isDiscard = false; + return this; + } + + /** + * optional bool is_discard = 1; + * @return the isDiscard */ - @java.lang.Override public boolean getIsDiscard() { - return isDiscard_; + return isDiscard; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional bool is_discard = 1; + * @param value the isDiscard to set + * @return this + */ + public DiscardRelicCsReq setIsDiscard(final boolean value) { + bitField0_ |= 0x00000002; + isDiscard = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isDiscard_ != false) { - output.writeBool(1, isDiscard_); + @Override + public DiscardRelicCsReq copyFrom(final DiscardRelicCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + relicUniqueId = other.relicUniqueId; + isDiscard = other.isDiscard; } - if (relicUniqueId_ != 0) { - output.writeUInt32(13, relicUniqueId_); - } - getUnknownFields().writeTo(output); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @Override + public DiscardRelicCsReq mergeFrom(final DiscardRelicCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + if (other.hasIsDiscard()) { + setIsDiscard(other.isDiscard); + } + return this; + } - size = 0; - if (isDiscard_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isDiscard_); + @Override + public DiscardRelicCsReq clear() { + if (isEmpty()) { + return this; } - if (relicUniqueId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, relicUniqueId_); + cachedSize = -1; + bitField0_ = 0; + relicUniqueId = 0; + isDiscard = false; + return this; + } + + @Override + public DiscardRelicCsReq 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 DiscardRelicCsReq)) { + return false; + } + DiscardRelicCsReq other = (DiscardRelicCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!hasIsDiscard() || isDiscard == other.isDiscard); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(isDiscard); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public DiscardRelicCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // relicUniqueId + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // isDiscard + isDiscard = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); } - emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq other = (emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq) obj; - - if (getRelicUniqueId() - != other.getRelicUniqueId()) return false; - if (getIsDiscard() - != other.getIsDiscard()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isDiscard, isDiscard); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RELIC_UNIQUE_ID_FIELD_NUMBER; - hash = (53 * hash) + getRelicUniqueId(); - hash = (37 * hash) + IS_DISCARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDiscard()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + output.endObject(); } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DiscardRelicCsReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:DiscardRelicCsReq) - emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.class, emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.Builder.class); - } - - // Construct using emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - relicUniqueId_ = 0; - isDiscard_ = false; + @Override + public DiscardRelicCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstanceForType() { - return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq build() { - emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq buildPartial() { - emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq result = new emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.relicUniqueId_ = relicUniqueId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.isDiscard_ = isDiscard_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq) { - return mergeFrom((emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq other) { - if (other == emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.getDefaultInstance()) return this; - if (other.getRelicUniqueId() != 0) { - setRelicUniqueId(other.getRelicUniqueId()); - } - if (other.getIsDiscard() != false) { - setIsDiscard(other.getIsDiscard()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - isDiscard_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 104: { - relicUniqueId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 104 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int relicUniqueId_ ; - /** - * uint32 relic_unique_id = 13; - * @return The relicUniqueId. - */ - @java.lang.Override - public int getRelicUniqueId() { - return relicUniqueId_; - } - /** - * uint32 relic_unique_id = 13; - * @param value The relicUniqueId to set. - * @return This builder for chaining. - */ - public Builder setRelicUniqueId(int value) { - - relicUniqueId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 relic_unique_id = 13; - * @return This builder for chaining. - */ - public Builder clearRelicUniqueId() { - bitField0_ = (bitField0_ & ~0x00000001); - relicUniqueId_ = 0; - onChanged(); - return this; - } - - private boolean isDiscard_ ; - /** - * bool is_discard = 1; - * @return The isDiscard. - */ - @java.lang.Override - public boolean getIsDiscard() { - return isDiscard_; - } - /** - * bool is_discard = 1; - * @param value The isDiscard to set. - * @return This builder for chaining. - */ - public Builder setIsDiscard(boolean value) { - - isDiscard_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool is_discard = 1; - * @return This builder for chaining. - */ - public Builder clearIsDiscard() { - bitField0_ = (bitField0_ & ~0x00000002); - isDiscard_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:DiscardRelicCsReq) - } - - // @@protoc_insertion_point(class_scope:DiscardRelicCsReq) - private static final emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq(); - } - - public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscardRelicCsReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + case 1091588116: + case -1123290487: { + if (input.isAtField(FieldNames.isDiscard)) { + if (!input.trySkipNullValue()) { + isDiscard = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public DiscardRelicCsReq clone() { + return new DiscardRelicCsReq().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static DiscardRelicCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DiscardRelicCsReq_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_DiscardRelicCsReq_fieldAccessorTable; + public static DiscardRelicCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027DiscardRelicCsReq.proto\"@\n\021DiscardReli" + - "cCsReq\022\027\n\017relic_unique_id\030\r \001(\r\022\022\n\nis_di" + - "scard\030\001 \001(\010B\025\n\023emu.lunarcore.protob\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DiscardRelicCsReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DiscardRelicCsReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_DiscardRelicCsReq_descriptor, - new java.lang.String[] { "RelicUniqueId", "IsDiscard", }); - descriptor.resolveAllFeatures(); - } + public static DiscardRelicCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating DiscardRelicCsReq messages + */ + public static MessageFactory getFactory() { + return DiscardRelicCsReqFactory.INSTANCE; + } + + private enum DiscardRelicCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DiscardRelicCsReq create() { + return DiscardRelicCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + + static final FieldName isDiscard = FieldName.forField("isDiscard", "is_discard"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java index f593953..d130314 100644 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java @@ -1,493 +1,260 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnableRogueTalentCsReq.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 EnableRogueTalentCsReqOuterClass { - private EnableRogueTalentCsReqOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - EnableRogueTalentCsReqOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EnableRogueTalentCsReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EnableRogueTalentCsReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 talent_id = 3; - * @return The talentId. - */ - int getTalentId(); - } /** * Protobuf type {@code EnableRogueTalentCsReq} */ - public static final class EnableRogueTalentCsReq extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:EnableRogueTalentCsReq) - EnableRogueTalentCsReqOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - EnableRogueTalentCsReq.class.getName()); - } - // Use EnableRogueTalentCsReq.newBuilder() to construct. - private EnableRogueTalentCsReq(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class EnableRogueTalentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 talent_id = 3; + */ + private int talentId; + private EnableRogueTalentCsReq() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.class, emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.Builder.class); - } - - public static final int TALENT_ID_FIELD_NUMBER = 3; - private int talentId_ = 0; /** - * uint32 talent_id = 3; - * @return The talentId. + * @return a new empty instance of {@code EnableRogueTalentCsReq} + */ + public static EnableRogueTalentCsReq newInstance() { + return new EnableRogueTalentCsReq(); + } + + /** + * optional uint32 talent_id = 3; + * @return whether the talentId field is set + */ + public boolean hasTalentId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 talent_id = 3; + * @return this + */ + public EnableRogueTalentCsReq clearTalentId() { + bitField0_ &= ~0x00000001; + talentId = 0; + return this; + } + + /** + * optional uint32 talent_id = 3; + * @return the talentId */ - @java.lang.Override public int getTalentId() { - return talentId_; + return talentId; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 talent_id = 3; + * @param value the talentId to set + * @return this + */ + public EnableRogueTalentCsReq setTalentId(final int value) { + bitField0_ |= 0x00000001; + talentId = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (talentId_ != 0) { - output.writeUInt32(3, talentId_); + @Override + public EnableRogueTalentCsReq copyFrom(final EnableRogueTalentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + talentId = other.talentId; } - getUnknownFields().writeTo(output); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (talentId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, talentId_); + @Override + public EnableRogueTalentCsReq mergeFrom(final EnableRogueTalentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTalentId()) { + setTalentId(other.talentId); + } + return this; + } + + @Override + public EnableRogueTalentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + talentId = 0; + return this; + } + + @Override + public EnableRogueTalentCsReq 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 EnableRogueTalentCsReq)) { + return false; + } + EnableRogueTalentCsReq other = (EnableRogueTalentCsReq) 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) 24); + output.writeUInt32NoTag(talentId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(talentId); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public EnableRogueTalentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.talentId, talentId); } - emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq other = (emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq) obj; - - if (getTalentId() - != other.getTalentId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + output.endObject(); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TALENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getTalentId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EnableRogueTalentCsReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:EnableRogueTalentCsReq) - emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.class, emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.Builder.class); - } - - // Construct using emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - talentId_ = 0; + @Override + public EnableRogueTalentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstanceForType() { - return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq build() { - emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq buildPartial() { - emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq result = new emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.talentId_ = talentId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq) { - return mergeFrom((emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq other) { - if (other == emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.getDefaultInstance()) return this; - if (other.getTalentId() != 0) { - setTalentId(other.getTalentId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - talentId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -615305433: + case -1894577842: { + if (input.isAtField(FieldNames.talentId)) { + if (!input.trySkipNullValue()) { + talentId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int talentId_ ; - /** - * uint32 talent_id = 3; - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - /** - * uint32 talent_id = 3; - * @param value The talentId to set. - * @return This builder for chaining. - */ - public Builder setTalentId(int value) { - - talentId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 talent_id = 3; - * @return This builder for chaining. - */ - public Builder clearTalentId() { - bitField0_ = (bitField0_ & ~0x00000001); - talentId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:EnableRogueTalentCsReq) - } - - // @@protoc_insertion_point(class_scope:EnableRogueTalentCsReq) - private static final emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq(); - } - - public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableRogueTalentCsReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public EnableRogueTalentCsReq clone() { + return new EnableRogueTalentCsReq().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static EnableRogueTalentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EnableRogueTalentCsReq_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_EnableRogueTalentCsReq_fieldAccessorTable; + public static EnableRogueTalentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034EnableRogueTalentCsReq.proto\"+\n\026Enable" + - "RogueTalentCsReq\022\021\n\ttalent_id\030\003 \001(\rB\025\n\023e" + - "mu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EnableRogueTalentCsReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EnableRogueTalentCsReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_EnableRogueTalentCsReq_descriptor, - new java.lang.String[] { "TalentId", }); - descriptor.resolveAllFeatures(); - } + public static EnableRogueTalentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating EnableRogueTalentCsReq messages + */ + public static MessageFactory getFactory() { + return EnableRogueTalentCsReqFactory.INSTANCE; + } + + private enum EnableRogueTalentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public EnableRogueTalentCsReq create() { + return EnableRogueTalentCsReq.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/EnableRogueTalentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java index a849230..f311b8f 100644 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java @@ -24,7 +24,7 @@ public final class EnableRogueTalentScRspOuterClass { private int retcode; /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; */ private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance(); @@ -76,7 +76,7 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * @return whether the talentInfo field is set */ public boolean hasTalentInfo() { @@ -84,7 +84,7 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * @return this */ public EnableRogueTalentScRsp clearTalentInfo() { @@ -94,7 +94,7 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_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. @@ -108,7 +108,7 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_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 @@ -122,7 +122,7 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 1; + * optional .RogueTalentInfo talent_info = 6; * @param value the talentInfo to set * @return this */ @@ -203,7 +203,7 @@ public final class EnableRogueTalentScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 50); output.writeMessageNoTag(talentInfo); } } @@ -232,11 +232,11 @@ public final class EnableRogueTalentScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 50) { break; } } - case 10: { + case 50: { // talentInfo input.readMessage(talentInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java index 49e3dd2..c9e6785 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetRogueHandbookDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; */ private int retcode; /** - * optional .RogueHandbookData handbook_info = 14; + * optional .RogueHandbookData handbook_info = 7; */ private final RogueHandbookDataOuterClass.RogueHandbookData handbookInfo = RogueHandbookDataOuterClass.RogueHandbookData.newInstance(); @@ -39,7 +39,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @return this */ public GetRogueHandbookDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional .RogueHandbookData handbook_info = 14; + * optional .RogueHandbookData handbook_info = 7; * @return whether the handbookInfo field is set */ public boolean hasHandbookInfo() { @@ -84,7 +84,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional .RogueHandbookData handbook_info = 14; + * optional .RogueHandbookData handbook_info = 7; * @return this */ public GetRogueHandbookDataScRsp clearHandbookInfo() { @@ -94,7 +94,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional .RogueHandbookData handbook_info = 14; + * optional .RogueHandbookData handbook_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. @@ -108,7 +108,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional .RogueHandbookData handbook_info = 14; + * optional .RogueHandbookData handbook_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 @@ -122,7 +122,7 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional .RogueHandbookData handbook_info = 14; + * optional .RogueHandbookData handbook_info = 7; * @param value the handbookInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class GetRogueHandbookDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 58); output.writeMessageNoTag(handbookInfo); } } @@ -227,16 +227,16 @@ public final class GetRogueHandbookDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 58) { break; } } - case 114: { + case 58: { // handbookInfo input.readMessage(handbookInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java index 96f4d2b..a42b760 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java @@ -1,705 +1,364 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetRogueScoreRewardInfoScRsp.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 GetRogueScoreRewardInfoScRspOuterClass { - private GetRogueScoreRewardInfoScRspOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - GetRogueScoreRewardInfoScRspOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetRogueScoreRewardInfoScRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetRogueScoreRewardInfoScRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * .RogueScoreRewardInfo score_reward_info = 13; - * @return Whether the scoreRewardInfo field is set. - */ - boolean hasScoreRewardInfo(); - /** - * .RogueScoreRewardInfo score_reward_info = 13; - * @return The scoreRewardInfo. - */ - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo(); - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder(); - - /** - * uint32 retcode = 4; - * @return The retcode. - */ - int getRetcode(); - } /** * Protobuf type {@code GetRogueScoreRewardInfoScRsp} */ - public static final class GetRogueScoreRewardInfoScRsp extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:GetRogueScoreRewardInfoScRsp) - GetRogueScoreRewardInfoScRspOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - GetRogueScoreRewardInfoScRsp.class.getName()); - } - // Use GetRogueScoreRewardInfoScRsp.newBuilder() to construct. - private GetRogueScoreRewardInfoScRsp(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class GetRogueScoreRewardInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 4; + */ + private int retcode; + + /** + * optional .RogueScoreRewardInfo score_reward_info = 13; + */ + private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + private GetRogueScoreRewardInfoScRsp() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor; + /** + * @return a new empty instance of {@code GetRogueScoreRewardInfoScRsp} + */ + public static GetRogueScoreRewardInfoScRsp newInstance() { + return new GetRogueScoreRewardInfoScRsp(); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.class, emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.Builder.class); + /** + * optional uint32 retcode = 4; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; } - private int bitField0_; - public static final int SCORE_REWARD_INFO_FIELD_NUMBER = 13; - private emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo_; /** - * .RogueScoreRewardInfo score_reward_info = 13; - * @return Whether the scoreRewardInfo field is set. + * optional uint32 retcode = 4; + * @return this */ - @java.lang.Override - public boolean hasScoreRewardInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - * @return The scoreRewardInfo. - */ - @java.lang.Override - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { - return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_; - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - @java.lang.Override - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder() { - return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_; + public GetRogueScoreRewardInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; } - public static final int RETCODE_FIELD_NUMBER = 4; - private int retcode_ = 0; /** - * uint32 retcode = 4; - * @return The retcode. + * optional uint32 retcode = 4; + * @return the retcode */ - @java.lang.Override public int getRetcode() { - return retcode_; + return retcode; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 retcode = 4; + * @param value the retcode to set + * @return this + */ + public GetRogueScoreRewardInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeUInt32(4, retcode_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(13, getScoreRewardInfo()); - } - getUnknownFields().writeTo(output); + /** + * optional .RogueScoreRewardInfo score_reward_info = 13; + * @return whether the scoreRewardInfo field is set + */ + public boolean hasScoreRewardInfo() { + return (bitField0_ & 0x00000002) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * optional .RogueScoreRewardInfo score_reward_info = 13; + * @return this + */ + public GetRogueScoreRewardInfoScRsp clearScoreRewardInfo() { + bitField0_ &= ~0x00000002; + scoreRewardInfo.clear(); + return this; + } - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, retcode_); + /** + * optional .RogueScoreRewardInfo score_reward_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 #getMutableScoreRewardInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { + return scoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo score_reward_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 RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreRewardInfo() { + bitField0_ |= 0x00000002; + return scoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo score_reward_info = 13; + * @param value the scoreRewardInfo to set + * @return this + */ + public GetRogueScoreRewardInfoScRsp setScoreRewardInfo( + final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + bitField0_ |= 0x00000002; + scoreRewardInfo.copyFrom(value); + return this; + } + + @Override + public GetRogueScoreRewardInfoScRsp copyFrom(final GetRogueScoreRewardInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + scoreRewardInfo.copyFrom(other.scoreRewardInfo); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getScoreRewardInfo()); + return this; + } + + @Override + public GetRogueScoreRewardInfoScRsp mergeFrom(final GetRogueScoreRewardInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasScoreRewardInfo()) { + getMutableScoreRewardInfo().mergeFrom(other.scoreRewardInfo); + } + return this; + } + + @Override + public GetRogueScoreRewardInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + scoreRewardInfo.clear(); + return this; + } + + @Override + public GetRogueScoreRewardInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scoreRewardInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetRogueScoreRewardInfoScRsp)) { + return false; + } + GetRogueScoreRewardInfoScRsp other = (GetRogueScoreRewardInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasScoreRewardInfo() || scoreRewardInfo.equals(other.scoreRewardInfo)); + } + + @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) 106); + output.writeMessageNoTag(scoreRewardInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scoreRewardInfo); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp)) { - return super.equals(obj); - } - emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp other = (emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp) obj; - - if (hasScoreRewardInfo() != other.hasScoreRewardInfo()) return false; - if (hasScoreRewardInfo()) { - if (!getScoreRewardInfo() - .equals(other.getScoreRewardInfo())) return false; - } - if (getRetcode() - != other.getRetcode()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasScoreRewardInfo()) { - hash = (37 * hash) + SCORE_REWARD_INFO_FIELD_NUMBER; - hash = (53 * hash) + getScoreRewardInfo().hashCode(); - } - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetRogueScoreRewardInfoScRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:GetRogueScoreRewardInfoScRsp) - emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.class, emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.Builder.class); - } - - // Construct using emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - getScoreRewardInfoFieldBuilder(); + @Override + @SuppressWarnings("fallthrough") + public GetRogueScoreRewardInfoScRsp 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 != 106) { + break; + } + } + case 106: { + // scoreRewardInfo + input.readMessage(scoreRewardInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scoreRewardInfo_ = null; - if (scoreRewardInfoBuilder_ != null) { - scoreRewardInfoBuilder_.dispose(); - scoreRewardInfoBuilder_ = null; - } - retcode_ = 0; + } + + @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.scoreRewardInfo, scoreRewardInfo); + } + output.endObject(); + } + + @Override + public GetRogueScoreRewardInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp getDefaultInstanceForType() { - return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp build() { - emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp buildPartial() { - emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp result = new emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scoreRewardInfo_ = scoreRewardInfoBuilder_ == null - ? scoreRewardInfo_ - : scoreRewardInfoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.retcode_ = retcode_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp) { - return mergeFrom((emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp other) { - if (other == emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.getDefaultInstance()) return this; - if (other.hasScoreRewardInfo()) { - mergeScoreRewardInfo(other.getScoreRewardInfo()); - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 32: { - retcode_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 32 - case 106: { - input.readMessage( - getScoreRewardInfoFieldBuilder().getBuilder(), - extensionRegistry); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo_; - private com.google.protobuf.SingleFieldBuilder< - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder> scoreRewardInfoBuilder_; - /** - * .RogueScoreRewardInfo score_reward_info = 13; - * @return Whether the scoreRewardInfo field is set. - */ - public boolean hasScoreRewardInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - * @return The scoreRewardInfo. - */ - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { - if (scoreRewardInfoBuilder_ == null) { - return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_; - } else { - return scoreRewardInfoBuilder_.getMessage(); - } - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - public Builder setScoreRewardInfo(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - if (scoreRewardInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + } + } else { + input.skipUnknownField(); + } + break; } - scoreRewardInfo_ = value; - } else { - scoreRewardInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - public Builder setScoreRewardInfo( - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder builderForValue) { - if (scoreRewardInfoBuilder_ == null) { - scoreRewardInfo_ = builderForValue.build(); - } else { - scoreRewardInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - public Builder mergeScoreRewardInfo(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - if (scoreRewardInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - scoreRewardInfo_ != null && - scoreRewardInfo_ != emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance()) { - getScoreRewardInfoBuilder().mergeFrom(value); - } else { - scoreRewardInfo_ = value; + case 672564399: + case 751191441: { + if (input.isAtField(FieldNames.scoreRewardInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(scoreRewardInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; } - } else { - scoreRewardInfoBuilder_.mergeFrom(value); - } - if (scoreRewardInfo_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - public Builder clearScoreRewardInfo() { - bitField0_ = (bitField0_ & ~0x00000001); - scoreRewardInfo_ = null; - if (scoreRewardInfoBuilder_ != null) { - scoreRewardInfoBuilder_.dispose(); - scoreRewardInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder getScoreRewardInfoBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getScoreRewardInfoFieldBuilder().getBuilder(); - } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder() { - if (scoreRewardInfoBuilder_ != null) { - return scoreRewardInfoBuilder_.getMessageOrBuilder(); - } else { - return scoreRewardInfo_ == null ? - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_; } } - /** - * .RogueScoreRewardInfo score_reward_info = 13; - */ - private com.google.protobuf.SingleFieldBuilder< - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder> - getScoreRewardInfoFieldBuilder() { - if (scoreRewardInfoBuilder_ == null) { - scoreRewardInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder>( - getScoreRewardInfo(), - getParentForChildren(), - isClean()); - scoreRewardInfo_ = null; - } - return scoreRewardInfoBuilder_; + input.endObject(); + return this; + } + + @Override + public GetRogueScoreRewardInfoScRsp clone() { + return new GetRogueScoreRewardInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetRogueScoreRewardInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), data).checkInitialized(); + } + + public static GetRogueScoreRewardInfoScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), input).checkInitialized(); + } + + public static GetRogueScoreRewardInfoScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetRogueScoreRewardInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetRogueScoreRewardInfoScRspFactory.INSTANCE; + } + + private enum GetRogueScoreRewardInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetRogueScoreRewardInfoScRsp create() { + return GetRogueScoreRewardInfoScRsp.newInstance(); } - - private int retcode_ ; - /** - * uint32 retcode = 4; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * uint32 retcode = 4; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 retcode = 4; - * @return This builder for chaining. - */ - public Builder clearRetcode() { - bitField0_ = (bitField0_ & ~0x00000002); - retcode_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:GetRogueScoreRewardInfoScRsp) } - // @@protoc_insertion_point(class_scope:GetRogueScoreRewardInfoScRsp) - private static final emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp(); + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName scoreRewardInfo = FieldName.forField("scoreRewardInfo", "score_reward_info"); } - - public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRogueScoreRewardInfoScRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetRogueScoreRewardInfoScRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"GetRogueScoreRewardInfoScRsp.proto\032\032Ro" + - "gueScoreRewardInfo.proto\"a\n\034GetRogueScor" + - "eRewardInfoScRsp\0220\n\021score_reward_info\030\r " + - "\001(\0132\025.RogueScoreRewardInfo\022\017\n\007retcode\030\004 " + - "\001(\rB\025\n\023emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.getDescriptor(), - }); - internal_static_GetRogueScoreRewardInfoScRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_GetRogueScoreRewardInfoScRsp_descriptor, - new java.lang.String[] { "ScoreRewardInfo", "Retcode", }); - descriptor.resolveAllFeatures(); - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java index 2f5046b..33f9e65 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetRogueTalentInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional .RogueTalentInfo talent_info = 6; + * optional .RogueTalentInfo talent_info = 10; */ private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 8; * @return this */ public GetRogueTalentInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .RogueTalentInfo talent_info = 10; * @return whether the talentInfo field is set */ public boolean hasTalentInfo() { @@ -84,7 +84,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .RogueTalentInfo talent_info = 10; * @return this */ public GetRogueTalentInfoScRsp clearTalentInfo() { @@ -94,7 +94,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .RogueTalentInfo talent_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. @@ -108,7 +108,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .RogueTalentInfo talent_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 @@ -122,7 +122,7 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .RogueTalentInfo talent_info = 10; * @param value the talentInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class GetRogueTalentInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 82); output.writeMessageNoTag(talentInfo); } } @@ -227,16 +227,16 @@ public final class GetRogueTalentInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 82) { break; } } - case 50: { + case 82: { // talentInfo input.readMessage(talentInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java index 82c562a..9a538df 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java @@ -1,566 +1,340 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MazeGroup.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 MazeGroupOuterClass { - private MazeGroupOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - MazeGroupOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MazeGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:MazeGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 group_id = 6; - * @return The groupId. - */ - int getGroupId(); - - /** - * int64 modify_time = 2; - * @return The modifyTime. - */ - long getModifyTime(); - } /** * Protobuf type {@code MazeGroup} */ - public static final class MazeGroup extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:MazeGroup) - MazeGroupOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - MazeGroup.class.getName()); - } - // Use MazeGroup.newBuilder() to construct. - private MazeGroup(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class MazeGroup extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 modify_time = 2; + */ + private long modifyTime; + + /** + * optional uint32 group_id = 6; + */ + private int groupId; + private MazeGroup() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.class, emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.Builder.class); - } - - public static final int GROUP_ID_FIELD_NUMBER = 6; - private int groupId_ = 0; /** - * uint32 group_id = 6; - * @return The groupId. + * @return a new empty instance of {@code MazeGroup} */ - @java.lang.Override - public int getGroupId() { - return groupId_; + public static MazeGroup newInstance() { + return new MazeGroup(); } - public static final int MODIFY_TIME_FIELD_NUMBER = 2; - private long modifyTime_ = 0L; /** - * int64 modify_time = 2; - * @return The modifyTime. + * optional int64 modify_time = 2; + * @return whether the modifyTime field is set + */ + public boolean hasModifyTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 modify_time = 2; + * @return this + */ + public MazeGroup clearModifyTime() { + bitField0_ &= ~0x00000001; + modifyTime = 0L; + return this; + } + + /** + * optional int64 modify_time = 2; + * @return the modifyTime */ - @java.lang.Override public long getModifyTime() { - return modifyTime_; + return modifyTime; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional int64 modify_time = 2; + * @param value the modifyTime to set + * @return this + */ + public MazeGroup setModifyTime(final long value) { + bitField0_ |= 0x00000001; + modifyTime = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (modifyTime_ != 0L) { - output.writeInt64(2, modifyTime_); - } - if (groupId_ != 0) { - output.writeUInt32(6, groupId_); - } - getUnknownFields().writeTo(output); + /** + * optional uint32 group_id = 6; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * optional uint32 group_id = 6; + * @return this + */ + public MazeGroup clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } - size = 0; - if (modifyTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, modifyTime_); + /** + * optional uint32 group_id = 6; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 6; + * @param value the groupId to set + * @return this + */ + public MazeGroup setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + @Override + public MazeGroup copyFrom(final MazeGroup other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + modifyTime = other.modifyTime; + groupId = other.groupId; } - if (groupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, groupId_); + return this; + } + + @Override + public MazeGroup mergeFrom(final MazeGroup other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasModifyTime()) { + setModifyTime(other.modifyTime); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + return this; + } + + @Override + public MazeGroup clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + modifyTime = 0L; + groupId = 0; + return this; + } + + @Override + public MazeGroup 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 MazeGroup)) { + return false; + } + MazeGroup other = (MazeGroup) o; + return bitField0_ == other.bitField0_ + && (!hasModifyTime() || modifyTime == other.modifyTime) + && (!hasGroupId() || groupId == other.groupId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(modifyTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(groupId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(modifyTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public MazeGroup mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // modifyTime + modifyTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // groupId + groupId = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.modifyTime, modifyTime); } - emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup other = (emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup) obj; - - if (getGroupId() - != other.getGroupId()) return false; - if (getModifyTime() - != other.getModifyTime()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId(); - hash = (37 * hash) + MODIFY_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getModifyTime()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + output.endObject(); } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MazeGroup} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:MazeGroup) - emu.lunarcore.proto.MazeGroupOuterClass.MazeGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.class, emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.Builder.class); - } - - // Construct using emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - groupId_ = 0; - modifyTime_ = 0L; + @Override + public MazeGroup mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup getDefaultInstanceForType() { - return emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup build() { - emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup buildPartial() { - emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup result = new emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.groupId_ = groupId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.modifyTime_ = modifyTime_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup) { - return mergeFrom((emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup other) { - if (other == emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.getDefaultInstance()) return this; - if (other.getGroupId() != 0) { - setGroupId(other.getGroupId()); - } - if (other.getModifyTime() != 0L) { - setModifyTime(other.getModifyTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - modifyTime_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 48: { - groupId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1211388583: + case -1091176654: { + if (input.isAtField(FieldNames.modifyTime)) { + if (!input.trySkipNullValue()) { + modifyTime = input.readInt64(); bitField0_ |= 0x00000001; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int groupId_ ; - /** - * uint32 group_id = 6; - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - /** - * uint32 group_id = 6; - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(int value) { - - groupId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 group_id = 6; - * @return This builder for chaining. - */ - public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000001); - groupId_ = 0; - onChanged(); - return this; - } - - private long modifyTime_ ; - /** - * int64 modify_time = 2; - * @return The modifyTime. - */ - @java.lang.Override - public long getModifyTime() { - return modifyTime_; - } - /** - * int64 modify_time = 2; - * @param value The modifyTime to set. - * @return This builder for chaining. - */ - public Builder setModifyTime(long value) { - - modifyTime_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 modify_time = 2; - * @return This builder for chaining. - */ - public Builder clearModifyTime() { - bitField0_ = (bitField0_ & ~0x00000002); - modifyTime_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:MazeGroup) - } - - // @@protoc_insertion_point(class_scope:MazeGroup) - private static final emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup(); - } - - public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MazeGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public MazeGroup clone() { + return new MazeGroup().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static MazeGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MazeGroup(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MazeGroup_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_MazeGroup_fieldAccessorTable; + public static MazeGroup parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017MazeGroup.proto\"2\n\tMazeGroup\022\020\n\010group_" + - "id\030\006 \001(\r\022\023\n\013modify_time\030\002 \001(\003B\025\n\023emu.lun" + - "arcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_MazeGroup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MazeGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_MazeGroup_descriptor, - new java.lang.String[] { "GroupId", "ModifyTime", }); - descriptor.resolveAllFeatures(); - } + public static MazeGroup parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating MazeGroup messages + */ + public static MessageFactory getFactory() { + return MazeGroupFactory.INSTANCE; + } + + private enum MazeGroupFactory implements MessageFactory { + INSTANCE; + + @Override + public MazeGroup create() { + return MazeGroup.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName modifyTime = FieldName.forField("modifyTime", "modify_time"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java index 0ed2ade..9ff62cd 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java @@ -1,641 +1,419 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerSettingInfo.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 PlayerSettingInfoOuterClass { - private PlayerSettingInfoOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - PlayerSettingInfoOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerSettingInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerSettingInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * bool NODHLKCFLPA = 8; - * @return The nODHLKCFLPA. - */ - boolean getNODHLKCFLPA(); - - /** - * bool HMAMGFJANGO = 14; - * @return The hMAMGFJANGO. - */ - boolean getHMAMGFJANGO(); - - /** - * bool PMBBEIEHBML = 7; - * @return The pMBBEIEHBML. - */ - boolean getPMBBEIEHBML(); - } /** * Protobuf type {@code PlayerSettingInfo} */ - public static final class PlayerSettingInfo extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:PlayerSettingInfo) - PlayerSettingInfoOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - PlayerSettingInfo.class.getName()); - } - // Use PlayerSettingInfo.newBuilder() to construct. - private PlayerSettingInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class PlayerSettingInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool PMBBEIEHBML = 7; + */ + private boolean pMBBEIEHBML; + + /** + * optional bool NODHLKCFLPA = 8; + */ + private boolean nODHLKCFLPA; + + /** + * optional bool HMAMGFJANGO = 14; + */ + private boolean hMAMGFJANGO; + private PlayerSettingInfo() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.PlayerSettingInfoOuterClass.internal_static_PlayerSettingInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.PlayerSettingInfoOuterClass.internal_static_PlayerSettingInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.class, emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.Builder.class); - } - - public static final int NODHLKCFLPA_FIELD_NUMBER = 8; - private boolean nODHLKCFLPA_ = false; /** - * bool NODHLKCFLPA = 8; - * @return The nODHLKCFLPA. + * @return a new empty instance of {@code PlayerSettingInfo} */ - @java.lang.Override - public boolean getNODHLKCFLPA() { - return nODHLKCFLPA_; + public static PlayerSettingInfo newInstance() { + return new PlayerSettingInfo(); } - public static final int HMAMGFJANGO_FIELD_NUMBER = 14; - private boolean hMAMGFJANGO_ = false; /** - * bool HMAMGFJANGO = 14; - * @return The hMAMGFJANGO. + * optional bool PMBBEIEHBML = 7; + * @return whether the pMBBEIEHBML field is set */ - @java.lang.Override - public boolean getHMAMGFJANGO() { - return hMAMGFJANGO_; + public boolean hasPMBBEIEHBML() { + return (bitField0_ & 0x00000001) != 0; } - public static final int PMBBEIEHBML_FIELD_NUMBER = 7; - private boolean pMBBEIEHBML_ = false; /** - * bool PMBBEIEHBML = 7; - * @return The pMBBEIEHBML. + * optional bool PMBBEIEHBML = 7; + * @return this + */ + public PlayerSettingInfo clearPMBBEIEHBML() { + bitField0_ &= ~0x00000001; + pMBBEIEHBML = false; + return this; + } + + /** + * optional bool PMBBEIEHBML = 7; + * @return the pMBBEIEHBML */ - @java.lang.Override public boolean getPMBBEIEHBML() { - return pMBBEIEHBML_; + return pMBBEIEHBML; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional bool PMBBEIEHBML = 7; + * @param value the pMBBEIEHBML to set + * @return this + */ + public PlayerSettingInfo setPMBBEIEHBML(final boolean value) { + bitField0_ |= 0x00000001; + pMBBEIEHBML = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pMBBEIEHBML_ != false) { - output.writeBool(7, pMBBEIEHBML_); - } - if (nODHLKCFLPA_ != false) { - output.writeBool(8, nODHLKCFLPA_); - } - if (hMAMGFJANGO_ != false) { - output.writeBool(14, hMAMGFJANGO_); - } - getUnknownFields().writeTo(output); + /** + * optional bool NODHLKCFLPA = 8; + * @return whether the nODHLKCFLPA field is set + */ + public boolean hasNODHLKCFLPA() { + return (bitField0_ & 0x00000002) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * optional bool NODHLKCFLPA = 8; + * @return this + */ + public PlayerSettingInfo clearNODHLKCFLPA() { + bitField0_ &= ~0x00000002; + nODHLKCFLPA = false; + return this; + } - size = 0; - if (pMBBEIEHBML_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, pMBBEIEHBML_); + /** + * optional bool NODHLKCFLPA = 8; + * @return the nODHLKCFLPA + */ + public boolean getNODHLKCFLPA() { + return nODHLKCFLPA; + } + + /** + * optional bool NODHLKCFLPA = 8; + * @param value the nODHLKCFLPA to set + * @return this + */ + public PlayerSettingInfo setNODHLKCFLPA(final boolean value) { + bitField0_ |= 0x00000002; + nODHLKCFLPA = value; + return this; + } + + /** + * optional bool HMAMGFJANGO = 14; + * @return whether the hMAMGFJANGO field is set + */ + public boolean hasHMAMGFJANGO() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool HMAMGFJANGO = 14; + * @return this + */ + public PlayerSettingInfo clearHMAMGFJANGO() { + bitField0_ &= ~0x00000004; + hMAMGFJANGO = false; + return this; + } + + /** + * optional bool HMAMGFJANGO = 14; + * @return the hMAMGFJANGO + */ + public boolean getHMAMGFJANGO() { + return hMAMGFJANGO; + } + + /** + * optional bool HMAMGFJANGO = 14; + * @param value the hMAMGFJANGO to set + * @return this + */ + public PlayerSettingInfo setHMAMGFJANGO(final boolean value) { + bitField0_ |= 0x00000004; + hMAMGFJANGO = value; + return this; + } + + @Override + public PlayerSettingInfo copyFrom(final PlayerSettingInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pMBBEIEHBML = other.pMBBEIEHBML; + nODHLKCFLPA = other.nODHLKCFLPA; + hMAMGFJANGO = other.hMAMGFJANGO; } - if (nODHLKCFLPA_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, nODHLKCFLPA_); + return this; + } + + @Override + public PlayerSettingInfo mergeFrom(final PlayerSettingInfo other) { + if (other.isEmpty()) { + return this; } - if (hMAMGFJANGO_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, hMAMGFJANGO_); + cachedSize = -1; + if (other.hasPMBBEIEHBML()) { + setPMBBEIEHBML(other.pMBBEIEHBML); + } + if (other.hasNODHLKCFLPA()) { + setNODHLKCFLPA(other.nODHLKCFLPA); + } + if (other.hasHMAMGFJANGO()) { + setHMAMGFJANGO(other.hMAMGFJANGO); + } + return this; + } + + @Override + public PlayerSettingInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pMBBEIEHBML = false; + nODHLKCFLPA = false; + hMAMGFJANGO = false; + return this; + } + + @Override + public PlayerSettingInfo 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 PlayerSettingInfo)) { + return false; + } + PlayerSettingInfo other = (PlayerSettingInfo) o; + return bitField0_ == other.bitField0_ + && (!hasPMBBEIEHBML() || pMBBEIEHBML == other.pMBBEIEHBML) + && (!hasNODHLKCFLPA() || nODHLKCFLPA == other.nODHLKCFLPA) + && (!hasHMAMGFJANGO() || hMAMGFJANGO == other.hMAMGFJANGO); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(pMBBEIEHBML); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(nODHLKCFLPA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(hMAMGFJANGO); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public PlayerSettingInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // pMBBEIEHBML + pMBBEIEHBML = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // nODHLKCFLPA + nODHLKCFLPA = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // hMAMGFJANGO + hMAMGFJANGO = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.pMBBEIEHBML, pMBBEIEHBML); } - emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo other = (emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo) obj; - - if (getNODHLKCFLPA() - != other.getNODHLKCFLPA()) return false; - if (getHMAMGFJANGO() - != other.getHMAMGFJANGO()) return false; - if (getPMBBEIEHBML() - != other.getPMBBEIEHBML()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.nODHLKCFLPA, nODHLKCFLPA); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODHLKCFLPA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNODHLKCFLPA()); - hash = (37 * hash) + HMAMGFJANGO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHMAMGFJANGO()); - hash = (37 * hash) + PMBBEIEHBML_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPMBBEIEHBML()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerSettingInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerSettingInfo) - emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.PlayerSettingInfoOuterClass.internal_static_PlayerSettingInfo_descriptor; + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.hMAMGFJANGO, hMAMGFJANGO); } + output.endObject(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.PlayerSettingInfoOuterClass.internal_static_PlayerSettingInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.class, emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.Builder.class); - } - - // Construct using emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - nODHLKCFLPA_ = false; - hMAMGFJANGO_ = false; - pMBBEIEHBML_ = false; + @Override + public PlayerSettingInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.PlayerSettingInfoOuterClass.internal_static_PlayerSettingInfo_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo getDefaultInstanceForType() { - return emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo build() { - emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo buildPartial() { - emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo result = new emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nODHLKCFLPA_ = nODHLKCFLPA_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.hMAMGFJANGO_ = hMAMGFJANGO_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pMBBEIEHBML_ = pMBBEIEHBML_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo) { - return mergeFrom((emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo other) { - if (other == emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo.getDefaultInstance()) return this; - if (other.getNODHLKCFLPA() != false) { - setNODHLKCFLPA(other.getNODHLKCFLPA()); - } - if (other.getHMAMGFJANGO() != false) { - setHMAMGFJANGO(other.getHMAMGFJANGO()); - } - if (other.getPMBBEIEHBML() != false) { - setPMBBEIEHBML(other.getPMBBEIEHBML()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 56: { - pMBBEIEHBML_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 56 - case 64: { - nODHLKCFLPA_ = input.readBool(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -976297443: { + if (input.isAtField(FieldNames.pMBBEIEHBML)) { + if (!input.trySkipNullValue()) { + pMBBEIEHBML = input.readBool(); bitField0_ |= 0x00000001; - break; - } // case 64 - case 112: { - hMAMGFJANGO_ = input.readBool(); + } + } else { + input.skipUnknownField(); + } + break; + } + case -1845450698: { + if (input.isAtField(FieldNames.nODHLKCFLPA)) { + if (!input.trySkipNullValue()) { + nODHLKCFLPA = input.readBool(); bitField0_ |= 0x00000002; - break; - } // case 112 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean nODHLKCFLPA_ ; - /** - * bool NODHLKCFLPA = 8; - * @return The nODHLKCFLPA. - */ - @java.lang.Override - public boolean getNODHLKCFLPA() { - return nODHLKCFLPA_; - } - /** - * bool NODHLKCFLPA = 8; - * @param value The nODHLKCFLPA to set. - * @return This builder for chaining. - */ - public Builder setNODHLKCFLPA(boolean value) { - - nODHLKCFLPA_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool NODHLKCFLPA = 8; - * @return This builder for chaining. - */ - public Builder clearNODHLKCFLPA() { - bitField0_ = (bitField0_ & ~0x00000001); - nODHLKCFLPA_ = false; - onChanged(); - return this; - } - - private boolean hMAMGFJANGO_ ; - /** - * bool HMAMGFJANGO = 14; - * @return The hMAMGFJANGO. - */ - @java.lang.Override - public boolean getHMAMGFJANGO() { - return hMAMGFJANGO_; - } - /** - * bool HMAMGFJANGO = 14; - * @param value The hMAMGFJANGO to set. - * @return This builder for chaining. - */ - public Builder setHMAMGFJANGO(boolean value) { - - hMAMGFJANGO_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool HMAMGFJANGO = 14; - * @return This builder for chaining. - */ - public Builder clearHMAMGFJANGO() { - bitField0_ = (bitField0_ & ~0x00000002); - hMAMGFJANGO_ = false; - onChanged(); - return this; - } - - private boolean pMBBEIEHBML_ ; - /** - * bool PMBBEIEHBML = 7; - * @return The pMBBEIEHBML. - */ - @java.lang.Override - public boolean getPMBBEIEHBML() { - return pMBBEIEHBML_; - } - /** - * bool PMBBEIEHBML = 7; - * @param value The pMBBEIEHBML to set. - * @return This builder for chaining. - */ - public Builder setPMBBEIEHBML(boolean value) { - - pMBBEIEHBML_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool PMBBEIEHBML = 7; - * @return This builder for chaining. - */ - public Builder clearPMBBEIEHBML() { - bitField0_ = (bitField0_ & ~0x00000004); - pMBBEIEHBML_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:PlayerSettingInfo) - } - - // @@protoc_insertion_point(class_scope:PlayerSettingInfo) - private static final emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo(); - } - - public static emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerSettingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + case 1711483535: { + if (input.isAtField(FieldNames.hMAMGFJANGO)) { + if (!input.trySkipNullValue()) { + hMAMGFJANGO = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public PlayerSettingInfo clone() { + return new PlayerSettingInfo().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static PlayerSettingInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerSettingInfo(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerSettingInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_PlayerSettingInfo_fieldAccessorTable; + public static PlayerSettingInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSettingInfo(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PlayerSettingInfo.proto\"R\n\021PlayerSetti" + - "ngInfo\022\023\n\013NODHLKCFLPA\030\010 \001(\010\022\023\n\013HMAMGFJAN" + - "GO\030\016 \001(\010\022\023\n\013PMBBEIEHBML\030\007 \001(\010B\025\n\023emu.lun" + - "arcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerSettingInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerSettingInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_PlayerSettingInfo_descriptor, - new java.lang.String[] { "NODHLKCFLPA", "HMAMGFJANGO", "PMBBEIEHBML", }); - descriptor.resolveAllFeatures(); - } + public static PlayerSettingInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSettingInfo(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating PlayerSettingInfo messages + */ + public static MessageFactory getFactory() { + return PlayerSettingInfoFactory.INSTANCE; + } + + private enum PlayerSettingInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerSettingInfo create() { + return PlayerSettingInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pMBBEIEHBML = FieldName.forField("PMBBEIEHBML"); + + static final FieldName nODHLKCFLPA = FieldName.forField("NODHLKCFLPA"); + + static final FieldName hMAMGFJANGO = FieldName.forField("HMAMGFJANGO"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java index 8ab0317..0abce79 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java @@ -20,9 +20,19 @@ public final class RogueAchivedMiracleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .RogueMiracle rogue_miracle_list = 13; + * optional uint32 unlock_slot_count = 9; */ - private final RepeatedMessage rogueMiracleList = RepeatedMessage.newEmptyInstance(RogueMiracleOuterClass.RogueMiracle.getFactory()); + private int unlockSlotCount; + + /** + * optional uint32 total_slot_count = 10; + */ + private int totalSlotCount; + + /** + * repeated .RogueMiracle miracle_list = 14; + */ + private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(RogueMiracleOuterClass.RogueMiracle.getFactory()); private RogueAchivedMiracleInfo() { } @@ -35,39 +45,113 @@ public final class RogueAchivedMiracleInfoOuterClass { } /** - * repeated .RogueMiracle rogue_miracle_list = 13; - * @return whether the rogueMiracleList field is set + * optional uint32 unlock_slot_count = 9; + * @return whether the unlockSlotCount field is set */ - public boolean hasRogueMiracleList() { + public boolean hasUnlockSlotCount() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated .RogueMiracle rogue_miracle_list = 13; + * optional uint32 unlock_slot_count = 9; * @return this */ - public RogueAchivedMiracleInfo clearRogueMiracleList() { + public RogueAchivedMiracleInfo clearUnlockSlotCount() { bitField0_ &= ~0x00000001; - rogueMiracleList.clear(); + unlockSlotCount = 0; return this; } /** - * repeated .RogueMiracle rogue_miracle_list = 13; + * optional uint32 unlock_slot_count = 9; + * @return the unlockSlotCount + */ + public int getUnlockSlotCount() { + return unlockSlotCount; + } + + /** + * optional uint32 unlock_slot_count = 9; + * @param value the unlockSlotCount to set + * @return this + */ + public RogueAchivedMiracleInfo setUnlockSlotCount(final int value) { + bitField0_ |= 0x00000001; + unlockSlotCount = value; + return this; + } + + /** + * optional uint32 total_slot_count = 10; + * @return whether the totalSlotCount field is set + */ + public boolean hasTotalSlotCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 total_slot_count = 10; + * @return this + */ + public RogueAchivedMiracleInfo clearTotalSlotCount() { + bitField0_ &= ~0x00000002; + totalSlotCount = 0; + return this; + } + + /** + * optional uint32 total_slot_count = 10; + * @return the totalSlotCount + */ + public int getTotalSlotCount() { + return totalSlotCount; + } + + /** + * optional uint32 total_slot_count = 10; + * @param value the totalSlotCount to set + * @return this + */ + public RogueAchivedMiracleInfo setTotalSlotCount(final int value) { + bitField0_ |= 0x00000002; + totalSlotCount = value; + return this; + } + + /** + * repeated .RogueMiracle miracle_list = 14; + * @return whether the miracleList field is set + */ + public boolean hasMiracleList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueMiracle miracle_list = 14; + * @return this + */ + public RogueAchivedMiracleInfo clearMiracleList() { + bitField0_ &= ~0x00000004; + miracleList.clear(); + return this; + } + + /** + * repeated .RogueMiracle miracle_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 #getMutableRogueMiracleList()} if you want to modify it. + * Use {@link #getMutableMiracleList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getRogueMiracleList() { - return rogueMiracleList; + public RepeatedMessage getMiracleList() { + return miracleList; } /** - * repeated .RogueMiracle rogue_miracle_list = 13; + * repeated .RogueMiracle miracle_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 @@ -75,32 +159,31 @@ public final class RogueAchivedMiracleInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableRogueMiracleList() { - bitField0_ |= 0x00000001; - return rogueMiracleList; + public RepeatedMessage getMutableMiracleList() { + bitField0_ |= 0x00000004; + return miracleList; } /** - * repeated .RogueMiracle rogue_miracle_list = 13; - * @param value the rogueMiracleList to add + * repeated .RogueMiracle miracle_list = 14; + * @param value the miracleList to add * @return this */ - public RogueAchivedMiracleInfo addRogueMiracleList( - final RogueMiracleOuterClass.RogueMiracle value) { - bitField0_ |= 0x00000001; - rogueMiracleList.add(value); + public RogueAchivedMiracleInfo addMiracleList(final RogueMiracleOuterClass.RogueMiracle value) { + bitField0_ |= 0x00000004; + miracleList.add(value); return this; } /** - * repeated .RogueMiracle rogue_miracle_list = 13; - * @param values the rogueMiracleList to add + * repeated .RogueMiracle miracle_list = 14; + * @param values the miracleList to add * @return this */ - public RogueAchivedMiracleInfo addAllRogueMiracleList( + public RogueAchivedMiracleInfo addAllMiracleList( final RogueMiracleOuterClass.RogueMiracle... values) { - bitField0_ |= 0x00000001; - rogueMiracleList.addAll(values); + bitField0_ |= 0x00000004; + miracleList.addAll(values); return this; } @@ -109,7 +192,9 @@ public final class RogueAchivedMiracleInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueMiracleList.copyFrom(other.rogueMiracleList); + unlockSlotCount = other.unlockSlotCount; + totalSlotCount = other.totalSlotCount; + miracleList.copyFrom(other.miracleList); } return this; } @@ -120,8 +205,14 @@ public final class RogueAchivedMiracleInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRogueMiracleList()) { - getMutableRogueMiracleList().addAll(other.rogueMiracleList); + if (other.hasUnlockSlotCount()) { + setUnlockSlotCount(other.unlockSlotCount); + } + if (other.hasTotalSlotCount()) { + setTotalSlotCount(other.totalSlotCount); + } + if (other.hasMiracleList()) { + getMutableMiracleList().addAll(other.miracleList); } return this; } @@ -133,7 +224,9 @@ public final class RogueAchivedMiracleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueMiracleList.clear(); + unlockSlotCount = 0; + totalSlotCount = 0; + miracleList.clear(); return this; } @@ -144,7 +237,7 @@ public final class RogueAchivedMiracleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueMiracleList.clearQuick(); + miracleList.clearQuick(); return this; } @@ -158,15 +251,25 @@ public final class RogueAchivedMiracleInfoOuterClass { } RogueAchivedMiracleInfo other = (RogueAchivedMiracleInfo) o; return bitField0_ == other.bitField0_ - && (!hasRogueMiracleList() || rogueMiracleList.equals(other.rogueMiracleList)); + && (!hasUnlockSlotCount() || unlockSlotCount == other.unlockSlotCount) + && (!hasTotalSlotCount() || totalSlotCount == other.totalSlotCount) + && (!hasMiracleList() || miracleList.equals(other.miracleList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < rogueMiracleList.length(); i++) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(rogueMiracleList.get(i)); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(unlockSlotCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(totalSlotCount); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < miracleList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(miracleList.get(i)); } } } @@ -175,7 +278,13 @@ public final class RogueAchivedMiracleInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * rogueMiracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueMiracleList); + size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockSlotCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalSlotCount); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); } return size; } @@ -187,10 +296,28 @@ public final class RogueAchivedMiracleInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { - // rogueMiracleList - tag = input.readRepeatedMessage(rogueMiracleList, tag); + case 72: { + // unlockSlotCount + unlockSlotCount = input.readUInt32(); bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // totalSlotCount + totalSlotCount = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // miracleList + tag = input.readRepeatedMessage(miracleList, tag); + bitField0_ |= 0x00000004; if (tag != 0) { break; } @@ -213,7 +340,13 @@ public final class RogueAchivedMiracleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.rogueMiracleList, rogueMiracleList); + output.writeUInt32(FieldNames.unlockSlotCount, unlockSlotCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.totalSlotCount, totalSlotCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.miracleList, miracleList); } output.endObject(); } @@ -225,11 +358,11 @@ public final class RogueAchivedMiracleInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -452426123: - case 1925521905: { - if (input.isAtField(FieldNames.rogueMiracleList)) { + case 1641951949: + case 1265281897: { + if (input.isAtField(FieldNames.unlockSlotCount)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueMiracleList); + unlockSlotCount = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -237,6 +370,30 @@ public final class RogueAchivedMiracleInfoOuterClass { } break; } + case 1481291469: + case 1489383273: { + if (input.isAtField(FieldNames.totalSlotCount)) { + if (!input.trySkipNullValue()) { + totalSlotCount = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 760391855: + case 2114937772: { + if (input.isAtField(FieldNames.miracleList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(miracleList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -290,7 +447,11 @@ public final class RogueAchivedMiracleInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueMiracleList = FieldName.forField("rogueMiracleList", "rogue_miracle_list"); + static final FieldName unlockSlotCount = FieldName.forField("unlockSlotCount", "unlock_slot_count"); + + static final FieldName totalSlotCount = FieldName.forField("totalSlotCount", "total_slot_count"); + + static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java index f442d04..fa9f34b 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java @@ -21,57 +21,56 @@ public final class RogueBuffSelectInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 roll_buff_times = 2; - */ - private int rollBuffTimes; - - /** - * optional uint32 select_buff_source_hint = 4; + * optional uint32 select_buff_source_hint = 1; */ private int selectBuffSourceHint; /** - * optional uint32 select_buff_source_total_count = 5; + * optional uint32 select_buff_source_total_count = 2; */ private int selectBuffSourceTotalCount; /** - * optional uint32 select_buff_source_cur_count = 7; + *
+     *  bool show_handbook_hint = 8; removed???
+     * 
+ * + * optional uint32 roll_buff_times = 7; */ - private int selectBuffSourceCurCount; + private int rollBuffTimes; /** - * optional uint32 roll_buff_max_times = 15; + * optional uint32 roll_buff_max_times = 10; */ private int rollBuffMaxTimes; /** - * optional .RogueCommonBuffSelectSource source = 3; + * optional uint32 select_buff_source_cur_count = 15; + */ + private int selectBuffSourceCurCount; + + /** + * optional .RogueCommonBuffSelectSource source = 6; */ private int source; /** - * optional bool show_handbook_hint = 8; - */ - private boolean showHandbookHint; - - /** - * optional bool can_roll = 10; + * optional bool can_roll = 13; */ private boolean canRoll; /** - * optional .ItemCostList roll_buffs_cost = 11; + * optional .ItemCostList roll_buffs_cost = 9; */ private final ItemCostListOuterClass.ItemCostList rollBuffsCost = ItemCostListOuterClass.ItemCostList.newInstance(); /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_list = 5; */ private final RepeatedInt selectFirstBuffList = RepeatedInt.newEmptyInstance(); /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_list = 12; */ private final RepeatedMessage mazeBuffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); @@ -86,62 +85,25 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional uint32 roll_buff_times = 2; - * @return whether the rollBuffTimes field is set + * optional uint32 select_buff_source_hint = 1; + * @return whether the selectBuffSourceHint field is set */ - public boolean hasRollBuffTimes() { + public boolean hasSelectBuffSourceHint() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 roll_buff_times = 2; - * @return this - */ - public RogueBuffSelectInfo clearRollBuffTimes() { - bitField0_ &= ~0x00000001; - rollBuffTimes = 0; - return this; - } - - /** - * optional uint32 roll_buff_times = 2; - * @return the rollBuffTimes - */ - public int getRollBuffTimes() { - return rollBuffTimes; - } - - /** - * optional uint32 roll_buff_times = 2; - * @param value the rollBuffTimes to set - * @return this - */ - public RogueBuffSelectInfo setRollBuffTimes(final int value) { - bitField0_ |= 0x00000001; - rollBuffTimes = value; - return this; - } - - /** - * optional uint32 select_buff_source_hint = 4; - * @return whether the selectBuffSourceHint field is set - */ - public boolean hasSelectBuffSourceHint() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 select_buff_source_hint = 4; + * optional uint32 select_buff_source_hint = 1; * @return this */ public RogueBuffSelectInfo clearSelectBuffSourceHint() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; selectBuffSourceHint = 0; return this; } /** - * optional uint32 select_buff_source_hint = 4; + * optional uint32 select_buff_source_hint = 1; * @return the selectBuffSourceHint */ public int getSelectBuffSourceHint() { @@ -149,36 +111,36 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional uint32 select_buff_source_hint = 4; + * optional uint32 select_buff_source_hint = 1; * @param value the selectBuffSourceHint to set * @return this */ public RogueBuffSelectInfo setSelectBuffSourceHint(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; selectBuffSourceHint = value; return this; } /** - * optional uint32 select_buff_source_total_count = 5; + * optional uint32 select_buff_source_total_count = 2; * @return whether the selectBuffSourceTotalCount field is set */ public boolean hasSelectBuffSourceTotalCount() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 select_buff_source_total_count = 5; + * optional uint32 select_buff_source_total_count = 2; * @return this */ public RogueBuffSelectInfo clearSelectBuffSourceTotalCount() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; selectBuffSourceTotalCount = 0; return this; } /** - * optional uint32 select_buff_source_total_count = 5; + * optional uint32 select_buff_source_total_count = 2; * @return the selectBuffSourceTotalCount */ public int getSelectBuffSourceTotalCount() { @@ -186,73 +148,89 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional uint32 select_buff_source_total_count = 5; + * optional uint32 select_buff_source_total_count = 2; * @param value the selectBuffSourceTotalCount to set * @return this */ public RogueBuffSelectInfo setSelectBuffSourceTotalCount(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; selectBuffSourceTotalCount = value; return this; } /** - * optional uint32 select_buff_source_cur_count = 7; - * @return whether the selectBuffSourceCurCount field is set + *
+     *  bool show_handbook_hint = 8; removed???
+     * 
+ * + * optional uint32 roll_buff_times = 7; + * @return whether the rollBuffTimes field is set */ - public boolean hasSelectBuffSourceCurCount() { + public boolean hasRollBuffTimes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  bool show_handbook_hint = 8; removed???
+     * 
+ * + * optional uint32 roll_buff_times = 7; + * @return this + */ + public RogueBuffSelectInfo clearRollBuffTimes() { + bitField0_ &= ~0x00000004; + rollBuffTimes = 0; + return this; + } + + /** + *
+     *  bool show_handbook_hint = 8; removed???
+     * 
+ * + * optional uint32 roll_buff_times = 7; + * @return the rollBuffTimes + */ + public int getRollBuffTimes() { + return rollBuffTimes; + } + + /** + *
+     *  bool show_handbook_hint = 8; removed???
+     * 
+ * + * optional uint32 roll_buff_times = 7; + * @param value the rollBuffTimes to set + * @return this + */ + public RogueBuffSelectInfo setRollBuffTimes(final int value) { + bitField0_ |= 0x00000004; + rollBuffTimes = value; + return this; + } + + /** + * optional uint32 roll_buff_max_times = 10; + * @return whether the rollBuffMaxTimes field is set + */ + public boolean hasRollBuffMaxTimes() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 select_buff_source_cur_count = 7; - * @return this - */ - public RogueBuffSelectInfo clearSelectBuffSourceCurCount() { - bitField0_ &= ~0x00000008; - selectBuffSourceCurCount = 0; - return this; - } - - /** - * optional uint32 select_buff_source_cur_count = 7; - * @return the selectBuffSourceCurCount - */ - public int getSelectBuffSourceCurCount() { - return selectBuffSourceCurCount; - } - - /** - * optional uint32 select_buff_source_cur_count = 7; - * @param value the selectBuffSourceCurCount to set - * @return this - */ - public RogueBuffSelectInfo setSelectBuffSourceCurCount(final int value) { - bitField0_ |= 0x00000008; - selectBuffSourceCurCount = value; - return this; - } - - /** - * optional uint32 roll_buff_max_times = 15; - * @return whether the rollBuffMaxTimes field is set - */ - public boolean hasRollBuffMaxTimes() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 roll_buff_max_times = 15; + * optional uint32 roll_buff_max_times = 10; * @return this */ public RogueBuffSelectInfo clearRollBuffMaxTimes() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; rollBuffMaxTimes = 0; return this; } /** - * optional uint32 roll_buff_max_times = 15; + * optional uint32 roll_buff_max_times = 10; * @return the rollBuffMaxTimes */ public int getRollBuffMaxTimes() { @@ -260,18 +238,55 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional uint32 roll_buff_max_times = 15; + * optional uint32 roll_buff_max_times = 10; * @param value the rollBuffMaxTimes to set * @return this */ public RogueBuffSelectInfo setRollBuffMaxTimes(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; rollBuffMaxTimes = value; return this; } /** - * optional .RogueCommonBuffSelectSource source = 3; + * optional uint32 select_buff_source_cur_count = 15; + * @return whether the selectBuffSourceCurCount field is set + */ + public boolean hasSelectBuffSourceCurCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 select_buff_source_cur_count = 15; + * @return this + */ + public RogueBuffSelectInfo clearSelectBuffSourceCurCount() { + bitField0_ &= ~0x00000010; + selectBuffSourceCurCount = 0; + return this; + } + + /** + * optional uint32 select_buff_source_cur_count = 15; + * @return the selectBuffSourceCurCount + */ + public int getSelectBuffSourceCurCount() { + return selectBuffSourceCurCount; + } + + /** + * optional uint32 select_buff_source_cur_count = 15; + * @param value the selectBuffSourceCurCount to set + * @return this + */ + public RogueBuffSelectInfo setSelectBuffSourceCurCount(final int value) { + bitField0_ |= 0x00000010; + selectBuffSourceCurCount = value; + return this; + } + + /** + * optional .RogueCommonBuffSelectSource source = 6; * @return whether the source field is set */ public boolean hasSource() { @@ -279,7 +294,7 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional .RogueCommonBuffSelectSource source = 3; + * optional .RogueCommonBuffSelectSource source = 6; * @return this */ public RogueBuffSelectInfo clearSource() { @@ -289,7 +304,7 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional .RogueCommonBuffSelectSource source = 3; + * optional .RogueCommonBuffSelectSource source = 6; * @return the source */ public RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource getSource() { @@ -322,7 +337,7 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional .RogueCommonBuffSelectSource source = 3; + * optional .RogueCommonBuffSelectSource source = 6; * @param value the source to set * @return this */ @@ -334,62 +349,25 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional bool show_handbook_hint = 8; - * @return whether the showHandbookHint field is set + * optional bool can_roll = 13; + * @return whether the canRoll field is set */ - public boolean hasShowHandbookHint() { + public boolean hasCanRoll() { return (bitField0_ & 0x00000040) != 0; } /** - * optional bool show_handbook_hint = 8; - * @return this - */ - public RogueBuffSelectInfo clearShowHandbookHint() { - bitField0_ &= ~0x00000040; - showHandbookHint = false; - return this; - } - - /** - * optional bool show_handbook_hint = 8; - * @return the showHandbookHint - */ - public boolean getShowHandbookHint() { - return showHandbookHint; - } - - /** - * optional bool show_handbook_hint = 8; - * @param value the showHandbookHint to set - * @return this - */ - public RogueBuffSelectInfo setShowHandbookHint(final boolean value) { - bitField0_ |= 0x00000040; - showHandbookHint = value; - return this; - } - - /** - * optional bool can_roll = 10; - * @return whether the canRoll field is set - */ - public boolean hasCanRoll() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional bool can_roll = 10; + * optional bool can_roll = 13; * @return this */ public RogueBuffSelectInfo clearCanRoll() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000040; canRoll = false; return this; } /** - * optional bool can_roll = 10; + * optional bool can_roll = 13; * @return the canRoll */ public boolean getCanRoll() { @@ -397,36 +375,36 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional bool can_roll = 10; + * optional bool can_roll = 13; * @param value the canRoll to set * @return this */ public RogueBuffSelectInfo setCanRoll(final boolean value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; canRoll = value; return this; } /** - * optional .ItemCostList roll_buffs_cost = 11; + * optional .ItemCostList roll_buffs_cost = 9; * @return whether the rollBuffsCost field is set */ public boolean hasRollBuffsCost() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000080) != 0; } /** - * optional .ItemCostList roll_buffs_cost = 11; + * optional .ItemCostList roll_buffs_cost = 9; * @return this */ public RogueBuffSelectInfo clearRollBuffsCost() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000080; rollBuffsCost.clear(); return this; } /** - * optional .ItemCostList roll_buffs_cost = 11; + * optional .ItemCostList roll_buffs_cost = 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. @@ -440,7 +418,7 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * optional .ItemCostList roll_buffs_cost = 11; + * optional .ItemCostList roll_buffs_cost = 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 @@ -449,41 +427,41 @@ public final class RogueBuffSelectInfoOuterClass { * @return internal storage object for modifications */ public ItemCostListOuterClass.ItemCostList getMutableRollBuffsCost() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return rollBuffsCost; } /** - * optional .ItemCostList roll_buffs_cost = 11; + * optional .ItemCostList roll_buffs_cost = 9; * @param value the rollBuffsCost to set * @return this */ public RogueBuffSelectInfo setRollBuffsCost(final ItemCostListOuterClass.ItemCostList value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; rollBuffsCost.copyFrom(value); return this; } /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_list = 5; * @return whether the selectFirstBuffList field is set */ public boolean hasSelectFirstBuffList() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000100) != 0; } /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_list = 5; * @return this */ public RogueBuffSelectInfo clearSelectFirstBuffList() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000100; selectFirstBuffList.clear(); return this; } /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_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. @@ -497,7 +475,7 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_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 @@ -506,52 +484,52 @@ public final class RogueBuffSelectInfoOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableSelectFirstBuffList() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; return selectFirstBuffList; } /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_list = 5; * @param value the selectFirstBuffList to add * @return this */ public RogueBuffSelectInfo addSelectFirstBuffList(final int value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; selectFirstBuffList.add(value); return this; } /** - * repeated uint32 select_first_buff_list = 12; + * repeated uint32 select_first_buff_list = 5; * @param values the selectFirstBuffList to add * @return this */ public RogueBuffSelectInfo addAllSelectFirstBuffList(final int... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; selectFirstBuffList.addAll(values); return this; } /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_list = 12; * @return whether the mazeBuffList field is set */ public boolean hasMazeBuffList() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000200) != 0; } /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_list = 12; * @return this */ public RogueBuffSelectInfo clearMazeBuffList() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000200; mazeBuffList.clear(); return this; } /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_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. @@ -565,7 +543,7 @@ public final class RogueBuffSelectInfoOuterClass { } /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_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 @@ -574,28 +552,28 @@ public final class RogueBuffSelectInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMazeBuffList() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; return mazeBuffList; } /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_list = 12; * @param value the mazeBuffList to add * @return this */ public RogueBuffSelectInfo addMazeBuffList(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; mazeBuffList.add(value); return this; } /** - * repeated .RogueBuff maze_buff_list = 14; + * repeated .RogueBuff maze_buff_list = 12; * @param values the mazeBuffList to add * @return this */ public RogueBuffSelectInfo addAllMazeBuffList(final RogueBuffOuterClass.RogueBuff... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; mazeBuffList.addAll(values); return this; } @@ -605,13 +583,12 @@ public final class RogueBuffSelectInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rollBuffTimes = other.rollBuffTimes; selectBuffSourceHint = other.selectBuffSourceHint; selectBuffSourceTotalCount = other.selectBuffSourceTotalCount; - selectBuffSourceCurCount = other.selectBuffSourceCurCount; + rollBuffTimes = other.rollBuffTimes; rollBuffMaxTimes = other.rollBuffMaxTimes; + selectBuffSourceCurCount = other.selectBuffSourceCurCount; source = other.source; - showHandbookHint = other.showHandbookHint; canRoll = other.canRoll; rollBuffsCost.copyFrom(other.rollBuffsCost); selectFirstBuffList.copyFrom(other.selectFirstBuffList); @@ -626,27 +603,24 @@ public final class RogueBuffSelectInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRollBuffTimes()) { - setRollBuffTimes(other.rollBuffTimes); - } if (other.hasSelectBuffSourceHint()) { setSelectBuffSourceHint(other.selectBuffSourceHint); } if (other.hasSelectBuffSourceTotalCount()) { setSelectBuffSourceTotalCount(other.selectBuffSourceTotalCount); } - if (other.hasSelectBuffSourceCurCount()) { - setSelectBuffSourceCurCount(other.selectBuffSourceCurCount); + if (other.hasRollBuffTimes()) { + setRollBuffTimes(other.rollBuffTimes); } if (other.hasRollBuffMaxTimes()) { setRollBuffMaxTimes(other.rollBuffMaxTimes); } + if (other.hasSelectBuffSourceCurCount()) { + setSelectBuffSourceCurCount(other.selectBuffSourceCurCount); + } if (other.hasSource()) { setSourceValue(other.source); } - if (other.hasShowHandbookHint()) { - setShowHandbookHint(other.showHandbookHint); - } if (other.hasCanRoll()) { setCanRoll(other.canRoll); } @@ -669,13 +643,12 @@ public final class RogueBuffSelectInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rollBuffTimes = 0; selectBuffSourceHint = 0; selectBuffSourceTotalCount = 0; - selectBuffSourceCurCount = 0; + rollBuffTimes = 0; rollBuffMaxTimes = 0; + selectBuffSourceCurCount = 0; source = 0; - showHandbookHint = false; canRoll = false; rollBuffsCost.clear(); selectFirstBuffList.clear(); @@ -706,13 +679,12 @@ public final class RogueBuffSelectInfoOuterClass { } RogueBuffSelectInfo other = (RogueBuffSelectInfo) o; return bitField0_ == other.bitField0_ - && (!hasRollBuffTimes() || rollBuffTimes == other.rollBuffTimes) && (!hasSelectBuffSourceHint() || selectBuffSourceHint == other.selectBuffSourceHint) && (!hasSelectBuffSourceTotalCount() || selectBuffSourceTotalCount == other.selectBuffSourceTotalCount) - && (!hasSelectBuffSourceCurCount() || selectBuffSourceCurCount == other.selectBuffSourceCurCount) + && (!hasRollBuffTimes() || rollBuffTimes == other.rollBuffTimes) && (!hasRollBuffMaxTimes() || rollBuffMaxTimes == other.rollBuffMaxTimes) + && (!hasSelectBuffSourceCurCount() || selectBuffSourceCurCount == other.selectBuffSourceCurCount) && (!hasSource() || source == other.source) - && (!hasShowHandbookHint() || showHandbookHint == other.showHandbookHint) && (!hasCanRoll() || canRoll == other.canRoll) && (!hasRollBuffsCost() || rollBuffsCost.equals(other.rollBuffsCost)) && (!hasSelectFirstBuffList() || selectFirstBuffList.equals(other.selectFirstBuffList)) @@ -722,50 +694,46 @@ public final class RogueBuffSelectInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(rollBuffTimes); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(selectBuffSourceHint); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); output.writeUInt32NoTag(selectBuffSourceTotalCount); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(selectBuffSourceCurCount); + output.writeUInt32NoTag(rollBuffTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(rollBuffMaxTimes); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(rollBuffMaxTimes); + output.writeUInt32NoTag(selectBuffSourceCurCount); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 48); output.writeEnumNoTag(source); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 64); - output.writeBoolNoTag(showHandbookHint); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeBoolNoTag(canRoll); } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 90); + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 74); output.writeMessageNoTag(rollBuffsCost); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < selectFirstBuffList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(selectFirstBuffList.array()[i]); } } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < mazeBuffList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 98); output.writeMessageNoTag(mazeBuffList.get(i)); } } @@ -775,19 +743,19 @@ public final class RogueBuffSelectInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffTimes); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceHint); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceTotalCount); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffTimes); + } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceCurCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffMaxTimes); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffMaxTimes); + size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceCurCount); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(source); @@ -796,15 +764,12 @@ public final class RogueBuffSelectInfoOuterClass { size += 2; } if ((bitField0_ & 0x00000080) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000100) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rollBuffsCost); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000100) != 0) { size += (1 * selectFirstBuffList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(selectFirstBuffList); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000200) != 0) { size += (1 * mazeBuffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeBuffList); } return size; @@ -817,36 +782,36 @@ public final class RogueBuffSelectInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // rollBuffTimes - rollBuffTimes = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { + case 8: { // selectBuffSourceHint selectBuffSourceHint = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 16) { break; } } - case 40: { + case 16: { // selectBuffSourceTotalCount selectBuffSourceTotalCount = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 56) { break; } } case 56: { - // selectBuffSourceCurCount - selectBuffSourceCurCount = input.readUInt32(); + // rollBuffTimes + rollBuffTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // rollBuffMaxTimes + rollBuffMaxTimes = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 120) { @@ -854,15 +819,15 @@ public final class RogueBuffSelectInfoOuterClass { } } case 120: { - // rollBuffMaxTimes - rollBuffMaxTimes = input.readUInt32(); + // selectBuffSourceCurCount + selectBuffSourceCurCount = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 24) { + if (tag != 48) { break; } } - case 24: { + case 48: { // source final int value = input.readInt32(); if (RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.forNumber(value) != null) { @@ -870,31 +835,31 @@ public final class RogueBuffSelectInfoOuterClass { bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 64) { + if (tag != 104) { break; } } - case 64: { - // showHandbookHint - showHandbookHint = input.readBool(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 104: { // canRoll canRoll = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 90) { + if (tag != 74) { break; } } - case 90: { + case 74: { // rollBuffsCost input.readMessage(rollBuffsCost); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // selectFirstBuffList [packed=true] + input.readPackedUInt32(selectFirstBuffList, tag); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 98) { @@ -902,18 +867,9 @@ public final class RogueBuffSelectInfoOuterClass { } } case 98: { - // selectFirstBuffList [packed=true] - input.readPackedUInt32(selectFirstBuffList, tag); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { // mazeBuffList tag = input.readRepeatedMessage(mazeBuffList, tag); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; if (tag != 0) { break; } @@ -928,10 +884,10 @@ public final class RogueBuffSelectInfoOuterClass { tag = input.readTag(); break; } - case 96: { + case 40: { // selectFirstBuffList [packed=false] tag = input.readRepeatedUInt32(selectFirstBuffList, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; break; } } @@ -942,36 +898,33 @@ public final class RogueBuffSelectInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rollBuffTimes, rollBuffTimes); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.selectBuffSourceHint, selectBuffSourceHint); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.selectBuffSourceTotalCount, selectBuffSourceTotalCount); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rollBuffTimes, rollBuffTimes); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.selectBuffSourceCurCount, selectBuffSourceCurCount); + output.writeUInt32(FieldNames.rollBuffMaxTimes, rollBuffMaxTimes); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.rollBuffMaxTimes, rollBuffMaxTimes); + output.writeUInt32(FieldNames.selectBuffSourceCurCount, selectBuffSourceCurCount); } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.source, source, RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.converter()); } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.showHandbookHint, showHandbookHint); - } - if ((bitField0_ & 0x00000080) != 0) { output.writeBool(FieldNames.canRoll, canRoll); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.rollBuffsCost, rollBuffsCost); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000100) != 0) { output.writeRepeatedUInt32(FieldNames.selectFirstBuffList, selectFirstBuffList); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.mazeBuffList, mazeBuffList); } output.endObject(); @@ -984,24 +937,12 @@ public final class RogueBuffSelectInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -436216138: - case 2038334812: { - if (input.isAtField(FieldNames.rollBuffTimes)) { - if (!input.trySkipNullValue()) { - rollBuffTimes = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -1160450543: case -335538398: { if (input.isAtField(FieldNames.selectBuffSourceHint)) { if (!input.trySkipNullValue()) { selectBuffSourceHint = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -1013,19 +954,19 @@ public final class RogueBuffSelectInfoOuterClass { if (input.isAtField(FieldNames.selectBuffSourceTotalCount)) { if (!input.trySkipNullValue()) { selectBuffSourceTotalCount = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); } break; } - case -1017675463: - case -1138919787: { - if (input.isAtField(FieldNames.selectBuffSourceCurCount)) { + case -436216138: + case 2038334812: { + if (input.isAtField(FieldNames.rollBuffTimes)) { if (!input.trySkipNullValue()) { - selectBuffSourceCurCount = input.readUInt32(); - bitField0_ |= 0x00000008; + rollBuffTimes = input.readUInt32(); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -1037,6 +978,18 @@ public final class RogueBuffSelectInfoOuterClass { if (input.isAtField(FieldNames.rollBuffMaxTimes)) { if (!input.trySkipNullValue()) { rollBuffMaxTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1017675463: + case -1138919787: { + if (input.isAtField(FieldNames.selectBuffSourceCurCount)) { + if (!input.trySkipNullValue()) { + selectBuffSourceCurCount = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1060,24 +1013,12 @@ public final class RogueBuffSelectInfoOuterClass { } break; } - case -1843696100: - case 641745100: { - if (input.isAtField(FieldNames.showHandbookHint)) { - if (!input.trySkipNullValue()) { - showHandbookHint = input.readBool(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } case 549719149: case -126477428: { if (input.isAtField(FieldNames.canRoll)) { if (!input.trySkipNullValue()) { canRoll = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -1089,7 +1030,7 @@ public final class RogueBuffSelectInfoOuterClass { if (input.isAtField(FieldNames.rollBuffsCost)) { if (!input.trySkipNullValue()) { input.readMessage(rollBuffsCost); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -1101,7 +1042,7 @@ public final class RogueBuffSelectInfoOuterClass { if (input.isAtField(FieldNames.selectFirstBuffList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(selectFirstBuffList); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -1113,7 +1054,7 @@ public final class RogueBuffSelectInfoOuterClass { if (input.isAtField(FieldNames.mazeBuffList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(mazeBuffList); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -1173,19 +1114,17 @@ public final class RogueBuffSelectInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rollBuffTimes = FieldName.forField("rollBuffTimes", "roll_buff_times"); - static final FieldName selectBuffSourceHint = FieldName.forField("selectBuffSourceHint", "select_buff_source_hint"); static final FieldName selectBuffSourceTotalCount = FieldName.forField("selectBuffSourceTotalCount", "select_buff_source_total_count"); - static final FieldName selectBuffSourceCurCount = FieldName.forField("selectBuffSourceCurCount", "select_buff_source_cur_count"); + static final FieldName rollBuffTimes = FieldName.forField("rollBuffTimes", "roll_buff_times"); static final FieldName rollBuffMaxTimes = FieldName.forField("rollBuffMaxTimes", "roll_buff_max_times"); - static final FieldName source = FieldName.forField("source"); + static final FieldName selectBuffSourceCurCount = FieldName.forField("selectBuffSourceCurCount", "select_buff_source_cur_count"); - static final FieldName showHandbookHint = FieldName.forField("showHandbookHint", "show_handbook_hint"); + static final FieldName source = FieldName.forField("source"); static final FieldName canRoll = FieldName.forField("canRoll", "can_roll"); diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java index 15aa675..78c63f8 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java @@ -1,1094 +1,744 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RogueHandbookAeon.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 RogueHandbookAeonOuterClass { - private RogueHandbookAeonOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - RogueHandbookAeonOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RogueHandbookAeonOrBuilder extends - // @@protoc_insertion_point(interface_extends:RogueHandbookAeon) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 aeon_id = 2; - * @return The aeonId. - */ - int getAeonId(); - - /** - * uint32 max_level = 5; - * @return The maxLevel. - */ - int getMaxLevel(); - - /** - * uint32 exp = 15; - * @return The exp. - */ - int getExp(); - - /** - * uint32 level = 4; - * @return The level. - */ - int getLevel(); - - /** - * repeated uint32 archive_unlock_list = 13; - * @return A list containing the archiveUnlockList. - */ - java.util.List getArchiveUnlockListList(); - /** - * repeated uint32 archive_unlock_list = 13; - * @return The count of archiveUnlockList. - */ - int getArchiveUnlockListCount(); - /** - * repeated uint32 archive_unlock_list = 13; - * @param index The index of the element to return. - * @return The archiveUnlockList at the given index. - */ - int getArchiveUnlockList(int index); - - /** - * repeated uint32 taken_reward_list = 10; - * @return A list containing the takenRewardList. - */ - java.util.List getTakenRewardListList(); - /** - * repeated uint32 taken_reward_list = 10; - * @return The count of takenRewardList. - */ - int getTakenRewardListCount(); - /** - * repeated uint32 taken_reward_list = 10; - * @param index The index of the element to return. - * @return The takenRewardList at the given index. - */ - int getTakenRewardList(int index); - } /** * Protobuf type {@code RogueHandbookAeon} */ - public static final class RogueHandbookAeon extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:RogueHandbookAeon) - RogueHandbookAeonOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - RogueHandbookAeon.class.getName()); - } - // Use RogueHandbookAeon.newBuilder() to construct. - private RogueHandbookAeon(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class RogueHandbookAeon extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 aeon_id = 2; + */ + private int aeonId; + + /** + * optional uint32 level = 4; + */ + private int level; + + /** + * optional uint32 max_level = 5; + */ + private int maxLevel; + + /** + * optional uint32 exp = 15; + */ + private int exp; + + /** + * repeated uint32 taken_reward_list = 10; + */ + private final RepeatedInt takenRewardList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 archive_unlock_list = 13; + */ + private final RepeatedInt archiveUnlockList = RepeatedInt.newEmptyInstance(); + private RogueHandbookAeon() { - archiveUnlockList_ = emptyIntList(); - takenRewardList_ = emptyIntList(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.RogueHandbookAeonOuterClass.internal_static_RogueHandbookAeon_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.RogueHandbookAeonOuterClass.internal_static_RogueHandbookAeon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.class, emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.Builder.class); - } - - public static final int AEON_ID_FIELD_NUMBER = 2; - private int aeonId_ = 0; /** - * uint32 aeon_id = 2; - * @return The aeonId. + * @return a new empty instance of {@code RogueHandbookAeon} + */ + public static RogueHandbookAeon newInstance() { + return new RogueHandbookAeon(); + } + + /** + * 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 RogueHandbookAeon clearAeonId() { + bitField0_ &= ~0x00000001; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 2; + * @return the aeonId */ - @java.lang.Override public int getAeonId() { - return aeonId_; + return aeonId; } - public static final int MAX_LEVEL_FIELD_NUMBER = 5; - private int maxLevel_ = 0; /** - * uint32 max_level = 5; - * @return The maxLevel. + * optional uint32 aeon_id = 2; + * @param value the aeonId to set + * @return this */ - @java.lang.Override - public int getMaxLevel() { - return maxLevel_; + public RogueHandbookAeon setAeonId(final int value) { + bitField0_ |= 0x00000001; + aeonId = value; + return this; } - public static final int EXP_FIELD_NUMBER = 15; - private int exp_ = 0; /** - * uint32 exp = 15; - * @return The exp. + * optional uint32 level = 4; + * @return whether the level field is set */ - @java.lang.Override - public int getExp() { - return exp_; + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; } - public static final int LEVEL_FIELD_NUMBER = 4; - private int level_ = 0; /** - * uint32 level = 4; - * @return The level. + * optional uint32 level = 4; + * @return this + */ + public RogueHandbookAeon clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 4; + * @return the level */ - @java.lang.Override public int getLevel() { - return level_; + return level; } - public static final int ARCHIVE_UNLOCK_LIST_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList archiveUnlockList_ = - emptyIntList(); /** - * repeated uint32 archive_unlock_list = 13; - * @return A list containing the archiveUnlockList. + * optional uint32 level = 4; + * @param value the level to set + * @return this */ - @java.lang.Override - public java.util.List - getArchiveUnlockListList() { - return archiveUnlockList_; + public RogueHandbookAeon setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 max_level = 5; + * @return whether the maxLevel field is set + */ + public boolean hasMaxLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 max_level = 5; + * @return this + */ + public RogueHandbookAeon clearMaxLevel() { + bitField0_ &= ~0x00000004; + maxLevel = 0; + return this; + } + + /** + * optional uint32 max_level = 5; + * @return the maxLevel + */ + public int getMaxLevel() { + return maxLevel; + } + + /** + * optional uint32 max_level = 5; + * @param value the maxLevel to set + * @return this + */ + public RogueHandbookAeon setMaxLevel(final int value) { + bitField0_ |= 0x00000004; + maxLevel = value; + return this; + } + + /** + * optional uint32 exp = 15; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 exp = 15; + * @return this + */ + public RogueHandbookAeon clearExp() { + bitField0_ &= ~0x00000008; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 15; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 15; + * @param value the exp to set + * @return this + */ + public RogueHandbookAeon setExp(final int value) { + bitField0_ |= 0x00000008; + exp = value; + return this; } - /** - * repeated uint32 archive_unlock_list = 13; - * @return The count of archiveUnlockList. - */ - public int getArchiveUnlockListCount() { - return archiveUnlockList_.size(); - } - /** - * repeated uint32 archive_unlock_list = 13; - * @param index The index of the element to return. - * @return The archiveUnlockList at the given index. - */ - public int getArchiveUnlockList(int index) { - return archiveUnlockList_.getInt(index); - } - private int archiveUnlockListMemoizedSerializedSize = -1; - public static final int TAKEN_REWARD_LIST_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList takenRewardList_ = - emptyIntList(); /** * repeated uint32 taken_reward_list = 10; - * @return A list containing the takenRewardList. + * @return whether the takenRewardList field is set */ - @java.lang.Override - public java.util.List - getTakenRewardListList() { - return takenRewardList_; + public boolean hasTakenRewardList() { + return (bitField0_ & 0x00000010) != 0; } + /** * repeated uint32 taken_reward_list = 10; - * @return The count of takenRewardList. + * @return this */ - public int getTakenRewardListCount() { - return takenRewardList_.size(); + public RogueHandbookAeon clearTakenRewardList() { + bitField0_ &= ~0x00000010; + takenRewardList.clear(); + return this; } + /** * repeated uint32 taken_reward_list = 10; - * @param index The index of the element to return. - * @return The takenRewardList at the given index. + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableTakenRewardList()} if you want to modify it. + * + * @return internal storage object for reading */ - public int getTakenRewardList(int index) { - return takenRewardList_.getInt(index); - } - private int takenRewardListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public RepeatedInt getTakenRewardList() { + return takenRewardList; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (aeonId_ != 0) { - output.writeUInt32(2, aeonId_); - } - if (level_ != 0) { - output.writeUInt32(4, level_); - } - if (maxLevel_ != 0) { - output.writeUInt32(5, maxLevel_); - } - if (getTakenRewardListList().size() > 0) { - output.writeUInt32NoTag(82); - output.writeUInt32NoTag(takenRewardListMemoizedSerializedSize); - } - for (int i = 0; i < takenRewardList_.size(); i++) { - output.writeUInt32NoTag(takenRewardList_.getInt(i)); - } - if (getArchiveUnlockListList().size() > 0) { - output.writeUInt32NoTag(106); - output.writeUInt32NoTag(archiveUnlockListMemoizedSerializedSize); - } - for (int i = 0; i < archiveUnlockList_.size(); i++) { - output.writeUInt32NoTag(archiveUnlockList_.getInt(i)); - } - if (exp_ != 0) { - output.writeUInt32(15, exp_); - } - getUnknownFields().writeTo(output); + /** + * repeated uint32 taken_reward_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 getMutableTakenRewardList() { + bitField0_ |= 0x00000010; + return takenRewardList; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * repeated uint32 taken_reward_list = 10; + * @param value the takenRewardList to add + * @return this + */ + public RogueHandbookAeon addTakenRewardList(final int value) { + bitField0_ |= 0x00000010; + takenRewardList.add(value); + return this; + } - size = 0; - if (aeonId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, aeonId_); + /** + * repeated uint32 taken_reward_list = 10; + * @param values the takenRewardList to add + * @return this + */ + public RogueHandbookAeon addAllTakenRewardList(final int... values) { + bitField0_ |= 0x00000010; + takenRewardList.addAll(values); + return this; + } + + /** + * repeated uint32 archive_unlock_list = 13; + * @return whether the archiveUnlockList field is set + */ + public boolean hasArchiveUnlockList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 archive_unlock_list = 13; + * @return this + */ + public RogueHandbookAeon clearArchiveUnlockList() { + bitField0_ &= ~0x00000020; + archiveUnlockList.clear(); + return this; + } + + /** + * repeated uint32 archive_unlock_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 #getMutableArchiveUnlockList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getArchiveUnlockList() { + return archiveUnlockList; + } + + /** + * repeated uint32 archive_unlock_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 getMutableArchiveUnlockList() { + bitField0_ |= 0x00000020; + return archiveUnlockList; + } + + /** + * repeated uint32 archive_unlock_list = 13; + * @param value the archiveUnlockList to add + * @return this + */ + public RogueHandbookAeon addArchiveUnlockList(final int value) { + bitField0_ |= 0x00000020; + archiveUnlockList.add(value); + return this; + } + + /** + * repeated uint32 archive_unlock_list = 13; + * @param values the archiveUnlockList to add + * @return this + */ + public RogueHandbookAeon addAllArchiveUnlockList(final int... values) { + bitField0_ |= 0x00000020; + archiveUnlockList.addAll(values); + return this; + } + + @Override + public RogueHandbookAeon copyFrom(final RogueHandbookAeon other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aeonId = other.aeonId; + level = other.level; + maxLevel = other.maxLevel; + exp = other.exp; + takenRewardList.copyFrom(other.takenRewardList); + archiveUnlockList.copyFrom(other.archiveUnlockList); } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, level_); + return this; + } + + @Override + public RogueHandbookAeon mergeFrom(final RogueHandbookAeon other) { + if (other.isEmpty()) { + return this; } - if (maxLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, maxLevel_); + cachedSize = -1; + if (other.hasAeonId()) { + setAeonId(other.aeonId); } - { - int dataSize = 0; - for (int i = 0; i < takenRewardList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(takenRewardList_.getInt(i)); + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasMaxLevel()) { + setMaxLevel(other.maxLevel); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasTakenRewardList()) { + getMutableTakenRewardList().addAll(other.takenRewardList); + } + if (other.hasArchiveUnlockList()) { + getMutableArchiveUnlockList().addAll(other.archiveUnlockList); + } + return this; + } + + @Override + public RogueHandbookAeon clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonId = 0; + level = 0; + maxLevel = 0; + exp = 0; + takenRewardList.clear(); + archiveUnlockList.clear(); + return this; + } + + @Override + public RogueHandbookAeon clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + takenRewardList.clear(); + archiveUnlockList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueHandbookAeon)) { + return false; + } + RogueHandbookAeon other = (RogueHandbookAeon) o; + return bitField0_ == other.bitField0_ + && (!hasAeonId() || aeonId == other.aeonId) + && (!hasLevel() || level == other.level) + && (!hasMaxLevel() || maxLevel == other.maxLevel) + && (!hasExp() || exp == other.exp) + && (!hasTakenRewardList() || takenRewardList.equals(other.takenRewardList)) + && (!hasArchiveUnlockList() || archiveUnlockList.equals(other.archiveUnlockList)); + } + + @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) 32); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(maxLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < takenRewardList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(takenRewardList.array()[i]); } - size += dataSize; - if (!getTakenRewardListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - takenRewardListMemoizedSerializedSize = dataSize; } - { - int dataSize = 0; - for (int i = 0; i < archiveUnlockList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(archiveUnlockList_.getInt(i)); + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < archiveUnlockList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(archiveUnlockList.array()[i]); } - size += dataSize; - if (!getArchiveUnlockListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - archiveUnlockListMemoizedSerializedSize = dataSize; } - if (exp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, exp_); + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * takenRewardList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewardList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * archiveUnlockList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveUnlockList); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon)) { - return super.equals(obj); - } - emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon other = (emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon) obj; - - if (getAeonId() - != other.getAeonId()) return false; - if (getMaxLevel() - != other.getMaxLevel()) return false; - if (getExp() - != other.getExp()) return false; - if (getLevel() - != other.getLevel()) return false; - if (!getArchiveUnlockListList() - .equals(other.getArchiveUnlockListList())) return false; - if (!getTakenRewardListList() - .equals(other.getTakenRewardListList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AEON_ID_FIELD_NUMBER; - hash = (53 * hash) + getAeonId(); - hash = (37 * hash) + MAX_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getMaxLevel(); - hash = (37 * hash) + EXP_FIELD_NUMBER; - hash = (53 * hash) + getExp(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - if (getArchiveUnlockListCount() > 0) { - hash = (37 * hash) + ARCHIVE_UNLOCK_LIST_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUnlockListList().hashCode(); - } - if (getTakenRewardListCount() > 0) { - hash = (37 * hash) + TAKEN_REWARD_LIST_FIELD_NUMBER; - hash = (53 * hash) + getTakenRewardListList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code RogueHandbookAeon} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:RogueHandbookAeon) - emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.RogueHandbookAeonOuterClass.internal_static_RogueHandbookAeon_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.RogueHandbookAeonOuterClass.internal_static_RogueHandbookAeon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.class, emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.Builder.class); - } - - // Construct using emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - aeonId_ = 0; - maxLevel_ = 0; - exp_ = 0; - level_ = 0; - archiveUnlockList_ = emptyIntList(); - takenRewardList_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.RogueHandbookAeonOuterClass.internal_static_RogueHandbookAeon_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon getDefaultInstanceForType() { - return emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon build() { - emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon buildPartial() { - emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon result = new emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.aeonId_ = aeonId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxLevel_ = maxLevel_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.exp_ = exp_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - archiveUnlockList_.makeImmutable(); - result.archiveUnlockList_ = archiveUnlockList_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - takenRewardList_.makeImmutable(); - result.takenRewardList_ = takenRewardList_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon) { - return mergeFrom((emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon other) { - if (other == emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon.getDefaultInstance()) return this; - if (other.getAeonId() != 0) { - setAeonId(other.getAeonId()); - } - if (other.getMaxLevel() != 0) { - setMaxLevel(other.getMaxLevel()); - } - if (other.getExp() != 0) { - setExp(other.getExp()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (!other.archiveUnlockList_.isEmpty()) { - if (archiveUnlockList_.isEmpty()) { - archiveUnlockList_ = other.archiveUnlockList_; - archiveUnlockList_.makeImmutable(); + @Override + @SuppressWarnings("fallthrough") + public RogueHandbookAeon 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 != 32) { + break; + } + } + case 32: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // maxLevel + maxLevel = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // takenRewardList [packed=true] + input.readPackedUInt32(takenRewardList, tag); bitField0_ |= 0x00000010; - } else { - ensureArchiveUnlockListIsMutable(); - archiveUnlockList_.addAll(other.archiveUnlockList_); + tag = input.readTag(); + if (tag != 106) { + break; + } } - onChanged(); - } - if (!other.takenRewardList_.isEmpty()) { - if (takenRewardList_.isEmpty()) { - takenRewardList_ = other.takenRewardList_; - takenRewardList_.makeImmutable(); + case 106: { + // archiveUnlockList [packed=true] + input.readPackedUInt32(archiveUnlockList, tag); bitField0_ |= 0x00000020; - } else { - ensureTakenRewardListIsMutable(); - takenRewardList_.addAll(other.takenRewardList_); + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 80: { + // takenRewardList [packed=false] + tag = input.readRepeatedUInt32(takenRewardList, tag); + bitField0_ |= 0x00000010; + break; + } + case 104: { + // archiveUnlockList [packed=false] + tag = input.readRepeatedUInt32(archiveUnlockList, tag); + bitField0_ |= 0x00000020; + break; } - onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + } + } + + @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.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.maxLevel, maxLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.takenRewardList, takenRewardList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.archiveUnlockList, archiveUnlockList); + } + output.endObject(); + } + + @Override + public RogueHandbookAeon mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - aeonId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1421249154: + case -1109029417: { + if (input.isAtField(FieldNames.aeonId)) { + if (!input.trySkipNullValue()) { + aeonId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 16 - case 32: { - level_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - maxLevel_ = input.readUInt32(); + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); bitField0_ |= 0x00000002; - break; - } // case 40 - case 80: { - int v = input.readUInt32(); - ensureTakenRewardListIsMutable(); - takenRewardList_.addInt(v); - break; - } // case 80 - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureTakenRewardListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - takenRewardList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 82 - case 104: { - int v = input.readUInt32(); - ensureArchiveUnlockListIsMutable(); - archiveUnlockList_.addInt(v); - break; - } // case 104 - case 106: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureArchiveUnlockListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - archiveUnlockList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 106 - case 120: { - exp_ = input.readUInt32(); + } + } else { + input.skipUnknownField(); + } + break; + } + case 390120576: + case -241235735: { + if (input.isAtField(FieldNames.maxLevel)) { + if (!input.trySkipNullValue()) { + maxLevel = input.readUInt32(); bitField0_ |= 0x00000004; - break; - } // case 120 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int aeonId_ ; - /** - * uint32 aeon_id = 2; - * @return The aeonId. - */ - @java.lang.Override - public int getAeonId() { - return aeonId_; - } - /** - * uint32 aeon_id = 2; - * @param value The aeonId to set. - * @return This builder for chaining. - */ - public Builder setAeonId(int value) { - - aeonId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 aeon_id = 2; - * @return This builder for chaining. - */ - public Builder clearAeonId() { - bitField0_ = (bitField0_ & ~0x00000001); - aeonId_ = 0; - onChanged(); - return this; - } - - private int maxLevel_ ; - /** - * uint32 max_level = 5; - * @return The maxLevel. - */ - @java.lang.Override - public int getMaxLevel() { - return maxLevel_; - } - /** - * uint32 max_level = 5; - * @param value The maxLevel to set. - * @return This builder for chaining. - */ - public Builder setMaxLevel(int value) { - - maxLevel_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 max_level = 5; - * @return This builder for chaining. - */ - public Builder clearMaxLevel() { - bitField0_ = (bitField0_ & ~0x00000002); - maxLevel_ = 0; - onChanged(); - return this; - } - - private int exp_ ; - /** - * uint32 exp = 15; - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - /** - * uint32 exp = 15; - * @param value The exp to set. - * @return This builder for chaining. - */ - public Builder setExp(int value) { - - exp_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 exp = 15; - * @return This builder for chaining. - */ - public Builder clearExp() { - bitField0_ = (bitField0_ & ~0x00000004); - exp_ = 0; - onChanged(); - return this; - } - - private int level_ ; - /** - * uint32 level = 4; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * uint32 level = 4; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 level = 4; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000008); - level_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList archiveUnlockList_ = emptyIntList(); - private void ensureArchiveUnlockListIsMutable() { - if (!archiveUnlockList_.isModifiable()) { - archiveUnlockList_ = makeMutableCopy(archiveUnlockList_); + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -600805228: + case 1027082294: { + if (input.isAtField(FieldNames.takenRewardList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(takenRewardList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -424348572: + case 66232508: { + if (input.isAtField(FieldNames.archiveUnlockList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(archiveUnlockList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - bitField0_ |= 0x00000010; } - /** - * repeated uint32 archive_unlock_list = 13; - * @return A list containing the archiveUnlockList. - */ - public java.util.List - getArchiveUnlockListList() { - archiveUnlockList_.makeImmutable(); - return archiveUnlockList_; - } - /** - * repeated uint32 archive_unlock_list = 13; - * @return The count of archiveUnlockList. - */ - public int getArchiveUnlockListCount() { - return archiveUnlockList_.size(); - } - /** - * repeated uint32 archive_unlock_list = 13; - * @param index The index of the element to return. - * @return The archiveUnlockList at the given index. - */ - public int getArchiveUnlockList(int index) { - return archiveUnlockList_.getInt(index); - } - /** - * repeated uint32 archive_unlock_list = 13; - * @param index The index to set the value at. - * @param value The archiveUnlockList to set. - * @return This builder for chaining. - */ - public Builder setArchiveUnlockList( - int index, int value) { - - ensureArchiveUnlockListIsMutable(); - archiveUnlockList_.setInt(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * repeated uint32 archive_unlock_list = 13; - * @param value The archiveUnlockList to add. - * @return This builder for chaining. - */ - public Builder addArchiveUnlockList(int value) { - - ensureArchiveUnlockListIsMutable(); - archiveUnlockList_.addInt(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * repeated uint32 archive_unlock_list = 13; - * @param values The archiveUnlockList to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUnlockList( - java.lang.Iterable values) { - ensureArchiveUnlockListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUnlockList_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * repeated uint32 archive_unlock_list = 13; - * @return This builder for chaining. - */ - public Builder clearArchiveUnlockList() { - archiveUnlockList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList takenRewardList_ = emptyIntList(); - private void ensureTakenRewardListIsMutable() { - if (!takenRewardList_.isModifiable()) { - takenRewardList_ = makeMutableCopy(takenRewardList_); - } - bitField0_ |= 0x00000020; - } - /** - * repeated uint32 taken_reward_list = 10; - * @return A list containing the takenRewardList. - */ - public java.util.List - getTakenRewardListList() { - takenRewardList_.makeImmutable(); - return takenRewardList_; - } - /** - * repeated uint32 taken_reward_list = 10; - * @return The count of takenRewardList. - */ - public int getTakenRewardListCount() { - return takenRewardList_.size(); - } - /** - * repeated uint32 taken_reward_list = 10; - * @param index The index of the element to return. - * @return The takenRewardList at the given index. - */ - public int getTakenRewardList(int index) { - return takenRewardList_.getInt(index); - } - /** - * repeated uint32 taken_reward_list = 10; - * @param index The index to set the value at. - * @param value The takenRewardList to set. - * @return This builder for chaining. - */ - public Builder setTakenRewardList( - int index, int value) { - - ensureTakenRewardListIsMutable(); - takenRewardList_.setInt(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * repeated uint32 taken_reward_list = 10; - * @param value The takenRewardList to add. - * @return This builder for chaining. - */ - public Builder addTakenRewardList(int value) { - - ensureTakenRewardListIsMutable(); - takenRewardList_.addInt(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * repeated uint32 taken_reward_list = 10; - * @param values The takenRewardList to add. - * @return This builder for chaining. - */ - public Builder addAllTakenRewardList( - java.lang.Iterable values) { - ensureTakenRewardListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, takenRewardList_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * repeated uint32 taken_reward_list = 10; - * @return This builder for chaining. - */ - public Builder clearTakenRewardList() { - takenRewardList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:RogueHandbookAeon) + input.endObject(); + return this; } - // @@protoc_insertion_point(class_scope:RogueHandbookAeon) - private static final emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon(); + @Override + public RogueHandbookAeon clone() { + return new RogueHandbookAeon().copyFrom(this); } - public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon getDefaultInstance() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RogueHandbookAeon parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + public static RogueHandbookAeon parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueHandbookAeon(), data).checkInitialized(); + } + + public static RogueHandbookAeon parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueHandbookAeon(), input).checkInitialized(); + } + + public static RogueHandbookAeon parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueHandbookAeon(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueHandbookAeon messages + */ + public static MessageFactory getFactory() { + return RogueHandbookAeonFactory.INSTANCE; + } + + private enum RogueHandbookAeonFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueHandbookAeon create() { + return RogueHandbookAeon.newInstance(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); - @java.lang.Override - public emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + static final FieldName level = FieldName.forField("level"); + static final FieldName maxLevel = FieldName.forField("maxLevel", "max_level"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName takenRewardList = FieldName.forField("takenRewardList", "taken_reward_list"); + + static final FieldName archiveUnlockList = FieldName.forField("archiveUnlockList", "archive_unlock_list"); + } } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RogueHandbookAeon_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_RogueHandbookAeon_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027RogueHandbookAeon.proto\"\213\001\n\021RogueHandb" + - "ookAeon\022\017\n\007aeon_id\030\002 \001(\r\022\021\n\tmax_level\030\005 " + - "\001(\r\022\013\n\003exp\030\017 \001(\r\022\r\n\005level\030\004 \001(\r\022\033\n\023archi" + - "ve_unlock_list\030\r \003(\r\022\031\n\021taken_reward_lis" + - "t\030\n \003(\rB\025\n\023emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_RogueHandbookAeon_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_RogueHandbookAeon_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_RogueHandbookAeon_descriptor, - new java.lang.String[] { "AeonId", "MaxLevel", "Exp", "Level", "ArchiveUnlockList", "TakenRewardList", }); - descriptor.resolveAllFeatures(); - } - - // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java index 0fb76ac..e8c6dd7 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java @@ -20,24 +20,25 @@ public final class RogueHandbookDataOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .RogueHandbookEvent rogue_event = 2; - */ - private final RepeatedMessage rogueEvent = RepeatedMessage.newEmptyInstance(RogueHandbookEventOuterClass.RogueHandbookEvent.getFactory()); - - /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; + * repeated .RogueHandbookBuff buff_list = 3; */ private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueHandbookBuffOuterClass.RogueHandbookBuff.getFactory()); /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_list = 4; */ private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(RogueHandbookMiracleOuterClass.RogueHandbookMiracle.getFactory()); + /** + * repeated .RogueHandbookAeon rogue_aeon_list = 9; + */ + private final RepeatedMessage rogueAeonList = RepeatedMessage.newEmptyInstance(RogueHandbookAeonOuterClass.RogueHandbookAeon.getFactory()); + + /** + * repeated .RogueHandbookEvent rogue_event = 12; + */ + private final RepeatedMessage rogueEvent = RepeatedMessage.newEmptyInstance(RogueHandbookEventOuterClass.RogueHandbookEvent.getFactory()); + private RogueHandbookData() { } @@ -49,107 +50,25 @@ public final class RogueHandbookDataOuterClass { } /** - * repeated .RogueHandbookEvent rogue_event = 2; - * @return whether the rogueEvent field is set + * repeated .RogueHandbookBuff buff_list = 3; + * @return whether the buffList field is set */ - public boolean hasRogueEvent() { + public boolean hasBuffList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated .RogueHandbookEvent rogue_event = 2; - * @return this - */ - public RogueHandbookData clearRogueEvent() { - bitField0_ &= ~0x00000001; - rogueEvent.clear(); - return this; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 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 #getMutableRogueEvent()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueEvent() { - return rogueEvent; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 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 getMutableRogueEvent() { - bitField0_ |= 0x00000001; - return rogueEvent; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 2; - * @param value the rogueEvent to add - * @return this - */ - public RogueHandbookData addRogueEvent( - final RogueHandbookEventOuterClass.RogueHandbookEvent value) { - bitField0_ |= 0x00000001; - rogueEvent.add(value); - return this; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 2; - * @param values the rogueEvent to add - * @return this - */ - public RogueHandbookData addAllRogueEvent( - final RogueHandbookEventOuterClass.RogueHandbookEvent... values) { - bitField0_ |= 0x00000001; - rogueEvent.addAll(values); - return this; - } - - /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; - * @return whether the buffList field is set - */ - public boolean hasBuffList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; + * repeated .RogueHandbookBuff buff_list = 3; * @return this */ public RogueHandbookData clearBuffList() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; buffList.clear(); return this; } /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; + * repeated .RogueHandbookBuff 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. @@ -163,11 +82,7 @@ public final class RogueHandbookDataOuterClass { } /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; + * repeated .RogueHandbookBuff 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 @@ -176,62 +91,54 @@ public final class RogueHandbookDataOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableBuffList() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return buffList; } /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; + * repeated .RogueHandbookBuff buff_list = 3; * @param value the buffList to add * @return this */ public RogueHandbookData addBuffList( final RogueHandbookBuffOuterClass.RogueHandbookBuff value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; buffList.add(value); return this; } /** - *
-     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
-     * 
- * - * repeated .RogueHandbookBuff buff_list = 13; + * repeated .RogueHandbookBuff buff_list = 3; * @param values the buffList to add * @return this */ public RogueHandbookData addAllBuffList( final RogueHandbookBuffOuterClass.RogueHandbookBuff... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; buffList.addAll(values); return this; } /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_list = 4; * @return whether the miracleList field is set */ public boolean hasMiracleList() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_list = 4; * @return this */ public RogueHandbookData clearMiracleList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; miracleList.clear(); return this; } /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_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. @@ -245,7 +152,7 @@ public final class RogueHandbookDataOuterClass { } /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_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 @@ -255,42 +162,184 @@ public final class RogueHandbookDataOuterClass { */ public RepeatedMessage getMutableMiracleList( ) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return miracleList; } /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_list = 4; * @param value the miracleList to add * @return this */ public RogueHandbookData addMiracleList( final RogueHandbookMiracleOuterClass.RogueHandbookMiracle value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; miracleList.add(value); return this; } /** - * repeated .RogueHandbookMiracle miracle_list = 15; + * repeated .RogueHandbookMiracle miracle_list = 4; * @param values the miracleList to add * @return this */ public RogueHandbookData addAllMiracleList( final RogueHandbookMiracleOuterClass.RogueHandbookMiracle... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; miracleList.addAll(values); return this; } + /** + * repeated .RogueHandbookAeon rogue_aeon_list = 9; + * @return whether the rogueAeonList field is set + */ + public boolean hasRogueAeonList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueHandbookAeon rogue_aeon_list = 9; + * @return this + */ + public RogueHandbookData clearRogueAeonList() { + bitField0_ &= ~0x00000004; + rogueAeonList.clear(); + return this; + } + + /** + * repeated .RogueHandbookAeon rogue_aeon_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 #getMutableRogueAeonList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueAeonList() { + return rogueAeonList; + } + + /** + * repeated .RogueHandbookAeon rogue_aeon_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 RepeatedMessage getMutableRogueAeonList( + ) { + bitField0_ |= 0x00000004; + return rogueAeonList; + } + + /** + * repeated .RogueHandbookAeon rogue_aeon_list = 9; + * @param value the rogueAeonList to add + * @return this + */ + public RogueHandbookData addRogueAeonList( + final RogueHandbookAeonOuterClass.RogueHandbookAeon value) { + bitField0_ |= 0x00000004; + rogueAeonList.add(value); + return this; + } + + /** + * repeated .RogueHandbookAeon rogue_aeon_list = 9; + * @param values the rogueAeonList to add + * @return this + */ + public RogueHandbookData addAllRogueAeonList( + final RogueHandbookAeonOuterClass.RogueHandbookAeon... values) { + bitField0_ |= 0x00000004; + rogueAeonList.addAll(values); + return this; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 12; + * @return whether the rogueEvent field is set + */ + public boolean hasRogueEvent() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 12; + * @return this + */ + public RogueHandbookData clearRogueEvent() { + bitField0_ &= ~0x00000008; + rogueEvent.clear(); + return this; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 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 #getMutableRogueEvent()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueEvent() { + return rogueEvent; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 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 getMutableRogueEvent() { + bitField0_ |= 0x00000008; + return rogueEvent; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 12; + * @param value the rogueEvent to add + * @return this + */ + public RogueHandbookData addRogueEvent( + final RogueHandbookEventOuterClass.RogueHandbookEvent value) { + bitField0_ |= 0x00000008; + rogueEvent.add(value); + return this; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 12; + * @param values the rogueEvent to add + * @return this + */ + public RogueHandbookData addAllRogueEvent( + final RogueHandbookEventOuterClass.RogueHandbookEvent... values) { + bitField0_ |= 0x00000008; + rogueEvent.addAll(values); + return this; + } + @Override public RogueHandbookData copyFrom(final RogueHandbookData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueEvent.copyFrom(other.rogueEvent); buffList.copyFrom(other.buffList); miracleList.copyFrom(other.miracleList); + rogueAeonList.copyFrom(other.rogueAeonList); + rogueEvent.copyFrom(other.rogueEvent); } return this; } @@ -301,15 +350,18 @@ public final class RogueHandbookDataOuterClass { return this; } cachedSize = -1; - if (other.hasRogueEvent()) { - getMutableRogueEvent().addAll(other.rogueEvent); - } if (other.hasBuffList()) { getMutableBuffList().addAll(other.buffList); } if (other.hasMiracleList()) { getMutableMiracleList().addAll(other.miracleList); } + if (other.hasRogueAeonList()) { + getMutableRogueAeonList().addAll(other.rogueAeonList); + } + if (other.hasRogueEvent()) { + getMutableRogueEvent().addAll(other.rogueEvent); + } return this; } @@ -320,9 +372,10 @@ public final class RogueHandbookDataOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueEvent.clear(); buffList.clear(); miracleList.clear(); + rogueAeonList.clear(); + rogueEvent.clear(); return this; } @@ -333,9 +386,10 @@ public final class RogueHandbookDataOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueEvent.clearQuick(); buffList.clearQuick(); miracleList.clearQuick(); + rogueAeonList.clearQuick(); + rogueEvent.clearQuick(); return this; } @@ -349,45 +403,55 @@ public final class RogueHandbookDataOuterClass { } RogueHandbookData other = (RogueHandbookData) o; return bitField0_ == other.bitField0_ - && (!hasRogueEvent() || rogueEvent.equals(other.rogueEvent)) && (!hasBuffList() || buffList.equals(other.buffList)) - && (!hasMiracleList() || miracleList.equals(other.miracleList)); + && (!hasMiracleList() || miracleList.equals(other.miracleList)) + && (!hasRogueAeonList() || rogueAeonList.equals(other.rogueAeonList)) + && (!hasRogueEvent() || rogueEvent.equals(other.rogueEvent)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < rogueEvent.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(rogueEvent.get(i)); - } - } - if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 26); output.writeMessageNoTag(buffList.get(i)); } } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < miracleList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 34); output.writeMessageNoTag(miracleList.get(i)); } } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < rogueAeonList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rogueAeonList.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < rogueEvent.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueEvent.get(i)); + } + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * rogueEvent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueEvent); - } - if ((bitField0_ & 0x00000002) != 0) { size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * rogueAeonList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueAeonList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * rogueEvent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueEvent); + } return size; } @@ -398,26 +462,34 @@ public final class RogueHandbookDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 18: { - // rogueEvent - tag = input.readRepeatedMessage(rogueEvent, tag); - bitField0_ |= 0x00000001; - if (tag != 106) { - break; - } - } - case 106: { + case 26: { // buffList tag = input.readRepeatedMessage(buffList, tag); - bitField0_ |= 0x00000002; - if (tag != 122) { + bitField0_ |= 0x00000001; + if (tag != 34) { break; } } - case 122: { + case 34: { // miracleList tag = input.readRepeatedMessage(miracleList, tag); + bitField0_ |= 0x00000002; + if (tag != 74) { + break; + } + } + case 74: { + // rogueAeonList + tag = input.readRepeatedMessage(rogueAeonList, tag); bitField0_ |= 0x00000004; + if (tag != 98) { + break; + } + } + case 98: { + // rogueEvent + tag = input.readRepeatedMessage(rogueEvent, tag); + bitField0_ |= 0x00000008; if (tag != 0) { break; } @@ -440,14 +512,17 @@ public final class RogueHandbookDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.rogueEvent, rogueEvent); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedMessage(FieldNames.buffList, buffList); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedMessage(FieldNames.miracleList, miracleList); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.rogueAeonList, rogueAeonList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.rogueEvent, rogueEvent); + } output.endObject(); } @@ -458,24 +533,12 @@ public final class RogueHandbookDataOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1148216096: - case -505804811: { - if (input.isAtField(FieldNames.rogueEvent)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueEvent); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -1522789487: case 55792906: { if (input.isAtField(FieldNames.buffList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(buffList); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -487,6 +550,18 @@ public final class RogueHandbookDataOuterClass { if (input.isAtField(FieldNames.miracleList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(miracleList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1684933573: + case -1375837643: { + if (input.isAtField(FieldNames.rogueAeonList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rogueAeonList); bitField0_ |= 0x00000004; } } else { @@ -494,6 +569,18 @@ public final class RogueHandbookDataOuterClass { } break; } + case -1148216096: + case -505804811: { + if (input.isAtField(FieldNames.rogueEvent)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(rogueEvent); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -547,11 +634,13 @@ public final class RogueHandbookDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueEvent = FieldName.forField("rogueEvent", "rogue_event"); - static final FieldName buffList = FieldName.forField("buffList", "buff_list"); static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); + + static final FieldName rogueAeonList = FieldName.forField("rogueAeonList", "rogue_aeon_list"); + + static final FieldName rogueEvent = FieldName.forField("rogueEvent", "rogue_event"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java index 03bc12b..ccf5b28 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java @@ -1,1132 +1,866 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RogueScoreRewardInfo.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 RogueScoreRewardInfoOuterClass { - private RogueScoreRewardInfoOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - RogueScoreRewardInfoOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RogueScoreRewardInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:RogueScoreRewardInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * guess, either this or end_time
-     * 
- * - * int64 begin_time = 6; - * @return The beginTime. - */ - long getBeginTime(); - - /** - * repeated uint32 has_taken_reward = 5; - * @return A list containing the hasTakenReward. - */ - java.util.List getHasTakenRewardList(); - /** - * repeated uint32 has_taken_reward = 5; - * @return The count of hasTakenReward. - */ - int getHasTakenRewardCount(); - /** - * repeated uint32 has_taken_reward = 5; - * @param index The index of the element to return. - * @return The hasTakenReward at the given index. - */ - int getHasTakenReward(int index); - - /** - *
-     * guess
-     * 
- * - * bool pool_refreshed = 14; - * @return The poolRefreshed. - */ - boolean getPoolRefreshed(); - - /** - * uint32 score = 7; - * @return The score. - */ - int getScore(); - - /** - *
-     * guess, either this or begin_time
-     * 
- * - * int64 end_time = 3; - * @return The endTime. - */ - long getEndTime(); - - /** - * uint32 pool_id = 11; - * @return The poolId. - */ - int getPoolId(); - - /** - *
-     * guess
-     * 
- * - * bool has_taken_initial_score = 13; - * @return The hasTakenInitialScore. - */ - boolean getHasTakenInitialScore(); - } /** * Protobuf type {@code RogueScoreRewardInfo} */ - public static final class RogueScoreRewardInfo extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:RogueScoreRewardInfo) - RogueScoreRewardInfoOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - RogueScoreRewardInfo.class.getName()); - } - // Use RogueScoreRewardInfo.newBuilder() to construct. - private RogueScoreRewardInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class RogueScoreRewardInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  guess, either this or begin_time
+     * 
+ * + * optional int64 end_time = 3; + */ + private long endTime; + + /** + *
+     *  guess, either this or end_time
+     * 
+ * + * optional int64 begin_time = 6; + */ + private long beginTime; + + /** + * optional uint32 score = 7; + */ + private int score; + + /** + * optional uint32 pool_id = 11; + */ + private int poolId; + + /** + *
+     * guess
+     * 
+ * + * optional bool has_taken_initial_score = 13; + */ + private boolean hasTakenInitialScore; + + /** + *
+     * guess
+     * 
+ * + * optional bool pool_refreshed = 14; + */ + private boolean poolRefreshed; + + /** + * repeated uint32 has_taken_reward = 5; + */ + private final RepeatedInt hasTakenReward = RepeatedInt.newEmptyInstance(); + private RogueScoreRewardInfo() { - hasTakenReward_ = emptyIntList(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.internal_static_RogueScoreRewardInfo_descriptor; + /** + * @return a new empty instance of {@code RogueScoreRewardInfo} + */ + public static RogueScoreRewardInfo newInstance() { + return new RogueScoreRewardInfo(); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.internal_static_RogueScoreRewardInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.class, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder.class); - } - - public static final int BEGIN_TIME_FIELD_NUMBER = 6; - private long beginTime_ = 0L; /** *
-     * guess, either this or end_time
+     *  guess, either this or begin_time
      * 
* - * int64 begin_time = 6; - * @return The beginTime. + * optional int64 end_time = 3; + * @return whether the endTime field is set */ - @java.lang.Override - public long getBeginTime() { - return beginTime_; + public boolean hasEndTime() { + return (bitField0_ & 0x00000001) != 0; } - public static final int HAS_TAKEN_REWARD_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList hasTakenReward_ = - emptyIntList(); - /** - * repeated uint32 has_taken_reward = 5; - * @return A list containing the hasTakenReward. - */ - @java.lang.Override - public java.util.List - getHasTakenRewardList() { - return hasTakenReward_; - } - /** - * repeated uint32 has_taken_reward = 5; - * @return The count of hasTakenReward. - */ - public int getHasTakenRewardCount() { - return hasTakenReward_.size(); - } - /** - * repeated uint32 has_taken_reward = 5; - * @param index The index of the element to return. - * @return The hasTakenReward at the given index. - */ - public int getHasTakenReward(int index) { - return hasTakenReward_.getInt(index); - } - private int hasTakenRewardMemoizedSerializedSize = -1; - - public static final int POOL_REFRESHED_FIELD_NUMBER = 14; - private boolean poolRefreshed_ = false; /** *
-     * guess
+     *  guess, either this or begin_time
      * 
* - * bool pool_refreshed = 14; - * @return The poolRefreshed. + * optional int64 end_time = 3; + * @return this */ - @java.lang.Override - public boolean getPoolRefreshed() { - return poolRefreshed_; + public RogueScoreRewardInfo clearEndTime() { + bitField0_ &= ~0x00000001; + endTime = 0L; + return this; } - public static final int SCORE_FIELD_NUMBER = 7; - private int score_ = 0; - /** - * uint32 score = 7; - * @return The score. - */ - @java.lang.Override - public int getScore() { - return score_; - } - - public static final int END_TIME_FIELD_NUMBER = 3; - private long endTime_ = 0L; /** *
-     * guess, either this or begin_time
+     *  guess, either this or begin_time
      * 
* - * int64 end_time = 3; - * @return The endTime. + * optional int64 end_time = 3; + * @return the endTime */ - @java.lang.Override public long getEndTime() { - return endTime_; + return endTime; } - public static final int POOL_ID_FIELD_NUMBER = 11; - private int poolId_ = 0; /** - * uint32 pool_id = 11; - * @return The poolId. + *
+     *  guess, either this or begin_time
+     * 
+ * + * optional int64 end_time = 3; + * @param value the endTime to set + * @return this */ - @java.lang.Override - public int getPoolId() { - return poolId_; + public RogueScoreRewardInfo setEndTime(final long value) { + bitField0_ |= 0x00000001; + endTime = value; + return this; + } + + /** + *
+     *  guess, either this or end_time
+     * 
+ * + * optional int64 begin_time = 6; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  guess, either this or end_time
+     * 
+ * + * optional int64 begin_time = 6; + * @return this + */ + public RogueScoreRewardInfo clearBeginTime() { + bitField0_ &= ~0x00000002; + beginTime = 0L; + return this; + } + + /** + *
+     *  guess, either this or end_time
+     * 
+ * + * optional int64 begin_time = 6; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + *
+     *  guess, either this or end_time
+     * 
+ * + * optional int64 begin_time = 6; + * @param value the beginTime to set + * @return this + */ + public RogueScoreRewardInfo setBeginTime(final long value) { + bitField0_ |= 0x00000002; + beginTime = value; + return this; + } + + /** + * optional uint32 score = 7; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 score = 7; + * @return this + */ + public RogueScoreRewardInfo clearScore() { + bitField0_ &= ~0x00000004; + score = 0; + return this; + } + + /** + * optional uint32 score = 7; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 score = 7; + * @param value the score to set + * @return this + */ + public RogueScoreRewardInfo setScore(final int value) { + bitField0_ |= 0x00000004; + score = value; + return this; + } + + /** + * optional uint32 pool_id = 11; + * @return whether the poolId field is set + */ + public boolean hasPoolId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 pool_id = 11; + * @return this + */ + public RogueScoreRewardInfo clearPoolId() { + bitField0_ &= ~0x00000008; + poolId = 0; + return this; + } + + /** + * optional uint32 pool_id = 11; + * @return the poolId + */ + public int getPoolId() { + return poolId; + } + + /** + * optional uint32 pool_id = 11; + * @param value the poolId to set + * @return this + */ + public RogueScoreRewardInfo setPoolId(final int value) { + bitField0_ |= 0x00000008; + poolId = value; + return this; } - public static final int HAS_TAKEN_INITIAL_SCORE_FIELD_NUMBER = 13; - private boolean hasTakenInitialScore_ = false; /** *
      * guess
      * 
* - * bool has_taken_initial_score = 13; - * @return The hasTakenInitialScore. + * optional bool has_taken_initial_score = 13; + * @return whether the hasTakenInitialScore field is set + */ + public boolean hasHasTakenInitialScore() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     * guess
+     * 
+ * + * optional bool has_taken_initial_score = 13; + * @return this + */ + public RogueScoreRewardInfo clearHasTakenInitialScore() { + bitField0_ &= ~0x00000010; + hasTakenInitialScore = false; + return this; + } + + /** + *
+     * guess
+     * 
+ * + * optional bool has_taken_initial_score = 13; + * @return the hasTakenInitialScore */ - @java.lang.Override public boolean getHasTakenInitialScore() { - return hasTakenInitialScore_; + return hasTakenInitialScore; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + *
+     * guess
+     * 
+ * + * optional bool has_taken_initial_score = 13; + * @param value the hasTakenInitialScore to set + * @return this + */ + public RogueScoreRewardInfo setHasTakenInitialScore(final boolean value) { + bitField0_ |= 0x00000010; + hasTakenInitialScore = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (endTime_ != 0L) { - output.writeInt64(3, endTime_); - } - if (getHasTakenRewardList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(hasTakenRewardMemoizedSerializedSize); - } - for (int i = 0; i < hasTakenReward_.size(); i++) { - output.writeUInt32NoTag(hasTakenReward_.getInt(i)); - } - if (beginTime_ != 0L) { - output.writeInt64(6, beginTime_); - } - if (score_ != 0) { - output.writeUInt32(7, score_); - } - if (poolId_ != 0) { - output.writeUInt32(11, poolId_); - } - if (hasTakenInitialScore_ != false) { - output.writeBool(13, hasTakenInitialScore_); - } - if (poolRefreshed_ != false) { - output.writeBool(14, poolRefreshed_); - } - getUnknownFields().writeTo(output); + /** + *
+     * guess
+     * 
+ * + * optional bool pool_refreshed = 14; + * @return whether the poolRefreshed field is set + */ + public boolean hasPoolRefreshed() { + return (bitField0_ & 0x00000020) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + *
+     * guess
+     * 
+ * + * optional bool pool_refreshed = 14; + * @return this + */ + public RogueScoreRewardInfo clearPoolRefreshed() { + bitField0_ &= ~0x00000020; + poolRefreshed = false; + return this; + } - size = 0; - if (endTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, endTime_); + /** + *
+     * guess
+     * 
+ * + * optional bool pool_refreshed = 14; + * @return the poolRefreshed + */ + public boolean getPoolRefreshed() { + return poolRefreshed; + } + + /** + *
+     * guess
+     * 
+ * + * optional bool pool_refreshed = 14; + * @param value the poolRefreshed to set + * @return this + */ + public RogueScoreRewardInfo setPoolRefreshed(final boolean value) { + bitField0_ |= 0x00000020; + poolRefreshed = value; + return this; + } + + /** + * repeated uint32 has_taken_reward = 5; + * @return whether the hasTakenReward field is set + */ + public boolean hasHasTakenReward() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 has_taken_reward = 5; + * @return this + */ + public RogueScoreRewardInfo clearHasTakenReward() { + bitField0_ &= ~0x00000040; + hasTakenReward.clear(); + return this; + } + + /** + * repeated uint32 has_taken_reward = 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 #getMutableHasTakenReward()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getHasTakenReward() { + return hasTakenReward; + } + + /** + * repeated uint32 has_taken_reward = 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 getMutableHasTakenReward() { + bitField0_ |= 0x00000040; + return hasTakenReward; + } + + /** + * repeated uint32 has_taken_reward = 5; + * @param value the hasTakenReward to add + * @return this + */ + public RogueScoreRewardInfo addHasTakenReward(final int value) { + bitField0_ |= 0x00000040; + hasTakenReward.add(value); + return this; + } + + /** + * repeated uint32 has_taken_reward = 5; + * @param values the hasTakenReward to add + * @return this + */ + public RogueScoreRewardInfo addAllHasTakenReward(final int... values) { + bitField0_ |= 0x00000040; + hasTakenReward.addAll(values); + return this; + } + + @Override + public RogueScoreRewardInfo copyFrom(final RogueScoreRewardInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + endTime = other.endTime; + beginTime = other.beginTime; + score = other.score; + poolId = other.poolId; + hasTakenInitialScore = other.hasTakenInitialScore; + poolRefreshed = other.poolRefreshed; + hasTakenReward.copyFrom(other.hasTakenReward); } - { - int dataSize = 0; - for (int i = 0; i < hasTakenReward_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(hasTakenReward_.getInt(i)); + return this; + } + + @Override + public RogueScoreRewardInfo mergeFrom(final RogueScoreRewardInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasPoolId()) { + setPoolId(other.poolId); + } + if (other.hasHasTakenInitialScore()) { + setHasTakenInitialScore(other.hasTakenInitialScore); + } + if (other.hasPoolRefreshed()) { + setPoolRefreshed(other.poolRefreshed); + } + if (other.hasHasTakenReward()) { + getMutableHasTakenReward().addAll(other.hasTakenReward); + } + return this; + } + + @Override + public RogueScoreRewardInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + endTime = 0L; + beginTime = 0L; + score = 0; + poolId = 0; + hasTakenInitialScore = false; + poolRefreshed = false; + hasTakenReward.clear(); + return this; + } + + @Override + public RogueScoreRewardInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hasTakenReward.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueScoreRewardInfo)) { + return false; + } + RogueScoreRewardInfo other = (RogueScoreRewardInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEndTime() || endTime == other.endTime) + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasScore() || score == other.score) + && (!hasPoolId() || poolId == other.poolId) + && (!hasHasTakenInitialScore() || hasTakenInitialScore == other.hasTakenInitialScore) + && (!hasPoolRefreshed() || poolRefreshed == other.poolRefreshed) + && (!hasHasTakenReward() || hasTakenReward.equals(other.hasTakenReward)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(poolId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(hasTakenInitialScore); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(poolRefreshed); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < hasTakenReward.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(hasTakenReward.array()[i]); } - size += dataSize; - if (!getHasTakenRewardList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - hasTakenRewardMemoizedSerializedSize = dataSize; } - if (beginTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, beginTime_); + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); } - if (score_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, score_); + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } - if (poolId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, poolId_); + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); } - if (hasTakenInitialScore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, hasTakenInitialScore_); + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(poolId); } - if (poolRefreshed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, poolRefreshed_); + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * hasTakenReward.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hasTakenReward); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo)) { - return super.equals(obj); - } - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo other = (emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo) obj; - - if (getBeginTime() - != other.getBeginTime()) return false; - if (!getHasTakenRewardList() - .equals(other.getHasTakenRewardList())) return false; - if (getPoolRefreshed() - != other.getPoolRefreshed()) return false; - if (getScore() - != other.getScore()) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (getPoolId() - != other.getPoolId()) return false; - if (getHasTakenInitialScore() - != other.getHasTakenInitialScore()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBeginTime()); - if (getHasTakenRewardCount() > 0) { - hash = (37 * hash) + HAS_TAKEN_REWARD_FIELD_NUMBER; - hash = (53 * hash) + getHasTakenRewardList().hashCode(); - } - hash = (37 * hash) + POOL_REFRESHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPoolRefreshed()); - hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + getScore(); - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEndTime()); - hash = (37 * hash) + POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getPoolId(); - hash = (37 * hash) + HAS_TAKEN_INITIAL_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasTakenInitialScore()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code RogueScoreRewardInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:RogueScoreRewardInfo) - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.internal_static_RogueScoreRewardInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.internal_static_RogueScoreRewardInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.class, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder.class); - } - - // Construct using emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - beginTime_ = 0L; - hasTakenReward_ = emptyIntList(); - poolRefreshed_ = false; - score_ = 0; - endTime_ = 0L; - poolId_ = 0; - hasTakenInitialScore_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.internal_static_RogueScoreRewardInfo_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getDefaultInstanceForType() { - return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo build() { - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo buildPartial() { - emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo result = new emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.beginTime_ = beginTime_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - hasTakenReward_.makeImmutable(); - result.hasTakenReward_ = hasTakenReward_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.poolRefreshed_ = poolRefreshed_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.score_ = score_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.endTime_ = endTime_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.poolId_ = poolId_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.hasTakenInitialScore_ = hasTakenInitialScore_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo) { - return mergeFrom((emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo other) { - if (other == emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance()) return this; - if (other.getBeginTime() != 0L) { - setBeginTime(other.getBeginTime()); - } - if (!other.hasTakenReward_.isEmpty()) { - if (hasTakenReward_.isEmpty()) { - hasTakenReward_ = other.hasTakenReward_; - hasTakenReward_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureHasTakenRewardIsMutable(); - hasTakenReward_.addAll(other.hasTakenReward_); + @Override + @SuppressWarnings("fallthrough") + public RogueScoreRewardInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // poolId + poolId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // hasTakenInitialScore + hasTakenInitialScore = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // poolRefreshed + poolRefreshed = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // hasTakenReward [packed=true] + input.readPackedUInt32(hasTakenReward, 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 40: { + // hasTakenReward [packed=false] + tag = input.readRepeatedUInt32(hasTakenReward, tag); + bitField0_ |= 0x00000040; + break; } - onChanged(); } - if (other.getPoolRefreshed() != false) { - setPoolRefreshed(other.getPoolRefreshed()); - } - if (other.getScore() != 0) { - setScore(other.getScore()); - } - if (other.getEndTime() != 0L) { - setEndTime(other.getEndTime()); - } - if (other.getPoolId() != 0) { - setPoolId(other.getPoolId()); - } - if (other.getHasTakenInitialScore() != false) { - setHasTakenInitialScore(other.getHasTakenInitialScore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.poolId, poolId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.hasTakenInitialScore, hasTakenInitialScore); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.poolRefreshed, poolRefreshed); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.hasTakenReward, hasTakenReward); + } + output.endObject(); + } + + @Override + public RogueScoreRewardInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - endTime_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 24 - case 40: { - int v = input.readUInt32(); - ensureHasTakenRewardIsMutable(); - hasTakenReward_.addInt(v); - break; - } // case 40 - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureHasTakenRewardIsMutable(); - while (input.getBytesUntilLimit() > 0) { - hasTakenReward_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 42 - case 48: { - beginTime_ = input.readInt64(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); bitField0_ |= 0x00000001; - break; - } // case 48 - case 56: { - score_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 56 - case 88: { - poolId_ = input.readUInt32(); - bitField0_ |= 0x00000020; - break; - } // case 88 - case 104: { - hasTakenInitialScore_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 104 - case 112: { - poolRefreshed_ = input.readBool(); + } + } else { + input.skipUnknownField(); + } + break; + } + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109264530: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); bitField0_ |= 0x00000004; - break; - } // case 112 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long beginTime_ ; - /** - *
-       * guess, either this or end_time
-       * 
- * - * int64 begin_time = 6; - * @return The beginTime. - */ - @java.lang.Override - public long getBeginTime() { - return beginTime_; - } - /** - *
-       * guess, either this or end_time
-       * 
- * - * int64 begin_time = 6; - * @param value The beginTime to set. - * @return This builder for chaining. - */ - public Builder setBeginTime(long value) { - - beginTime_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * guess, either this or end_time
-       * 
- * - * int64 begin_time = 6; - * @return This builder for chaining. - */ - public Builder clearBeginTime() { - bitField0_ = (bitField0_ & ~0x00000001); - beginTime_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList hasTakenReward_ = emptyIntList(); - private void ensureHasTakenRewardIsMutable() { - if (!hasTakenReward_.isModifiable()) { - hasTakenReward_ = makeMutableCopy(hasTakenReward_); + } + } else { + input.skipUnknownField(); + } + break; + } + case -982578601: + case -395144162: { + if (input.isAtField(FieldNames.poolId)) { + if (!input.trySkipNullValue()) { + poolId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1561171099: + case -1786836166: { + if (input.isAtField(FieldNames.hasTakenInitialScore)) { + if (!input.trySkipNullValue()) { + hasTakenInitialScore = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1555416066: + case -403409833: { + if (input.isAtField(FieldNames.poolRefreshed)) { + if (!input.trySkipNullValue()) { + poolRefreshed = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1115551708: + case 905949996: { + if (input.isAtField(FieldNames.hasTakenReward)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(hasTakenReward); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - bitField0_ |= 0x00000002; } - /** - * repeated uint32 has_taken_reward = 5; - * @return A list containing the hasTakenReward. - */ - public java.util.List - getHasTakenRewardList() { - hasTakenReward_.makeImmutable(); - return hasTakenReward_; - } - /** - * repeated uint32 has_taken_reward = 5; - * @return The count of hasTakenReward. - */ - public int getHasTakenRewardCount() { - return hasTakenReward_.size(); - } - /** - * repeated uint32 has_taken_reward = 5; - * @param index The index of the element to return. - * @return The hasTakenReward at the given index. - */ - public int getHasTakenReward(int index) { - return hasTakenReward_.getInt(index); - } - /** - * repeated uint32 has_taken_reward = 5; - * @param index The index to set the value at. - * @param value The hasTakenReward to set. - * @return This builder for chaining. - */ - public Builder setHasTakenReward( - int index, int value) { - - ensureHasTakenRewardIsMutable(); - hasTakenReward_.setInt(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated uint32 has_taken_reward = 5; - * @param value The hasTakenReward to add. - * @return This builder for chaining. - */ - public Builder addHasTakenReward(int value) { - - ensureHasTakenRewardIsMutable(); - hasTakenReward_.addInt(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated uint32 has_taken_reward = 5; - * @param values The hasTakenReward to add. - * @return This builder for chaining. - */ - public Builder addAllHasTakenReward( - java.lang.Iterable values) { - ensureHasTakenRewardIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hasTakenReward_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated uint32 has_taken_reward = 5; - * @return This builder for chaining. - */ - public Builder clearHasTakenReward() { - hasTakenReward_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private boolean poolRefreshed_ ; - /** - *
-       * guess
-       * 
- * - * bool pool_refreshed = 14; - * @return The poolRefreshed. - */ - @java.lang.Override - public boolean getPoolRefreshed() { - return poolRefreshed_; - } - /** - *
-       * guess
-       * 
- * - * bool pool_refreshed = 14; - * @param value The poolRefreshed to set. - * @return This builder for chaining. - */ - public Builder setPoolRefreshed(boolean value) { - - poolRefreshed_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * guess
-       * 
- * - * bool pool_refreshed = 14; - * @return This builder for chaining. - */ - public Builder clearPoolRefreshed() { - bitField0_ = (bitField0_ & ~0x00000004); - poolRefreshed_ = false; - onChanged(); - return this; - } - - private int score_ ; - /** - * uint32 score = 7; - * @return The score. - */ - @java.lang.Override - public int getScore() { - return score_; - } - /** - * uint32 score = 7; - * @param value The score to set. - * @return This builder for chaining. - */ - public Builder setScore(int value) { - - score_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 score = 7; - * @return This builder for chaining. - */ - public Builder clearScore() { - bitField0_ = (bitField0_ & ~0x00000008); - score_ = 0; - onChanged(); - return this; - } - - private long endTime_ ; - /** - *
-       * guess, either this or begin_time
-       * 
- * - * int64 end_time = 3; - * @return The endTime. - */ - @java.lang.Override - public long getEndTime() { - return endTime_; - } - /** - *
-       * guess, either this or begin_time
-       * 
- * - * int64 end_time = 3; - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(long value) { - - endTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * guess, either this or begin_time
-       * 
- * - * int64 end_time = 3; - * @return This builder for chaining. - */ - public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00000010); - endTime_ = 0L; - onChanged(); - return this; - } - - private int poolId_ ; - /** - * uint32 pool_id = 11; - * @return The poolId. - */ - @java.lang.Override - public int getPoolId() { - return poolId_; - } - /** - * uint32 pool_id = 11; - * @param value The poolId to set. - * @return This builder for chaining. - */ - public Builder setPoolId(int value) { - - poolId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint32 pool_id = 11; - * @return This builder for chaining. - */ - public Builder clearPoolId() { - bitField0_ = (bitField0_ & ~0x00000020); - poolId_ = 0; - onChanged(); - return this; - } - - private boolean hasTakenInitialScore_ ; - /** - *
-       * guess
-       * 
- * - * bool has_taken_initial_score = 13; - * @return The hasTakenInitialScore. - */ - @java.lang.Override - public boolean getHasTakenInitialScore() { - return hasTakenInitialScore_; - } - /** - *
-       * guess
-       * 
- * - * bool has_taken_initial_score = 13; - * @param value The hasTakenInitialScore to set. - * @return This builder for chaining. - */ - public Builder setHasTakenInitialScore(boolean value) { - - hasTakenInitialScore_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * guess
-       * 
- * - * bool has_taken_initial_score = 13; - * @return This builder for chaining. - */ - public Builder clearHasTakenInitialScore() { - bitField0_ = (bitField0_ & ~0x00000040); - hasTakenInitialScore_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:RogueScoreRewardInfo) + input.endObject(); + return this; } - // @@protoc_insertion_point(class_scope:RogueScoreRewardInfo) - private static final emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo(); + @Override + public RogueScoreRewardInfo clone() { + return new RogueScoreRewardInfo().copyFrom(this); } - public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getDefaultInstance() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RogueScoreRewardInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + public static RogueScoreRewardInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueScoreRewardInfo(), data).checkInitialized(); + } + + public static RogueScoreRewardInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueScoreRewardInfo(), input).checkInitialized(); + } + + public static RogueScoreRewardInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueScoreRewardInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueScoreRewardInfo messages + */ + public static MessageFactory getFactory() { + return RogueScoreRewardInfoFactory.INSTANCE; + } + + private enum RogueScoreRewardInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueScoreRewardInfo create() { + return RogueScoreRewardInfo.newInstance(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName endTime = FieldName.forField("endTime", "end_time"); - @java.lang.Override - public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + static final FieldName score = FieldName.forField("score"); + + static final FieldName poolId = FieldName.forField("poolId", "pool_id"); + + static final FieldName hasTakenInitialScore = FieldName.forField("hasTakenInitialScore", "has_taken_initial_score"); + + static final FieldName poolRefreshed = FieldName.forField("poolRefreshed", "pool_refreshed"); + + static final FieldName hasTakenReward = FieldName.forField("hasTakenReward", "has_taken_reward"); + } } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RogueScoreRewardInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_RogueScoreRewardInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032RogueScoreRewardInfo.proto\"\257\001\n\024RogueSc" + - "oreRewardInfo\022\022\n\nbegin_time\030\006 \001(\003\022\030\n\020has" + - "_taken_reward\030\005 \003(\r\022\026\n\016pool_refreshed\030\016 " + - "\001(\010\022\r\n\005score\030\007 \001(\r\022\020\n\010end_time\030\003 \001(\003\022\017\n\007" + - "pool_id\030\013 \001(\r\022\037\n\027has_taken_initial_score" + - "\030\r \001(\010B\025\n\023emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_RogueScoreRewardInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_RogueScoreRewardInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_RogueScoreRewardInfo_descriptor, - new java.lang.String[] { "BeginTime", "HasTakenReward", "PoolRefreshed", "Score", "EndTime", "PoolId", "HasTakenInitialScore", }); - descriptor.resolveAllFeatures(); - } - - // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java index bf023d0..2da35ae 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java @@ -20,7 +20,7 @@ public final class RogueTalentInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 3; */ private final RepeatedMessage rogueTalent = RepeatedMessage.newEmptyInstance(RogueTalentOuterClass.RogueTalent.getFactory()); @@ -35,7 +35,7 @@ public final class RogueTalentInfoOuterClass { } /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 3; * @return whether the rogueTalent field is set */ public boolean hasRogueTalent() { @@ -43,7 +43,7 @@ public final class RogueTalentInfoOuterClass { } /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 3; * @return this */ public RogueTalentInfo clearRogueTalent() { @@ -53,7 +53,7 @@ public final class RogueTalentInfoOuterClass { } /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 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. @@ -67,7 +67,7 @@ public final class RogueTalentInfoOuterClass { } /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 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 @@ -81,7 +81,7 @@ public final class RogueTalentInfoOuterClass { } /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 3; * @param value the rogueTalent to add * @return this */ @@ -92,7 +92,7 @@ public final class RogueTalentInfoOuterClass { } /** - * repeated .RogueTalent rogue_talent = 8; + * repeated .RogueTalent rogue_talent = 3; * @param values the rogueTalent to add * @return this */ @@ -163,7 +163,7 @@ public final class RogueTalentInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < rogueTalent.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 26); output.writeMessageNoTag(rogueTalent.get(i)); } } @@ -185,7 +185,7 @@ public final class RogueTalentInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 26: { // rogueTalent tag = input.readRepeatedMessage(rogueTalent, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java index dfd414d..b001c66 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java @@ -20,17 +20,17 @@ public final class RogueTalentOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 talent_id = 11; + * optional uint32 talent_id = 1; */ private int talentId; /** - * optional .RogueTalentStatus status = 8; + * optional .RogueTalentStatus status = 3; */ private int status; /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_list = 7; */ private final RepeatedMessage unlockProgressList = RepeatedMessage.newEmptyInstance(RogueUnlockProgressOuterClass.RogueUnlockProgress.getFactory()); @@ -45,7 +45,7 @@ public final class RogueTalentOuterClass { } /** - * optional uint32 talent_id = 11; + * optional uint32 talent_id = 1; * @return whether the talentId field is set */ public boolean hasTalentId() { @@ -53,7 +53,7 @@ public final class RogueTalentOuterClass { } /** - * optional uint32 talent_id = 11; + * optional uint32 talent_id = 1; * @return this */ public RogueTalent clearTalentId() { @@ -63,7 +63,7 @@ public final class RogueTalentOuterClass { } /** - * optional uint32 talent_id = 11; + * optional uint32 talent_id = 1; * @return the talentId */ public int getTalentId() { @@ -71,7 +71,7 @@ public final class RogueTalentOuterClass { } /** - * optional uint32 talent_id = 11; + * optional uint32 talent_id = 1; * @param value the talentId to set * @return this */ @@ -82,7 +82,7 @@ public final class RogueTalentOuterClass { } /** - * optional .RogueTalentStatus status = 8; + * optional .RogueTalentStatus status = 3; * @return whether the status field is set */ public boolean hasStatus() { @@ -90,7 +90,7 @@ public final class RogueTalentOuterClass { } /** - * optional .RogueTalentStatus status = 8; + * optional .RogueTalentStatus status = 3; * @return this */ public RogueTalent clearStatus() { @@ -100,7 +100,7 @@ public final class RogueTalentOuterClass { } /** - * optional .RogueTalentStatus status = 8; + * optional .RogueTalentStatus status = 3; * @return the status */ public RogueTalentStatusOuterClass.RogueTalentStatus getStatus() { @@ -133,7 +133,7 @@ public final class RogueTalentOuterClass { } /** - * optional .RogueTalentStatus status = 8; + * optional .RogueTalentStatus status = 3; * @param value the status to set * @return this */ @@ -144,7 +144,7 @@ public final class RogueTalentOuterClass { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_list = 7; * @return whether the unlockProgressList field is set */ public boolean hasUnlockProgressList() { @@ -152,7 +152,7 @@ public final class RogueTalentOuterClass { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_list = 7; * @return this */ public RogueTalent clearUnlockProgressList() { @@ -162,7 +162,7 @@ public final class RogueTalentOuterClass { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_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. @@ -177,7 +177,7 @@ public final class RogueTalentOuterClass { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_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 @@ -192,7 +192,7 @@ public final class RogueTalentOuterClass { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_list = 7; * @param value the unlockProgressList to add * @return this */ @@ -204,7 +204,7 @@ public final class RogueTalentOuterClass { } /** - * repeated .RogueUnlockProgress unlock_progress_list = 13; + * repeated .RogueUnlockProgress unlock_progress_list = 7; * @param values the unlockProgressList to add * @return this */ @@ -287,16 +287,16 @@ public final class RogueTalentOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(talentId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 24); output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < unlockProgressList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 58); output.writeMessageNoTag(unlockProgressList.get(i)); } } @@ -324,16 +324,16 @@ public final class RogueTalentOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 8: { // talentId talentId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 24) { break; } } - case 64: { + case 24: { // status final int value = input.readInt32(); if (RogueTalentStatusOuterClass.RogueTalentStatus.forNumber(value) != null) { @@ -341,11 +341,11 @@ public final class RogueTalentOuterClass { bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 106) { + if (tag != 58) { break; } } - case 106: { + case 58: { // unlockProgressList tag = input.readRepeatedMessage(unlockProgressList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java index 539b83c..560b2da 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java @@ -1,639 +1,420 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RogueUnlockProgress.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 RogueUnlockProgressOuterClass { - private RogueUnlockProgressOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - RogueUnlockProgressOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RogueUnlockProgressOrBuilder extends - // @@protoc_insertion_point(interface_extends:RogueUnlockProgress) - com.google.protobuf.MessageOrBuilder { - - /** - * bool finish = 12; - * @return The finish. - */ - boolean getFinish(); - - /** - * uint32 progress = 9; - * @return The progress. - */ - int getProgress(); - - /** - * uint32 unlock_id = 8; - * @return The unlockId. - */ - int getUnlockId(); - } /** * Protobuf type {@code RogueUnlockProgress} */ - public static final class RogueUnlockProgress extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:RogueUnlockProgress) - RogueUnlockProgressOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - RogueUnlockProgress.class.getName()); - } - // Use RogueUnlockProgress.newBuilder() to construct. - private RogueUnlockProgress(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class RogueUnlockProgress extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 unlock_id = 8; + */ + private int unlockId; + + /** + * optional uint32 progress = 9; + */ + private int progress; + + /** + * optional bool finish = 12; + */ + private boolean finish; + private RogueUnlockProgress() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.class, emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.Builder.class); - } - - public static final int FINISH_FIELD_NUMBER = 12; - private boolean finish_ = false; /** - * bool finish = 12; - * @return The finish. + * @return a new empty instance of {@code RogueUnlockProgress} */ - @java.lang.Override - public boolean getFinish() { - return finish_; + public static RogueUnlockProgress newInstance() { + return new RogueUnlockProgress(); } - public static final int PROGRESS_FIELD_NUMBER = 9; - private int progress_ = 0; /** - * uint32 progress = 9; - * @return The progress. + * optional uint32 unlock_id = 8; + * @return whether the unlockId field is set */ - @java.lang.Override - public int getProgress() { - return progress_; + public boolean hasUnlockId() { + return (bitField0_ & 0x00000001) != 0; } - public static final int UNLOCK_ID_FIELD_NUMBER = 8; - private int unlockId_ = 0; /** - * uint32 unlock_id = 8; - * @return The unlockId. + * optional uint32 unlock_id = 8; + * @return this + */ + public RogueUnlockProgress clearUnlockId() { + bitField0_ &= ~0x00000001; + unlockId = 0; + return this; + } + + /** + * optional uint32 unlock_id = 8; + * @return the unlockId */ - @java.lang.Override public int getUnlockId() { - return unlockId_; + return unlockId; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 unlock_id = 8; + * @param value the unlockId to set + * @return this + */ + public RogueUnlockProgress setUnlockId(final int value) { + bitField0_ |= 0x00000001; + unlockId = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (unlockId_ != 0) { - output.writeUInt32(8, unlockId_); - } - if (progress_ != 0) { - output.writeUInt32(9, progress_); - } - if (finish_ != false) { - output.writeBool(12, finish_); - } - getUnknownFields().writeTo(output); + /** + * optional uint32 progress = 9; + * @return whether the progress field is set + */ + public boolean hasProgress() { + return (bitField0_ & 0x00000002) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * optional uint32 progress = 9; + * @return this + */ + public RogueUnlockProgress clearProgress() { + bitField0_ &= ~0x00000002; + progress = 0; + return this; + } - size = 0; - if (unlockId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, unlockId_); + /** + * optional uint32 progress = 9; + * @return the progress + */ + public int getProgress() { + return progress; + } + + /** + * optional uint32 progress = 9; + * @param value the progress to set + * @return this + */ + public RogueUnlockProgress setProgress(final int value) { + bitField0_ |= 0x00000002; + progress = value; + return this; + } + + /** + * optional bool finish = 12; + * @return whether the finish field is set + */ + public boolean hasFinish() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool finish = 12; + * @return this + */ + public RogueUnlockProgress clearFinish() { + bitField0_ &= ~0x00000004; + finish = false; + return this; + } + + /** + * optional bool finish = 12; + * @return the finish + */ + public boolean getFinish() { + return finish; + } + + /** + * optional bool finish = 12; + * @param value the finish to set + * @return this + */ + public RogueUnlockProgress setFinish(final boolean value) { + bitField0_ |= 0x00000004; + finish = value; + return this; + } + + @Override + public RogueUnlockProgress copyFrom(final RogueUnlockProgress other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unlockId = other.unlockId; + progress = other.progress; + finish = other.finish; } - if (progress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, progress_); + return this; + } + + @Override + public RogueUnlockProgress mergeFrom(final RogueUnlockProgress other) { + if (other.isEmpty()) { + return this; } - if (finish_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, finish_); + cachedSize = -1; + if (other.hasUnlockId()) { + setUnlockId(other.unlockId); + } + if (other.hasProgress()) { + setProgress(other.progress); + } + if (other.hasFinish()) { + setFinish(other.finish); + } + return this; + } + + @Override + public RogueUnlockProgress clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unlockId = 0; + progress = 0; + finish = false; + return this; + } + + @Override + public RogueUnlockProgress 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 RogueUnlockProgress)) { + return false; + } + RogueUnlockProgress other = (RogueUnlockProgress) o; + return bitField0_ == other.bitField0_ + && (!hasUnlockId() || unlockId == other.unlockId) + && (!hasProgress() || progress == other.progress) + && (!hasFinish() || finish == other.finish); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(unlockId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(progress); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeBoolNoTag(finish); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public RogueUnlockProgress mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // unlockId + unlockId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // progress + progress = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // finish + finish = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.unlockId, unlockId); } - emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress other = (emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress) obj; - - if (getFinish() - != other.getFinish()) return false; - if (getProgress() - != other.getProgress()) return false; - if (getUnlockId() - != other.getUnlockId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.progress, progress); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FINISH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFinish()); - hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getProgress(); - hash = (37 * hash) + UNLOCK_ID_FIELD_NUMBER; - hash = (53 * hash) + getUnlockId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code RogueUnlockProgress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:RogueUnlockProgress) - emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor; + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.finish, finish); } + output.endObject(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.class, emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.Builder.class); - } - - // Construct using emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - finish_ = false; - progress_ = 0; - unlockId_ = 0; + @Override + public RogueUnlockProgress mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstanceForType() { - return emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress build() { - emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress buildPartial() { - emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress result = new emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.finish_ = finish_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.progress_ = progress_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.unlockId_ = unlockId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress) { - return mergeFrom((emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress other) { - if (other == emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.getDefaultInstance()) return this; - if (other.getFinish() != false) { - setFinish(other.getFinish()); - } - if (other.getProgress() != 0) { - setProgress(other.getProgress()); - } - if (other.getUnlockId() != 0) { - setUnlockId(other.getUnlockId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 64: { - unlockId_ = input.readUInt32(); - bitField0_ |= 0x00000004; - break; - } // case 64 - case 72: { - progress_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 72 - case 96: { - finish_ = input.readBool(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -210950273: + case 2050497526: { + if (input.isAtField(FieldNames.unlockId)) { + if (!input.trySkipNullValue()) { + unlockId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean finish_ ; - /** - * bool finish = 12; - * @return The finish. - */ - @java.lang.Override - public boolean getFinish() { - return finish_; - } - /** - * bool finish = 12; - * @param value The finish to set. - * @return This builder for chaining. - */ - public Builder setFinish(boolean value) { - - finish_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool finish = 12; - * @return This builder for chaining. - */ - public Builder clearFinish() { - bitField0_ = (bitField0_ & ~0x00000001); - finish_ = false; - onChanged(); - return this; - } - - private int progress_ ; - /** - * uint32 progress = 9; - * @return The progress. - */ - @java.lang.Override - public int getProgress() { - return progress_; - } - /** - * uint32 progress = 9; - * @param value The progress to set. - * @return This builder for chaining. - */ - public Builder setProgress(int value) { - - progress_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 progress = 9; - * @return This builder for chaining. - */ - public Builder clearProgress() { - bitField0_ = (bitField0_ & ~0x00000002); - progress_ = 0; - onChanged(); - return this; - } - - private int unlockId_ ; - /** - * uint32 unlock_id = 8; - * @return The unlockId. - */ - @java.lang.Override - public int getUnlockId() { - return unlockId_; - } - /** - * uint32 unlock_id = 8; - * @param value The unlockId to set. - * @return This builder for chaining. - */ - public Builder setUnlockId(int value) { - - unlockId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 unlock_id = 8; - * @return This builder for chaining. - */ - public Builder clearUnlockId() { - bitField0_ = (bitField0_ & ~0x00000004); - unlockId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:RogueUnlockProgress) - } - - // @@protoc_insertion_point(class_scope:RogueUnlockProgress) - private static final emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress(); - } - - public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RogueUnlockProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + case -1001078227: { + if (input.isAtField(FieldNames.progress)) { + if (!input.trySkipNullValue()) { + progress = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1274442605: { + if (input.isAtField(FieldNames.finish)) { + if (!input.trySkipNullValue()) { + finish = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public RogueUnlockProgress clone() { + return new RogueUnlockProgress().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static RogueUnlockProgress parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueUnlockProgress(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RogueUnlockProgress_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_RogueUnlockProgress_fieldAccessorTable; + public static RogueUnlockProgress parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031RogueUnlockProgress.proto\"J\n\023RogueUnlo" + - "ckProgress\022\016\n\006finish\030\014 \001(\010\022\020\n\010progress\030\t" + - " \001(\r\022\021\n\tunlock_id\030\010 \001(\rB\025\n\023emu.lunarcore" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_RogueUnlockProgress_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_RogueUnlockProgress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_RogueUnlockProgress_descriptor, - new java.lang.String[] { "Finish", "Progress", "UnlockId", }); - descriptor.resolveAllFeatures(); - } + public static RogueUnlockProgress parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating RogueUnlockProgress messages + */ + public static MessageFactory getFactory() { + return RogueUnlockProgressFactory.INSTANCE; + } + + private enum RogueUnlockProgressFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueUnlockProgress create() { + return RogueUnlockProgress.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unlockId = FieldName.forField("unlockId", "unlock_id"); + + static final FieldName progress = FieldName.forField("progress"); + + static final FieldName finish = FieldName.forField("finish"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java index 1e7717b..d93f439 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java @@ -1,638 +1,421 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneMonsterWaveParam.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 SceneMonsterWaveParamOuterClass { - private SceneMonsterWaveParamOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - SceneMonsterWaveParamOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneMonsterWaveParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneMonsterWaveParam) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 hard_level_group = 3; - * @return The hardLevelGroup. - */ - int getHardLevelGroup(); - - /** - * uint32 level = 8; - * @return The level. - */ - int getLevel(); - - /** - * uint32 elite_group = 10; - * @return The eliteGroup. - */ - int getEliteGroup(); - } /** * Protobuf type {@code SceneMonsterWaveParam} */ - public static final class SceneMonsterWaveParam extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:SceneMonsterWaveParam) - SceneMonsterWaveParamOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - SceneMonsterWaveParam.class.getName()); - } - // Use SceneMonsterWaveParam.newBuilder() to construct. - private SceneMonsterWaveParam(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class SceneMonsterWaveParam extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 hard_level_group = 3; + */ + private int hardLevelGroup; + + /** + * optional uint32 level = 8; + */ + private int level; + + /** + * optional uint32 elite_group = 10; + */ + private int eliteGroup; + private SceneMonsterWaveParam() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.class, emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.Builder.class); - } - - public static final int HARD_LEVEL_GROUP_FIELD_NUMBER = 3; - private int hardLevelGroup_ = 0; /** - * uint32 hard_level_group = 3; - * @return The hardLevelGroup. + * @return a new empty instance of {@code SceneMonsterWaveParam} + */ + public static SceneMonsterWaveParam newInstance() { + return new SceneMonsterWaveParam(); + } + + /** + * optional uint32 hard_level_group = 3; + * @return whether the hardLevelGroup field is set + */ + public boolean hasHardLevelGroup() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 hard_level_group = 3; + * @return this + */ + public SceneMonsterWaveParam clearHardLevelGroup() { + bitField0_ &= ~0x00000001; + hardLevelGroup = 0; + return this; + } + + /** + * optional uint32 hard_level_group = 3; + * @return the hardLevelGroup */ - @java.lang.Override public int getHardLevelGroup() { - return hardLevelGroup_; + return hardLevelGroup; } - public static final int LEVEL_FIELD_NUMBER = 8; - private int level_ = 0; /** - * uint32 level = 8; - * @return The level. + * optional uint32 hard_level_group = 3; + * @param value the hardLevelGroup to set + * @return this + */ + public SceneMonsterWaveParam setHardLevelGroup(final int value) { + bitField0_ |= 0x00000001; + hardLevelGroup = value; + return this; + } + + /** + * optional uint32 level = 8; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 8; + * @return this + */ + public SceneMonsterWaveParam clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 8; + * @return the level */ - @java.lang.Override public int getLevel() { - return level_; + return level; } - public static final int ELITE_GROUP_FIELD_NUMBER = 10; - private int eliteGroup_ = 0; /** - * uint32 elite_group = 10; - * @return The eliteGroup. + * optional uint32 level = 8; + * @param value the level to set + * @return this + */ + public SceneMonsterWaveParam setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 elite_group = 10; + * @return whether the eliteGroup field is set + */ + public boolean hasEliteGroup() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 elite_group = 10; + * @return this + */ + public SceneMonsterWaveParam clearEliteGroup() { + bitField0_ &= ~0x00000004; + eliteGroup = 0; + return this; + } + + /** + * optional uint32 elite_group = 10; + * @return the eliteGroup */ - @java.lang.Override public int getEliteGroup() { - return eliteGroup_; + return eliteGroup; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 elite_group = 10; + * @param value the eliteGroup to set + * @return this + */ + public SceneMonsterWaveParam setEliteGroup(final int value) { + bitField0_ |= 0x00000004; + eliteGroup = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hardLevelGroup_ != 0) { - output.writeUInt32(3, hardLevelGroup_); + @Override + public SceneMonsterWaveParam copyFrom(final SceneMonsterWaveParam other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hardLevelGroup = other.hardLevelGroup; + level = other.level; + eliteGroup = other.eliteGroup; } - if (level_ != 0) { - output.writeUInt32(8, level_); - } - if (eliteGroup_ != 0) { - output.writeUInt32(10, eliteGroup_); - } - getUnknownFields().writeTo(output); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @Override + public SceneMonsterWaveParam mergeFrom(final SceneMonsterWaveParam other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHardLevelGroup()) { + setHardLevelGroup(other.hardLevelGroup); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasEliteGroup()) { + setEliteGroup(other.eliteGroup); + } + return this; + } - size = 0; - if (hardLevelGroup_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, hardLevelGroup_); + @Override + public SceneMonsterWaveParam clear() { + if (isEmpty()) { + return this; } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, level_); + cachedSize = -1; + bitField0_ = 0; + hardLevelGroup = 0; + level = 0; + eliteGroup = 0; + return this; + } + + @Override + public SceneMonsterWaveParam clearQuick() { + if (isEmpty()) { + return this; } - if (eliteGroup_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, eliteGroup_); + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneMonsterWaveParam)) { + return false; + } + SceneMonsterWaveParam other = (SceneMonsterWaveParam) o; + return bitField0_ == other.bitField0_ + && (!hasHardLevelGroup() || hardLevelGroup == other.hardLevelGroup) + && (!hasLevel() || level == other.level) + && (!hasEliteGroup() || eliteGroup == other.eliteGroup); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(hardLevelGroup); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(eliteGroup); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hardLevelGroup); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eliteGroup); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public SceneMonsterWaveParam mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // hardLevelGroup + hardLevelGroup = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // eliteGroup + eliteGroup = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.hardLevelGroup, hardLevelGroup); } - emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam other = (emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam) obj; - - if (getHardLevelGroup() - != other.getHardLevelGroup()) return false; - if (getLevel() - != other.getLevel()) return false; - if (getEliteGroup() - != other.getEliteGroup()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HARD_LEVEL_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getHardLevelGroup(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + ELITE_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getEliteGroup(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneMonsterWaveParam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:SceneMonsterWaveParam) - emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor; + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.eliteGroup, eliteGroup); } + output.endObject(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.class, emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.Builder.class); - } - - // Construct using emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - hardLevelGroup_ = 0; - level_ = 0; - eliteGroup_ = 0; + @Override + public SceneMonsterWaveParam mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstanceForType() { - return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam build() { - emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam buildPartial() { - emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam result = new emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.hardLevelGroup_ = hardLevelGroup_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.eliteGroup_ = eliteGroup_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam) { - return mergeFrom((emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam other) { - if (other == emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.getDefaultInstance()) return this; - if (other.getHardLevelGroup() != 0) { - setHardLevelGroup(other.getHardLevelGroup()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getEliteGroup() != 0) { - setEliteGroup(other.getEliteGroup()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - hardLevelGroup_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 973582502: + case -935765840: { + if (input.isAtField(FieldNames.hardLevelGroup)) { + if (!input.trySkipNullValue()) { + hardLevelGroup = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 24 - case 64: { - level_ = input.readUInt32(); + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); bitField0_ |= 0x00000002; - break; - } // case 64 - case 80: { - eliteGroup_ = input.readUInt32(); + } + } else { + input.skipUnknownField(); + } + break; + } + case 838742956: + case 908252627: { + if (input.isAtField(FieldNames.eliteGroup)) { + if (!input.trySkipNullValue()) { + eliteGroup = input.readUInt32(); bitField0_ |= 0x00000004; - break; - } // case 80 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int hardLevelGroup_ ; - /** - * uint32 hard_level_group = 3; - * @return The hardLevelGroup. - */ - @java.lang.Override - public int getHardLevelGroup() { - return hardLevelGroup_; - } - /** - * uint32 hard_level_group = 3; - * @param value The hardLevelGroup to set. - * @return This builder for chaining. - */ - public Builder setHardLevelGroup(int value) { - - hardLevelGroup_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 hard_level_group = 3; - * @return This builder for chaining. - */ - public Builder clearHardLevelGroup() { - bitField0_ = (bitField0_ & ~0x00000001); - hardLevelGroup_ = 0; - onChanged(); - return this; - } - - private int level_ ; - /** - * uint32 level = 8; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * uint32 level = 8; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 level = 8; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000002); - level_ = 0; - onChanged(); - return this; - } - - private int eliteGroup_ ; - /** - * uint32 elite_group = 10; - * @return The eliteGroup. - */ - @java.lang.Override - public int getEliteGroup() { - return eliteGroup_; - } - /** - * uint32 elite_group = 10; - * @param value The eliteGroup to set. - * @return This builder for chaining. - */ - public Builder setEliteGroup(int value) { - - eliteGroup_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 elite_group = 10; - * @return This builder for chaining. - */ - public Builder clearEliteGroup() { - bitField0_ = (bitField0_ & ~0x00000004); - eliteGroup_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:SceneMonsterWaveParam) - } - - // @@protoc_insertion_point(class_scope:SceneMonsterWaveParam) - private static final emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam(); - } - - public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SceneMonsterWaveParam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public SceneMonsterWaveParam clone() { + return new SceneMonsterWaveParam().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static SceneMonsterWaveParam parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneMonsterWaveParam_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_SceneMonsterWaveParam_fieldAccessorTable; + public static SceneMonsterWaveParam parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SceneMonsterWaveParam.proto\"U\n\025SceneMo" + - "nsterWaveParam\022\030\n\020hard_level_group\030\003 \001(\r" + - "\022\r\n\005level\030\010 \001(\r\022\023\n\013elite_group\030\n \001(\rB\025\n\023" + - "emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneMonsterWaveParam_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneMonsterWaveParam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_SceneMonsterWaveParam_descriptor, - new java.lang.String[] { "HardLevelGroup", "Level", "EliteGroup", }); - descriptor.resolveAllFeatures(); - } + public static SceneMonsterWaveParam parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating SceneMonsterWaveParam messages + */ + public static MessageFactory getFactory() { + return SceneMonsterWaveParamFactory.INSTANCE; + } + + private enum SceneMonsterWaveParamFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneMonsterWaveParam create() { + return SceneMonsterWaveParam.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hardLevelGroup = FieldName.forField("hardLevelGroup", "hard_level_group"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName eliteGroup = FieldName.forField("eliteGroup", "elite_group"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java index c13145a..9db80a8 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java @@ -1,493 +1,260 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakeChallengeRewardCsReq.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 TakeChallengeRewardCsReqOuterClass { - private TakeChallengeRewardCsReqOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - TakeChallengeRewardCsReqOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakeChallengeRewardCsReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakeChallengeRewardCsReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 group_id = 1; - * @return The groupId. - */ - int getGroupId(); - } /** * Protobuf type {@code TakeChallengeRewardCsReq} */ - public static final class TakeChallengeRewardCsReq extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TakeChallengeRewardCsReq) - TakeChallengeRewardCsReqOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - TakeChallengeRewardCsReq.class.getName()); - } - // Use TakeChallengeRewardCsReq.newBuilder() to construct. - private TakeChallengeRewardCsReq(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class TakeChallengeRewardCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 group_id = 1; + */ + private int groupId; + private TakeChallengeRewardCsReq() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.class, emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.Builder.class); - } - - public static final int GROUP_ID_FIELD_NUMBER = 1; - private int groupId_ = 0; /** - * uint32 group_id = 1; - * @return The groupId. + * @return a new empty instance of {@code TakeChallengeRewardCsReq} + */ + public static TakeChallengeRewardCsReq newInstance() { + return new TakeChallengeRewardCsReq(); + } + + /** + * optional uint32 group_id = 1; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 group_id = 1; + * @return this + */ + public TakeChallengeRewardCsReq clearGroupId() { + bitField0_ &= ~0x00000001; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 1; + * @return the groupId */ - @java.lang.Override public int getGroupId() { - return groupId_; + return groupId; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 group_id = 1; + * @param value the groupId to set + * @return this + */ + public TakeChallengeRewardCsReq setGroupId(final int value) { + bitField0_ |= 0x00000001; + groupId = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (groupId_ != 0) { - output.writeUInt32(1, groupId_); + @Override + public TakeChallengeRewardCsReq copyFrom(final TakeChallengeRewardCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + groupId = other.groupId; } - getUnknownFields().writeTo(output); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (groupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, groupId_); + @Override + public TakeChallengeRewardCsReq mergeFrom(final TakeChallengeRewardCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + return this; + } + + @Override + public TakeChallengeRewardCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupId = 0; + return this; + } + + @Override + public TakeChallengeRewardCsReq 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 TakeChallengeRewardCsReq)) { + return false; + } + TakeChallengeRewardCsReq other = (TakeChallengeRewardCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasGroupId() || groupId == other.groupId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(groupId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public TakeChallengeRewardCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // groupId + groupId = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); } - emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq other = (emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq) obj; - - if (getGroupId() - != other.getGroupId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + output.endObject(); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TakeChallengeRewardCsReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TakeChallengeRewardCsReq) - emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.class, emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.Builder.class); - } - - // Construct using emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - groupId_ = 0; + @Override + public TakeChallengeRewardCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstanceForType() { - return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq build() { - emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq buildPartial() { - emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq result = new emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.groupId_ = groupId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq) { - return mergeFrom((emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq other) { - if (other == emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.getDefaultInstance()) return this; - if (other.getGroupId() != 0) { - setGroupId(other.getGroupId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - groupId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int groupId_ ; - /** - * uint32 group_id = 1; - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - /** - * uint32 group_id = 1; - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(int value) { - - groupId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 group_id = 1; - * @return This builder for chaining. - */ - public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000001); - groupId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:TakeChallengeRewardCsReq) - } - - // @@protoc_insertion_point(class_scope:TakeChallengeRewardCsReq) - private static final emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq(); - } - - public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TakeChallengeRewardCsReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public TakeChallengeRewardCsReq clone() { + return new TakeChallengeRewardCsReq().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static TakeChallengeRewardCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakeChallengeRewardCsReq_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TakeChallengeRewardCsReq_fieldAccessorTable; + public static TakeChallengeRewardCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036TakeChallengeRewardCsReq.proto\",\n\030Take" + - "ChallengeRewardCsReq\022\020\n\010group_id\030\001 \001(\rB\025" + - "\n\023emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakeChallengeRewardCsReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakeChallengeRewardCsReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TakeChallengeRewardCsReq_descriptor, - new java.lang.String[] { "GroupId", }); - descriptor.resolveAllFeatures(); - } + public static TakeChallengeRewardCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating TakeChallengeRewardCsReq messages + */ + public static MessageFactory getFactory() { + return TakeChallengeRewardCsReqFactory.INSTANCE; + } + + private enum TakeChallengeRewardCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TakeChallengeRewardCsReq create() { + return TakeChallengeRewardCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + } + } } diff --git a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java index dbe4550..abeadda 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java @@ -1,686 +1,382 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakeMailAttachmentCsReq.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 TakeMailAttachmentCsReqOuterClass { - private TakeMailAttachmentCsReqOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - TakeMailAttachmentCsReqOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakeMailAttachmentCsReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakeMailAttachmentCsReq) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint32 mail_id_list = 12; - * @return A list containing the mailIdList. - */ - java.util.List getMailIdListList(); - /** - * repeated uint32 mail_id_list = 12; - * @return The count of mailIdList. - */ - int getMailIdListCount(); - /** - * repeated uint32 mail_id_list = 12; - * @param index The index of the element to return. - * @return The mailIdList at the given index. - */ - int getMailIdList(int index); - - /** - * uint32 optional_reward_id = 9; - * @return The optionalRewardId. - */ - int getOptionalRewardId(); - } /** * Protobuf type {@code TakeMailAttachmentCsReq} */ - public static final class TakeMailAttachmentCsReq extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TakeMailAttachmentCsReq) - TakeMailAttachmentCsReqOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - TakeMailAttachmentCsReq.class.getName()); - } - // Use TakeMailAttachmentCsReq.newBuilder() to construct. - private TakeMailAttachmentCsReq(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class TakeMailAttachmentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 optional_reward_id = 9; + */ + private int optionalRewardId; + + /** + * repeated uint32 mail_id_list = 12; + */ + private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance(); + private TakeMailAttachmentCsReq() { - mailIdList_ = emptyIntList(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor; + /** + * @return a new empty instance of {@code TakeMailAttachmentCsReq} + */ + public static TakeMailAttachmentCsReq newInstance() { + return new TakeMailAttachmentCsReq(); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.class, emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.Builder.class); + /** + * optional uint32 optional_reward_id = 9; + * @return whether the optionalRewardId field is set + */ + public boolean hasOptionalRewardId() { + return (bitField0_ & 0x00000001) != 0; } - public static final int MAIL_ID_LIST_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList mailIdList_ = - emptyIntList(); /** - * repeated uint32 mail_id_list = 12; - * @return A list containing the mailIdList. + * optional uint32 optional_reward_id = 9; + * @return this */ - @java.lang.Override - public java.util.List - getMailIdListList() { - return mailIdList_; + public TakeMailAttachmentCsReq clearOptionalRewardId() { + bitField0_ &= ~0x00000001; + optionalRewardId = 0; + return this; } - /** - * repeated uint32 mail_id_list = 12; - * @return The count of mailIdList. - */ - public int getMailIdListCount() { - return mailIdList_.size(); - } - /** - * repeated uint32 mail_id_list = 12; - * @param index The index of the element to return. - * @return The mailIdList at the given index. - */ - public int getMailIdList(int index) { - return mailIdList_.getInt(index); - } - private int mailIdListMemoizedSerializedSize = -1; - public static final int OPTIONAL_REWARD_ID_FIELD_NUMBER = 9; - private int optionalRewardId_ = 0; /** - * uint32 optional_reward_id = 9; - * @return The optionalRewardId. + * optional uint32 optional_reward_id = 9; + * @return the optionalRewardId */ - @java.lang.Override public int getOptionalRewardId() { - return optionalRewardId_; + return optionalRewardId; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 optional_reward_id = 9; + * @param value the optionalRewardId to set + * @return this + */ + public TakeMailAttachmentCsReq setOptionalRewardId(final int value) { + bitField0_ |= 0x00000001; + optionalRewardId = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (optionalRewardId_ != 0) { - output.writeUInt32(9, optionalRewardId_); - } - if (getMailIdListList().size() > 0) { - output.writeUInt32NoTag(98); - output.writeUInt32NoTag(mailIdListMemoizedSerializedSize); - } - for (int i = 0; i < mailIdList_.size(); i++) { - output.writeUInt32NoTag(mailIdList_.getInt(i)); - } - getUnknownFields().writeTo(output); + /** + * repeated uint32 mail_id_list = 12; + * @return whether the mailIdList field is set + */ + public boolean hasMailIdList() { + return (bitField0_ & 0x00000002) != 0; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * repeated uint32 mail_id_list = 12; + * @return this + */ + public TakeMailAttachmentCsReq clearMailIdList() { + bitField0_ &= ~0x00000002; + mailIdList.clear(); + return this; + } - size = 0; - if (optionalRewardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, optionalRewardId_); + /** + * repeated uint32 mail_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 #getMutableMailIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMailIdList() { + return mailIdList; + } + + /** + * repeated uint32 mail_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 getMutableMailIdList() { + bitField0_ |= 0x00000002; + return mailIdList; + } + + /** + * repeated uint32 mail_id_list = 12; + * @param value the mailIdList to add + * @return this + */ + public TakeMailAttachmentCsReq addMailIdList(final int value) { + bitField0_ |= 0x00000002; + mailIdList.add(value); + return this; + } + + /** + * repeated uint32 mail_id_list = 12; + * @param values the mailIdList to add + * @return this + */ + public TakeMailAttachmentCsReq addAllMailIdList(final int... values) { + bitField0_ |= 0x00000002; + mailIdList.addAll(values); + return this; + } + + @Override + public TakeMailAttachmentCsReq copyFrom(final TakeMailAttachmentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + optionalRewardId = other.optionalRewardId; + mailIdList.copyFrom(other.mailIdList); } - { - int dataSize = 0; - for (int i = 0; i < mailIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(mailIdList_.getInt(i)); + return this; + } + + @Override + public TakeMailAttachmentCsReq mergeFrom(final TakeMailAttachmentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOptionalRewardId()) { + setOptionalRewardId(other.optionalRewardId); + } + if (other.hasMailIdList()) { + getMutableMailIdList().addAll(other.mailIdList); + } + return this; + } + + @Override + public TakeMailAttachmentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + optionalRewardId = 0; + mailIdList.clear(); + return this; + } + + @Override + public TakeMailAttachmentCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mailIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TakeMailAttachmentCsReq)) { + return false; + } + TakeMailAttachmentCsReq other = (TakeMailAttachmentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasOptionalRewardId() || optionalRewardId == other.optionalRewardId) + && (!hasMailIdList() || mailIdList.equals(other.mailIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(optionalRewardId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < mailIdList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(mailIdList.array()[i]); } - size += dataSize; - if (!getMailIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - mailIdListMemoizedSerializedSize = dataSize; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionalRewardId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * mailIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mailIdList); + } return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq)) { - return super.equals(obj); - } - emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq other = (emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq) obj; - - if (!getMailIdListList() - .equals(other.getMailIdListList())) return false; - if (getOptionalRewardId() - != other.getOptionalRewardId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMailIdListCount() > 0) { - hash = (37 * hash) + MAIL_ID_LIST_FIELD_NUMBER; - hash = (53 * hash) + getMailIdListList().hashCode(); - } - hash = (37 * hash) + OPTIONAL_REWARD_ID_FIELD_NUMBER; - hash = (53 * hash) + getOptionalRewardId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TakeMailAttachmentCsReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TakeMailAttachmentCsReq) - emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.class, emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.Builder.class); - } - - // Construct using emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - mailIdList_ = emptyIntList(); - optionalRewardId_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstanceForType() { - return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq build() { - emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq buildPartial() { - emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq result = new emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - mailIdList_.makeImmutable(); - result.mailIdList_ = mailIdList_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.optionalRewardId_ = optionalRewardId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq) { - return mergeFrom((emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq other) { - if (other == emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.getDefaultInstance()) return this; - if (!other.mailIdList_.isEmpty()) { - if (mailIdList_.isEmpty()) { - mailIdList_ = other.mailIdList_; - mailIdList_.makeImmutable(); + @Override + @SuppressWarnings("fallthrough") + public TakeMailAttachmentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // optionalRewardId + optionalRewardId = input.readUInt32(); bitField0_ |= 0x00000001; - } else { - ensureMailIdListIsMutable(); - mailIdList_.addAll(other.mailIdList_); + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // mailIdList [packed=true] + input.readPackedUInt32(mailIdList, 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 96: { + // mailIdList [packed=false] + tag = input.readRepeatedUInt32(mailIdList, tag); + bitField0_ |= 0x00000002; + break; } - onChanged(); } - if (other.getOptionalRewardId() != 0) { - setOptionalRewardId(other.getOptionalRewardId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.optionalRewardId, optionalRewardId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.mailIdList, mailIdList); + } + output.endObject(); + } + + @Override + public TakeMailAttachmentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 72: { - optionalRewardId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1391749078: + case -1451381236: { + if (input.isAtField(FieldNames.optionalRewardId)) { + if (!input.trySkipNullValue()) { + optionalRewardId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1612269328: + case 1599691450: { + if (input.isAtField(FieldNames.mailIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(mailIdList); bitField0_ |= 0x00000002; - break; - } // case 72 - case 96: { - int v = input.readUInt32(); - ensureMailIdListIsMutable(); - mailIdList_.addInt(v); - break; - } // case 96 - case 98: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureMailIdListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - mailIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList(); - private void ensureMailIdListIsMutable() { - if (!mailIdList_.isModifiable()) { - mailIdList_ = makeMutableCopy(mailIdList_); + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - bitField0_ |= 0x00000001; } - /** - * repeated uint32 mail_id_list = 12; - * @return A list containing the mailIdList. - */ - public java.util.List - getMailIdListList() { - mailIdList_.makeImmutable(); - return mailIdList_; - } - /** - * repeated uint32 mail_id_list = 12; - * @return The count of mailIdList. - */ - public int getMailIdListCount() { - return mailIdList_.size(); - } - /** - * repeated uint32 mail_id_list = 12; - * @param index The index of the element to return. - * @return The mailIdList at the given index. - */ - public int getMailIdList(int index) { - return mailIdList_.getInt(index); - } - /** - * repeated uint32 mail_id_list = 12; - * @param index The index to set the value at. - * @param value The mailIdList to set. - * @return This builder for chaining. - */ - public Builder setMailIdList( - int index, int value) { - - ensureMailIdListIsMutable(); - mailIdList_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 mail_id_list = 12; - * @param value The mailIdList to add. - * @return This builder for chaining. - */ - public Builder addMailIdList(int value) { - - ensureMailIdListIsMutable(); - mailIdList_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 mail_id_list = 12; - * @param values The mailIdList to add. - * @return This builder for chaining. - */ - public Builder addAllMailIdList( - java.lang.Iterable values) { - ensureMailIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mailIdList_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 mail_id_list = 12; - * @return This builder for chaining. - */ - public Builder clearMailIdList() { - mailIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int optionalRewardId_ ; - /** - * uint32 optional_reward_id = 9; - * @return The optionalRewardId. - */ - @java.lang.Override - public int getOptionalRewardId() { - return optionalRewardId_; - } - /** - * uint32 optional_reward_id = 9; - * @param value The optionalRewardId to set. - * @return This builder for chaining. - */ - public Builder setOptionalRewardId(int value) { - - optionalRewardId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 optional_reward_id = 9; - * @return This builder for chaining. - */ - public Builder clearOptionalRewardId() { - bitField0_ = (bitField0_ & ~0x00000002); - optionalRewardId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:TakeMailAttachmentCsReq) + input.endObject(); + return this; } - // @@protoc_insertion_point(class_scope:TakeMailAttachmentCsReq) - private static final emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq(); + @Override + public TakeMailAttachmentCsReq clone() { + return new TakeMailAttachmentCsReq().copyFrom(this); } - public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstance() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TakeMailAttachmentCsReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + public static TakeMailAttachmentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), data).checkInitialized(); + } + + public static TakeMailAttachmentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), input).checkInitialized(); + } + + public static TakeMailAttachmentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating TakeMailAttachmentCsReq messages + */ + public static MessageFactory getFactory() { + return TakeMailAttachmentCsReqFactory.INSTANCE; + } + + private enum TakeMailAttachmentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TakeMailAttachmentCsReq create() { + return TakeMailAttachmentCsReq.newInstance(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName optionalRewardId = FieldName.forField("optionalRewardId", "optional_reward_id"); - @java.lang.Override - public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + static final FieldName mailIdList = FieldName.forField("mailIdList", "mail_id_list"); } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakeMailAttachmentCsReq_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TakeMailAttachmentCsReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035TakeMailAttachmentCsReq.proto\"K\n\027TakeM" + - "ailAttachmentCsReq\022\024\n\014mail_id_list\030\014 \003(\r" + - "\022\032\n\022optional_reward_id\030\t \001(\rB\025\n\023emu.luna" + - "rcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakeMailAttachmentCsReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakeMailAttachmentCsReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TakeMailAttachmentCsReq_descriptor, - new java.lang.String[] { "MailIdList", "OptionalRewardId", }); - descriptor.resolveAllFeatures(); - } - - // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java index 9c2748a..ce8e72c 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java @@ -1,565 +1,340 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextJoinInfo.proto -// Protobuf Java Version: 4.26.0-rc1 - +// 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 TextJoinInfoOuterClass { - private TextJoinInfoOuterClass() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - TextJoinInfoOuterClass.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextJoinInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextJoinInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 text_item_id = 1; - * @return The textItemId. - */ - int getTextItemId(); - - /** - * uint32 text_item_config_id = 6; - * @return The textItemConfigId. - */ - int getTextItemConfigId(); - } /** * Protobuf type {@code TextJoinInfo} */ - public static final class TextJoinInfo extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TextJoinInfo) - TextJoinInfoOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 26, - /* patch= */ 0, - /* suffix= */ "-rc1", - TextJoinInfo.class.getName()); - } - // Use TextJoinInfo.newBuilder() to construct. - private TextJoinInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final class TextJoinInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 text_item_id = 1; + */ + private int textItemId; + + /** + * optional uint32 text_item_config_id = 6; + */ + private int textItemConfigId; + private TextJoinInfo() { } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.class, emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.Builder.class); - } - - public static final int TEXT_ITEM_ID_FIELD_NUMBER = 1; - private int textItemId_ = 0; /** - * uint32 text_item_id = 1; - * @return The textItemId. + * @return a new empty instance of {@code TextJoinInfo} + */ + public static TextJoinInfo newInstance() { + return new TextJoinInfo(); + } + + /** + * optional uint32 text_item_id = 1; + * @return whether the textItemId field is set + */ + public boolean hasTextItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 text_item_id = 1; + * @return this + */ + public TextJoinInfo clearTextItemId() { + bitField0_ &= ~0x00000001; + textItemId = 0; + return this; + } + + /** + * optional uint32 text_item_id = 1; + * @return the textItemId */ - @java.lang.Override public int getTextItemId() { - return textItemId_; + return textItemId; } - public static final int TEXT_ITEM_CONFIG_ID_FIELD_NUMBER = 6; - private int textItemConfigId_ = 0; /** - * uint32 text_item_config_id = 6; - * @return The textItemConfigId. + * optional uint32 text_item_id = 1; + * @param value the textItemId to set + * @return this + */ + public TextJoinInfo setTextItemId(final int value) { + bitField0_ |= 0x00000001; + textItemId = value; + return this; + } + + /** + * optional uint32 text_item_config_id = 6; + * @return whether the textItemConfigId field is set + */ + public boolean hasTextItemConfigId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 text_item_config_id = 6; + * @return this + */ + public TextJoinInfo clearTextItemConfigId() { + bitField0_ &= ~0x00000002; + textItemConfigId = 0; + return this; + } + + /** + * optional uint32 text_item_config_id = 6; + * @return the textItemConfigId */ - @java.lang.Override public int getTextItemConfigId() { - return textItemConfigId_; + return textItemConfigId; } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * optional uint32 text_item_config_id = 6; + * @param value the textItemConfigId to set + * @return this + */ + public TextJoinInfo setTextItemConfigId(final int value) { + bitField0_ |= 0x00000002; + textItemConfigId = value; + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (textItemId_ != 0) { - output.writeUInt32(1, textItemId_); + @Override + public TextJoinInfo copyFrom(final TextJoinInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + textItemId = other.textItemId; + textItemConfigId = other.textItemConfigId; } - if (textItemConfigId_ != 0) { - output.writeUInt32(6, textItemConfigId_); - } - getUnknownFields().writeTo(output); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @Override + public TextJoinInfo mergeFrom(final TextJoinInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTextItemId()) { + setTextItemId(other.textItemId); + } + if (other.hasTextItemConfigId()) { + setTextItemConfigId(other.textItemConfigId); + } + return this; + } - size = 0; - if (textItemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, textItemId_); + @Override + public TextJoinInfo clear() { + if (isEmpty()) { + return this; } - if (textItemConfigId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, textItemConfigId_); + cachedSize = -1; + bitField0_ = 0; + textItemId = 0; + textItemConfigId = 0; + return this; + } + + @Override + public TextJoinInfo 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 TextJoinInfo)) { + return false; + } + TextJoinInfo other = (TextJoinInfo) o; + return bitField0_ == other.bitField0_ + && (!hasTextItemId() || textItemId == other.textItemId) + && (!hasTextItemConfigId() || textItemConfigId == other.textItemConfigId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(textItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(textItemConfigId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemConfigId); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @Override + @SuppressWarnings("fallthrough") + public TextJoinInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // textItemId + textItemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // textItemConfigId + textItemConfigId = 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; + } + } } - if (!(obj instanceof emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo)) { - return super.equals(obj); + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.textItemId, textItemId); } - emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo other = (emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo) obj; - - if (getTextItemId() - != other.getTextItemId()) return false; - if (getTextItemConfigId() - != other.getTextItemConfigId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEXT_ITEM_ID_FIELD_NUMBER; - hash = (53 * hash) + getTextItemId(); - hash = (37 * hash) + TEXT_ITEM_CONFIG_ID_FIELD_NUMBER; - hash = (53 * hash) + getTextItemConfigId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + output.endObject(); } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextJoinInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TextJoinInfo) - emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.class, emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.Builder.class); - } - - // Construct using emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - textItemId_ = 0; - textItemConfigId_ = 0; + @Override + public TextJoinInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor; - } - - @java.lang.Override - public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstanceForType() { - return emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo build() { - emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo buildPartial() { - emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo result = new emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.textItemId_ = textItemId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.textItemConfigId_ = textItemConfigId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo) { - return mergeFrom((emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo other) { - if (other == emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.getDefaultInstance()) return this; - if (other.getTextItemId() != 0) { - setTextItemId(other.getTextItemId()); - } - if (other.getTextItemConfigId() != 0) { - setTextItemConfigId(other.getTextItemConfigId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - textItemId_ = input.readUInt32(); + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1565189915: + case -153409355: { + if (input.isAtField(FieldNames.textItemId)) { + if (!input.trySkipNullValue()) { + textItemId = input.readUInt32(); bitField0_ |= 0x00000001; - break; - } // case 8 - case 48: { - textItemConfigId_ = input.readUInt32(); + } + } else { + input.skipUnknownField(); + } + break; + } + case -1448403459: + case -1174236578: { + if (input.isAtField(FieldNames.textItemConfigId)) { + if (!input.trySkipNullValue()) { + textItemConfigId = input.readUInt32(); bitField0_ |= 0x00000002; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int textItemId_ ; - /** - * uint32 text_item_id = 1; - * @return The textItemId. - */ - @java.lang.Override - public int getTextItemId() { - return textItemId_; - } - /** - * uint32 text_item_id = 1; - * @param value The textItemId to set. - * @return This builder for chaining. - */ - public Builder setTextItemId(int value) { - - textItemId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 text_item_id = 1; - * @return This builder for chaining. - */ - public Builder clearTextItemId() { - bitField0_ = (bitField0_ & ~0x00000001); - textItemId_ = 0; - onChanged(); - return this; - } - - private int textItemConfigId_ ; - /** - * uint32 text_item_config_id = 6; - * @return The textItemConfigId. - */ - @java.lang.Override - public int getTextItemConfigId() { - return textItemConfigId_; - } - /** - * uint32 text_item_config_id = 6; - * @param value The textItemConfigId to set. - * @return This builder for chaining. - */ - public Builder setTextItemConfigId(int value) { - - textItemConfigId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 text_item_config_id = 6; - * @return This builder for chaining. - */ - public Builder clearTextItemConfigId() { - bitField0_ = (bitField0_ & ~0x00000002); - textItemConfigId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:TextJoinInfo) - } - - // @@protoc_insertion_point(class_scope:TextJoinInfo) - private static final emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo(); - } - - public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextJoinInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + input.endObject(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @Override + public TextJoinInfo clone() { + return new TextJoinInfo().copyFrom(this); } - @java.lang.Override - public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); } - } + public static TextJoinInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TextJoinInfo(), data).checkInitialized(); + } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextJoinInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TextJoinInfo_fieldAccessorTable; + public static TextJoinInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022TextJoinInfo.proto\"A\n\014TextJoinInfo\022\024\n\014" + - "text_item_id\030\001 \001(\r\022\033\n\023text_item_config_i" + - "d\030\006 \001(\rB\025\n\023emu.lunarcore.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TextJoinInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextJoinInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TextJoinInfo_descriptor, - new java.lang.String[] { "TextItemId", "TextItemConfigId", }); - descriptor.resolveAllFeatures(); - } + public static TextJoinInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); + } - // @@protoc_insertion_point(outer_class_scope) + /** + * @return factory for creating TextJoinInfo messages + */ + public static MessageFactory getFactory() { + return TextJoinInfoFactory.INSTANCE; + } + + private enum TextJoinInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public TextJoinInfo create() { + return TextJoinInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName textItemId = FieldName.forField("textItemId", "text_item_id"); + + static final FieldName textItemConfigId = FieldName.forField("textItemConfigId", "text_item_config_id"); + } + } }