From 65b696ce3fbb6eee186820338baa63704b10b60c Mon Sep 17 00:00:00 2001 From: Hiro <84511935+Hiro420@users.noreply.github.com> Date: Wed, 7 Feb 2024 21:48:41 +0200 Subject: [PATCH] update protos --- .../proto/BattlePassInfoNotifyOuterClass.java | 2837 ++++++++--------- .../ClientMailAttachmentItemOuterClass.java | 815 +++-- .../proto/DiscardRelicCsReqOuterClass.java | 806 +++-- .../EnableRogueTalentCsReqOuterClass.java | 663 ++-- ...etRogueScoreRewardInfoScRspOuterClass.java | 965 ++++-- .../lunarcore/proto/MazeGroupOuterClass.java | 723 +++-- .../proto/PlayerSettingInfoOuterClass.java | 960 +++--- .../proto/RogueHandbookAeonOuterClass.java | 1094 +++++++ .../proto/RogueScoreRewardInfoOuterClass.java | 1776 ++++++----- .../proto/RogueUnlockProgressOuterClass.java | 953 +++--- .../SceneMonsterWaveParamOuterClass.java | 785 +++-- .../TakeChallengeRewardCsReqOuterClass.java | 663 ++-- .../TakeMailAttachmentCsReqOuterClass.java | 873 +++-- .../proto/TextJoinInfoOuterClass.java | 803 +++-- 14 files changed, 9558 insertions(+), 5158 deletions(-) create mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java diff --git a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java index 557831b..f84c40c 100644 --- a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java @@ -1,1480 +1,1471 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattlePassInfoNotify.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint64 taken_premium_reward2 = 1; - */ - private long takenPremiumReward2; - - /** - *
-     *  LOIGEPGJHEK
-     * 
- * - * 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; - - /** - *
-     *  KFCJBDNBEEK
-     * 
- * - * optional uint64 taken_premium_optional_reward = 8; - */ - private long takenPremiumOptionalReward; - - /** - * optional uint64 taken_free_reward = 9; - */ - private long takenFreeReward; - - /** - *
-     *  PODMLBJMKEJ
-     * 
- * - * optional uint64 taken_free_extended_reward = 12; - */ - private long takenFreeExtendedReward; - - /** - *
-     *  NAMKBIBEMBN
-     * 
- * - * optional uint64 idk = 14; - */ - private long idk; - - /** - * 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; - + 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); + } 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); } /** - * @return a new empty instance of {@code BattlePassInfoNotify} + * Protobuf enum {@code BattlePassInfoNotify.BpTierType} */ - 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; - } - - /** - *
-     *  LOIGEPGJHEK
-     * 
- * - * optional uint64 unkfield = 2; - * @return whether the unkfield field is set - */ - public boolean hasUnkfield() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  LOIGEPGJHEK
-     * 
- * - * optional uint64 unkfield = 2; - * @return this - */ - public BattlePassInfoNotify clearUnkfield() { - bitField0_ &= ~0x00000002; - unkfield = 0L; - return this; - } - - /** - *
-     *  LOIGEPGJHEK
-     * 
- * - * optional uint64 unkfield = 2; - * @return the unkfield - */ - public long getUnkfield() { - return unkfield; - } - - /** - *
-     *  LOIGEPGJHEK
-     * 
- * - * 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; - } - - /** - *
-     *  KFCJBDNBEEK
-     * 
- * - * optional uint64 taken_premium_optional_reward = 8; - * @return whether the takenPremiumOptionalReward field is set - */ - public boolean hasTakenPremiumOptionalReward() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     *  KFCJBDNBEEK
-     * 
- * - * optional uint64 taken_premium_optional_reward = 8; - * @return this - */ - public BattlePassInfoNotify clearTakenPremiumOptionalReward() { - bitField0_ &= ~0x00000010; - takenPremiumOptionalReward = 0L; - return this; - } - - /** - *
-     *  KFCJBDNBEEK
-     * 
- * - * optional uint64 taken_premium_optional_reward = 8; - * @return the takenPremiumOptionalReward - */ - public long getTakenPremiumOptionalReward() { - return takenPremiumOptionalReward; - } - - /** - *
-     *  KFCJBDNBEEK
-     * 
- * - * 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; - } - - /** - *
-     *  PODMLBJMKEJ
-     * 
- * - * optional uint64 taken_free_extended_reward = 12; - * @return whether the takenFreeExtendedReward field is set - */ - public boolean hasTakenFreeExtendedReward() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - *
-     *  PODMLBJMKEJ
-     * 
- * - * optional uint64 taken_free_extended_reward = 12; - * @return this - */ - public BattlePassInfoNotify clearTakenFreeExtendedReward() { - bitField0_ &= ~0x00000040; - takenFreeExtendedReward = 0L; - return this; - } - - /** - *
-     *  PODMLBJMKEJ
-     * 
- * - * optional uint64 taken_free_extended_reward = 12; - * @return the takenFreeExtendedReward - */ - public long getTakenFreeExtendedReward() { - return takenFreeExtendedReward; - } - - /** - *
-     *  PODMLBJMKEJ
-     * 
- * - * 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; - } - - /** - *
-     *  NAMKBIBEMBN
-     * 
- * - * optional uint64 idk = 14; - * @return whether the idk field is set - */ - public boolean hasIdk() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - *
-     *  NAMKBIBEMBN
-     * 
- * - * optional uint64 idk = 14; - * @return this - */ - public BattlePassInfoNotify clearIdk() { - bitField0_ &= ~0x00000080; - idk = 0L; - return this; - } - - /** - *
-     *  NAMKBIBEMBN
-     * 
- * - * optional uint64 idk = 14; - * @return the idk - */ - public long getIdk() { - return idk; - } - - /** - *
-     *  NAMKBIBEMBN
-     * 
- * - * optional uint64 idk = 14; - * @param value the idk to set - * @return this - */ - public BattlePassInfoNotify setIdk(final long value) { - bitField0_ |= 0x00000080; - idk = value; - return this; - } - - /** - * optional uint32 cur_week_add_exp_sum = 3; - * @return whether the curWeekAddExpSum field is set - */ - public boolean hasCurWeekAddExpSum() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * optional uint32 cur_week_add_exp_sum = 3; - * @return this - */ - public BattlePassInfoNotify clearCurWeekAddExpSum() { - bitField0_ &= ~0x00000100; - 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_ |= 0x00000100; - curWeekAddExpSum = value; - return this; - } - - /** - * optional uint32 cur_bp_id = 5; - * @return whether the curBpId field is set - */ - public boolean hasCurBpId() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * optional uint32 cur_bp_id = 5; - * @return this - */ - public BattlePassInfoNotify clearCurBpId() { - bitField0_ &= ~0x00000200; - 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_ |= 0x00000200; - curBpId = value; - return this; - } - - /** - * optional uint32 exp = 6; - * @return whether the exp field is set - */ - public boolean hasExp() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * optional uint32 exp = 6; - * @return this - */ - public BattlePassInfoNotify clearExp() { - bitField0_ &= ~0x00000400; - 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_ |= 0x00000400; - exp = value; - return this; - } - - /** - * optional uint32 level = 10; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000800) != 0; - } - - /** - * optional uint32 level = 10; - * @return this - */ - public BattlePassInfoNotify clearLevel() { - bitField0_ &= ~0x00000800; - 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_ |= 0x00000800; - level = value; - return this; - } - - /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return whether the bpTierType field is set - */ - public boolean hasBpTierType() { - return (bitField0_ & 0x00001000) != 0; - } - - /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15; - * @return this - */ - public BattlePassInfoNotify clearBpTierType() { - bitField0_ &= ~0x00001000; - 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_ |= 0x00001000; - 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_ |= 0x00001000; - 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; - idk = other.idk; - 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.hasIdk()) { - setIdk(other.idk); - } - 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; - idk = 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) - && (!hasIdk() || idk == other.idk) - && (!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) 112); - output.writeUInt64NoTag(idk); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(curWeekAddExpSum); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(curBpId); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(exp); - } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(level); - } - if ((bitField0_ & 0x00001000) != 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.computeUInt64SizeNoTag(idk); - } - if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum); - } - if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curBpId); - } - if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); - } - if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); - } - if ((bitField0_ & 0x00001000) != 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 != 112) { - break; - } - } - case 112: { - // idk - idk = input.readUInt64(); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // curWeekAddExpSum - curWeekAddExpSum = input.readUInt32(); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // curBpId - curBpId = input.readUInt32(); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // exp - exp = input.readUInt32(); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000800; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // bpTierType - final int value = input.readInt32(); - if (BpTierType.forNumber(value) != null) { - bpTierType = value; - bitField0_ |= 0x00001000; - } - 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.writeUInt64(FieldNames.idk, idk); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeUInt32(FieldNames.curBpId, curBpId); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeUInt32(FieldNames.exp, exp); - } - if ((bitField0_ & 0x00000800) != 0) { - output.writeUInt32(FieldNames.level, level); - } - if ((bitField0_ & 0x00001000) != 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 104112: { - if (input.isAtField(FieldNames.idk)) { - if (!input.trySkipNullValue()) { - idk = input.readUInt64(); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 835771131: - case 26830815: { - if (input.isAtField(FieldNames.curWeekAddExpSum)) { - if (!input.trySkipNullValue()) { - curWeekAddExpSum = input.readUInt32(); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1125519465: - case 110923757: { - if (input.isAtField(FieldNames.curBpId)) { - if (!input.trySkipNullValue()) { - curBpId = input.readUInt32(); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case 100893: { - if (input.isAtField(FieldNames.exp)) { - if (!input.trySkipNullValue()) { - exp = input.readUInt32(); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - case 102865796: { - if (input.isAtField(FieldNames.level)) { - if (!input.trySkipNullValue()) { - level = input.readUInt32(); - bitField0_ |= 0x00000800; - } - } 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_ |= 0x00001000; - } 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 { + public enum BpTierType + implements com.google.protobuf.ProtocolMessageEnum { /** * BP_TIER_TYPE_NONE = 0; */ - BP_TIER_TYPE_NONE("BP_TIER_TYPE_NONE", 0), - + BP_TIER_TYPE_NONE(0), /** * BP_TIER_TYPE_FREE = 1; */ - BP_TIER_TYPE_FREE("BP_TIER_TYPE_FREE", 1), - + BP_TIER_TYPE_FREE(1), /** * BP_TIER_TYPE_PREMIUM_1 = 2; */ - BP_TIER_TYPE_PREMIUM_1("BP_TIER_TYPE_PREMIUM_1", 2), - + BP_TIER_TYPE_PREMIUM_1(2), /** * BP_TIER_TYPE_PREMIUM_2 = 3; */ - BP_TIER_TYPE_PREMIUM_2("BP_TIER_TYPE_PREMIUM_2", 3); + BP_TIER_TYPE_PREMIUM_2(3), + UNRECOGNIZED(-1), + ; + 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; - private final int number; - - private BpTierType(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return BpTierTypeConverter.INSTANCE; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; } /** * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BpTierType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. */ public static BpTierType forNumber(int value) { - 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; + 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; } } + + 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) } - private enum BattlePassInfoNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public BattlePassInfoNotify create() { - return BattlePassInfoNotify.newInstance(); - } - } - + public static final int BP_TIER_TYPE_FIELD_NUMBER = 15; + private int bpTierType_ = 0; /** - * Contains name constants used for serializing JSON + * .BattlePassInfoNotify.BpTierType bp_tier_type = 15; + * @return The enum numeric value on the wire for 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 idk = FieldName.forField("idk"); - - 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"); + @java.lang.Override public int getBpTierTypeValue() { + return bpTierType_; } + /** + * .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 342935e..fc43b3d 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java @@ -1,339 +1,566 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientMailAttachmentItem.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 FKIPJPLMBFI = 2; - */ - private int fKIPJPLMBFI; - - /** - * optional uint32 ANAFKBMJOBJ = 12; - */ - private int aNAFKBMJOBJ; - + 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); + } 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; /** - * @return a new empty instance of {@code ClientMailAttachmentItem} + * uint32 item_id = 8; + * @return The itemId. */ - public static ClientMailAttachmentItem newInstance() { - return new ClientMailAttachmentItem(); + @java.lang.Override + public int getItemId() { + return itemId_; } + public static final int MAIL_ID_FIELD_NUMBER = 1; + private int mailId_ = 0; /** - * optional uint32 FKIPJPLMBFI = 2; - * @return whether the fKIPJPLMBFI field is set + * uint32 mail_id = 1; + * @return The mailId. */ - public boolean hasFKIPJPLMBFI() { - return (bitField0_ & 0x00000001) != 0; + @java.lang.Override + public int getMailId() { + return mailId_; } - /** - * optional uint32 FKIPJPLMBFI = 2; - * @return this - */ - public ClientMailAttachmentItem clearFKIPJPLMBFI() { - bitField0_ &= ~0x00000001; - fKIPJPLMBFI = 0; - return this; + 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 FKIPJPLMBFI = 2; - * @return the fKIPJPLMBFI - */ - public int getFKIPJPLMBFI() { - return fKIPJPLMBFI; - } - - /** - * optional uint32 FKIPJPLMBFI = 2; - * @param value the fKIPJPLMBFI to set - * @return this - */ - public ClientMailAttachmentItem setFKIPJPLMBFI(final int value) { - bitField0_ |= 0x00000001; - fKIPJPLMBFI = value; - return this; - } - - /** - * optional uint32 ANAFKBMJOBJ = 12; - * @return whether the aNAFKBMJOBJ field is set - */ - public boolean hasANAFKBMJOBJ() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 ANAFKBMJOBJ = 12; - * @return this - */ - public ClientMailAttachmentItem clearANAFKBMJOBJ() { - bitField0_ &= ~0x00000002; - aNAFKBMJOBJ = 0; - return this; - } - - /** - * optional uint32 ANAFKBMJOBJ = 12; - * @return the aNAFKBMJOBJ - */ - public int getANAFKBMJOBJ() { - return aNAFKBMJOBJ; - } - - /** - * optional uint32 ANAFKBMJOBJ = 12; - * @param value the aNAFKBMJOBJ to set - * @return this - */ - public ClientMailAttachmentItem setANAFKBMJOBJ(final int value) { - bitField0_ |= 0x00000002; - aNAFKBMJOBJ = value; - return this; - } - - @Override - public ClientMailAttachmentItem copyFrom(final ClientMailAttachmentItem other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - fKIPJPLMBFI = other.fKIPJPLMBFI; - aNAFKBMJOBJ = other.aNAFKBMJOBJ; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mailId_ != 0) { + output.writeUInt32(1, mailId_); } - return this; + if (itemId_ != 0) { + output.writeUInt32(8, itemId_); + } + getUnknownFields().writeTo(output); } - @Override - public ClientMailAttachmentItem mergeFrom(final ClientMailAttachmentItem other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasFKIPJPLMBFI()) { - setFKIPJPLMBFI(other.fKIPJPLMBFI); - } - if (other.hasANAFKBMJOBJ()) { - setANAFKBMJOBJ(other.aNAFKBMJOBJ); - } - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public ClientMailAttachmentItem clear() { - if (isEmpty()) { - return this; + size = 0; + if (mailId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, mailId_); } - cachedSize = -1; - bitField0_ = 0; - fKIPJPLMBFI = 0; - aNAFKBMJOBJ = 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_ - && (!hasFKIPJPLMBFI() || fKIPJPLMBFI == other.fKIPJPLMBFI) - && (!hasANAFKBMJOBJ() || aNAFKBMJOBJ == other.aNAFKBMJOBJ); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(fKIPJPLMBFI); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(aNAFKBMJOBJ); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fKIPJPLMBFI); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aNAFKBMJOBJ); + if (itemId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, itemId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 16: { - // fKIPJPLMBFI - fKIPJPLMBFI = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // aNAFKBMJOBJ - aNAFKBMJOBJ = 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.fKIPJPLMBFI, fKIPJPLMBFI); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.aNAFKBMJOBJ, aNAFKBMJOBJ); - } - output.endObject(); + 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; } - @Override - public ClientMailAttachmentItem mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -581795918: { - if (input.isAtField(FieldNames.fKIPJPLMBFI)) { - if (!input.trySkipNullValue()) { - fKIPJPLMBFI = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1037527505: { - if (input.isAtField(FieldNames.aNAFKBMJOBJ)) { - if (!input.trySkipNullValue()) { - aNAFKBMJOBJ = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public ClientMailAttachmentItem clone() { - return new ClientMailAttachmentItem().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ClientMailAttachmentItem parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), data).checkInitialized(); - } - - public static ClientMailAttachmentItem parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), input).checkInitialized(); - } - - public static ClientMailAttachmentItem parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName fKIPJPLMBFI = FieldName.forField("FKIPJPLMBFI"); - - static final FieldName aNAFKBMJOBJ = FieldName.forField("ANAFKBMJOBJ"); + // @@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()); + } + 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.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java index 7067200..dfdba42 100644 --- a/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java @@ -1,341 +1,567 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscardRelicCsReq.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 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; - + 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); + } private DiscardRelicCsReq() { } - /** - * @return a new empty instance of {@code DiscardRelicCsReq} - */ - public static DiscardRelicCsReq newInstance() { - return new DiscardRelicCsReq(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor; } - /** - * optional uint32 relic_unique_id = 13; - * @return whether the relicUniqueId field is set - */ - public boolean hasRelicUniqueId() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * 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 + * 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; /** - * 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 + * bool is_discard = 1; + * @return The isDiscard. */ + @java.lang.Override public boolean getIsDiscard() { - return isDiscard; + return isDiscard_; } - /** - * 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; + 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; } - @Override - public DiscardRelicCsReq copyFrom(final DiscardRelicCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - relicUniqueId = other.relicUniqueId; - isDiscard = other.isDiscard; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (isDiscard_ != false) { + output.writeBool(1, isDiscard_); } - return this; + if (relicUniqueId_ != 0) { + output.writeUInt32(13, relicUniqueId_); + } + getUnknownFields().writeTo(output); } - @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; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public DiscardRelicCsReq clear() { - if (isEmpty()) { - return this; + size = 0; + if (isDiscard_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, isDiscard_); } - 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; + if (relicUniqueId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(13, relicUniqueId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.isDiscard, isDiscard); - } - output.endObject(); + 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; } - @Override - public DiscardRelicCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1966200481: - case 49648253: { - if (input.isAtField(FieldNames.relicUniqueId)) { - if (!input.trySkipNullValue()) { - relicUniqueId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } 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; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public DiscardRelicCsReq clone() { - return new DiscardRelicCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static DiscardRelicCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), data).checkInitialized(); - } - - public static DiscardRelicCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), input).checkInitialized(); - } - - public static DiscardRelicCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + 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) } - /** - * 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"); + // @@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()); + } + 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.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java index a40668d..f593953 100644 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java @@ -1,260 +1,493 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnableRogueTalentCsReq.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 talent_id = 13; - */ - private int talentId; - + 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); + } private EnableRogueTalentCsReq() { } - /** - * @return a new empty instance of {@code EnableRogueTalentCsReq} - */ - public static EnableRogueTalentCsReq newInstance() { - return new EnableRogueTalentCsReq(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor; } - /** - * optional uint32 talent_id = 13; - * @return whether the talentId field is set - */ - public boolean hasTalentId() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional uint32 talent_id = 13; - * @return this - */ - public EnableRogueTalentCsReq clearTalentId() { - bitField0_ &= ~0x00000001; - talentId = 0; - return this; - } - - /** - * optional uint32 talent_id = 13; - * @return the talentId + * uint32 talent_id = 3; + * @return The talentId. */ + @java.lang.Override public int getTalentId() { - return talentId; + return talentId_; } - /** - * optional uint32 talent_id = 13; - * @param value the talentId to set - * @return this - */ - public EnableRogueTalentCsReq setTalentId(final int value) { - bitField0_ |= 0x00000001; - talentId = value; - return this; + 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; } - @Override - public EnableRogueTalentCsReq copyFrom(final EnableRogueTalentCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - talentId = other.talentId; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (talentId_ != 0) { + output.writeUInt32(3, talentId_); } - return this; + getUnknownFields().writeTo(output); } - @Override - public EnableRogueTalentCsReq mergeFrom(final EnableRogueTalentCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasTalentId()) { - setTalentId(other.talentId); - } - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @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) 104); - output.writeUInt32NoTag(talentId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(talentId); + size = 0; + if (talentId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, talentId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 104: { - // 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.talentId, talentId); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - output.endObject(); + 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; } - @Override - public EnableRogueTalentCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -615305433: - case -1894577842: { - if (input.isAtField(FieldNames.talentId)) { - if (!input.trySkipNullValue()) { - talentId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public EnableRogueTalentCsReq clone() { - return new EnableRogueTalentCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EnableRogueTalentCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), data).checkInitialized(); - } - - public static EnableRogueTalentCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized(); - } - - public static EnableRogueTalentCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName talentId = FieldName.forField("talentId", "talent_id"); + // @@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()); + } + 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.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java index b3d8ace..96f4d2b 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java @@ -1,364 +1,705 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRogueScoreRewardInfoScRsp.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 8; - */ - private int retcode; - - /** - * optional .RogueScoreRewardInfo score_reward_info = 15; - */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); - + 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); + } private GetRogueScoreRewardInfoScRsp() { } - /** - * @return a new empty instance of {@code GetRogueScoreRewardInfoScRsp} - */ - public static GetRogueScoreRewardInfoScRsp newInstance() { - return new GetRogueScoreRewardInfoScRsp(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor; } - /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; + @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); } + private int bitField0_; + public static final int SCORE_REWARD_INFO_FIELD_NUMBER = 13; + private emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo_; /** - * optional uint32 retcode = 8; - * @return this - */ - public GetRogueScoreRewardInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 8; - * @param value the retcode to set - * @return this - */ - public GetRogueScoreRewardInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .RogueScoreRewardInfo score_reward_info = 15; - * @return whether the scoreRewardInfo field is set + * .RogueScoreRewardInfo score_reward_info = 13; + * @return Whether the scoreRewardInfo field is set. */ + @java.lang.Override public boolean hasScoreRewardInfo() { - return (bitField0_ & 0x00000002) != 0; + return ((bitField0_ & 0x00000001) != 0); } - /** - * optional .RogueScoreRewardInfo score_reward_info = 15; - * @return this + * .RogueScoreRewardInfo score_reward_info = 13; + * @return The scoreRewardInfo. */ - public GetRogueScoreRewardInfoScRsp clearScoreRewardInfo() { - bitField0_ &= ~0x00000002; - scoreRewardInfo.clear(); - return this; + @java.lang.Override + public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { + return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_; } - /** - * optional .RogueScoreRewardInfo score_reward_info = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScoreRewardInfo()} if you want to modify it. - * - * @return internal storage object for reading + * .RogueScoreRewardInfo score_reward_info = 13; */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { - return scoreRewardInfo; + @java.lang.Override + public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder() { + return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_; } + public static final int RETCODE_FIELD_NUMBER = 4; + private int retcode_ = 0; /** - * optional .RogueScoreRewardInfo score_reward_info = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications + * uint32 retcode = 4; + * @return The retcode. */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreRewardInfo() { - bitField0_ |= 0x00000002; - return scoreRewardInfo; + @java.lang.Override + public int getRetcode() { + return retcode_; } - /** - * optional .RogueScoreRewardInfo score_reward_info = 15; - * @param value the scoreRewardInfo to set - * @return this - */ - public GetRogueScoreRewardInfoScRsp setScoreRewardInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - bitField0_ |= 0x00000002; - scoreRewardInfo.copyFrom(value); - return this; + 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; } - @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); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (retcode_ != 0) { + output.writeUInt32(4, retcode_); } - return this; + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(13, getScoreRewardInfo()); + } + getUnknownFields().writeTo(output); } - @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; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public GetRogueScoreRewardInfoScRsp clear() { - if (isEmpty()) { - return this; + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, retcode_); } - 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) 64); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); - 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); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getScoreRewardInfo()); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 64: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // 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 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 - 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()) { + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scoreRewardInfo_ = null; + if (scoreRewardInfoBuilder_ != null) { + scoreRewardInfoBuilder_.dispose(); + scoreRewardInfoBuilder_ = null; + } + retcode_ = 0; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 672564399: - case 751191441: { - if (input.isAtField(FieldNames.scoreRewardInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(scoreRewardInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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; } } - 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(); + 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); + 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(); + } + 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; + } + } 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_; + } + + 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) } - /** - * 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"); + // @@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(); } + + 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/MazeGroupOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java index 8e0d0f3..82c562a 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java @@ -1,259 +1,566 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MazeGroup.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 group_id = 6; - */ - private int groupId; - + 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); + } private MazeGroup() { } - /** - * @return a new empty instance of {@code MazeGroup} - */ - public static MazeGroup newInstance() { - return new MazeGroup(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor; } - /** - * optional uint32 group_id = 6; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional uint32 group_id = 6; - * @return this - */ - public MazeGroup clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 6; - * @return the groupId + * uint32 group_id = 6; + * @return The groupId. */ + @java.lang.Override public int getGroupId() { - return groupId; + return groupId_; } + public static final int MODIFY_TIME_FIELD_NUMBER = 2; + private long modifyTime_ = 0L; /** - * optional uint32 group_id = 6; - * @param value the groupId to set - * @return this + * int64 modify_time = 2; + * @return The modifyTime. */ - public MazeGroup setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; + @java.lang.Override + public long getModifyTime() { + return modifyTime_; } - @Override - public MazeGroup copyFrom(final MazeGroup other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - groupId = other.groupId; - } - return this; + 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; } - @Override - public MazeGroup mergeFrom(final MazeGroup other) { - if (other.isEmpty()) { - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (modifyTime_ != 0L) { + output.writeInt64(2, modifyTime_); } - cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); + if (groupId_ != 0) { + output.writeUInt32(6, groupId_); } - return this; + getUnknownFields().writeTo(output); } - @Override - public MazeGroup clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - groupId = 0; - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public MazeGroup clearQuick() { - if (isEmpty()) { - return this; + size = 0; + if (modifyTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, modifyTime_); } - 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_ - && (!hasGroupId() || groupId == other.groupId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(groupId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + if (groupId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, groupId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 48: { - // 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - output.endObject(); + 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; } - @Override - public MazeGroup mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { - if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public MazeGroup clone() { - return new MazeGroup().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static MazeGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MazeGroup(), data).checkInitialized(); - } - - public static MazeGroup parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); - } - - public static MazeGroup parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + // @@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()); + } + 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.MazeGroupOuterClass.MazeGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java index c02a9b7..0ed2ade 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java @@ -1,419 +1,641 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerSettingInfo.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional bool OFOCDABPBEN = 6; - */ - private boolean oFOCDABPBEN; - - /** - * optional bool FFIJPBKIGPJ = 11; - */ - private boolean fFIJPBKIGPJ; - - /** - * optional bool MDJEPNGEHFN = 14; - */ - private boolean mDJEPNGEHFN; - + 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); + } 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; /** - * @return a new empty instance of {@code PlayerSettingInfo} + * bool NODHLKCFLPA = 8; + * @return The nODHLKCFLPA. */ - public static PlayerSettingInfo newInstance() { - return new PlayerSettingInfo(); + @java.lang.Override + public boolean getNODHLKCFLPA() { + return nODHLKCFLPA_; } + public static final int HMAMGFJANGO_FIELD_NUMBER = 14; + private boolean hMAMGFJANGO_ = false; /** - * optional bool OFOCDABPBEN = 6; - * @return whether the oFOCDABPBEN field is set + * bool HMAMGFJANGO = 14; + * @return The hMAMGFJANGO. */ - public boolean hasOFOCDABPBEN() { - return (bitField0_ & 0x00000001) != 0; + @java.lang.Override + public boolean getHMAMGFJANGO() { + return hMAMGFJANGO_; } + public static final int PMBBEIEHBML_FIELD_NUMBER = 7; + private boolean pMBBEIEHBML_ = false; /** - * optional bool OFOCDABPBEN = 6; - * @return this + * bool PMBBEIEHBML = 7; + * @return The pMBBEIEHBML. */ - public PlayerSettingInfo clearOFOCDABPBEN() { - bitField0_ &= ~0x00000001; - oFOCDABPBEN = false; - return this; + @java.lang.Override + public boolean getPMBBEIEHBML() { + return pMBBEIEHBML_; } - /** - * optional bool OFOCDABPBEN = 6; - * @return the oFOCDABPBEN - */ - public boolean getOFOCDABPBEN() { - return oFOCDABPBEN; + 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 OFOCDABPBEN = 6; - * @param value the oFOCDABPBEN to set - * @return this - */ - public PlayerSettingInfo setOFOCDABPBEN(final boolean value) { - bitField0_ |= 0x00000001; - oFOCDABPBEN = value; - return this; - } - - /** - * optional bool FFIJPBKIGPJ = 11; - * @return whether the fFIJPBKIGPJ field is set - */ - public boolean hasFFIJPBKIGPJ() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool FFIJPBKIGPJ = 11; - * @return this - */ - public PlayerSettingInfo clearFFIJPBKIGPJ() { - bitField0_ &= ~0x00000002; - fFIJPBKIGPJ = false; - return this; - } - - /** - * optional bool FFIJPBKIGPJ = 11; - * @return the fFIJPBKIGPJ - */ - public boolean getFFIJPBKIGPJ() { - return fFIJPBKIGPJ; - } - - /** - * optional bool FFIJPBKIGPJ = 11; - * @param value the fFIJPBKIGPJ to set - * @return this - */ - public PlayerSettingInfo setFFIJPBKIGPJ(final boolean value) { - bitField0_ |= 0x00000002; - fFIJPBKIGPJ = value; - return this; - } - - /** - * optional bool MDJEPNGEHFN = 14; - * @return whether the mDJEPNGEHFN field is set - */ - public boolean hasMDJEPNGEHFN() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool MDJEPNGEHFN = 14; - * @return this - */ - public PlayerSettingInfo clearMDJEPNGEHFN() { - bitField0_ &= ~0x00000004; - mDJEPNGEHFN = false; - return this; - } - - /** - * optional bool MDJEPNGEHFN = 14; - * @return the mDJEPNGEHFN - */ - public boolean getMDJEPNGEHFN() { - return mDJEPNGEHFN; - } - - /** - * optional bool MDJEPNGEHFN = 14; - * @param value the mDJEPNGEHFN to set - * @return this - */ - public PlayerSettingInfo setMDJEPNGEHFN(final boolean value) { - bitField0_ |= 0x00000004; - mDJEPNGEHFN = value; - return this; - } - - @Override - public PlayerSettingInfo copyFrom(final PlayerSettingInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - oFOCDABPBEN = other.oFOCDABPBEN; - fFIJPBKIGPJ = other.fFIJPBKIGPJ; - mDJEPNGEHFN = other.mDJEPNGEHFN; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pMBBEIEHBML_ != false) { + output.writeBool(7, pMBBEIEHBML_); } - return this; + if (nODHLKCFLPA_ != false) { + output.writeBool(8, nODHLKCFLPA_); + } + if (hMAMGFJANGO_ != false) { + output.writeBool(14, hMAMGFJANGO_); + } + getUnknownFields().writeTo(output); } - @Override - public PlayerSettingInfo mergeFrom(final PlayerSettingInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasOFOCDABPBEN()) { - setOFOCDABPBEN(other.oFOCDABPBEN); - } - if (other.hasFFIJPBKIGPJ()) { - setFFIJPBKIGPJ(other.fFIJPBKIGPJ); - } - if (other.hasMDJEPNGEHFN()) { - setMDJEPNGEHFN(other.mDJEPNGEHFN); - } - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public PlayerSettingInfo clear() { - if (isEmpty()) { - return this; + size = 0; + if (pMBBEIEHBML_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, pMBBEIEHBML_); } - cachedSize = -1; - bitField0_ = 0; - oFOCDABPBEN = false; - fFIJPBKIGPJ = false; - mDJEPNGEHFN = false; - return this; - } - - @Override - public PlayerSettingInfo clearQuick() { - if (isEmpty()) { - return this; + if (nODHLKCFLPA_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, nODHLKCFLPA_); } - 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_ - && (!hasOFOCDABPBEN() || oFOCDABPBEN == other.oFOCDABPBEN) - && (!hasFFIJPBKIGPJ() || fFIJPBKIGPJ == other.fFIJPBKIGPJ) - && (!hasMDJEPNGEHFN() || mDJEPNGEHFN == other.mDJEPNGEHFN); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeBoolNoTag(oFOCDABPBEN); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeBoolNoTag(fFIJPBKIGPJ); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeBoolNoTag(mDJEPNGEHFN); - } - } - - @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; + if (hMAMGFJANGO_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, hMAMGFJANGO_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 48: { - // oFOCDABPBEN - oFOCDABPBEN = input.readBool(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // fFIJPBKIGPJ - fFIJPBKIGPJ = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // mDJEPNGEHFN - mDJEPNGEHFN = 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeBool(FieldNames.oFOCDABPBEN, oFOCDABPBEN); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.fFIJPBKIGPJ, fFIJPBKIGPJ); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.mDJEPNGEHFN, mDJEPNGEHFN); - } - output.endObject(); + 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; } - @Override - public PlayerSettingInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; + } + + @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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 797917877: { - if (input.isAtField(FieldNames.oFOCDABPBEN)) { - if (!input.trySkipNullValue()) { - oFOCDABPBEN = input.readBool(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -837946704: { - if (input.isAtField(FieldNames.fFIJPBKIGPJ)) { - if (!input.trySkipNullValue()) { - fFIJPBKIGPJ = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1730511646: { - if (input.isAtField(FieldNames.mDJEPNGEHFN)) { - if (!input.trySkipNullValue()) { - mDJEPNGEHFN = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public PlayerSettingInfo clone() { - return new PlayerSettingInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static PlayerSettingInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PlayerSettingInfo(), data).checkInitialized(); - } - - public static PlayerSettingInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PlayerSettingInfo(), input).checkInitialized(); - } - - public static PlayerSettingInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PlayerSettingInfo(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + bitField0_ |= 0x00000001; + break; + } // case 64 + case 112: { + hMAMGFJANGO_ = 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName oFOCDABPBEN = FieldName.forField("OFOCDABPBEN"); - - static final FieldName fFIJPBKIGPJ = FieldName.forField("FFIJPBKIGPJ"); - - static final FieldName mDJEPNGEHFN = FieldName.forField("MDJEPNGEHFN"); + // @@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()); + } + 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.PlayerSettingInfoOuterClass.PlayerSettingInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java new file mode 100644 index 0000000..15aa675 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java @@ -0,0 +1,1094 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueHandbookAeon.proto +// Protobuf Java Version: 4.26.0-rc1 + +package emu.lunarcore.proto; + +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); + } + 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. + */ + @java.lang.Override + public int getAeonId() { + return aeonId_; + } + + public static final int MAX_LEVEL_FIELD_NUMBER = 5; + private int maxLevel_ = 0; + /** + * uint32 max_level = 5; + * @return The maxLevel. + */ + @java.lang.Override + public int getMaxLevel() { + return maxLevel_; + } + + public static final int EXP_FIELD_NUMBER = 15; + private int exp_ = 0; + /** + * uint32 exp = 15; + * @return The exp. + */ + @java.lang.Override + public int getExp() { + return exp_; + } + + public static final int LEVEL_FIELD_NUMBER = 4; + private int level_ = 0; + /** + * uint32 level = 4; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + 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. + */ + @java.lang.Override + public java.util.List + getArchiveUnlockListList() { + 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); + } + 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. + */ + @java.lang.Override + public java.util.List + getTakenRewardListList() { + 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); + } + 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; + } + + @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); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (aeonId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, aeonId_); + } + if (level_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, level_); + } + if (maxLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, maxLevel_); + } + { + int dataSize = 0; + for (int i = 0; i < takenRewardList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(takenRewardList_.getInt(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)); + } + 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_); + } + 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(); + bitField0_ |= 0x00000010; + } else { + ensureArchiveUnlockListIsMutable(); + archiveUnlockList_.addAll(other.archiveUnlockList_); + } + onChanged(); + } + if (!other.takenRewardList_.isEmpty()) { + if (takenRewardList_.isEmpty()) { + takenRewardList_ = other.takenRewardList_; + takenRewardList_.makeImmutable(); + bitField0_ |= 0x00000020; + } else { + ensureTakenRewardListIsMutable(); + takenRewardList_.addAll(other.takenRewardList_); + } + onChanged(); + } + 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: { + aeonId_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 32: { + level_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + maxLevel_ = 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(); + 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_); + } + 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) + } + + // @@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(); + } + + public static emu.lunarcore.proto.RogueHandbookAeonOuterClass.RogueHandbookAeon getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + 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 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.RogueHandbookAeonOuterClass.RogueHandbookAeon getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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/RogueScoreRewardInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java index 0319a4c..03bc12b 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java @@ -1,814 +1,1132 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueScoreRewardInfo.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional int64 begin_time = 2; - */ - private long beginTime; - - /** - * optional int64 end_time = 15; - */ - private long endTime; - - /** - * optional uint32 score = 8; - */ - private int score; - - /** - * optional uint32 pool_id = 11; - */ - private int poolId; - - /** - * optional bool has_taken_initial_score = 4; - */ - private boolean hasTakenInitialScore; - - /** - * optional bool pool_refreshed = 9; - */ - private boolean poolRefreshed; - - /** - *
-     *  guess
-     * 
- * - * repeated uint32 has_taken_reward = 1; - */ - private final RepeatedInt hasTakenReward = RepeatedInt.newEmptyInstance(); - + 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); + } private RogueScoreRewardInfo() { + hasTakenReward_ = emptyIntList(); } - /** - * @return a new empty instance of {@code RogueScoreRewardInfo} - */ - public static RogueScoreRewardInfo newInstance() { - return new RogueScoreRewardInfo(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.internal_static_RogueScoreRewardInfo_descriptor; } - /** - * optional int64 begin_time = 2; - * @return whether the beginTime field is set - */ - public boolean hasBeginTime() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional int64 begin_time = 2; - * @return this - */ - public RogueScoreRewardInfo clearBeginTime() { - bitField0_ &= ~0x00000001; - beginTime = 0L; - return this; - } - - /** - * optional int64 begin_time = 2; - * @return the beginTime + *
+     * guess, either this or end_time
+     * 
+ * + * int64 begin_time = 6; + * @return The beginTime. */ + @java.lang.Override public long getBeginTime() { - return beginTime; + return beginTime_; } + public static final int HAS_TAKEN_REWARD_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList hasTakenReward_ = + emptyIntList(); /** - * optional int64 begin_time = 2; - * @param value the beginTime to set - * @return this + * repeated uint32 has_taken_reward = 5; + * @return A list containing the hasTakenReward. */ - public RogueScoreRewardInfo setBeginTime(final long value) { - bitField0_ |= 0x00000001; - beginTime = value; - return this; + @java.lang.Override + public java.util.List + getHasTakenRewardList() { + return hasTakenReward_; } - /** - * optional int64 end_time = 15; - * @return whether the endTime field is set + * repeated uint32 has_taken_reward = 5; + * @return The count of hasTakenReward. */ - public boolean hasEndTime() { - return (bitField0_ & 0x00000002) != 0; + public int getHasTakenRewardCount() { + return hasTakenReward_.size(); } - /** - * optional int64 end_time = 15; - * @return this + * repeated uint32 has_taken_reward = 5; + * @param index The index of the element to return. + * @return The hasTakenReward at the given index. */ - public RogueScoreRewardInfo clearEndTime() { - bitField0_ &= ~0x00000002; - endTime = 0L; - return this; + 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; /** - * optional int64 end_time = 15; - * @return the endTime - */ - public long getEndTime() { - return endTime; - } - - /** - * optional int64 end_time = 15; - * @param value the endTime to set - * @return this - */ - public RogueScoreRewardInfo setEndTime(final long value) { - bitField0_ |= 0x00000002; - endTime = value; - return this; - } - - /** - * optional uint32 score = 8; - * @return whether the score field is set - */ - public boolean hasScore() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 score = 8; - * @return this - */ - public RogueScoreRewardInfo clearScore() { - bitField0_ &= ~0x00000004; - score = 0; - return this; - } - - /** - * optional uint32 score = 8; - * @return the score - */ - public int getScore() { - return score; - } - - /** - * optional uint32 score = 8; - * @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; - } - - /** - * optional bool has_taken_initial_score = 4; - * @return whether the hasTakenInitialScore field is set - */ - public boolean hasHasTakenInitialScore() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional bool has_taken_initial_score = 4; - * @return this - */ - public RogueScoreRewardInfo clearHasTakenInitialScore() { - bitField0_ &= ~0x00000010; - hasTakenInitialScore = false; - return this; - } - - /** - * optional bool has_taken_initial_score = 4; - * @return the hasTakenInitialScore - */ - public boolean getHasTakenInitialScore() { - return hasTakenInitialScore; - } - - /** - * optional bool has_taken_initial_score = 4; - * @param value the hasTakenInitialScore to set - * @return this - */ - public RogueScoreRewardInfo setHasTakenInitialScore(final boolean value) { - bitField0_ |= 0x00000010; - hasTakenInitialScore = value; - return this; - } - - /** - * optional bool pool_refreshed = 9; - * @return whether the poolRefreshed field is set - */ - public boolean hasPoolRefreshed() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional bool pool_refreshed = 9; - * @return this - */ - public RogueScoreRewardInfo clearPoolRefreshed() { - bitField0_ &= ~0x00000020; - poolRefreshed = false; - return this; - } - - /** - * optional bool pool_refreshed = 9; - * @return the poolRefreshed + *
+     * guess
+     * 
+ * + * bool pool_refreshed = 14; + * @return The poolRefreshed. */ + @java.lang.Override public boolean getPoolRefreshed() { - return poolRefreshed; + return poolRefreshed_; } + public static final int SCORE_FIELD_NUMBER = 7; + private int score_ = 0; /** - * optional bool pool_refreshed = 9; - * @param value the poolRefreshed to set - * @return this + * uint32 score = 7; + * @return The score. */ - public RogueScoreRewardInfo setPoolRefreshed(final boolean value) { - bitField0_ |= 0x00000020; - poolRefreshed = value; - return this; + @java.lang.Override + public int getScore() { + return score_; } + public static final int END_TIME_FIELD_NUMBER = 3; + private long endTime_ = 0L; /** *
-     *  guess
+     * guess, either this or begin_time
      * 
* - * repeated uint32 has_taken_reward = 1; - * @return whether the hasTakenReward field is set + * int64 end_time = 3; + * @return The endTime. */ - public boolean hasHasTakenReward() { - return (bitField0_ & 0x00000040) != 0; + @java.lang.Override + public long getEndTime() { + return endTime_; } + public static final int POOL_ID_FIELD_NUMBER = 11; + private int poolId_ = 0; + /** + * uint32 pool_id = 11; + * @return The poolId. + */ + @java.lang.Override + public int getPoolId() { + return poolId_; + } + + public static final int HAS_TAKEN_INITIAL_SCORE_FIELD_NUMBER = 13; + private boolean hasTakenInitialScore_ = false; /** *
-     *  guess
+     * guess
      * 
* - * repeated uint32 has_taken_reward = 1; - * @return this + * bool has_taken_initial_score = 13; + * @return The hasTakenInitialScore. */ - public RogueScoreRewardInfo clearHasTakenReward() { - bitField0_ &= ~0x00000040; - hasTakenReward.clear(); - return this; + @java.lang.Override + public boolean getHasTakenInitialScore() { + return hasTakenInitialScore_; } - /** - *
-     *  guess
-     * 
- * - * repeated uint32 has_taken_reward = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableHasTakenReward()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getHasTakenReward() { - return hasTakenReward; + 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
-     * 
- * - * repeated uint32 has_taken_reward = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableHasTakenReward() { - bitField0_ |= 0x00000040; - return hasTakenReward; + @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
-     * 
- * - * repeated uint32 has_taken_reward = 1; - * @param value the hasTakenReward to add - * @return this - */ - public RogueScoreRewardInfo addHasTakenReward(final int value) { - bitField0_ |= 0x00000040; - hasTakenReward.add(value); - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - *
-     *  guess
-     * 
- * - * repeated uint32 has_taken_reward = 1; - * @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_; - beginTime = other.beginTime; - endTime = other.endTime; - score = other.score; - poolId = other.poolId; - hasTakenInitialScore = other.hasTakenInitialScore; - poolRefreshed = other.poolRefreshed; - hasTakenReward.copyFrom(other.hasTakenReward); + size = 0; + if (endTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, endTime_); } - return this; - } - - @Override - public RogueScoreRewardInfo mergeFrom(final RogueScoreRewardInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); - } - if (other.hasEndTime()) { - setEndTime(other.endTime); - } - 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; - beginTime = 0L; - endTime = 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_ - && (!hasBeginTime() || beginTime == other.beginTime) - && (!hasEndTime() || endTime == other.endTime) - && (!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) 16); - output.writeInt64NoTag(beginTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeInt64NoTag(endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(score); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(poolId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 32); - output.writeBoolNoTag(hasTakenInitialScore); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 72); - output.writeBoolNoTag(poolRefreshed); - } - if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < hasTakenReward.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(hasTakenReward.array()[i]); + { + int dataSize = 0; + for (int i = 0; i < hasTakenReward_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(hasTakenReward_.getInt(i)); } + size += dataSize; + if (!getHasTakenRewardList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + hasTakenRewardMemoizedSerializedSize = dataSize; } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + if (beginTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, beginTime_); } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + if (score_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, score_); } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + if (poolId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(11, poolId_); } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(poolId); + if (hasTakenInitialScore_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, hasTakenInitialScore_); } - if ((bitField0_ & 0x00000010) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000020) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000040) != 0) { - size += (1 * hasTakenReward.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hasTakenReward); + if (poolRefreshed_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, poolRefreshed_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 16: { - // beginTime - beginTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // 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 != 32) { - break; - } - } - case 32: { - // hasTakenInitialScore - hasTakenInitialScore = input.readBool(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // poolRefreshed - poolRefreshed = input.readBool(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // 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 8: { - // hasTakenReward [packed=false] - tag = input.readRepeatedUInt32(hasTakenReward, tag); - bitField0_ |= 0x00000040; - break; - } - } + @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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.endTime, endTime); + 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(); } - 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(); + 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; } - @Override - public RogueScoreRewardInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { - if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { - if (!input.trySkipNullValue()) { - endTime = input.readInt64(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109264530: { - if (input.isAtField(FieldNames.score)) { - if (!input.trySkipNullValue()) { - score = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } 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; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public RogueScoreRewardInfo clone() { - return new RogueScoreRewardInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - 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(); + @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_); + } + 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(); + 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(); + 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(); + 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_); + } + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); - - static final FieldName endTime = FieldName.forField("endTime", "end_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"); + // @@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(); } + + public static emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + 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 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.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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/RogueUnlockProgressOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java index 0b48b09..539b83c 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java @@ -1,420 +1,639 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueUnlockProgress.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 unlock_id = 11; - */ - private int unlockId; - - /** - * optional uint32 progress = 13; - */ - private int progress; - - /** - * optional bool finish = 4; - */ - private boolean finish; - + 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); + } private RogueUnlockProgress() { } - /** - * @return a new empty instance of {@code RogueUnlockProgress} - */ - public static RogueUnlockProgress newInstance() { - return new RogueUnlockProgress(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor; } - /** - * optional uint32 unlock_id = 11; - * @return whether the unlockId field is set - */ - public boolean hasUnlockId() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional uint32 unlock_id = 11; - * @return this - */ - public RogueUnlockProgress clearUnlockId() { - bitField0_ &= ~0x00000001; - unlockId = 0; - return this; - } - - /** - * optional uint32 unlock_id = 11; - * @return the unlockId - */ - public int getUnlockId() { - return unlockId; - } - - /** - * optional uint32 unlock_id = 11; - * @param value the unlockId to set - * @return this - */ - public RogueUnlockProgress setUnlockId(final int value) { - bitField0_ |= 0x00000001; - unlockId = value; - return this; - } - - /** - * optional uint32 progress = 13; - * @return whether the progress field is set - */ - public boolean hasProgress() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 progress = 13; - * @return this - */ - public RogueUnlockProgress clearProgress() { - bitField0_ &= ~0x00000002; - progress = 0; - return this; - } - - /** - * optional uint32 progress = 13; - * @return the progress - */ - public int getProgress() { - return progress; - } - - /** - * optional uint32 progress = 13; - * @param value the progress to set - * @return this - */ - public RogueUnlockProgress setProgress(final int value) { - bitField0_ |= 0x00000002; - progress = value; - return this; - } - - /** - * optional bool finish = 4; - * @return whether the finish field is set - */ - public boolean hasFinish() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool finish = 4; - * @return this - */ - public RogueUnlockProgress clearFinish() { - bitField0_ &= ~0x00000004; - finish = false; - return this; - } - - /** - * optional bool finish = 4; - * @return the finish + * bool finish = 12; + * @return The finish. */ + @java.lang.Override public boolean getFinish() { - return finish; + return finish_; } + public static final int PROGRESS_FIELD_NUMBER = 9; + private int progress_ = 0; /** - * optional bool finish = 4; - * @param value the finish to set - * @return this + * uint32 progress = 9; + * @return The progress. */ - public RogueUnlockProgress setFinish(final boolean value) { - bitField0_ |= 0x00000004; - finish = value; - return this; + @java.lang.Override + public int getProgress() { + return progress_; } - @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; - } - return this; + public static final int UNLOCK_ID_FIELD_NUMBER = 8; + private int unlockId_ = 0; + /** + * uint32 unlock_id = 8; + * @return The unlockId. + */ + @java.lang.Override + public int getUnlockId() { + return unlockId_; } - @Override - public RogueUnlockProgress mergeFrom(final RogueUnlockProgress other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUnlockId()) { - setUnlockId(other.unlockId); - } - if (other.hasProgress()) { - setProgress(other.progress); - } - if (other.hasFinish()) { - setFinish(other.finish); - } - return this; + 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; } - @Override - public RogueUnlockProgress clear() { - if (isEmpty()) { - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (unlockId_ != 0) { + output.writeUInt32(8, unlockId_); } - cachedSize = -1; - bitField0_ = 0; - unlockId = 0; - progress = 0; - finish = false; - return this; + if (progress_ != 0) { + output.writeUInt32(9, progress_); + } + if (finish_ != false) { + output.writeBool(12, finish_); + } + getUnknownFields().writeTo(output); } - @Override - public RogueUnlockProgress clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean equals(Object o) { - if (o == this) { - return true; + size = 0; + if (unlockId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, unlockId_); } - if (!(o instanceof RogueUnlockProgress)) { - return false; + if (progress_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, progress_); } - 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) 88); - output.writeUInt32NoTag(unlockId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(progress); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); - 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; + if (finish_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, finish_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 88: { - // unlockId - unlockId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // progress - progress = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockId, unlockId); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.progress, progress); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.finish, finish); - } - output.endObject(); + 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; } - @Override - public RogueUnlockProgress mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; + } + + @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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -210950273: - case 2050497526: { - if (input.isAtField(FieldNames.unlockId)) { - if (!input.trySkipNullValue()) { - unlockId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } 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; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public RogueUnlockProgress clone() { - return new RogueUnlockProgress().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueUnlockProgress parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueUnlockProgress(), data).checkInitialized(); - } - - public static RogueUnlockProgress parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized(); - } - - public static RogueUnlockProgress parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + 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) } - /** - * 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"); + // @@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()); + } + 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.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java index d361377..1e7717b 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java @@ -1,259 +1,638 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneMonsterWaveParam.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 level = 8; - */ - private int level; - + 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); + } private SceneMonsterWaveParam() { } - /** - * @return a new empty instance of {@code SceneMonsterWaveParam} - */ - public static SceneMonsterWaveParam newInstance() { - return new SceneMonsterWaveParam(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor; } - /** - * optional uint32 level = 8; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional uint32 level = 8; - * @return this + * uint32 hard_level_group = 3; + * @return The hardLevelGroup. */ - public SceneMonsterWaveParam clearLevel() { - bitField0_ &= ~0x00000001; - level = 0; - return this; + @java.lang.Override + public int getHardLevelGroup() { + return hardLevelGroup_; } + public static final int LEVEL_FIELD_NUMBER = 8; + private int level_ = 0; /** - * optional uint32 level = 8; - * @return the level + * 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; /** - * optional uint32 level = 8; - * @param value the level to set - * @return this + * uint32 elite_group = 10; + * @return The eliteGroup. */ - public SceneMonsterWaveParam setLevel(final int value) { - bitField0_ |= 0x00000001; - level = value; - return this; + @java.lang.Override + public int getEliteGroup() { + return eliteGroup_; } - @Override - public SceneMonsterWaveParam copyFrom(final SceneMonsterWaveParam other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - level = other.level; - } - return this; + 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; } - @Override - public SceneMonsterWaveParam mergeFrom(final SceneMonsterWaveParam other) { - if (other.isEmpty()) { - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardLevelGroup_ != 0) { + output.writeUInt32(3, hardLevelGroup_); } - cachedSize = -1; - if (other.hasLevel()) { - setLevel(other.level); + if (level_ != 0) { + output.writeUInt32(8, level_); } - return this; + if (eliteGroup_ != 0) { + output.writeUInt32(10, eliteGroup_); + } + getUnknownFields().writeTo(output); } - @Override - public SceneMonsterWaveParam clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - level = 0; - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public SceneMonsterWaveParam clearQuick() { - if (isEmpty()) { - return this; + size = 0; + if (hardLevelGroup_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, hardLevelGroup_); } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; + if (level_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, level_); } - if (!(o instanceof SceneMonsterWaveParam)) { - return false; - } - SceneMonsterWaveParam other = (SceneMonsterWaveParam) o; - return bitField0_ == other.bitField0_ - && (!hasLevel() || level == other.level); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(level); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + if (eliteGroup_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, eliteGroup_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 64: { - // level - level = 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.level, level); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - output.endObject(); + 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; } - @Override - public SceneMonsterWaveParam mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; + } + + @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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 102865796: { - if (input.isAtField(FieldNames.level)) { - if (!input.trySkipNullValue()) { - level = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public SceneMonsterWaveParam clone() { - return new SceneMonsterWaveParam().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SceneMonsterWaveParam parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), data).checkInitialized(); - } - - public static SceneMonsterWaveParam parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), input).checkInitialized(); - } - - public static SceneMonsterWaveParam parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 64: { + level_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 64 + case 80: { + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName level = FieldName.forField("level"); + // @@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()); + } + 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.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java index 9db80a8..c13145a 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java @@ -1,260 +1,493 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeChallengeRewardCsReq.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 group_id = 1; - */ - private int groupId; - + 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); + } private TakeChallengeRewardCsReq() { } - /** - * @return a new empty instance of {@code TakeChallengeRewardCsReq} - */ - public static TakeChallengeRewardCsReq newInstance() { - return new TakeChallengeRewardCsReq(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor; } - /** - * optional uint32 group_id = 1; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional uint32 group_id = 1; - * @return this - */ - public TakeChallengeRewardCsReq clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 1; - * @return the groupId + * uint32 group_id = 1; + * @return The groupId. */ + @java.lang.Override public int getGroupId() { - return groupId; + return groupId_; } - /** - * 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; + 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; } - @Override - public TakeChallengeRewardCsReq copyFrom(final TakeChallengeRewardCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - groupId = other.groupId; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (groupId_ != 0) { + output.writeUInt32(1, groupId_); } - return this; + getUnknownFields().writeTo(output); } - @Override - public TakeChallengeRewardCsReq mergeFrom(final TakeChallengeRewardCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @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 = 0; + if (groupId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, groupId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - output.endObject(); + 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; } - @Override - public TakeChallengeRewardCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { - if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public TakeChallengeRewardCsReq clone() { - return new TakeChallengeRewardCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static TakeChallengeRewardCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), data).checkInitialized(); - } - - public static TakeChallengeRewardCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), input).checkInitialized(); - } - - public static TakeChallengeRewardCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + // @@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()); + } + 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.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java index 247ffe6..dbe4550 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java @@ -1,301 +1,686 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeMailAttachmentCsReq.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated uint32 mail_id_list = 12; - */ - private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance(); - + 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); + } private TakeMailAttachmentCsReq() { + mailIdList_ = emptyIntList(); } - /** - * @return a new empty instance of {@code TakeMailAttachmentCsReq} - */ - public static TakeMailAttachmentCsReq newInstance() { - return new TakeMailAttachmentCsReq(); + 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); + } + + 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 whether the mailIdList field is set + * @return A list containing the mailIdList. */ - public boolean hasMailIdList() { - return (bitField0_ & 0x00000001) != 0; + @java.lang.Override + public java.util.List + getMailIdListList() { + return mailIdList_; } - /** * repeated uint32 mail_id_list = 12; - * @return this + * @return The count of mailIdList. */ - public TakeMailAttachmentCsReq clearMailIdList() { - bitField0_ &= ~0x00000001; - mailIdList.clear(); - return this; + public int getMailIdListCount() { + return mailIdList_.size(); } - /** * 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 + * @param index The index of the element to return. + * @return The mailIdList at the given index. */ - public RepeatedInt getMailIdList() { - return mailIdList; + 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; /** - * 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 + * uint32 optional_reward_id = 9; + * @return The optionalRewardId. */ - public RepeatedInt getMutableMailIdList() { - bitField0_ |= 0x00000001; - return mailIdList; + @java.lang.Override + public int getOptionalRewardId() { + return optionalRewardId_; } - /** - * repeated uint32 mail_id_list = 12; - * @param value the mailIdList to add - * @return this - */ - public TakeMailAttachmentCsReq addMailIdList(final int value) { - bitField0_ |= 0x00000001; - mailIdList.add(value); - return this; + 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; } - /** - * repeated uint32 mail_id_list = 12; - * @param values the mailIdList to add - * @return this - */ - public TakeMailAttachmentCsReq addAllMailIdList(final int... values) { - bitField0_ |= 0x00000001; - mailIdList.addAll(values); - return this; - } - - @Override - public TakeMailAttachmentCsReq copyFrom(final TakeMailAttachmentCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - mailIdList.copyFrom(other.mailIdList); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (optionalRewardId_ != 0) { + output.writeUInt32(9, optionalRewardId_); } - return this; + 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); } - @Override - public TakeMailAttachmentCsReq mergeFrom(final TakeMailAttachmentCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMailIdList()) { - getMutableMailIdList().addAll(other.mailIdList); - } - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public TakeMailAttachmentCsReq clear() { - if (isEmpty()) { - return this; + size = 0; + if (optionalRewardId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, optionalRewardId_); } - cachedSize = -1; - bitField0_ = 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_ - && (!hasMailIdList() || mailIdList.equals(other.mailIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < mailIdList.length(); i++) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(mailIdList.array()[i]); + { + int dataSize = 0; + for (int i = 0; i < mailIdList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(mailIdList_.getInt(i)); } + size += dataSize; + if (!getMailIdListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + mailIdListMemoizedSerializedSize = dataSize; } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * mailIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mailIdList); - } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 98: { - // mailIdList [packed=true] - input.readPackedUInt32(mailIdList, tag); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 96: { - // mailIdList [packed=false] - tag = input.readRepeatedUInt32(mailIdList, tag); - bitField0_ |= 0x00000001; - break; - } - } + @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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.mailIdList, mailIdList); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - output.endObject(); + 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; } - @Override - public TakeMailAttachmentCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1612269328: - case 1599691450: { - if (input.isAtField(FieldNames.mailIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(mailIdList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public TakeMailAttachmentCsReq clone() { - return new TakeMailAttachmentCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - 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(); + @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(); + bitField0_ |= 0x00000001; + } else { + ensureMailIdListIsMutable(); + mailIdList_.addAll(other.mailIdList_); + } + onChanged(); + } + if (other.getOptionalRewardId() != 0) { + setOptionalRewardId(other.getOptionalRewardId()); + } + 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 72: { + optionalRewardId_ = input.readUInt32(); + 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_); + } + 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) } - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName mailIdList = FieldName.forField("mailIdList", "mail_id_list"); + // @@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(); } + + public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + 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 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.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 2901d83..9c2748a 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java @@ -1,340 +1,565 @@ -// Code generated by protocol buffer compiler. Do not edit! +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TextJoinInfo.proto +// Protobuf Java Version: 4.26.0-rc1 + 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 ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 text_item_id = 2; - */ - private int textItemId; - - /** - * optional uint32 text_item_config_id = 3; - */ - private int textItemConfigId; - + 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); + } private TextJoinInfo() { } - /** - * @return a new empty instance of {@code TextJoinInfo} - */ - public static TextJoinInfo newInstance() { - return new TextJoinInfo(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor; } - /** - * optional uint32 text_item_id = 2; - * @return whether the textItemId field is set - */ - public boolean hasTextItemId() { - return (bitField0_ & 0x00000001) != 0; + @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; /** - * optional uint32 text_item_id = 2; - * @return this - */ - public TextJoinInfo clearTextItemId() { - bitField0_ &= ~0x00000001; - textItemId = 0; - return this; - } - - /** - * optional uint32 text_item_id = 2; - * @return the textItemId + * 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; /** - * optional uint32 text_item_id = 2; - * @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 = 3; - * @return whether the textItemConfigId field is set - */ - public boolean hasTextItemConfigId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 text_item_config_id = 3; - * @return this - */ - public TextJoinInfo clearTextItemConfigId() { - bitField0_ &= ~0x00000002; - textItemConfigId = 0; - return this; - } - - /** - * optional uint32 text_item_config_id = 3; - * @return the textItemConfigId + * uint32 text_item_config_id = 6; + * @return The textItemConfigId. */ + @java.lang.Override public int getTextItemConfigId() { - return textItemConfigId; + return textItemConfigId_; } - /** - * optional uint32 text_item_config_id = 3; - * @param value the textItemConfigId to set - * @return this - */ - public TextJoinInfo setTextItemConfigId(final int value) { - bitField0_ |= 0x00000002; - textItemConfigId = value; - return this; + 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; } - @Override - public TextJoinInfo copyFrom(final TextJoinInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - textItemId = other.textItemId; - textItemConfigId = other.textItemConfigId; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (textItemId_ != 0) { + output.writeUInt32(1, textItemId_); } - return this; + if (textItemConfigId_ != 0) { + output.writeUInt32(6, textItemConfigId_); + } + getUnknownFields().writeTo(output); } - @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; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public TextJoinInfo clear() { - if (isEmpty()) { - return this; + size = 0; + if (textItemId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, textItemId_); } - 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) 16); - output.writeUInt32NoTag(textItemId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - 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); + if (textItemConfigId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, textItemConfigId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - @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 16: { - // textItemId - textItemId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // 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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo)) { + return super.equals(obj); + } + 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; } - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.textItemId, textItemId); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId); - } - output.endObject(); + 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; } - @Override - public TextJoinInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { + 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; return this; } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1565189915: - case -153409355: { - if (input.isAtField(FieldNames.textItemId)) { - if (!input.trySkipNullValue()) { - textItemId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1448403459: - case -1174236578: { - if (input.isAtField(FieldNames.textItemConfigId)) { - if (!input.trySkipNullValue()) { - textItemConfigId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } + + @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_; } } - input.endObject(); - return this; - } - @Override - public TextJoinInfo clone() { - return new TextJoinInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static TextJoinInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new TextJoinInfo(), data).checkInitialized(); - } - - public static TextJoinInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); - } - - public static TextJoinInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized(); - } - - /** - * @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(); + @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(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 48: { + 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) } - /** - * 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"); + // @@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()); + } + 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.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 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(); + } + + // @@protoc_insertion_point(outer_class_scope) }