diff --git a/.editorconfig b/.editorconfig index dcb1ff3..f0a1794 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,7 +2,6 @@ root = true [*] charset = utf-8 -end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2125666 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto \ No newline at end of file diff --git a/README.md b/README.md index 5cdc6d7..aebc5cf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ -# Lunar Core -A game server reimplementation for version 1.5.0 of a certain turn-based anime game for educational purposes.\ -For any extra support, questions, or discussions, check out our [Discord](https://discord.gg/cfPKJ6N5hw). + +
repeated .MonsterArchive archive_monster_id_list = 7;
+ */
+ private final RepeatedMessagerepeated .RelicArchive archive_relic_list = 11;
+ */
+ private final RepeatedMessagerepeated .MonsterArchive archive_monster_id_list = 7;
+ * @return whether the archiveMonsterIdList field is set
+ */
+ public boolean hasArchiveMonsterIdList() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .MonsterArchive archive_monster_id_list = 7;
+ * @return this
+ */
+ public ArchiveData clearArchiveMonsterIdList() {
+ bitField0_ &= ~0x00000004;
+ archiveMonsterIdList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .MonsterArchive archive_monster_id_list = 7;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableArchiveMonsterIdList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .MonsterArchive archive_monster_id_list = 7;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .MonsterArchive archive_monster_id_list = 7;
+ * @param value the archiveMonsterIdList to add
+ * @return this
+ */
+ public ArchiveData addArchiveMonsterIdList(
+ final MonsterArchiveOuterClass.MonsterArchive value) {
+ bitField0_ |= 0x00000004;
+ archiveMonsterIdList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .MonsterArchive archive_monster_id_list = 7;
+ * @param values the archiveMonsterIdList to add
+ * @return this
+ */
+ public ArchiveData addAllArchiveMonsterIdList(
+ final MonsterArchiveOuterClass.MonsterArchive... values) {
+ bitField0_ |= 0x00000004;
+ archiveMonsterIdList.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .RelicArchive archive_relic_list = 11;
+ * @return whether the archiveRelicList field is set
+ */
+ public boolean hasArchiveRelicList() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .RelicArchive archive_relic_list = 11;
+ * @return this
+ */
+ public ArchiveData clearArchiveRelicList() {
+ bitField0_ &= ~0x00000008;
+ archiveRelicList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .RelicArchive archive_relic_list = 11;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableArchiveRelicList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .RelicArchive archive_relic_list = 11;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .RelicArchive archive_relic_list = 11;
+ * @param value the archiveRelicList to add
+ * @return this
+ */
+ public ArchiveData addArchiveRelicList(final RelicArchiveOuterClass.RelicArchive value) {
+ bitField0_ |= 0x00000008;
+ archiveRelicList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .RelicArchive archive_relic_list = 11;
+ * @param values the archiveRelicList to add
+ * @return this
+ */
+ public ArchiveData addAllArchiveRelicList(final RelicArchiveOuterClass.RelicArchive... values) {
+ bitField0_ |= 0x00000008;
+ archiveRelicList.addAll(values);
+ return this;
+ }
+
@Override
public ArchiveData copyFrom(final ArchiveData other) {
cachedSize = other.cachedSize;
@@ -182,6 +332,8 @@ public final class ArchiveDataOuterClass {
bitField0_ = other.bitField0_;
archiveEquipmentIdList.copyFrom(other.archiveEquipmentIdList);
archiveAvatarIdList.copyFrom(other.archiveAvatarIdList);
+ archiveMonsterIdList.copyFrom(other.archiveMonsterIdList);
+ archiveRelicList.copyFrom(other.archiveRelicList);
}
return this;
}
@@ -198,6 +350,12 @@ public final class ArchiveDataOuterClass {
if (other.hasArchiveAvatarIdList()) {
getMutableArchiveAvatarIdList().addAll(other.archiveAvatarIdList);
}
+ if (other.hasArchiveMonsterIdList()) {
+ getMutableArchiveMonsterIdList().addAll(other.archiveMonsterIdList);
+ }
+ if (other.hasArchiveRelicList()) {
+ getMutableArchiveRelicList().addAll(other.archiveRelicList);
+ }
return this;
}
@@ -210,6 +368,8 @@ public final class ArchiveDataOuterClass {
bitField0_ = 0;
archiveEquipmentIdList.clear();
archiveAvatarIdList.clear();
+ archiveMonsterIdList.clear();
+ archiveRelicList.clear();
return this;
}
@@ -222,6 +382,8 @@ public final class ArchiveDataOuterClass {
bitField0_ = 0;
archiveEquipmentIdList.clear();
archiveAvatarIdList.clear();
+ archiveMonsterIdList.clearQuick();
+ archiveRelicList.clearQuick();
return this;
}
@@ -236,7 +398,9 @@ public final class ArchiveDataOuterClass {
ArchiveData other = (ArchiveData) o;
return bitField0_ == other.bitField0_
&& (!hasArchiveEquipmentIdList() || archiveEquipmentIdList.equals(other.archiveEquipmentIdList))
- && (!hasArchiveAvatarIdList() || archiveAvatarIdList.equals(other.archiveAvatarIdList));
+ && (!hasArchiveAvatarIdList() || archiveAvatarIdList.equals(other.archiveAvatarIdList))
+ && (!hasArchiveMonsterIdList() || archiveMonsterIdList.equals(other.archiveMonsterIdList))
+ && (!hasArchiveRelicList() || archiveRelicList.equals(other.archiveRelicList));
}
@Override
@@ -253,6 +417,18 @@ public final class ArchiveDataOuterClass {
output.writeUInt32NoTag(archiveAvatarIdList.array()[i]);
}
}
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < archiveMonsterIdList.length(); i++) {
+ output.writeRawByte((byte) 58);
+ output.writeMessageNoTag(archiveMonsterIdList.get(i));
+ }
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < archiveRelicList.length(); i++) {
+ output.writeRawByte((byte) 90);
+ output.writeMessageNoTag(archiveRelicList.get(i));
+ }
+ }
}
@Override
@@ -264,6 +440,12 @@ public final class ArchiveDataOuterClass {
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * archiveAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveAvatarIdList);
}
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * archiveMonsterIdList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveMonsterIdList);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * archiveRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveRelicList);
+ }
return size;
}
@@ -288,6 +470,22 @@ public final class ArchiveDataOuterClass {
input.readPackedUInt32(archiveAvatarIdList, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
+ if (tag != 58) {
+ break;
+ }
+ }
+ case 58: {
+ // archiveMonsterIdList
+ tag = input.readRepeatedMessage(archiveMonsterIdList, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 90) {
+ break;
+ }
+ }
+ case 90: {
+ // archiveRelicList
+ tag = input.readRepeatedMessage(archiveRelicList, tag);
+ bitField0_ |= 0x00000008;
if (tag != 0) {
break;
}
@@ -327,6 +525,12 @@ public final class ArchiveDataOuterClass {
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedUInt32(FieldNames.archiveAvatarIdList, archiveAvatarIdList);
}
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.archiveMonsterIdList, archiveMonsterIdList);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.archiveRelicList, archiveRelicList);
+ }
output.endObject();
}
@@ -361,6 +565,30 @@ public final class ArchiveDataOuterClass {
}
break;
}
+ case 912174897:
+ case 1817787488: {
+ if (input.isAtField(FieldNames.archiveMonsterIdList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(archiveMonsterIdList);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1742876687:
+ case 2101828999: {
+ if (input.isAtField(FieldNames.archiveRelicList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(archiveRelicList);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
default: {
input.skipUnknownField();
break;
@@ -416,6 +644,10 @@ public final class ArchiveDataOuterClass {
static final FieldName archiveEquipmentIdList = FieldName.forField("archiveEquipmentIdList", "archive_equipment_id_list");
static final FieldName archiveAvatarIdList = FieldName.forField("archiveAvatarIdList", "archive_avatar_id_list");
+
+ static final FieldName archiveMonsterIdList = FieldName.forField("archiveMonsterIdList", "archive_monster_id_list");
+
+ static final FieldName archiveRelicList = FieldName.forField("archiveRelicList", "archive_relic_list");
}
}
}
diff --git a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java
new file mode 100644
index 0000000..ed6597b
--- /dev/null
+++ b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java
@@ -0,0 +1,1320 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.lunarcore.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoEnum;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.ProtoUtil;
+
+public final class BattlePassInfoNotifyOuterClass {
+ /**
+ * Protobuf type {@code BattlePassInfoNotify}
+ */
+ public static final class BattlePassInfoNotify extends ProtoMessageoptional uint64 taken_premium_extended_reward = 2;
+ */
+ private long takenPremiumExtendedReward;
+
+ /**
+ * optional uint64 taken_free_extended_reward = 5;
+ */
+ private long takenFreeExtendedReward;
+
+ /**
+ * optional uint64 unkfield = 6;
+ */
+ private long unkfield;
+
+ /**
+ * optional uint64 taken_premium_reward2 = 8;
+ */
+ private long takenPremiumReward2;
+
+ /**
+ * optional uint64 taken_free_reward = 9;
+ */
+ private long takenFreeReward;
+
+ /**
+ * optional uint64 taken_premium_reward1 = 10;
+ */
+ private long takenPremiumReward1;
+
+ /**
+ * optional uint64 taken_premium_optional_reward = 11;
+ */
+ private long takenPremiumOptionalReward;
+
+ /**
+ * optional uint32 exp = 4;
+ */
+ private int exp;
+
+ /**
+ * optional uint32 level = 7;
+ */
+ private int level;
+
+ /**
+ * optional uint32 cur_bp_id = 14;
+ */
+ private int curBpId;
+
+ /**
+ * optional uint32 cur_week_add_exp_sum = 15;
+ */
+ private int curWeekAddExpSum;
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ */
+ private int bpTierType;
+
+ private BattlePassInfoNotify() {
+ }
+
+ /**
+ * @return a new empty instance of {@code BattlePassInfoNotify}
+ */
+ public static BattlePassInfoNotify newInstance() {
+ return new BattlePassInfoNotify();
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 2;
+ * @return whether the takenPremiumExtendedReward field is set
+ */
+ public boolean hasTakenPremiumExtendedReward() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 2;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumExtendedReward() {
+ bitField0_ &= ~0x00000001;
+ takenPremiumExtendedReward = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 2;
+ * @return the takenPremiumExtendedReward
+ */
+ public long getTakenPremiumExtendedReward() {
+ return takenPremiumExtendedReward;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 2;
+ * @param value the takenPremiumExtendedReward to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumExtendedReward(final long value) {
+ bitField0_ |= 0x00000001;
+ takenPremiumExtendedReward = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_free_extended_reward = 5;
+ * @return whether the takenFreeExtendedReward field is set
+ */
+ public boolean hasTakenFreeExtendedReward() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint64 taken_free_extended_reward = 5;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenFreeExtendedReward() {
+ bitField0_ &= ~0x00000002;
+ takenFreeExtendedReward = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_free_extended_reward = 5;
+ * @return the takenFreeExtendedReward
+ */
+ public long getTakenFreeExtendedReward() {
+ return takenFreeExtendedReward;
+ }
+
+ /**
+ * optional uint64 taken_free_extended_reward = 5;
+ * @param value the takenFreeExtendedReward to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenFreeExtendedReward(final long value) {
+ bitField0_ |= 0x00000002;
+ takenFreeExtendedReward = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 unkfield = 6;
+ * @return whether the unkfield field is set
+ */
+ public boolean hasUnkfield() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint64 unkfield = 6;
+ * @return this
+ */
+ public BattlePassInfoNotify clearUnkfield() {
+ bitField0_ &= ~0x00000004;
+ unkfield = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 unkfield = 6;
+ * @return the unkfield
+ */
+ public long getUnkfield() {
+ return unkfield;
+ }
+
+ /**
+ * optional uint64 unkfield = 6;
+ * @param value the unkfield to set
+ * @return this
+ */
+ public BattlePassInfoNotify setUnkfield(final long value) {
+ bitField0_ |= 0x00000004;
+ unkfield = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward2 = 8;
+ * @return whether the takenPremiumReward2 field is set
+ */
+ public boolean hasTakenPremiumReward2() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward2 = 8;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumReward2() {
+ bitField0_ &= ~0x00000008;
+ takenPremiumReward2 = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward2 = 8;
+ * @return the takenPremiumReward2
+ */
+ public long getTakenPremiumReward2() {
+ return takenPremiumReward2;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward2 = 8;
+ * @param value the takenPremiumReward2 to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumReward2(final long value) {
+ bitField0_ |= 0x00000008;
+ takenPremiumReward2 = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_free_reward = 9;
+ * @return whether the takenFreeReward field is set
+ */
+ public boolean hasTakenFreeReward() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * optional uint64 taken_free_reward = 9;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenFreeReward() {
+ bitField0_ &= ~0x00000010;
+ 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_ |= 0x00000010;
+ takenFreeReward = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 10;
+ * @return whether the takenPremiumReward1 field is set
+ */
+ public boolean hasTakenPremiumReward1() {
+ return (bitField0_ & 0x00000020) != 0;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 10;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumReward1() {
+ bitField0_ &= ~0x00000020;
+ takenPremiumReward1 = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 10;
+ * @return the takenPremiumReward1
+ */
+ public long getTakenPremiumReward1() {
+ return takenPremiumReward1;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 10;
+ * @param value the takenPremiumReward1 to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumReward1(final long value) {
+ bitField0_ |= 0x00000020;
+ takenPremiumReward1 = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_optional_reward = 11;
+ * @return whether the takenPremiumOptionalReward field is set
+ */
+ public boolean hasTakenPremiumOptionalReward() {
+ return (bitField0_ & 0x00000040) != 0;
+ }
+
+ /**
+ * optional uint64 taken_premium_optional_reward = 11;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumOptionalReward() {
+ bitField0_ &= ~0x00000040;
+ takenPremiumOptionalReward = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_optional_reward = 11;
+ * @return the takenPremiumOptionalReward
+ */
+ public long getTakenPremiumOptionalReward() {
+ return takenPremiumOptionalReward;
+ }
+
+ /**
+ * optional uint64 taken_premium_optional_reward = 11;
+ * @param value the takenPremiumOptionalReward to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumOptionalReward(final long value) {
+ bitField0_ |= 0x00000040;
+ takenPremiumOptionalReward = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 exp = 4;
+ * @return whether the exp field is set
+ */
+ public boolean hasExp() {
+ return (bitField0_ & 0x00000080) != 0;
+ }
+
+ /**
+ * optional uint32 exp = 4;
+ * @return this
+ */
+ public BattlePassInfoNotify clearExp() {
+ bitField0_ &= ~0x00000080;
+ exp = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 exp = 4;
+ * @return the exp
+ */
+ public int getExp() {
+ return exp;
+ }
+
+ /**
+ * optional uint32 exp = 4;
+ * @param value the exp to set
+ * @return this
+ */
+ public BattlePassInfoNotify setExp(final int value) {
+ bitField0_ |= 0x00000080;
+ exp = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 level = 7;
+ * @return whether the level field is set
+ */
+ public boolean hasLevel() {
+ return (bitField0_ & 0x00000100) != 0;
+ }
+
+ /**
+ * optional uint32 level = 7;
+ * @return this
+ */
+ public BattlePassInfoNotify clearLevel() {
+ bitField0_ &= ~0x00000100;
+ level = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 level = 7;
+ * @return the level
+ */
+ public int getLevel() {
+ return level;
+ }
+
+ /**
+ * optional uint32 level = 7;
+ * @param value the level to set
+ * @return this
+ */
+ public BattlePassInfoNotify setLevel(final int value) {
+ bitField0_ |= 0x00000100;
+ level = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_bp_id = 14;
+ * @return whether the curBpId field is set
+ */
+ public boolean hasCurBpId() {
+ return (bitField0_ & 0x00000200) != 0;
+ }
+
+ /**
+ * optional uint32 cur_bp_id = 14;
+ * @return this
+ */
+ public BattlePassInfoNotify clearCurBpId() {
+ bitField0_ &= ~0x00000200;
+ curBpId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_bp_id = 14;
+ * @return the curBpId
+ */
+ public int getCurBpId() {
+ return curBpId;
+ }
+
+ /**
+ * optional uint32 cur_bp_id = 14;
+ * @param value the curBpId to set
+ * @return this
+ */
+ public BattlePassInfoNotify setCurBpId(final int value) {
+ bitField0_ |= 0x00000200;
+ curBpId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_week_add_exp_sum = 15;
+ * @return whether the curWeekAddExpSum field is set
+ */
+ public boolean hasCurWeekAddExpSum() {
+ return (bitField0_ & 0x00000400) != 0;
+ }
+
+ /**
+ * optional uint32 cur_week_add_exp_sum = 15;
+ * @return this
+ */
+ public BattlePassInfoNotify clearCurWeekAddExpSum() {
+ bitField0_ &= ~0x00000400;
+ curWeekAddExpSum = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_week_add_exp_sum = 15;
+ * @return the curWeekAddExpSum
+ */
+ public int getCurWeekAddExpSum() {
+ return curWeekAddExpSum;
+ }
+
+ /**
+ * optional uint32 cur_week_add_exp_sum = 15;
+ * @param value the curWeekAddExpSum to set
+ * @return this
+ */
+ public BattlePassInfoNotify setCurWeekAddExpSum(final int value) {
+ bitField0_ |= 0x00000400;
+ curWeekAddExpSum = value;
+ return this;
+ }
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * @return whether the bpTierType field is set
+ */
+ public boolean hasBpTierType() {
+ return (bitField0_ & 0x00000800) != 0;
+ }
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * @return this
+ */
+ public BattlePassInfoNotify clearBpTierType() {
+ bitField0_ &= ~0x00000800;
+ bpTierType = 0;
+ return this;
+ }
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * @return the bpTierType
+ */
+ public BpTierType getBpTierType() {
+ return BpTierType.forNumber(bpTierType);
+ }
+
+ /**
+ * Gets the value of the internal enum store. The result is
+ * equivalent to {@link BattlePassInfoNotify#getBpTierType()}.getNumber().
+ *
+ * @return numeric wire representation
+ */
+ public int getBpTierTypeValue() {
+ return bpTierType;
+ }
+
+ /**
+ * Sets the value of the internal enum store. This does not
+ * do any validity checks, so be sure to use appropriate value
+ * constants from {@link BpTierType}. Setting an invalid value
+ * can cause {@link BattlePassInfoNotify#getBpTierType()} to return null
+ *
+ * @param value the numeric wire value to set
+ * @return this
+ */
+ public BattlePassInfoNotify setBpTierTypeValue(final int value) {
+ bitField0_ |= 0x00000800;
+ bpTierType = value;
+ return this;
+ }
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * @param value the bpTierType to set
+ * @return this
+ */
+ public BattlePassInfoNotify setBpTierType(final BpTierType value) {
+ bitField0_ |= 0x00000800;
+ bpTierType = value.getNumber();
+ return this;
+ }
+
+ @Override
+ public BattlePassInfoNotify copyFrom(final BattlePassInfoNotify other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ takenPremiumExtendedReward = other.takenPremiumExtendedReward;
+ takenFreeExtendedReward = other.takenFreeExtendedReward;
+ unkfield = other.unkfield;
+ takenPremiumReward2 = other.takenPremiumReward2;
+ takenFreeReward = other.takenFreeReward;
+ takenPremiumReward1 = other.takenPremiumReward1;
+ takenPremiumOptionalReward = other.takenPremiumOptionalReward;
+ exp = other.exp;
+ level = other.level;
+ curBpId = other.curBpId;
+ curWeekAddExpSum = other.curWeekAddExpSum;
+ bpTierType = other.bpTierType;
+ }
+ return this;
+ }
+
+ @Override
+ public BattlePassInfoNotify mergeFrom(final BattlePassInfoNotify other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasTakenPremiumExtendedReward()) {
+ setTakenPremiumExtendedReward(other.takenPremiumExtendedReward);
+ }
+ if (other.hasTakenFreeExtendedReward()) {
+ setTakenFreeExtendedReward(other.takenFreeExtendedReward);
+ }
+ if (other.hasUnkfield()) {
+ setUnkfield(other.unkfield);
+ }
+ if (other.hasTakenPremiumReward2()) {
+ setTakenPremiumReward2(other.takenPremiumReward2);
+ }
+ if (other.hasTakenFreeReward()) {
+ setTakenFreeReward(other.takenFreeReward);
+ }
+ if (other.hasTakenPremiumReward1()) {
+ setTakenPremiumReward1(other.takenPremiumReward1);
+ }
+ if (other.hasTakenPremiumOptionalReward()) {
+ setTakenPremiumOptionalReward(other.takenPremiumOptionalReward);
+ }
+ if (other.hasExp()) {
+ setExp(other.exp);
+ }
+ if (other.hasLevel()) {
+ setLevel(other.level);
+ }
+ if (other.hasCurBpId()) {
+ setCurBpId(other.curBpId);
+ }
+ if (other.hasCurWeekAddExpSum()) {
+ setCurWeekAddExpSum(other.curWeekAddExpSum);
+ }
+ if (other.hasBpTierType()) {
+ setBpTierTypeValue(other.bpTierType);
+ }
+ return this;
+ }
+
+ @Override
+ public BattlePassInfoNotify clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ takenPremiumExtendedReward = 0L;
+ takenFreeExtendedReward = 0L;
+ unkfield = 0L;
+ takenPremiumReward2 = 0L;
+ takenFreeReward = 0L;
+ takenPremiumReward1 = 0L;
+ takenPremiumOptionalReward = 0L;
+ exp = 0;
+ level = 0;
+ curBpId = 0;
+ curWeekAddExpSum = 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_
+ && (!hasTakenPremiumExtendedReward() || takenPremiumExtendedReward == other.takenPremiumExtendedReward)
+ && (!hasTakenFreeExtendedReward() || takenFreeExtendedReward == other.takenFreeExtendedReward)
+ && (!hasUnkfield() || unkfield == other.unkfield)
+ && (!hasTakenPremiumReward2() || takenPremiumReward2 == other.takenPremiumReward2)
+ && (!hasTakenFreeReward() || takenFreeReward == other.takenFreeReward)
+ && (!hasTakenPremiumReward1() || takenPremiumReward1 == other.takenPremiumReward1)
+ && (!hasTakenPremiumOptionalReward() || takenPremiumOptionalReward == other.takenPremiumOptionalReward)
+ && (!hasExp() || exp == other.exp)
+ && (!hasLevel() || level == other.level)
+ && (!hasCurBpId() || curBpId == other.curBpId)
+ && (!hasCurWeekAddExpSum() || curWeekAddExpSum == other.curWeekAddExpSum)
+ && (!hasBpTierType() || bpTierType == other.bpTierType);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt64NoTag(takenPremiumExtendedReward);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 40);
+ output.writeUInt64NoTag(takenFreeExtendedReward);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 48);
+ output.writeUInt64NoTag(unkfield);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt64NoTag(takenPremiumReward2);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt64NoTag(takenFreeReward);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
+ output.writeRawByte((byte) 80);
+ output.writeUInt64NoTag(takenPremiumReward1);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ output.writeRawByte((byte) 88);
+ output.writeUInt64NoTag(takenPremiumOptionalReward);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
+ output.writeRawByte((byte) 32);
+ output.writeUInt32NoTag(exp);
+ }
+ if ((bitField0_ & 0x00000100) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(level);
+ }
+ if ((bitField0_ & 0x00000200) != 0) {
+ output.writeRawByte((byte) 112);
+ output.writeUInt32NoTag(curBpId);
+ }
+ if ((bitField0_ & 0x00000400) != 0) {
+ output.writeRawByte((byte) 120);
+ output.writeUInt32NoTag(curWeekAddExpSum);
+ }
+ if ((bitField0_ & 0x00000800) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeEnumNoTag(bpTierType);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeExtendedReward);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(unkfield);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward2);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeReward);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward1);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumOptionalReward);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(exp);
+ }
+ if ((bitField0_ & 0x00000100) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
+ }
+ if ((bitField0_ & 0x00000200) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curBpId);
+ }
+ if ((bitField0_ & 0x00000400) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum);
+ }
+ if ((bitField0_ & 0x00000800) != 0) {
+ size += 1 + ProtoSink.computeEnumSizeNoTag(bpTierType);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public BattlePassInfoNotify mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // takenPremiumExtendedReward
+ takenPremiumExtendedReward = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 40) {
+ break;
+ }
+ }
+ case 40: {
+ // takenFreeExtendedReward
+ takenFreeExtendedReward = input.readUInt64();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 48) {
+ break;
+ }
+ }
+ case 48: {
+ // unkfield
+ unkfield = input.readUInt64();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 64) {
+ break;
+ }
+ }
+ case 64: {
+ // takenPremiumReward2
+ takenPremiumReward2 = input.readUInt64();
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // takenFreeReward
+ takenFreeReward = input.readUInt64();
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
+ if (tag != 80) {
+ break;
+ }
+ }
+ case 80: {
+ // takenPremiumReward1
+ takenPremiumReward1 = input.readUInt64();
+ bitField0_ |= 0x00000020;
+ tag = input.readTag();
+ if (tag != 88) {
+ break;
+ }
+ }
+ case 88: {
+ // takenPremiumOptionalReward
+ takenPremiumOptionalReward = input.readUInt64();
+ bitField0_ |= 0x00000040;
+ tag = input.readTag();
+ if (tag != 32) {
+ break;
+ }
+ }
+ case 32: {
+ // exp
+ exp = input.readUInt32();
+ bitField0_ |= 0x00000080;
+ tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // level
+ level = input.readUInt32();
+ bitField0_ |= 0x00000100;
+ tag = input.readTag();
+ if (tag != 112) {
+ break;
+ }
+ }
+ case 112: {
+ // curBpId
+ curBpId = input.readUInt32();
+ bitField0_ |= 0x00000200;
+ tag = input.readTag();
+ if (tag != 120) {
+ break;
+ }
+ }
+ case 120: {
+ // curWeekAddExpSum
+ curWeekAddExpSum = input.readUInt32();
+ bitField0_ |= 0x00000400;
+ tag = input.readTag();
+ if (tag != 8) {
+ break;
+ }
+ }
+ case 8: {
+ // bpTierType
+ final int value = input.readInt32();
+ if (BpTierType.forNumber(value) != null) {
+ bpTierType = value;
+ bitField0_ |= 0x00000800;
+ }
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt64(FieldNames.takenPremiumExtendedReward, takenPremiumExtendedReward);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt64(FieldNames.takenFreeExtendedReward, takenFreeExtendedReward);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt64(FieldNames.unkfield, unkfield);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeUInt64(FieldNames.takenPremiumReward2, takenPremiumReward2);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeUInt64(FieldNames.takenFreeReward, takenFreeReward);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
+ output.writeUInt64(FieldNames.takenPremiumReward1, takenPremiumReward1);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ output.writeUInt64(FieldNames.takenPremiumOptionalReward, takenPremiumOptionalReward);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
+ output.writeUInt32(FieldNames.exp, exp);
+ }
+ if ((bitField0_ & 0x00000100) != 0) {
+ output.writeUInt32(FieldNames.level, level);
+ }
+ if ((bitField0_ & 0x00000200) != 0) {
+ output.writeUInt32(FieldNames.curBpId, curBpId);
+ }
+ if ((bitField0_ & 0x00000400) != 0) {
+ output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum);
+ }
+ if ((bitField0_ & 0x00000800) != 0) {
+ output.writeEnum(FieldNames.bpTierType, bpTierType, BpTierType.converter());
+ }
+ output.endObject();
+ }
+
+ @Override
+ public BattlePassInfoNotify mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -1290021512:
+ case -2138632299: {
+ if (input.isAtField(FieldNames.takenPremiumExtendedReward)) {
+ if (!input.trySkipNullValue()) {
+ takenPremiumExtendedReward = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1116117893:
+ case 1257087386: {
+ if (input.isAtField(FieldNames.takenFreeExtendedReward)) {
+ if (!input.trySkipNullValue()) {
+ takenFreeExtendedReward = input.readUInt64();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -247717048: {
+ if (input.isAtField(FieldNames.unkfield)) {
+ if (!input.trySkipNullValue()) {
+ unkfield = input.readUInt64();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 226926899:
+ case 1195903363: {
+ if (input.isAtField(FieldNames.takenPremiumReward2)) {
+ if (!input.trySkipNullValue()) {
+ takenPremiumReward2 = input.readUInt64();
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1065549026:
+ case 135671018: {
+ if (input.isAtField(FieldNames.takenFreeReward)) {
+ if (!input.trySkipNullValue()) {
+ takenFreeReward = input.readUInt64();
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 226926898:
+ case 1195903362: {
+ if (input.isAtField(FieldNames.takenPremiumReward1)) {
+ if (!input.trySkipNullValue()) {
+ takenPremiumReward1 = input.readUInt64();
+ bitField0_ |= 0x00000020;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 736311903:
+ case 548161422: {
+ if (input.isAtField(FieldNames.takenPremiumOptionalReward)) {
+ if (!input.trySkipNullValue()) {
+ takenPremiumOptionalReward = input.readUInt64();
+ bitField0_ |= 0x00000040;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 100893: {
+ if (input.isAtField(FieldNames.exp)) {
+ if (!input.trySkipNullValue()) {
+ exp = input.readUInt32();
+ bitField0_ |= 0x00000080;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 102865796: {
+ if (input.isAtField(FieldNames.level)) {
+ if (!input.trySkipNullValue()) {
+ level = 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 835771131:
+ case 26830815: {
+ if (input.isAtField(FieldNames.curWeekAddExpSum)) {
+ if (!input.trySkipNullValue()) {
+ curWeekAddExpSum = input.readUInt32();
+ bitField0_ |= 0x00000400;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -584657238:
+ case 779964614: {
+ if (input.isAtField(FieldNames.bpTierType)) {
+ if (!input.trySkipNullValue()) {
+ final BpTierType value = input.readEnum(BpTierType.converter());
+ if (value != null) {
+ bpTierType = value.getNumber();
+ bitField0_ |= 0x00000800;
+ } else {
+ input.skipUnknownEnumValue();
+ }
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public BattlePassInfoNotify clone() {
+ return new BattlePassInfoNotify().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static BattlePassInfoNotify parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new BattlePassInfoNotify(), data).checkInitialized();
+ }
+
+ public static BattlePassInfoNotify parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new BattlePassInfoNotify(), input).checkInitialized();
+ }
+
+ public static BattlePassInfoNotify parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new BattlePassInfoNotify(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating BattlePassInfoNotify messages
+ */
+ public static MessageFactoryBP_TIER_TYPE_NONE = 0;
+ */
+ BP_TIER_TYPE_NONE("BP_TIER_TYPE_NONE", 0),
+
+ /**
+ * BP_TIER_TYPE_FREE = 1;
+ */
+ BP_TIER_TYPE_FREE("BP_TIER_TYPE_FREE", 1),
+
+ /**
+ * BP_TIER_TYPE_PREMIUM_1 = 2;
+ */
+ BP_TIER_TYPE_PREMIUM_1("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_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.EnumConverteroptional uint32 battle_event_id = 1;
+ */
+ private int battleEventId;
+
+ /**
+ * optional .ClientTurnSnapshotStatus status = 2;
+ */
+ private final ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus status = ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus.newInstance();
+
+ private ClientTurnSnapshot() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ClientTurnSnapshot}
+ */
+ public static ClientTurnSnapshot newInstance() {
+ return new ClientTurnSnapshot();
+ }
+
+ /**
+ * optional uint32 battle_event_id = 1;
+ * @return whether the battleEventId field is set
+ */
+ public boolean hasBattleEventId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 battle_event_id = 1;
+ * @return this
+ */
+ public ClientTurnSnapshot clearBattleEventId() {
+ bitField0_ &= ~0x00000001;
+ battleEventId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 battle_event_id = 1;
+ * @return the battleEventId
+ */
+ public int getBattleEventId() {
+ return battleEventId;
+ }
+
+ /**
+ * optional uint32 battle_event_id = 1;
+ * @param value the battleEventId to set
+ * @return this
+ */
+ public ClientTurnSnapshot setBattleEventId(final int value) {
+ bitField0_ |= 0x00000001;
+ battleEventId = value;
+ return this;
+ }
+
+ /**
+ * optional .ClientTurnSnapshotStatus status = 2;
+ * @return whether the status field is set
+ */
+ public boolean hasStatus() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional .ClientTurnSnapshotStatus status = 2;
+ * @return this
+ */
+ public ClientTurnSnapshot clearStatus() {
+ bitField0_ &= ~0x00000002;
+ status.clear();
+ return this;
+ }
+
+ /**
+ * optional .ClientTurnSnapshotStatus status = 2;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableStatus()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * optional .ClientTurnSnapshotStatus status = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus getMutableStatus() {
+ bitField0_ |= 0x00000002;
+ return status;
+ }
+
+ /**
+ * optional .ClientTurnSnapshotStatus status = 2;
+ * @param value the status to set
+ * @return this
+ */
+ public ClientTurnSnapshot setStatus(
+ final ClientTurnSnapshotStatusOuterClass.ClientTurnSnapshotStatus value) {
+ bitField0_ |= 0x00000002;
+ status.copyFrom(value);
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshot copyFrom(final ClientTurnSnapshot other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ battleEventId = other.battleEventId;
+ status.copyFrom(other.status);
+ }
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshot mergeFrom(final ClientTurnSnapshot other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBattleEventId()) {
+ setBattleEventId(other.battleEventId);
+ }
+ if (other.hasStatus()) {
+ getMutableStatus().mergeFrom(other.status);
+ }
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshot clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ battleEventId = 0;
+ status.clear();
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshot clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ status.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ClientTurnSnapshot)) {
+ return false;
+ }
+ ClientTurnSnapshot other = (ClientTurnSnapshot) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBattleEventId() || battleEventId == other.battleEventId)
+ && (!hasStatus() || status.equals(other.status));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(battleEventId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(status);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(battleEventId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(status);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ClientTurnSnapshot mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // battleEventId
+ battleEventId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // status
+ input.readMessage(status);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.battleEventId, battleEventId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeMessage(FieldNames.status, status);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ClientTurnSnapshot mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -79510147:
+ case -766250873: {
+ if (input.isAtField(FieldNames.battleEventId)) {
+ if (!input.trySkipNullValue()) {
+ battleEventId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -892481550: {
+ if (input.isAtField(FieldNames.status)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(status);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshot clone() {
+ return new ClientTurnSnapshot().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ClientTurnSnapshot parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ClientTurnSnapshot(), data).checkInitialized();
+ }
+
+ public static ClientTurnSnapshot parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ClientTurnSnapshot(), input).checkInitialized();
+ }
+
+ public static ClientTurnSnapshot parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ClientTurnSnapshot(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ClientTurnSnapshot messages
+ */
+ public static MessageFactoryoptional .SpBarInfo sp_bar = 2;
+ */
+ private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance();
+
+ private ClientTurnSnapshotStatus() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ClientTurnSnapshotStatus}
+ */
+ public static ClientTurnSnapshotStatus newInstance() {
+ return new ClientTurnSnapshotStatus();
+ }
+
+ /**
+ * optional .SpBarInfo sp_bar = 2;
+ * @return whether the spBar field is set
+ */
+ public boolean hasSpBar() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .SpBarInfo sp_bar = 2;
+ * @return this
+ */
+ public ClientTurnSnapshotStatus clearSpBar() {
+ bitField0_ &= ~0x00000001;
+ spBar.clear();
+ return this;
+ }
+
+ /**
+ * optional .SpBarInfo sp_bar = 2;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableSpBar()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public SpBarInfoOuterClass.SpBarInfo getSpBar() {
+ return spBar;
+ }
+
+ /**
+ * optional .SpBarInfo sp_bar = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public SpBarInfoOuterClass.SpBarInfo getMutableSpBar() {
+ bitField0_ |= 0x00000001;
+ return spBar;
+ }
+
+ /**
+ * optional .SpBarInfo sp_bar = 2;
+ * @param value the spBar to set
+ * @return this
+ */
+ public ClientTurnSnapshotStatus setSpBar(final SpBarInfoOuterClass.SpBarInfo value) {
+ bitField0_ |= 0x00000001;
+ spBar.copyFrom(value);
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshotStatus copyFrom(final ClientTurnSnapshotStatus other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ spBar.copyFrom(other.spBar);
+ }
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshotStatus mergeFrom(final ClientTurnSnapshotStatus other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasSpBar()) {
+ getMutableSpBar().mergeFrom(other.spBar);
+ }
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshotStatus clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ spBar.clear();
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshotStatus clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ spBar.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ClientTurnSnapshotStatus)) {
+ return false;
+ }
+ ClientTurnSnapshotStatus other = (ClientTurnSnapshotStatus) o;
+ return bitField0_ == other.bitField0_
+ && (!hasSpBar() || spBar.equals(other.spBar));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(spBar);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(spBar);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ClientTurnSnapshotStatus mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 18: {
+ // spBar
+ input.readMessage(spBar);
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeMessage(FieldNames.spBar, spBar);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ClientTurnSnapshotStatus mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 109608054:
+ case -896253135: {
+ if (input.isAtField(FieldNames.spBar)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(spBar);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ClientTurnSnapshotStatus clone() {
+ return new ClientTurnSnapshotStatus().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ClientTurnSnapshotStatus parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ClientTurnSnapshotStatus(), data).checkInitialized();
+ }
+
+ public static ClientTurnSnapshotStatus parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ClientTurnSnapshotStatus(), input).checkInitialized();
+ }
+
+ public static ClientTurnSnapshotStatus parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ClientTurnSnapshotStatus(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ClientTurnSnapshotStatus messages
+ */
+ public static MessageFactoryoptional uint32 daily_active_point = 12;
+ */
+ private int dailyActivePoint;
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ */
+ private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 2;
+ */
+ private final RepeatedMessageoptional uint32 daily_active_point = 12;
+ * @return whether the dailyActivePoint field is set
+ */
+ public boolean hasDailyActivePoint() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 12;
+ * @return this
+ */
+ public DailyActiveInfoNotify clearDailyActivePoint() {
+ bitField0_ &= ~0x00000001;
+ dailyActivePoint = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 12;
+ * @return the dailyActivePoint
+ */
+ public int getDailyActivePoint() {
+ return dailyActivePoint;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 12;
+ * @param value the dailyActivePoint to set
+ * @return this
+ */
+ public DailyActiveInfoNotify setDailyActivePoint(final int value) {
+ bitField0_ |= 0x00000001;
+ dailyActivePoint = value;
+ return this;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ * @return whether the dailyActiveQuestIdList field is set
+ */
+ public boolean hasDailyActiveQuestIdList() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ * @return this
+ */
+ public DailyActiveInfoNotify clearDailyActiveQuestIdList() {
+ bitField0_ &= ~0x00000002;
+ dailyActiveQuestIdList.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableDailyActiveQuestIdList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getDailyActiveQuestIdList() {
+ return dailyActiveQuestIdList;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableDailyActiveQuestIdList() {
+ bitField0_ |= 0x00000002;
+ return dailyActiveQuestIdList;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ * @param value the dailyActiveQuestIdList to add
+ * @return this
+ */
+ public DailyActiveInfoNotify addDailyActiveQuestIdList(final int value) {
+ bitField0_ |= 0x00000002;
+ dailyActiveQuestIdList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 1;
+ * @param values the dailyActiveQuestIdList to add
+ * @return this
+ */
+ public DailyActiveInfoNotify addAllDailyActiveQuestIdList(final int... values) {
+ bitField0_ |= 0x00000002;
+ dailyActiveQuestIdList.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 2;
+ * @return whether the dailyActiveLevelList field is set
+ */
+ public boolean hasDailyActiveLevelList() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 2;
+ * @return this
+ */
+ public DailyActiveInfoNotify clearDailyActiveLevelList() {
+ bitField0_ &= ~0x00000004;
+ dailyActiveLevelList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 2;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableDailyActiveLevelList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .DailyActivityInfo daily_active_level_list = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .DailyActivityInfo daily_active_level_list = 2;
+ * @param value the dailyActiveLevelList to add
+ * @return this
+ */
+ public DailyActiveInfoNotify addDailyActiveLevelList(
+ final DailyActivityInfoOuterClass.DailyActivityInfo value) {
+ bitField0_ |= 0x00000004;
+ dailyActiveLevelList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 2;
+ * @param values the dailyActiveLevelList to add
+ * @return this
+ */
+ public DailyActiveInfoNotify addAllDailyActiveLevelList(
+ final DailyActivityInfoOuterClass.DailyActivityInfo... values) {
+ bitField0_ |= 0x00000004;
+ dailyActiveLevelList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public DailyActiveInfoNotify copyFrom(final DailyActiveInfoNotify other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ dailyActivePoint = other.dailyActivePoint;
+ dailyActiveQuestIdList.copyFrom(other.dailyActiveQuestIdList);
+ dailyActiveLevelList.copyFrom(other.dailyActiveLevelList);
+ }
+ return this;
+ }
+
+ @Override
+ public DailyActiveInfoNotify mergeFrom(final DailyActiveInfoNotify other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasDailyActivePoint()) {
+ setDailyActivePoint(other.dailyActivePoint);
+ }
+ if (other.hasDailyActiveQuestIdList()) {
+ getMutableDailyActiveQuestIdList().addAll(other.dailyActiveQuestIdList);
+ }
+ if (other.hasDailyActiveLevelList()) {
+ getMutableDailyActiveLevelList().addAll(other.dailyActiveLevelList);
+ }
+ return this;
+ }
+
+ @Override
+ public DailyActiveInfoNotify clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ dailyActivePoint = 0;
+ dailyActiveQuestIdList.clear();
+ dailyActiveLevelList.clear();
+ return this;
+ }
+
+ @Override
+ public DailyActiveInfoNotify clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ dailyActiveQuestIdList.clear();
+ dailyActiveLevelList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof DailyActiveInfoNotify)) {
+ return false;
+ }
+ DailyActiveInfoNotify other = (DailyActiveInfoNotify) o;
+ return bitField0_ == other.bitField0_
+ && (!hasDailyActivePoint() || dailyActivePoint == other.dailyActivePoint)
+ && (!hasDailyActiveQuestIdList() || dailyActiveQuestIdList.equals(other.dailyActiveQuestIdList))
+ && (!hasDailyActiveLevelList() || dailyActiveLevelList.equals(other.dailyActiveLevelList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 96);
+ output.writeUInt32NoTag(dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ for (int i = 0; i < dailyActiveQuestIdList.length(); i++) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < dailyActiveLevelList.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(dailyActiveLevelList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += (1 * dailyActiveQuestIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveQuestIdList);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * dailyActiveLevelList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyActiveLevelList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public DailyActiveInfoNotify mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 96: {
+ // dailyActivePoint
+ dailyActivePoint = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 10) {
+ break;
+ }
+ }
+ case 10: {
+ // dailyActiveQuestIdList [packed=true]
+ input.readPackedUInt32(dailyActiveQuestIdList, tag);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // dailyActiveLevelList
+ tag = input.readRepeatedMessage(dailyActiveLevelList, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 8: {
+ // dailyActiveQuestIdList [packed=false]
+ tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag);
+ bitField0_ |= 0x00000002;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.dailyActivePoint, dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRepeatedUInt32(FieldNames.dailyActiveQuestIdList, dailyActiveQuestIdList);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.dailyActiveLevelList, dailyActiveLevelList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public DailyActiveInfoNotify mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 859671121:
+ case 1952864125: {
+ if (input.isAtField(FieldNames.dailyActivePoint)) {
+ if (!input.trySkipNullValue()) {
+ dailyActivePoint = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1903124444:
+ case -752691246: {
+ if (input.isAtField(FieldNames.dailyActiveQuestIdList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(dailyActiveQuestIdList);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 705251971:
+ case 1821477548: {
+ if (input.isAtField(FieldNames.dailyActiveLevelList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(dailyActiveLevelList);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public DailyActiveInfoNotify clone() {
+ return new DailyActiveInfoNotify().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static DailyActiveInfoNotify parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new DailyActiveInfoNotify(), data).checkInitialized();
+ }
+
+ public static DailyActiveInfoNotify parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new DailyActiveInfoNotify(), input).checkInitialized();
+ }
+
+ public static DailyActiveInfoNotify parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new DailyActiveInfoNotify(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating DailyActiveInfoNotify messages
+ */
+ public static MessageFactoryoptional uint32 level = 5;
+ */
+ private int level;
+
+ /**
+ * optional uint32 daily_active_point = 9;
+ */
+ private int dailyActivePoint;
+
+ /**
+ * optional uint32 world_level = 10;
+ */
+ private int worldLevel;
+
+ /**
+ * optional bool is_has_taken = 13;
+ */
+ private boolean isHasTaken;
+
+ private DailyActivityInfo() {
+ }
+
+ /**
+ * @return a new empty instance of {@code DailyActivityInfo}
+ */
+ public static DailyActivityInfo newInstance() {
+ return new DailyActivityInfo();
+ }
+
+ /**
+ * optional uint32 level = 5;
+ * @return whether the level field is set
+ */
+ public boolean hasLevel() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 level = 5;
+ * @return this
+ */
+ public DailyActivityInfo clearLevel() {
+ bitField0_ &= ~0x00000001;
+ level = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 level = 5;
+ * @return the level
+ */
+ public int getLevel() {
+ return level;
+ }
+
+ /**
+ * optional uint32 level = 5;
+ * @param value the level to set
+ * @return this
+ */
+ public DailyActivityInfo setLevel(final int value) {
+ bitField0_ |= 0x00000001;
+ level = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 9;
+ * @return whether the dailyActivePoint field is set
+ */
+ public boolean hasDailyActivePoint() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 9;
+ * @return this
+ */
+ public DailyActivityInfo clearDailyActivePoint() {
+ bitField0_ &= ~0x00000002;
+ dailyActivePoint = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 9;
+ * @return the dailyActivePoint
+ */
+ public int getDailyActivePoint() {
+ return dailyActivePoint;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 9;
+ * @param value the dailyActivePoint to set
+ * @return this
+ */
+ public DailyActivityInfo setDailyActivePoint(final int value) {
+ bitField0_ |= 0x00000002;
+ dailyActivePoint = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 world_level = 10;
+ * @return whether the worldLevel field is set
+ */
+ public boolean hasWorldLevel() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 world_level = 10;
+ * @return this
+ */
+ public DailyActivityInfo clearWorldLevel() {
+ bitField0_ &= ~0x00000004;
+ worldLevel = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 world_level = 10;
+ * @return the worldLevel
+ */
+ public int getWorldLevel() {
+ return worldLevel;
+ }
+
+ /**
+ * optional uint32 world_level = 10;
+ * @param value the worldLevel to set
+ * @return this
+ */
+ public DailyActivityInfo setWorldLevel(final int value) {
+ bitField0_ |= 0x00000004;
+ worldLevel = value;
+ return this;
+ }
+
+ /**
+ * optional bool is_has_taken = 13;
+ * @return whether the isHasTaken field is set
+ */
+ public boolean hasIsHasTaken() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional bool is_has_taken = 13;
+ * @return this
+ */
+ public DailyActivityInfo clearIsHasTaken() {
+ bitField0_ &= ~0x00000008;
+ isHasTaken = false;
+ return this;
+ }
+
+ /**
+ * optional bool is_has_taken = 13;
+ * @return the isHasTaken
+ */
+ public boolean getIsHasTaken() {
+ return isHasTaken;
+ }
+
+ /**
+ * optional bool is_has_taken = 13;
+ * @param value the isHasTaken to set
+ * @return this
+ */
+ public DailyActivityInfo setIsHasTaken(final boolean value) {
+ bitField0_ |= 0x00000008;
+ isHasTaken = value;
+ return this;
+ }
+
+ @Override
+ public DailyActivityInfo copyFrom(final DailyActivityInfo other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ level = other.level;
+ dailyActivePoint = other.dailyActivePoint;
+ worldLevel = other.worldLevel;
+ isHasTaken = other.isHasTaken;
+ }
+ return this;
+ }
+
+ @Override
+ public DailyActivityInfo mergeFrom(final DailyActivityInfo other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasLevel()) {
+ setLevel(other.level);
+ }
+ if (other.hasDailyActivePoint()) {
+ setDailyActivePoint(other.dailyActivePoint);
+ }
+ if (other.hasWorldLevel()) {
+ setWorldLevel(other.worldLevel);
+ }
+ if (other.hasIsHasTaken()) {
+ setIsHasTaken(other.isHasTaken);
+ }
+ return this;
+ }
+
+ @Override
+ public DailyActivityInfo clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ level = 0;
+ dailyActivePoint = 0;
+ worldLevel = 0;
+ isHasTaken = false;
+ return this;
+ }
+
+ @Override
+ public DailyActivityInfo 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 DailyActivityInfo)) {
+ return false;
+ }
+ DailyActivityInfo other = (DailyActivityInfo) o;
+ return bitField0_ == other.bitField0_
+ && (!hasLevel() || level == other.level)
+ && (!hasDailyActivePoint() || dailyActivePoint == other.dailyActivePoint)
+ && (!hasWorldLevel() || worldLevel == other.worldLevel)
+ && (!hasIsHasTaken() || isHasTaken == other.isHasTaken);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 40);
+ output.writeUInt32NoTag(level);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt32NoTag(dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 80);
+ output.writeUInt32NoTag(worldLevel);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 104);
+ output.writeBoolNoTag(isHasTaken);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 2;
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public DailyActivityInfo mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 40: {
+ // level
+ level = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // dailyActivePoint
+ dailyActivePoint = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 80) {
+ break;
+ }
+ }
+ case 80: {
+ // worldLevel
+ worldLevel = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 104) {
+ break;
+ }
+ }
+ case 104: {
+ // isHasTaken
+ isHasTaken = input.readBool();
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.level, level);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.dailyActivePoint, dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.worldLevel, worldLevel);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeBool(FieldNames.isHasTaken, isHasTaken);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public DailyActivityInfo mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ 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;
+ }
+ case 859671121:
+ case 1952864125: {
+ if (input.isAtField(FieldNames.dailyActivePoint)) {
+ if (!input.trySkipNullValue()) {
+ dailyActivePoint = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 440007442:
+ case 1305257111: {
+ if (input.isAtField(FieldNames.worldLevel)) {
+ if (!input.trySkipNullValue()) {
+ worldLevel = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -663154281:
+ case -1240296947: {
+ if (input.isAtField(FieldNames.isHasTaken)) {
+ if (!input.trySkipNullValue()) {
+ isHasTaken = input.readBool();
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public DailyActivityInfo clone() {
+ return new DailyActivityInfo().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static DailyActivityInfo parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new DailyActivityInfo(), data).checkInitialized();
+ }
+
+ public static DailyActivityInfo parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new DailyActivityInfo(), input).checkInitialized();
+ }
+
+ public static DailyActivityInfo parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new DailyActivityInfo(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating DailyActivityInfo messages
+ */
+ public static MessageFactoryoptional uint32 ceiling_num = 5;
+ */
+ private int ceilingNum;
+
/**
* optional uint32 gacha_num = 11;
*/
@@ -86,12 +91,49 @@ public final class DoGachaScRspOuterClass {
return this;
}
+ /**
+ * optional uint32 ceiling_num = 5;
+ * @return whether the ceilingNum field is set
+ */
+ public boolean hasCeilingNum() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 ceiling_num = 5;
+ * @return this
+ */
+ public DoGachaScRsp clearCeilingNum() {
+ bitField0_ &= ~0x00000002;
+ ceilingNum = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 ceiling_num = 5;
+ * @return the ceilingNum
+ */
+ public int getCeilingNum() {
+ return ceilingNum;
+ }
+
+ /**
+ * optional uint32 ceiling_num = 5;
+ * @param value the ceilingNum to set
+ * @return this
+ */
+ public DoGachaScRsp setCeilingNum(final int value) {
+ bitField0_ |= 0x00000002;
+ ceilingNum = value;
+ return this;
+ }
+
/**
* optional uint32 gacha_num = 11;
* @return whether the gachaNum field is set
*/
public boolean hasGachaNum() {
- return (bitField0_ & 0x00000002) != 0;
+ return (bitField0_ & 0x00000004) != 0;
}
/**
@@ -99,7 +141,7 @@ public final class DoGachaScRspOuterClass {
* @return this
*/
public DoGachaScRsp clearGachaNum() {
- bitField0_ &= ~0x00000002;
+ bitField0_ &= ~0x00000004;
gachaNum = 0;
return this;
}
@@ -118,7 +160,7 @@ public final class DoGachaScRspOuterClass {
* @return this
*/
public DoGachaScRsp setGachaNum(final int value) {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
gachaNum = value;
return this;
}
@@ -128,7 +170,7 @@ public final class DoGachaScRspOuterClass {
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
- return (bitField0_ & 0x00000004) != 0;
+ return (bitField0_ & 0x00000008) != 0;
}
/**
@@ -136,7 +178,7 @@ public final class DoGachaScRspOuterClass {
* @return this
*/
public DoGachaScRsp clearRetcode() {
- bitField0_ &= ~0x00000004;
+ bitField0_ &= ~0x00000008;
retcode = 0;
return this;
}
@@ -155,7 +197,7 @@ public final class DoGachaScRspOuterClass {
* @return this
*/
public DoGachaScRsp setRetcode(final int value) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
retcode = value;
return this;
}
@@ -165,7 +207,7 @@ public final class DoGachaScRspOuterClass {
* @return whether the gachaItemList field is set
*/
public boolean hasGachaItemList() {
- return (bitField0_ & 0x00000008) != 0;
+ return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -173,7 +215,7 @@ public final class DoGachaScRspOuterClass {
* @return this
*/
public DoGachaScRsp clearGachaItemList() {
- bitField0_ &= ~0x00000008;
+ bitField0_ &= ~0x00000010;
gachaItemList.clear();
return this;
}
@@ -202,7 +244,7 @@ public final class DoGachaScRspOuterClass {
* @return internal storage object for modifications
*/
public RepeatedMessageoptional uint32 gacha_type = 10;
+ */
+ private int gachaType;
+
+ /**
+ * optional uint32 avatar_id = 12;
+ */
+ private int avatarId;
+
+ private ExchangeGachaCeilingCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ExchangeGachaCeilingCsReq}
+ */
+ public static ExchangeGachaCeilingCsReq newInstance() {
+ return new ExchangeGachaCeilingCsReq();
+ }
+
+ /**
+ * optional uint32 gacha_type = 10;
+ * @return whether the gachaType field is set
+ */
+ public boolean hasGachaType() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 gacha_type = 10;
+ * @return this
+ */
+ public ExchangeGachaCeilingCsReq clearGachaType() {
+ bitField0_ &= ~0x00000001;
+ gachaType = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 gacha_type = 10;
+ * @return the gachaType
+ */
+ public int getGachaType() {
+ return gachaType;
+ }
+
+ /**
+ * optional uint32 gacha_type = 10;
+ * @param value the gachaType to set
+ * @return this
+ */
+ public ExchangeGachaCeilingCsReq setGachaType(final int value) {
+ bitField0_ |= 0x00000001;
+ gachaType = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 avatar_id = 12;
+ * @return whether the avatarId field is set
+ */
+ public boolean hasAvatarId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 avatar_id = 12;
+ * @return this
+ */
+ public ExchangeGachaCeilingCsReq clearAvatarId() {
+ bitField0_ &= ~0x00000002;
+ avatarId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 avatar_id = 12;
+ * @return the avatarId
+ */
+ public int getAvatarId() {
+ return avatarId;
+ }
+
+ /**
+ * optional uint32 avatar_id = 12;
+ * @param value the avatarId to set
+ * @return this
+ */
+ public ExchangeGachaCeilingCsReq setAvatarId(final int value) {
+ bitField0_ |= 0x00000002;
+ avatarId = value;
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingCsReq copyFrom(final ExchangeGachaCeilingCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ gachaType = other.gachaType;
+ avatarId = other.avatarId;
+ }
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingCsReq mergeFrom(final ExchangeGachaCeilingCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGachaType()) {
+ setGachaType(other.gachaType);
+ }
+ if (other.hasAvatarId()) {
+ setAvatarId(other.avatarId);
+ }
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ gachaType = 0;
+ avatarId = 0;
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingCsReq 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 ExchangeGachaCeilingCsReq)) {
+ return false;
+ }
+ ExchangeGachaCeilingCsReq other = (ExchangeGachaCeilingCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGachaType() || gachaType == other.gachaType)
+ && (!hasAvatarId() || avatarId == other.avatarId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 80);
+ output.writeUInt32NoTag(gachaType);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 96);
+ output.writeUInt32NoTag(avatarId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ExchangeGachaCeilingCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 80: {
+ // gachaType
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 96) {
+ break;
+ }
+ }
+ case 96: {
+ // avatarId
+ avatarId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.gachaType, gachaType);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.avatarId, avatarId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ExchangeGachaCeilingCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 802848732:
+ case -871474217: {
+ if (input.isAtField(FieldNames.gachaType)) {
+ if (!input.trySkipNullValue()) {
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1787287636:
+ case -428636735: {
+ if (input.isAtField(FieldNames.avatarId)) {
+ if (!input.trySkipNullValue()) {
+ avatarId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingCsReq clone() {
+ return new ExchangeGachaCeilingCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ExchangeGachaCeilingCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ExchangeGachaCeilingCsReq(), data).checkInitialized();
+ }
+
+ public static ExchangeGachaCeilingCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ExchangeGachaCeilingCsReq(), input).checkInitialized();
+ }
+
+ public static ExchangeGachaCeilingCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ExchangeGachaCeilingCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ExchangeGachaCeilingCsReq messages
+ */
+ public static MessageFactoryoptional uint32 avatar_id = 5;
+ */
+ private int avatarId;
+
+ /**
+ * optional uint32 retcode = 9;
+ */
+ private int retcode;
+
+ /**
+ * optional uint32 gacha_type = 12;
+ */
+ private int gachaType;
+
+ /**
+ * optional .ItemList transfer_item_list = 2;
+ */
+ private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance();
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 7;
+ */
+ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance();
+
+ private ExchangeGachaCeilingScRsp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code ExchangeGachaCeilingScRsp}
+ */
+ public static ExchangeGachaCeilingScRsp newInstance() {
+ return new ExchangeGachaCeilingScRsp();
+ }
+
+ /**
+ * optional uint32 avatar_id = 5;
+ * @return whether the avatarId field is set
+ */
+ public boolean hasAvatarId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 avatar_id = 5;
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp clearAvatarId() {
+ bitField0_ &= ~0x00000001;
+ avatarId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 avatar_id = 5;
+ * @return the avatarId
+ */
+ public int getAvatarId() {
+ return avatarId;
+ }
+
+ /**
+ * optional uint32 avatar_id = 5;
+ * @param value the avatarId to set
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp setAvatarId(final int value) {
+ bitField0_ |= 0x00000001;
+ avatarId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp clearRetcode() {
+ bitField0_ &= ~0x00000002;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @param value the retcode to set
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000002;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 gacha_type = 12;
+ * @return whether the gachaType field is set
+ */
+ public boolean hasGachaType() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 gacha_type = 12;
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp clearGachaType() {
+ bitField0_ &= ~0x00000004;
+ gachaType = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 gacha_type = 12;
+ * @return the gachaType
+ */
+ public int getGachaType() {
+ return gachaType;
+ }
+
+ /**
+ * optional uint32 gacha_type = 12;
+ * @param value the gachaType to set
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp setGachaType(final int value) {
+ bitField0_ |= 0x00000004;
+ gachaType = value;
+ return this;
+ }
+
+ /**
+ * optional .ItemList transfer_item_list = 2;
+ * @return whether the transferItemList field is set
+ */
+ public boolean hasTransferItemList() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional .ItemList transfer_item_list = 2;
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp clearTransferItemList() {
+ bitField0_ &= ~0x00000008;
+ transferItemList.clear();
+ return this;
+ }
+
+ /**
+ * optional .ItemList transfer_item_list = 2;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableTransferItemList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public ItemListOuterClass.ItemList getTransferItemList() {
+ return transferItemList;
+ }
+
+ /**
+ * optional .ItemList transfer_item_list = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public ItemListOuterClass.ItemList getMutableTransferItemList() {
+ bitField0_ |= 0x00000008;
+ return transferItemList;
+ }
+
+ /**
+ * optional .ItemList transfer_item_list = 2;
+ * @param value the transferItemList to set
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp setTransferItemList(final ItemListOuterClass.ItemList value) {
+ bitField0_ |= 0x00000008;
+ transferItemList.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 7;
+ * @return whether the gachaCeiling field is set
+ */
+ public boolean hasGachaCeiling() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 7;
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp clearGachaCeiling() {
+ bitField0_ &= ~0x00000010;
+ gachaCeiling.clear();
+ return this;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 7;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableGachaCeiling()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() {
+ return gachaCeiling;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 7;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() {
+ bitField0_ |= 0x00000010;
+ return gachaCeiling;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 7;
+ * @param value the gachaCeiling to set
+ * @return this
+ */
+ public ExchangeGachaCeilingScRsp setGachaCeiling(
+ final GachaCeilingOuterClass.GachaCeiling value) {
+ bitField0_ |= 0x00000010;
+ gachaCeiling.copyFrom(value);
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingScRsp copyFrom(final ExchangeGachaCeilingScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ avatarId = other.avatarId;
+ retcode = other.retcode;
+ gachaType = other.gachaType;
+ transferItemList.copyFrom(other.transferItemList);
+ gachaCeiling.copyFrom(other.gachaCeiling);
+ }
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingScRsp mergeFrom(final ExchangeGachaCeilingScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasAvatarId()) {
+ setAvatarId(other.avatarId);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasGachaType()) {
+ setGachaType(other.gachaType);
+ }
+ if (other.hasTransferItemList()) {
+ getMutableTransferItemList().mergeFrom(other.transferItemList);
+ }
+ if (other.hasGachaCeiling()) {
+ getMutableGachaCeiling().mergeFrom(other.gachaCeiling);
+ }
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ avatarId = 0;
+ retcode = 0;
+ gachaType = 0;
+ transferItemList.clear();
+ gachaCeiling.clear();
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ transferItemList.clearQuick();
+ gachaCeiling.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ExchangeGachaCeilingScRsp)) {
+ return false;
+ }
+ ExchangeGachaCeilingScRsp other = (ExchangeGachaCeilingScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasAvatarId() || avatarId == other.avatarId)
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasGachaType() || gachaType == other.gachaType)
+ && (!hasTransferItemList() || transferItemList.equals(other.transferItemList))
+ && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 40);
+ output.writeUInt32NoTag(avatarId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 96);
+ output.writeUInt32NoTag(gachaType);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(transferItemList);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRawByte((byte) 58);
+ output.writeMessageNoTag(gachaCeiling);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ExchangeGachaCeilingScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 40: {
+ // avatarId
+ avatarId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 96) {
+ break;
+ }
+ }
+ case 96: {
+ // gachaType
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 18) {
+ break;
+ }
+ }
+ case 18: {
+ // transferItemList
+ input.readMessage(transferItemList);
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
+ if (tag != 58) {
+ break;
+ }
+ }
+ case 58: {
+ // gachaCeiling
+ input.readMessage(gachaCeiling);
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.avatarId, avatarId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.gachaType, gachaType);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeMessage(FieldNames.transferItemList, transferItemList);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeMessage(FieldNames.gachaCeiling, gachaCeiling);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ExchangeGachaCeilingScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1787287636:
+ case -428636735: {
+ if (input.isAtField(FieldNames.avatarId)) {
+ if (!input.trySkipNullValue()) {
+ avatarId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 802848732:
+ case -871474217: {
+ if (input.isAtField(FieldNames.gachaType)) {
+ if (!input.trySkipNullValue()) {
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -997597348:
+ case 263056118: {
+ if (input.isAtField(FieldNames.transferItemList)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(transferItemList);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 507275483:
+ case -1792489728: {
+ if (input.isAtField(FieldNames.gachaCeiling)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(gachaCeiling);
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ExchangeGachaCeilingScRsp clone() {
+ return new ExchangeGachaCeilingScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ExchangeGachaCeilingScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ExchangeGachaCeilingScRsp(), data).checkInitialized();
+ }
+
+ public static ExchangeGachaCeilingScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ExchangeGachaCeilingScRsp(), input).checkInitialized();
+ }
+
+ public static ExchangeGachaCeilingScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ExchangeGachaCeilingScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ExchangeGachaCeilingScRsp messages
+ */
+ public static MessageFactoryoptional .SimpleInfo simple_info = 11;
+ */
+ private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance();
+
+ private FriendRecommendInfo() {
+ }
+
+ /**
+ * @return a new empty instance of {@code FriendRecommendInfo}
+ */
+ public static FriendRecommendInfo newInstance() {
+ return new FriendRecommendInfo();
+ }
+
+ /**
+ * optional .SimpleInfo simple_info = 11;
+ * @return whether the simpleInfo field is set
+ */
+ public boolean hasSimpleInfo() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional .SimpleInfo simple_info = 11;
+ * @return this
+ */
+ public FriendRecommendInfo clearSimpleInfo() {
+ bitField0_ &= ~0x00000001;
+ simpleInfo.clear();
+ return this;
+ }
+
+ /**
+ * optional .SimpleInfo simple_info = 11;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableSimpleInfo()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() {
+ return simpleInfo;
+ }
+
+ /**
+ * optional .SimpleInfo simple_info = 11;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() {
+ bitField0_ |= 0x00000001;
+ return simpleInfo;
+ }
+
+ /**
+ * optional .SimpleInfo simple_info = 11;
+ * @param value the simpleInfo to set
+ * @return this
+ */
+ public FriendRecommendInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) {
+ bitField0_ |= 0x00000001;
+ simpleInfo.copyFrom(value);
+ return this;
+ }
+
+ @Override
+ public FriendRecommendInfo copyFrom(final FriendRecommendInfo other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ simpleInfo.copyFrom(other.simpleInfo);
+ }
+ return this;
+ }
+
+ @Override
+ public FriendRecommendInfo mergeFrom(final FriendRecommendInfo other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasSimpleInfo()) {
+ getMutableSimpleInfo().mergeFrom(other.simpleInfo);
+ }
+ return this;
+ }
+
+ @Override
+ public FriendRecommendInfo clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ simpleInfo.clear();
+ return this;
+ }
+
+ @Override
+ public FriendRecommendInfo clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ simpleInfo.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof FriendRecommendInfo)) {
+ return false;
+ }
+ FriendRecommendInfo other = (FriendRecommendInfo) o;
+ return bitField0_ == other.bitField0_
+ && (!hasSimpleInfo() || simpleInfo.equals(other.simpleInfo));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 90);
+ output.writeMessageNoTag(simpleInfo);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(simpleInfo);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public FriendRecommendInfo mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 90: {
+ // simpleInfo
+ input.readMessage(simpleInfo);
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeMessage(FieldNames.simpleInfo, simpleInfo);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public FriendRecommendInfo mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -1431903872:
+ case -1419171045: {
+ if (input.isAtField(FieldNames.simpleInfo)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(simpleInfo);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public FriendRecommendInfo clone() {
+ return new FriendRecommendInfo().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static FriendRecommendInfo parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new FriendRecommendInfo(), data).checkInitialized();
+ }
+
+ public static FriendRecommendInfo parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new FriendRecommendInfo(), input).checkInitialized();
+ }
+
+ public static FriendRecommendInfo parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new FriendRecommendInfo(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating FriendRecommendInfo messages
+ */
+ public static MessageFactoryoptional uint32 ceiling_num = 14;
+ */
+ private int ceilingNum;
+
+ /**
+ * optional bool is_claimed = 9;
+ */
+ private boolean isClaimed;
+
/**
* repeated .GachaCeilingAvatar avatar_list = 15;
*/
@@ -34,12 +44,86 @@ public final class GachaCeilingOuterClass {
return new GachaCeiling();
}
+ /**
+ * optional uint32 ceiling_num = 14;
+ * @return whether the ceilingNum field is set
+ */
+ public boolean hasCeilingNum() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 ceiling_num = 14;
+ * @return this
+ */
+ public GachaCeiling clearCeilingNum() {
+ bitField0_ &= ~0x00000001;
+ ceilingNum = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 ceiling_num = 14;
+ * @return the ceilingNum
+ */
+ public int getCeilingNum() {
+ return ceilingNum;
+ }
+
+ /**
+ * optional uint32 ceiling_num = 14;
+ * @param value the ceilingNum to set
+ * @return this
+ */
+ public GachaCeiling setCeilingNum(final int value) {
+ bitField0_ |= 0x00000001;
+ ceilingNum = value;
+ return this;
+ }
+
+ /**
+ * optional bool is_claimed = 9;
+ * @return whether the isClaimed field is set
+ */
+ public boolean hasIsClaimed() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional bool is_claimed = 9;
+ * @return this
+ */
+ public GachaCeiling clearIsClaimed() {
+ bitField0_ &= ~0x00000002;
+ isClaimed = false;
+ return this;
+ }
+
+ /**
+ * optional bool is_claimed = 9;
+ * @return the isClaimed
+ */
+ public boolean getIsClaimed() {
+ return isClaimed;
+ }
+
+ /**
+ * optional bool is_claimed = 9;
+ * @param value the isClaimed to set
+ * @return this
+ */
+ public GachaCeiling setIsClaimed(final boolean value) {
+ bitField0_ |= 0x00000002;
+ isClaimed = value;
+ return this;
+ }
+
/**
* repeated .GachaCeilingAvatar avatar_list = 15;
* @return whether the avatarList field is set
*/
public boolean hasAvatarList() {
- return (bitField0_ & 0x00000001) != 0;
+ return (bitField0_ & 0x00000004) != 0;
}
/**
@@ -47,7 +131,7 @@ public final class GachaCeilingOuterClass {
* @return this
*/
public GachaCeiling clearAvatarList() {
- bitField0_ &= ~0x00000001;
+ bitField0_ &= ~0x00000004;
avatarList.clear();
return this;
}
@@ -76,7 +160,7 @@ public final class GachaCeilingOuterClass {
* @return internal storage object for modifications
*/
public RepeatedMessage
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -107,6 +107,11 @@ public final class GateserverOuterClass {
*/
private final Utf8String ifixVersion = Utf8String.newEmptyInstance();
+ /**
+ * optional string msg = 1550;
+ */
+ private final Utf8String msg = Utf8String.newEmptyInstance();
+
private Gateserver() {
}
@@ -833,7 +838,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -845,7 +850,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -859,7 +864,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -871,7 +876,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -883,7 +888,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -896,7 +901,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -911,7 +916,7 @@ public final class GateserverOuterClass {
/**
*
- * lua version
+ * lua versionf
*
*
* optional string mdk_res_version = 1213;
@@ -1017,6 +1022,71 @@ public final class GateserverOuterClass {
return this;
}
+ /**
+ * optional string msg = 1550;
+ * @return whether the msg field is set
+ */
+ public boolean hasMsg() {
+ return (bitField0_ & 0x00010000) != 0;
+ }
+
+ /**
+ * optional string msg = 1550;
+ * @return this
+ */
+ public Gateserver clearMsg() {
+ bitField0_ &= ~0x00010000;
+ msg.clear();
+ return this;
+ }
+
+ /**
+ * optional string msg = 1550;
+ * @return the msg
+ */
+ public String getMsg() {
+ return msg.getString();
+ }
+
+ /**
+ * optional string msg = 1550;
+ * @return internal {@code Utf8String} representation of msg for reading
+ */
+ public Utf8String getMsgBytes() {
+ return this.msg;
+ }
+
+ /**
+ * optional string msg = 1550;
+ * @return internal {@code Utf8String} representation of msg for modifications
+ */
+ public Utf8String getMutableMsgBytes() {
+ bitField0_ |= 0x00010000;
+ return this.msg;
+ }
+
+ /**
+ * optional string msg = 1550;
+ * @param value the msg to set
+ * @return this
+ */
+ public Gateserver setMsg(final CharSequence value) {
+ bitField0_ |= 0x00010000;
+ msg.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional string msg = 1550;
+ * @param value the msg to set
+ * @return this
+ */
+ public Gateserver setMsg(final Utf8String value) {
+ bitField0_ |= 0x00010000;
+ msg.copyFrom(value);
+ return this;
+ }
+
@Override
public Gateserver copyFrom(final Gateserver other) {
cachedSize = other.cachedSize;
@@ -1038,6 +1108,7 @@ public final class GateserverOuterClass {
clientSecretKey.copyFrom(other.clientSecretKey);
mdkResVersion.copyFrom(other.mdkResVersion);
ifixVersion.copyFrom(other.ifixVersion);
+ msg.copyFrom(other.msg);
}
return this;
}
@@ -1096,6 +1167,9 @@ public final class GateserverOuterClass {
if (other.hasIfixVersion()) {
getMutableIfixVersionBytes().copyFrom(other.ifixVersion);
}
+ if (other.hasMsg()) {
+ getMutableMsgBytes().copyFrom(other.msg);
+ }
return this;
}
@@ -1122,6 +1196,7 @@ public final class GateserverOuterClass {
clientSecretKey.clear();
mdkResVersion.clear();
ifixVersion.clear();
+ msg.clear();
return this;
}
@@ -1141,6 +1216,7 @@ public final class GateserverOuterClass {
clientSecretKey.clear();
mdkResVersion.clear();
ifixVersion.clear();
+ msg.clear();
return this;
}
@@ -1169,7 +1245,8 @@ public final class GateserverOuterClass {
&& (!hasIfixUrl() || ifixUrl.equals(other.ifixUrl))
&& (!hasClientSecretKey() || clientSecretKey.equals(other.clientSecretKey))
&& (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion))
- && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion));
+ && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion))
+ && (!hasMsg() || msg.equals(other.msg));
}
@Override
@@ -1238,6 +1315,10 @@ public final class GateserverOuterClass {
output.writeRawLittleEndian16((short) 20386);
output.writeStringNoTag(ifixVersion);
}
+ if ((bitField0_ & 0x00010000) != 0) {
+ output.writeRawLittleEndian16((short) 24818);
+ output.writeStringNoTag(msg);
+ }
}
@Override
@@ -1291,6 +1372,9 @@ public final class GateserverOuterClass {
if ((bitField0_ & 0x00008000) != 0) {
size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion);
}
+ if ((bitField0_ & 0x00010000) != 0) {
+ size += 2 + ProtoSink.computeStringSizeNoTag(msg);
+ }
return size;
}
@@ -1441,6 +1525,15 @@ public final class GateserverOuterClass {
input.readString(ifixVersion);
bitField0_ |= 0x00008000;
tag = input.readTag();
+ if (tag != 12402) {
+ break;
+ }
+ }
+ case 12402: {
+ // msg
+ input.readString(msg);
+ bitField0_ |= 0x00010000;
+ tag = input.readTag();
if (tag != 0) {
break;
}
@@ -1510,6 +1603,9 @@ public final class GateserverOuterClass {
if ((bitField0_ & 0x00008000) != 0) {
output.writeString(FieldNames.ifixVersion, ifixVersion);
}
+ if ((bitField0_ & 0x00010000) != 0) {
+ output.writeString(FieldNames.msg, msg);
+ }
output.endObject();
}
@@ -1704,6 +1800,17 @@ public final class GateserverOuterClass {
}
break;
}
+ case 108417: {
+ if (input.isAtField(FieldNames.msg)) {
+ if (!input.trySkipNullValue()) {
+ input.readString(msg);
+ bitField0_ |= 0x00010000;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
default: {
input.skipUnknownField();
break;
@@ -1787,6 +1894,8 @@ public final class GateserverOuterClass {
static final FieldName mdkResVersion = FieldName.forField("mdkResVersion", "mdk_res_version");
static final FieldName ifixVersion = FieldName.forField("ifixVersion", "ifix_version");
+
+ static final FieldName msg = FieldName.forField("msg");
}
}
}
diff --git a/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoCsReqOuterClass.java
new file mode 100644
index 0000000..ea51047
--- /dev/null
+++ b/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoCsReqOuterClass.java
@@ -0,0 +1,174 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.lunarcore.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+
+public final class GetDailyActiveInfoCsReqOuterClass {
+ /**
+ * Protobuf type {@code GetDailyActiveInfoCsReq}
+ */
+ public static final class GetDailyActiveInfoCsReq extends ProtoMessageoptional uint32 daily_active_point = 2;
+ */
+ private int dailyActivePoint;
+
+ /**
+ * optional uint32 retcode = 15;
+ */
+ private int retcode;
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ */
+ private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 10;
+ */
+ private final RepeatedMessageoptional uint32 daily_active_point = 2;
+ * @return whether the dailyActivePoint field is set
+ */
+ public boolean hasDailyActivePoint() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 2;
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp clearDailyActivePoint() {
+ bitField0_ &= ~0x00000001;
+ dailyActivePoint = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 2;
+ * @return the dailyActivePoint
+ */
+ public int getDailyActivePoint() {
+ return dailyActivePoint;
+ }
+
+ /**
+ * optional uint32 daily_active_point = 2;
+ * @param value the dailyActivePoint to set
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp setDailyActivePoint(final int value) {
+ bitField0_ |= 0x00000001;
+ dailyActivePoint = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp clearRetcode() {
+ bitField0_ &= ~0x00000002;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000002;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ * @return whether the dailyActiveQuestIdList field is set
+ */
+ public boolean hasDailyActiveQuestIdList() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp clearDailyActiveQuestIdList() {
+ bitField0_ &= ~0x00000004;
+ dailyActiveQuestIdList.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableDailyActiveQuestIdList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getDailyActiveQuestIdList() {
+ return dailyActiveQuestIdList;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableDailyActiveQuestIdList() {
+ bitField0_ |= 0x00000004;
+ return dailyActiveQuestIdList;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ * @param value the dailyActiveQuestIdList to add
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp addDailyActiveQuestIdList(final int value) {
+ bitField0_ |= 0x00000004;
+ dailyActiveQuestIdList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 daily_active_quest_id_list = 3;
+ * @param values the dailyActiveQuestIdList to add
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp addAllDailyActiveQuestIdList(final int... values) {
+ bitField0_ |= 0x00000004;
+ dailyActiveQuestIdList.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 10;
+ * @return whether the dailyActiveLevelList field is set
+ */
+ public boolean hasDailyActiveLevelList() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 10;
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp clearDailyActiveLevelList() {
+ bitField0_ &= ~0x00000008;
+ dailyActiveLevelList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 10;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableDailyActiveLevelList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .DailyActivityInfo daily_active_level_list = 10;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .DailyActivityInfo daily_active_level_list = 10;
+ * @param value the dailyActiveLevelList to add
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp addDailyActiveLevelList(
+ final DailyActivityInfoOuterClass.DailyActivityInfo value) {
+ bitField0_ |= 0x00000008;
+ dailyActiveLevelList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .DailyActivityInfo daily_active_level_list = 10;
+ * @param values the dailyActiveLevelList to add
+ * @return this
+ */
+ public GetDailyActiveInfoScRsp addAllDailyActiveLevelList(
+ final DailyActivityInfoOuterClass.DailyActivityInfo... values) {
+ bitField0_ |= 0x00000008;
+ dailyActiveLevelList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetDailyActiveInfoScRsp copyFrom(final GetDailyActiveInfoScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ dailyActivePoint = other.dailyActivePoint;
+ retcode = other.retcode;
+ dailyActiveQuestIdList.copyFrom(other.dailyActiveQuestIdList);
+ dailyActiveLevelList.copyFrom(other.dailyActiveLevelList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetDailyActiveInfoScRsp mergeFrom(final GetDailyActiveInfoScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasDailyActivePoint()) {
+ setDailyActivePoint(other.dailyActivePoint);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasDailyActiveQuestIdList()) {
+ getMutableDailyActiveQuestIdList().addAll(other.dailyActiveQuestIdList);
+ }
+ if (other.hasDailyActiveLevelList()) {
+ getMutableDailyActiveLevelList().addAll(other.dailyActiveLevelList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetDailyActiveInfoScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ dailyActivePoint = 0;
+ retcode = 0;
+ dailyActiveQuestIdList.clear();
+ dailyActiveLevelList.clear();
+ return this;
+ }
+
+ @Override
+ public GetDailyActiveInfoScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ dailyActiveQuestIdList.clear();
+ dailyActiveLevelList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetDailyActiveInfoScRsp)) {
+ return false;
+ }
+ GetDailyActiveInfoScRsp other = (GetDailyActiveInfoScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasDailyActivePoint() || dailyActivePoint == other.dailyActivePoint)
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasDailyActiveQuestIdList() || dailyActiveQuestIdList.equals(other.dailyActiveQuestIdList))
+ && (!hasDailyActiveLevelList() || dailyActiveLevelList.equals(other.dailyActiveLevelList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 120);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < dailyActiveQuestIdList.length(); i++) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < dailyActiveLevelList.length(); i++) {
+ output.writeRawByte((byte) 82);
+ output.writeMessageNoTag(dailyActiveLevelList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * dailyActiveQuestIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveQuestIdList);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * dailyActiveLevelList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyActiveLevelList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetDailyActiveInfoScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // dailyActivePoint
+ dailyActivePoint = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 120) {
+ break;
+ }
+ }
+ case 120: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // dailyActiveQuestIdList [packed=true]
+ input.readPackedUInt32(dailyActiveQuestIdList, tag);
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 82) {
+ break;
+ }
+ }
+ case 82: {
+ // dailyActiveLevelList
+ tag = input.readRepeatedMessage(dailyActiveLevelList, tag);
+ bitField0_ |= 0x00000008;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 24: {
+ // dailyActiveQuestIdList [packed=false]
+ tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag);
+ bitField0_ |= 0x00000004;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.dailyActivePoint, dailyActivePoint);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedUInt32(FieldNames.dailyActiveQuestIdList, dailyActiveQuestIdList);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedMessage(FieldNames.dailyActiveLevelList, dailyActiveLevelList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetDailyActiveInfoScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 859671121:
+ case 1952864125: {
+ if (input.isAtField(FieldNames.dailyActivePoint)) {
+ if (!input.trySkipNullValue()) {
+ dailyActivePoint = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1903124444:
+ case -752691246: {
+ if (input.isAtField(FieldNames.dailyActiveQuestIdList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(dailyActiveQuestIdList);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 705251971:
+ case 1821477548: {
+ if (input.isAtField(FieldNames.dailyActiveLevelList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(dailyActiveLevelList);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetDailyActiveInfoScRsp clone() {
+ return new GetDailyActiveInfoScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetDailyActiveInfoScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetDailyActiveInfoScRsp(), data).checkInitialized();
+ }
+
+ public static GetDailyActiveInfoScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetDailyActiveInfoScRsp(), input).checkInitialized();
+ }
+
+ public static GetDailyActiveInfoScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetDailyActiveInfoScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetDailyActiveInfoScRsp messages
+ */
+ public static MessageFactoryoptional uint32 retcode = 12;
+ */
+ private int retcode;
+
+ /**
+ * repeated .FriendRecommendInfo friend_recommend_list = 5;
+ */
+ private final RepeatedMessageoptional uint32 retcode = 12;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 12;
+ * @return this
+ */
+ public GetFriendRecommendListInfoScRsp clearRetcode() {
+ bitField0_ &= ~0x00000001;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 12;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 12;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetFriendRecommendListInfoScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000001;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated .FriendRecommendInfo friend_recommend_list = 5;
+ * @return whether the friendRecommendList field is set
+ */
+ public boolean hasFriendRecommendList() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * repeated .FriendRecommendInfo friend_recommend_list = 5;
+ * @return this
+ */
+ public GetFriendRecommendListInfoScRsp clearFriendRecommendList() {
+ bitField0_ &= ~0x00000002;
+ friendRecommendList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .FriendRecommendInfo friend_recommend_list = 5;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableFriendRecommendList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .FriendRecommendInfo friend_recommend_list = 5;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .FriendRecommendInfo friend_recommend_list = 5;
+ * @param value the friendRecommendList to add
+ * @return this
+ */
+ public GetFriendRecommendListInfoScRsp addFriendRecommendList(
+ final FriendRecommendInfoOuterClass.FriendRecommendInfo value) {
+ bitField0_ |= 0x00000002;
+ friendRecommendList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .FriendRecommendInfo friend_recommend_list = 5;
+ * @param values the friendRecommendList to add
+ * @return this
+ */
+ public GetFriendRecommendListInfoScRsp addAllFriendRecommendList(
+ final FriendRecommendInfoOuterClass.FriendRecommendInfo... values) {
+ bitField0_ |= 0x00000002;
+ friendRecommendList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetFriendRecommendListInfoScRsp copyFrom(final GetFriendRecommendListInfoScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ retcode = other.retcode;
+ friendRecommendList.copyFrom(other.friendRecommendList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetFriendRecommendListInfoScRsp mergeFrom(final GetFriendRecommendListInfoScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasFriendRecommendList()) {
+ getMutableFriendRecommendList().addAll(other.friendRecommendList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetFriendRecommendListInfoScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ retcode = 0;
+ friendRecommendList.clear();
+ return this;
+ }
+
+ @Override
+ public GetFriendRecommendListInfoScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ friendRecommendList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetFriendRecommendListInfoScRsp)) {
+ return false;
+ }
+ GetFriendRecommendListInfoScRsp other = (GetFriendRecommendListInfoScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasFriendRecommendList() || friendRecommendList.equals(other.friendRecommendList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 96);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ for (int i = 0; i < friendRecommendList.length(); i++) {
+ output.writeRawByte((byte) 42);
+ output.writeMessageNoTag(friendRecommendList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += (1 * friendRecommendList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friendRecommendList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetFriendRecommendListInfoScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 96: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 42) {
+ break;
+ }
+ }
+ case 42: {
+ // friendRecommendList
+ tag = input.readRepeatedMessage(friendRecommendList, tag);
+ bitField0_ |= 0x00000002;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRepeatedMessage(FieldNames.friendRecommendList, friendRecommendList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetFriendRecommendListInfoScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1367821692:
+ case -194477566: {
+ if (input.isAtField(FieldNames.friendRecommendList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(friendRecommendList);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetFriendRecommendListInfoScRsp clone() {
+ return new GetFriendRecommendListInfoScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetFriendRecommendListInfoScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetFriendRecommendListInfoScRsp(), data).checkInitialized();
+ }
+
+ public static GetFriendRecommendListInfoScRsp parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new GetFriendRecommendListInfoScRsp(), input).checkInitialized();
+ }
+
+ public static GetFriendRecommendListInfoScRsp parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new GetFriendRecommendListInfoScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetFriendRecommendListInfoScRsp messages
+ */
+ public static MessageFactoryoptional uint32 gacha_type = 4;
+ */
+ private int gachaType;
+
+ private GetGachaCeilingCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code GetGachaCeilingCsReq}
+ */
+ public static GetGachaCeilingCsReq newInstance() {
+ return new GetGachaCeilingCsReq();
+ }
+
+ /**
+ * optional uint32 gacha_type = 4;
+ * @return whether the gachaType field is set
+ */
+ public boolean hasGachaType() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 gacha_type = 4;
+ * @return this
+ */
+ public GetGachaCeilingCsReq clearGachaType() {
+ bitField0_ &= ~0x00000001;
+ gachaType = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 gacha_type = 4;
+ * @return the gachaType
+ */
+ public int getGachaType() {
+ return gachaType;
+ }
+
+ /**
+ * optional uint32 gacha_type = 4;
+ * @param value the gachaType to set
+ * @return this
+ */
+ public GetGachaCeilingCsReq setGachaType(final int value) {
+ bitField0_ |= 0x00000001;
+ gachaType = value;
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingCsReq copyFrom(final GetGachaCeilingCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ gachaType = other.gachaType;
+ }
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingCsReq mergeFrom(final GetGachaCeilingCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGachaType()) {
+ setGachaType(other.gachaType);
+ }
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ gachaType = 0;
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingCsReq 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 GetGachaCeilingCsReq)) {
+ return false;
+ }
+ GetGachaCeilingCsReq other = (GetGachaCeilingCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGachaType() || gachaType == other.gachaType);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 32);
+ output.writeUInt32NoTag(gachaType);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetGachaCeilingCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 32: {
+ // gachaType
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.gachaType, gachaType);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetGachaCeilingCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 802848732:
+ case -871474217: {
+ if (input.isAtField(FieldNames.gachaType)) {
+ if (!input.trySkipNullValue()) {
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingCsReq clone() {
+ return new GetGachaCeilingCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetGachaCeilingCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetGachaCeilingCsReq(), data).checkInitialized();
+ }
+
+ public static GetGachaCeilingCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetGachaCeilingCsReq(), input).checkInitialized();
+ }
+
+ public static GetGachaCeilingCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetGachaCeilingCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetGachaCeilingCsReq messages
+ */
+ public static MessageFactoryoptional uint32 gacha_type = 14;
+ */
+ private int gachaType;
+
+ /**
+ * optional uint32 retcode = 15;
+ */
+ private int retcode;
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 6;
+ */
+ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance();
+
+ private GetGachaCeilingScRsp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code GetGachaCeilingScRsp}
+ */
+ public static GetGachaCeilingScRsp newInstance() {
+ return new GetGachaCeilingScRsp();
+ }
+
+ /**
+ * optional uint32 gacha_type = 14;
+ * @return whether the gachaType field is set
+ */
+ public boolean hasGachaType() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 gacha_type = 14;
+ * @return this
+ */
+ public GetGachaCeilingScRsp clearGachaType() {
+ bitField0_ &= ~0x00000001;
+ gachaType = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 gacha_type = 14;
+ * @return the gachaType
+ */
+ public int getGachaType() {
+ return gachaType;
+ }
+
+ /**
+ * optional uint32 gacha_type = 14;
+ * @param value the gachaType to set
+ * @return this
+ */
+ public GetGachaCeilingScRsp setGachaType(final int value) {
+ bitField0_ |= 0x00000001;
+ gachaType = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @return this
+ */
+ public GetGachaCeilingScRsp clearRetcode() {
+ bitField0_ &= ~0x00000002;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 15;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetGachaCeilingScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000002;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 6;
+ * @return whether the gachaCeiling field is set
+ */
+ public boolean hasGachaCeiling() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 6;
+ * @return this
+ */
+ public GetGachaCeilingScRsp clearGachaCeiling() {
+ bitField0_ &= ~0x00000004;
+ gachaCeiling.clear();
+ return this;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 6;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableGachaCeiling()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() {
+ return gachaCeiling;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 6;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() {
+ bitField0_ |= 0x00000004;
+ return gachaCeiling;
+ }
+
+ /**
+ * optional .GachaCeiling gacha_ceiling = 6;
+ * @param value the gachaCeiling to set
+ * @return this
+ */
+ public GetGachaCeilingScRsp setGachaCeiling(final GachaCeilingOuterClass.GachaCeiling value) {
+ bitField0_ |= 0x00000004;
+ gachaCeiling.copyFrom(value);
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingScRsp copyFrom(final GetGachaCeilingScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ gachaType = other.gachaType;
+ retcode = other.retcode;
+ gachaCeiling.copyFrom(other.gachaCeiling);
+ }
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingScRsp mergeFrom(final GetGachaCeilingScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGachaType()) {
+ setGachaType(other.gachaType);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasGachaCeiling()) {
+ getMutableGachaCeiling().mergeFrom(other.gachaCeiling);
+ }
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ gachaType = 0;
+ retcode = 0;
+ gachaCeiling.clear();
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ gachaCeiling.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetGachaCeilingScRsp)) {
+ return false;
+ }
+ GetGachaCeilingScRsp other = (GetGachaCeilingScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGachaType() || gachaType == other.gachaType)
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 112);
+ output.writeUInt32NoTag(gachaType);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 120);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 50);
+ output.writeMessageNoTag(gachaCeiling);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetGachaCeilingScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 112: {
+ // gachaType
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 120) {
+ break;
+ }
+ }
+ case 120: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 50) {
+ break;
+ }
+ }
+ case 50: {
+ // gachaCeiling
+ input.readMessage(gachaCeiling);
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.gachaType, gachaType);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeMessage(FieldNames.gachaCeiling, gachaCeiling);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetGachaCeilingScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 802848732:
+ case -871474217: {
+ if (input.isAtField(FieldNames.gachaType)) {
+ if (!input.trySkipNullValue()) {
+ gachaType = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 507275483:
+ case -1792489728: {
+ if (input.isAtField(FieldNames.gachaCeiling)) {
+ if (!input.trySkipNullValue()) {
+ input.readMessage(gachaCeiling);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetGachaCeilingScRsp clone() {
+ return new GetGachaCeilingScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetGachaCeilingScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetGachaCeilingScRsp(), data).checkInitialized();
+ }
+
+ public static GetGachaCeilingScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetGachaCeilingScRsp(), input).checkInitialized();
+ }
+
+ public static GetGachaCeilingScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetGachaCeilingScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetGachaCeilingScRsp messages
+ */
+ public static MessageFactoryoptional uint32 playing_id = 3;
+ */
+ private int playingId;
+
+ /**
+ * optional uint32 retcode = 14;
+ */
+ private int retcode;
+
+ /**
+ * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ */
+ private final RepeatedMessageoptional uint32 playing_id = 3;
+ * @return whether the playingId field is set
+ */
+ public boolean hasPlayingId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 playing_id = 3;
+ * @return this
+ */
+ public GetJukeboxDataScRsp clearPlayingId() {
+ bitField0_ &= ~0x00000001;
+ playingId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 playing_id = 3;
+ * @return the playingId
+ */
+ public int getPlayingId() {
+ return playingId;
+ }
+
+ /**
+ * optional uint32 playing_id = 3;
+ * @param value the playingId to set
+ * @return this
+ */
+ public GetJukeboxDataScRsp setPlayingId(final int value) {
+ bitField0_ |= 0x00000001;
+ playingId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 14;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 14;
+ * @return this
+ */
+ public GetJukeboxDataScRsp clearRetcode() {
+ bitField0_ &= ~0x00000002;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 14;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 14;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetJukeboxDataScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000002;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ * @return whether the musicList field is set
+ */
+ public boolean hasMusicList() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ * @return this
+ */
+ public GetJukeboxDataScRsp clearMusicList() {
+ bitField0_ &= ~0x00000004;
+ musicList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableMusicList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ * @param value the musicList to add
+ * @return this
+ */
+ public GetJukeboxDataScRsp addMusicList(final UnlockedMusic value) {
+ bitField0_ |= 0x00000004;
+ musicList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .GetJukeboxDataScRsp.UnlockedMusic music_list = 7;
+ * @param values the musicList to add
+ * @return this
+ */
+ public GetJukeboxDataScRsp addAllMusicList(final UnlockedMusic... values) {
+ bitField0_ |= 0x00000004;
+ musicList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetJukeboxDataScRsp copyFrom(final GetJukeboxDataScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ playingId = other.playingId;
+ retcode = other.retcode;
+ musicList.copyFrom(other.musicList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetJukeboxDataScRsp mergeFrom(final GetJukeboxDataScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasPlayingId()) {
+ setPlayingId(other.playingId);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasMusicList()) {
+ getMutableMusicList().addAll(other.musicList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetJukeboxDataScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ playingId = 0;
+ retcode = 0;
+ musicList.clear();
+ return this;
+ }
+
+ @Override
+ public GetJukeboxDataScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ musicList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetJukeboxDataScRsp)) {
+ return false;
+ }
+ GetJukeboxDataScRsp other = (GetJukeboxDataScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasPlayingId() || playingId == other.playingId)
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasMusicList() || musicList.equals(other.musicList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(playingId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 112);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < musicList.length(); i++) {
+ output.writeRawByte((byte) 58);
+ output.writeMessageNoTag(musicList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * musicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(musicList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetJukeboxDataScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 24: {
+ // playingId
+ playingId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 112) {
+ break;
+ }
+ }
+ case 112: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 58) {
+ break;
+ }
+ }
+ case 58: {
+ // musicList
+ tag = input.readRepeatedMessage(musicList, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.playingId, playingId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.musicList, musicList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetJukeboxDataScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -1868462615:
+ case -2087744820: {
+ if (input.isAtField(FieldNames.playingId)) {
+ if (!input.trySkipNullValue()) {
+ playingId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 389904483:
+ case -780236168: {
+ if (input.isAtField(FieldNames.musicList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(musicList);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetJukeboxDataScRsp clone() {
+ return new GetJukeboxDataScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetJukeboxDataScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetJukeboxDataScRsp(), data).checkInitialized();
+ }
+
+ public static GetJukeboxDataScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetJukeboxDataScRsp(), input).checkInitialized();
+ }
+
+ public static GetJukeboxDataScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetJukeboxDataScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetJukeboxDataScRsp messages
+ */
+ public static MessageFactoryoptional uint32 group_id = 1;
+ */
+ private int groupId;
+
+ /**
+ * optional uint32 id = 8;
+ */
+ private int id;
+
+ /**
+ * optional bool unkbool = 7;
+ */
+ private boolean unkbool;
+
+ private UnlockedMusic() {
+ }
+
+ /**
+ * @return a new empty instance of {@code UnlockedMusic}
+ */
+ public static UnlockedMusic newInstance() {
+ return new UnlockedMusic();
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @return whether the groupId field is set
+ */
+ public boolean hasGroupId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @return this
+ */
+ public UnlockedMusic clearGroupId() {
+ bitField0_ &= ~0x00000001;
+ groupId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @return the groupId
+ */
+ public int getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @param value the groupId to set
+ * @return this
+ */
+ public UnlockedMusic setGroupId(final int value) {
+ bitField0_ |= 0x00000001;
+ groupId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @return whether the id field is set
+ */
+ public boolean hasId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @return this
+ */
+ public UnlockedMusic clearId() {
+ bitField0_ &= ~0x00000002;
+ id = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @param value the id to set
+ * @return this
+ */
+ public UnlockedMusic setId(final int value) {
+ bitField0_ |= 0x00000002;
+ id = value;
+ return this;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @return whether the unkbool field is set
+ */
+ public boolean hasUnkbool() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @return this
+ */
+ public UnlockedMusic clearUnkbool() {
+ bitField0_ &= ~0x00000004;
+ unkbool = false;
+ return this;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @return the unkbool
+ */
+ public boolean getUnkbool() {
+ return unkbool;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @param value the unkbool to set
+ * @return this
+ */
+ public UnlockedMusic setUnkbool(final boolean value) {
+ bitField0_ |= 0x00000004;
+ unkbool = value;
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic copyFrom(final UnlockedMusic other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ groupId = other.groupId;
+ id = other.id;
+ unkbool = other.unkbool;
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic mergeFrom(final UnlockedMusic other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGroupId()) {
+ setGroupId(other.groupId);
+ }
+ if (other.hasId()) {
+ setId(other.id);
+ }
+ if (other.hasUnkbool()) {
+ setUnkbool(other.unkbool);
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ groupId = 0;
+ id = 0;
+ unkbool = false;
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic 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 UnlockedMusic)) {
+ return false;
+ }
+ UnlockedMusic other = (UnlockedMusic) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGroupId() || groupId == other.groupId)
+ && (!hasId() || id == other.id)
+ && (!hasUnkbool() || unkbool == other.unkbool);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(groupId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt32NoTag(id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeBoolNoTag(unkbool);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2;
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public UnlockedMusic 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 != 64) {
+ break;
+ }
+ }
+ case 64: {
+ // id
+ id = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // unkbool
+ unkbool = input.readBool();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.groupId, groupId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.id, id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBool(FieldNames.unkbool, unkbool);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public UnlockedMusic mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ 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;
+ }
+ case 3355: {
+ if (input.isAtField(FieldNames.id)) {
+ if (!input.trySkipNullValue()) {
+ id = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -285198628: {
+ if (input.isAtField(FieldNames.unkbool)) {
+ if (!input.trySkipNullValue()) {
+ unkbool = input.readBool();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic clone() {
+ return new UnlockedMusic().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static UnlockedMusic parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new UnlockedMusic(), data).checkInitialized();
+ }
+
+ public static UnlockedMusic parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized();
+ }
+
+ public static UnlockedMusic parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating UnlockedMusic messages
+ */
+ public static MessageFactoryrepeated uint32 main_mission_id_list = 13;
+ */
+ private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance();
+
+ private GetMainMissionCustomValueCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code GetMainMissionCustomValueCsReq}
+ */
+ public static GetMainMissionCustomValueCsReq newInstance() {
+ return new GetMainMissionCustomValueCsReq();
+ }
+
+ /**
+ * repeated uint32 main_mission_id_list = 13;
+ * @return whether the mainMissionIdList field is set
+ */
+ public boolean hasMainMissionIdList() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * repeated uint32 main_mission_id_list = 13;
+ * @return this
+ */
+ public GetMainMissionCustomValueCsReq clearMainMissionIdList() {
+ bitField0_ &= ~0x00000001;
+ mainMissionIdList.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 main_mission_id_list = 13;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableMainMissionIdList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getMainMissionIdList() {
+ return mainMissionIdList;
+ }
+
+ /**
+ * repeated uint32 main_mission_id_list = 13;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableMainMissionIdList() {
+ bitField0_ |= 0x00000001;
+ return mainMissionIdList;
+ }
+
+ /**
+ * repeated uint32 main_mission_id_list = 13;
+ * @param value the mainMissionIdList to add
+ * @return this
+ */
+ public GetMainMissionCustomValueCsReq addMainMissionIdList(final int value) {
+ bitField0_ |= 0x00000001;
+ mainMissionIdList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 main_mission_id_list = 13;
+ * @param values the mainMissionIdList to add
+ * @return this
+ */
+ public GetMainMissionCustomValueCsReq addAllMainMissionIdList(final int... values) {
+ bitField0_ |= 0x00000001;
+ mainMissionIdList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueCsReq copyFrom(final GetMainMissionCustomValueCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ mainMissionIdList.copyFrom(other.mainMissionIdList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueCsReq mergeFrom(final GetMainMissionCustomValueCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasMainMissionIdList()) {
+ getMutableMainMissionIdList().addAll(other.mainMissionIdList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ mainMissionIdList.clear();
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueCsReq clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ mainMissionIdList.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetMainMissionCustomValueCsReq)) {
+ return false;
+ }
+ GetMainMissionCustomValueCsReq other = (GetMainMissionCustomValueCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ for (int i = 0; i < mainMissionIdList.length(); i++) {
+ output.writeRawByte((byte) 104);
+ output.writeUInt32NoTag(mainMissionIdList.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += (1 * mainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionIdList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetMainMissionCustomValueCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 106: {
+ // mainMissionIdList [packed=true]
+ input.readPackedUInt32(mainMissionIdList, 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 104: {
+ // mainMissionIdList [packed=false]
+ tag = input.readRepeatedUInt32(mainMissionIdList, tag);
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRepeatedUInt32(FieldNames.mainMissionIdList, mainMissionIdList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetMainMissionCustomValueCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1438400460:
+ case -1382679799: {
+ if (input.isAtField(FieldNames.mainMissionIdList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(mainMissionIdList);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueCsReq clone() {
+ return new GetMainMissionCustomValueCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetMainMissionCustomValueCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), data).checkInitialized();
+ }
+
+ public static GetMainMissionCustomValueCsReq parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), input).checkInitialized();
+ }
+
+ public static GetMainMissionCustomValueCsReq parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetMainMissionCustomValueCsReq messages
+ */
+ public static MessageFactoryoptional uint32 retcode = 2;
+ */
+ private int retcode;
+
+ /**
+ * repeated .MainMission main_mission_list = 5;
+ */
+ private final RepeatedMessageoptional uint32 retcode = 2;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 2;
+ * @return this
+ */
+ public GetMainMissionCustomValueScRsp clearRetcode() {
+ bitField0_ &= ~0x00000001;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 2;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 2;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetMainMissionCustomValueScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000001;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated .MainMission main_mission_list = 5;
+ * @return whether the mainMissionList field is set
+ */
+ public boolean hasMainMissionList() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * repeated .MainMission main_mission_list = 5;
+ * @return this
+ */
+ public GetMainMissionCustomValueScRsp clearMainMissionList() {
+ bitField0_ &= ~0x00000002;
+ mainMissionList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .MainMission main_mission_list = 5;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableMainMissionList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .MainMission main_mission_list = 5;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .MainMission main_mission_list = 5;
+ * @param value the mainMissionList to add
+ * @return this
+ */
+ public GetMainMissionCustomValueScRsp addMainMissionList(
+ final MainMissionOuterClass.MainMission value) {
+ bitField0_ |= 0x00000002;
+ mainMissionList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .MainMission main_mission_list = 5;
+ * @param values the mainMissionList to add
+ * @return this
+ */
+ public GetMainMissionCustomValueScRsp addAllMainMissionList(
+ final MainMissionOuterClass.MainMission... values) {
+ bitField0_ |= 0x00000002;
+ mainMissionList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueScRsp copyFrom(final GetMainMissionCustomValueScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ retcode = other.retcode;
+ mainMissionList.copyFrom(other.mainMissionList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueScRsp mergeFrom(final GetMainMissionCustomValueScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasMainMissionList()) {
+ getMutableMainMissionList().addAll(other.mainMissionList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ retcode = 0;
+ mainMissionList.clear();
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ mainMissionList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetMainMissionCustomValueScRsp)) {
+ return false;
+ }
+ GetMainMissionCustomValueScRsp other = (GetMainMissionCustomValueScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasMainMissionList() || mainMissionList.equals(other.mainMissionList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ for (int i = 0; i < mainMissionList.length(); i++) {
+ output.writeRawByte((byte) 42);
+ output.writeMessageNoTag(mainMissionList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += (1 * mainMissionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetMainMissionCustomValueScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 42) {
+ break;
+ }
+ }
+ case 42: {
+ // mainMissionList
+ tag = input.readRepeatedMessage(mainMissionList, tag);
+ bitField0_ |= 0x00000002;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRepeatedMessage(FieldNames.mainMissionList, mainMissionList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetMainMissionCustomValueScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1352596271:
+ case 939604023: {
+ if (input.isAtField(FieldNames.mainMissionList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(mainMissionList);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetMainMissionCustomValueScRsp clone() {
+ return new GetMainMissionCustomValueScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetMainMissionCustomValueScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), data).checkInitialized();
+ }
+
+ public static GetMainMissionCustomValueScRsp parseFrom(final ProtoSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), input).checkInitialized();
+ }
+
+ public static GetMainMissionCustomValueScRsp parseFrom(final JsonSource input) throws
+ IOException {
+ return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetMainMissionCustomValueScRsp messages
+ */
+ public static MessageFactoryoptional uint32 cur_chat_bubble = 2;
+ */
+ private int curChatBubble;
+
+ /**
+ * optional uint32 cur_phone_theme = 3;
+ */
+ private int curPhoneTheme;
+
+ /**
+ * optional uint32 retcode = 9;
+ */
+ private int retcode;
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ */
+ private final RepeatedInt ownedChatBubbles = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ */
+ private final RepeatedInt ownedPhoneThemes = RepeatedInt.newEmptyInstance();
+
+ private GetPhoneDataScRsp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code GetPhoneDataScRsp}
+ */
+ public static GetPhoneDataScRsp newInstance() {
+ return new GetPhoneDataScRsp();
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 2;
+ * @return whether the curChatBubble field is set
+ */
+ public boolean hasCurChatBubble() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 2;
+ * @return this
+ */
+ public GetPhoneDataScRsp clearCurChatBubble() {
+ bitField0_ &= ~0x00000001;
+ curChatBubble = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 2;
+ * @return the curChatBubble
+ */
+ public int getCurChatBubble() {
+ return curChatBubble;
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 2;
+ * @param value the curChatBubble to set
+ * @return this
+ */
+ public GetPhoneDataScRsp setCurChatBubble(final int value) {
+ bitField0_ |= 0x00000001;
+ curChatBubble = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 3;
+ * @return whether the curPhoneTheme field is set
+ */
+ public boolean hasCurPhoneTheme() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 3;
+ * @return this
+ */
+ public GetPhoneDataScRsp clearCurPhoneTheme() {
+ bitField0_ &= ~0x00000002;
+ curPhoneTheme = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 3;
+ * @return the curPhoneTheme
+ */
+ public int getCurPhoneTheme() {
+ return curPhoneTheme;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 3;
+ * @param value the curPhoneTheme to set
+ * @return this
+ */
+ public GetPhoneDataScRsp setCurPhoneTheme(final int value) {
+ bitField0_ |= 0x00000002;
+ curPhoneTheme = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @return this
+ */
+ public GetPhoneDataScRsp clearRetcode() {
+ bitField0_ &= ~0x00000004;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 9;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetPhoneDataScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000004;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ * @return whether the ownedChatBubbles field is set
+ */
+ public boolean hasOwnedChatBubbles() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ * @return this
+ */
+ public GetPhoneDataScRsp clearOwnedChatBubbles() {
+ bitField0_ &= ~0x00000008;
+ ownedChatBubbles.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableOwnedChatBubbles()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getOwnedChatBubbles() {
+ return ownedChatBubbles;
+ }
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableOwnedChatBubbles() {
+ bitField0_ |= 0x00000008;
+ return ownedChatBubbles;
+ }
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ * @param value the ownedChatBubbles to add
+ * @return this
+ */
+ public GetPhoneDataScRsp addOwnedChatBubbles(final int value) {
+ bitField0_ |= 0x00000008;
+ ownedChatBubbles.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 owned_chat_bubbles = 10;
+ * @param values the ownedChatBubbles to add
+ * @return this
+ */
+ public GetPhoneDataScRsp addAllOwnedChatBubbles(final int... values) {
+ bitField0_ |= 0x00000008;
+ ownedChatBubbles.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ * @return whether the ownedPhoneThemes field is set
+ */
+ public boolean hasOwnedPhoneThemes() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ * @return this
+ */
+ public GetPhoneDataScRsp clearOwnedPhoneThemes() {
+ bitField0_ &= ~0x00000010;
+ ownedPhoneThemes.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableOwnedPhoneThemes()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getOwnedPhoneThemes() {
+ return ownedPhoneThemes;
+ }
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableOwnedPhoneThemes() {
+ bitField0_ |= 0x00000010;
+ return ownedPhoneThemes;
+ }
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ * @param value the ownedPhoneThemes to add
+ * @return this
+ */
+ public GetPhoneDataScRsp addOwnedPhoneThemes(final int value) {
+ bitField0_ |= 0x00000010;
+ ownedPhoneThemes.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 owned_phone_themes = 13;
+ * @param values the ownedPhoneThemes to add
+ * @return this
+ */
+ public GetPhoneDataScRsp addAllOwnedPhoneThemes(final int... values) {
+ bitField0_ |= 0x00000010;
+ ownedPhoneThemes.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetPhoneDataScRsp copyFrom(final GetPhoneDataScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ curChatBubble = other.curChatBubble;
+ curPhoneTheme = other.curPhoneTheme;
+ retcode = other.retcode;
+ ownedChatBubbles.copyFrom(other.ownedChatBubbles);
+ ownedPhoneThemes.copyFrom(other.ownedPhoneThemes);
+ }
+ return this;
+ }
+
+ @Override
+ public GetPhoneDataScRsp mergeFrom(final GetPhoneDataScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasCurChatBubble()) {
+ setCurChatBubble(other.curChatBubble);
+ }
+ if (other.hasCurPhoneTheme()) {
+ setCurPhoneTheme(other.curPhoneTheme);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasOwnedChatBubbles()) {
+ getMutableOwnedChatBubbles().addAll(other.ownedChatBubbles);
+ }
+ if (other.hasOwnedPhoneThemes()) {
+ getMutableOwnedPhoneThemes().addAll(other.ownedPhoneThemes);
+ }
+ return this;
+ }
+
+ @Override
+ public GetPhoneDataScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ curChatBubble = 0;
+ curPhoneTheme = 0;
+ retcode = 0;
+ ownedChatBubbles.clear();
+ ownedPhoneThemes.clear();
+ return this;
+ }
+
+ @Override
+ public GetPhoneDataScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ ownedChatBubbles.clear();
+ ownedPhoneThemes.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetPhoneDataScRsp)) {
+ return false;
+ }
+ GetPhoneDataScRsp other = (GetPhoneDataScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasCurChatBubble() || curChatBubble == other.curChatBubble)
+ && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme)
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles))
+ && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(curChatBubble);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(curPhoneTheme);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ for (int i = 0; i < ownedChatBubbles.length(); i++) {
+ output.writeRawByte((byte) 80);
+ output.writeUInt32NoTag(ownedChatBubbles.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ for (int i = 0; i < ownedPhoneThemes.length(); i++) {
+ output.writeRawByte((byte) 104);
+ output.writeUInt32NoTag(ownedPhoneThemes.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += (1 * ownedChatBubbles.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedChatBubbles);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetPhoneDataScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // curChatBubble
+ curChatBubble = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 24) {
+ break;
+ }
+ }
+ case 24: {
+ // curPhoneTheme
+ curPhoneTheme = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 82) {
+ break;
+ }
+ }
+ case 82: {
+ // ownedChatBubbles [packed=true]
+ input.readPackedUInt32(ownedChatBubbles, tag);
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
+ if (tag != 106) {
+ break;
+ }
+ }
+ case 106: {
+ // ownedPhoneThemes [packed=true]
+ input.readPackedUInt32(ownedPhoneThemes, tag);
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 80: {
+ // ownedChatBubbles [packed=false]
+ tag = input.readRepeatedUInt32(ownedChatBubbles, tag);
+ bitField0_ |= 0x00000008;
+ break;
+ }
+ case 104: {
+ // ownedPhoneThemes [packed=false]
+ tag = input.readRepeatedUInt32(ownedPhoneThemes, tag);
+ bitField0_ |= 0x00000010;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.curChatBubble, curChatBubble);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRepeatedUInt32(FieldNames.ownedChatBubbles, ownedChatBubbles);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetPhoneDataScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 94167140:
+ case 1828957140: {
+ if (input.isAtField(FieldNames.curChatBubble)) {
+ if (!input.trySkipNullValue()) {
+ curChatBubble = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 405670747:
+ case -514634695: {
+ if (input.isAtField(FieldNames.curPhoneTheme)) {
+ if (!input.trySkipNullValue()) {
+ curPhoneTheme = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1579353334:
+ case -1491735846: {
+ if (input.isAtField(FieldNames.ownedChatBubbles)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(ownedChatBubbles);
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -512676109:
+ case -1128638699: {
+ if (input.isAtField(FieldNames.ownedPhoneThemes)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(ownedPhoneThemes);
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetPhoneDataScRsp clone() {
+ return new GetPhoneDataScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetPhoneDataScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetPhoneDataScRsp(), data).checkInitialized();
+ }
+
+ public static GetPhoneDataScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetPhoneDataScRsp(), input).checkInitialized();
+ }
+
+ public static GetPhoneDataScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetPhoneDataScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetPhoneDataScRsp messages
+ */
+ public static MessageFactoryoptional uint32 retcode = 7;
+ */
+ private int retcode;
+
+ /**
+ * optional uint32 total_achievement_exp = 11;
+ */
+ private int totalAchievementExp;
+
+ /**
+ * repeated .Quest quest_list = 9;
+ */
+ private final RepeatedMessageoptional uint32 retcode = 7;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 7;
+ * @return this
+ */
+ public GetQuestDataScRsp clearRetcode() {
+ bitField0_ &= ~0x00000001;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 7;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 7;
+ * @param value the retcode to set
+ * @return this
+ */
+ public GetQuestDataScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000001;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 total_achievement_exp = 11;
+ * @return whether the totalAchievementExp field is set
+ */
+ public boolean hasTotalAchievementExp() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 total_achievement_exp = 11;
+ * @return this
+ */
+ public GetQuestDataScRsp clearTotalAchievementExp() {
+ bitField0_ &= ~0x00000002;
+ totalAchievementExp = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 total_achievement_exp = 11;
+ * @return the totalAchievementExp
+ */
+ public int getTotalAchievementExp() {
+ return totalAchievementExp;
+ }
+
+ /**
+ * optional uint32 total_achievement_exp = 11;
+ * @param value the totalAchievementExp to set
+ * @return this
+ */
+ public GetQuestDataScRsp setTotalAchievementExp(final int value) {
+ bitField0_ |= 0x00000002;
+ totalAchievementExp = value;
+ return this;
+ }
+
+ /**
+ * repeated .Quest quest_list = 9;
+ * @return whether the questList field is set
+ */
+ public boolean hasQuestList() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .Quest quest_list = 9;
+ * @return this
+ */
+ public GetQuestDataScRsp clearQuestList() {
+ bitField0_ &= ~0x00000004;
+ questList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .Quest quest_list = 9;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableQuestList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .Quest quest_list = 9;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .Quest quest_list = 9;
+ * @param value the questList to add
+ * @return this
+ */
+ public GetQuestDataScRsp addQuestList(final QuestOuterClass.Quest value) {
+ bitField0_ |= 0x00000004;
+ questList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .Quest quest_list = 9;
+ * @param values the questList to add
+ * @return this
+ */
+ public GetQuestDataScRsp addAllQuestList(final QuestOuterClass.Quest... values) {
+ bitField0_ |= 0x00000004;
+ questList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public GetQuestDataScRsp copyFrom(final GetQuestDataScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ retcode = other.retcode;
+ totalAchievementExp = other.totalAchievementExp;
+ questList.copyFrom(other.questList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetQuestDataScRsp mergeFrom(final GetQuestDataScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasTotalAchievementExp()) {
+ setTotalAchievementExp(other.totalAchievementExp);
+ }
+ if (other.hasQuestList()) {
+ getMutableQuestList().addAll(other.questList);
+ }
+ return this;
+ }
+
+ @Override
+ public GetQuestDataScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ retcode = 0;
+ totalAchievementExp = 0;
+ questList.clear();
+ return this;
+ }
+
+ @Override
+ public GetQuestDataScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ questList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof GetQuestDataScRsp)) {
+ return false;
+ }
+ GetQuestDataScRsp other = (GetQuestDataScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasTotalAchievementExp() || totalAchievementExp == other.totalAchievementExp)
+ && (!hasQuestList() || questList.equals(other.questList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 88);
+ output.writeUInt32NoTag(totalAchievementExp);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < questList.length(); i++) {
+ output.writeRawByte((byte) 74);
+ output.writeMessageNoTag(questList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(totalAchievementExp);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * questList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(questList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public GetQuestDataScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 56: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 88) {
+ break;
+ }
+ }
+ case 88: {
+ // totalAchievementExp
+ totalAchievementExp = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 74) {
+ break;
+ }
+ }
+ case 74: {
+ // questList
+ tag = input.readRepeatedMessage(questList, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.totalAchievementExp, totalAchievementExp);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.questList, questList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public GetQuestDataScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 255336658:
+ case -1295039982: {
+ if (input.isAtField(FieldNames.totalAchievementExp)) {
+ if (!input.trySkipNullValue()) {
+ totalAchievementExp = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1783104352:
+ case 575966683: {
+ if (input.isAtField(FieldNames.questList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(questList);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public GetQuestDataScRsp clone() {
+ return new GetQuestDataScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static GetQuestDataScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new GetQuestDataScRsp(), data).checkInitialized();
+ }
+
+ public static GetQuestDataScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetQuestDataScRsp(), input).checkInitialized();
+ }
+
+ public static GetQuestDataScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new GetQuestDataScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating GetQuestDataScRsp messages
+ */
+ public static MessageFactoryoptional uint32 id = 4;
+ */
+ private int id;
+
+ /**
+ * + * repeated AMHBFDNMDLF AKGBLNHFPLG = 14; + *+ * + *
optional .MissionStatus status = 9;
+ */
+ private int status;
+
+ private MainMission() {
+ }
+
+ /**
+ * @return a new empty instance of {@code MainMission}
+ */
+ public static MainMission newInstance() {
+ return new MainMission();
+ }
+
+ /**
+ * optional uint32 id = 4;
+ * @return whether the id field is set
+ */
+ public boolean hasId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 id = 4;
+ * @return this
+ */
+ public MainMission clearId() {
+ bitField0_ &= ~0x00000001;
+ id = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 4;
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * optional uint32 id = 4;
+ * @param value the id to set
+ * @return this
+ */
+ public MainMission setId(final int value) {
+ bitField0_ |= 0x00000001;
+ id = value;
+ return this;
+ }
+
+ /**
+ * + * repeated AMHBFDNMDLF AKGBLNHFPLG = 14; + *+ * + *
optional .MissionStatus status = 9;
+ * @return whether the status field is set
+ */
+ public boolean hasStatus() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * + * repeated AMHBFDNMDLF AKGBLNHFPLG = 14; + *+ * + *
optional .MissionStatus status = 9;
+ * @return this
+ */
+ public MainMission clearStatus() {
+ bitField0_ &= ~0x00000002;
+ status = 0;
+ return this;
+ }
+
+ /**
+ * + * repeated AMHBFDNMDLF AKGBLNHFPLG = 14; + *+ * + *
optional .MissionStatus status = 9;
+ * @return the status
+ */
+ public MissionStatusOuterClass.MissionStatus getStatus() {
+ return MissionStatusOuterClass.MissionStatus.forNumber(status);
+ }
+
+ /**
+ * Gets the value of the internal enum store. The result is
+ * equivalent to {@link MainMission#getStatus()}.getNumber().
+ *
+ * @return numeric wire representation
+ */
+ public int getStatusValue() {
+ return status;
+ }
+
+ /**
+ * Sets the value of the internal enum store. This does not
+ * do any validity checks, so be sure to use appropriate value
+ * constants from {@link MissionStatusOuterClass.MissionStatus}. Setting an invalid value
+ * can cause {@link MainMission#getStatus()} to return null
+ *
+ * @param value the numeric wire value to set
+ * @return this
+ */
+ public MainMission setStatusValue(final int value) {
+ bitField0_ |= 0x00000002;
+ status = value;
+ return this;
+ }
+
+ /**
+ * + * repeated AMHBFDNMDLF AKGBLNHFPLG = 14; + *+ * + *
optional .MissionStatus status = 9;
+ * @param value the status to set
+ * @return this
+ */
+ public MainMission setStatus(final MissionStatusOuterClass.MissionStatus value) {
+ bitField0_ |= 0x00000002;
+ status = value.getNumber();
+ return this;
+ }
+
+ @Override
+ public MainMission copyFrom(final MainMission other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ id = other.id;
+ status = other.status;
+ }
+ return this;
+ }
+
+ @Override
+ public MainMission mergeFrom(final MainMission other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasId()) {
+ setId(other.id);
+ }
+ if (other.hasStatus()) {
+ setStatusValue(other.status);
+ }
+ return this;
+ }
+
+ @Override
+ public MainMission clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ id = 0;
+ status = 0;
+ return this;
+ }
+
+ @Override
+ public MainMission 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 MainMission)) {
+ return false;
+ }
+ MainMission other = (MainMission) o;
+ return bitField0_ == other.bitField0_
+ && (!hasId() || id == other.id)
+ && (!hasStatus() || status == other.status);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 32);
+ output.writeUInt32NoTag(id);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeEnumNoTag(status);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeEnumSizeNoTag(status);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public MainMission mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 32: {
+ // id
+ id = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // status
+ final int value = input.readInt32();
+ if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) {
+ status = value;
+ bitField0_ |= 0x00000002;
+ }
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.id, id);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter());
+ }
+ output.endObject();
+ }
+
+ @Override
+ public MainMission mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 3355: {
+ if (input.isAtField(FieldNames.id)) {
+ if (!input.trySkipNullValue()) {
+ id = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -892481550: {
+ if (input.isAtField(FieldNames.status)) {
+ if (!input.trySkipNullValue()) {
+ final MissionStatusOuterClass.MissionStatus value = input.readEnum(MissionStatusOuterClass.MissionStatus.converter());
+ if (value != null) {
+ status = value.getNumber();
+ bitField0_ |= 0x00000002;
+ } else {
+ input.skipUnknownEnumValue();
+ }
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public MainMission clone() {
+ return new MainMission().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static MainMission parseFrom(final byte[] data) throws InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new MainMission(), data).checkInitialized();
+ }
+
+ public static MainMission parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new MainMission(), input).checkInitialized();
+ }
+
+ public static MainMission parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new MainMission(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating MainMission messages
+ */
+ public static MessageFactoryoptional uint32 num = 9;
+ */
+ private int num;
+
+ /**
+ * optional uint32 monster_id = 11;
+ */
+ private int monsterId;
+
+ private MonsterArchive() {
+ }
+
+ /**
+ * @return a new empty instance of {@code MonsterArchive}
+ */
+ public static MonsterArchive newInstance() {
+ return new MonsterArchive();
+ }
+
+ /**
+ * optional uint32 num = 9;
+ * @return whether the num field is set
+ */
+ public boolean hasNum() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 num = 9;
+ * @return this
+ */
+ public MonsterArchive clearNum() {
+ bitField0_ &= ~0x00000001;
+ num = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 num = 9;
+ * @return the num
+ */
+ public int getNum() {
+ return num;
+ }
+
+ /**
+ * optional uint32 num = 9;
+ * @param value the num to set
+ * @return this
+ */
+ public MonsterArchive setNum(final int value) {
+ bitField0_ |= 0x00000001;
+ num = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 monster_id = 11;
+ * @return whether the monsterId field is set
+ */
+ public boolean hasMonsterId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 monster_id = 11;
+ * @return this
+ */
+ public MonsterArchive clearMonsterId() {
+ bitField0_ &= ~0x00000002;
+ monsterId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 monster_id = 11;
+ * @return the monsterId
+ */
+ public int getMonsterId() {
+ return monsterId;
+ }
+
+ /**
+ * optional uint32 monster_id = 11;
+ * @param value the monsterId to set
+ * @return this
+ */
+ public MonsterArchive setMonsterId(final int value) {
+ bitField0_ |= 0x00000002;
+ monsterId = value;
+ return this;
+ }
+
+ @Override
+ public MonsterArchive copyFrom(final MonsterArchive other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ num = other.num;
+ monsterId = other.monsterId;
+ }
+ return this;
+ }
+
+ @Override
+ public MonsterArchive mergeFrom(final MonsterArchive other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasNum()) {
+ setNum(other.num);
+ }
+ if (other.hasMonsterId()) {
+ setMonsterId(other.monsterId);
+ }
+ return this;
+ }
+
+ @Override
+ public MonsterArchive clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ num = 0;
+ monsterId = 0;
+ return this;
+ }
+
+ @Override
+ public MonsterArchive 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 MonsterArchive)) {
+ return false;
+ }
+ MonsterArchive other = (MonsterArchive) o;
+ return bitField0_ == other.bitField0_
+ && (!hasNum() || num == other.num)
+ && (!hasMonsterId() || monsterId == other.monsterId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt32NoTag(num);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 88);
+ output.writeUInt32NoTag(monsterId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(num);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public MonsterArchive mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 72: {
+ // num
+ num = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 88) {
+ break;
+ }
+ }
+ case 88: {
+ // monsterId
+ monsterId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.num, num);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.monsterId, monsterId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public MonsterArchive mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 109446: {
+ if (input.isAtField(FieldNames.num)) {
+ if (!input.trySkipNullValue()) {
+ num = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1316830571:
+ case 2127946656: {
+ if (input.isAtField(FieldNames.monsterId)) {
+ if (!input.trySkipNullValue()) {
+ monsterId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public MonsterArchive clone() {
+ return new MonsterArchive().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static MonsterArchive parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new MonsterArchive(), data).checkInitialized();
+ }
+
+ public static MonsterArchive parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new MonsterArchive(), input).checkInitialized();
+ }
+
+ public static MonsterArchive parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new MonsterArchive(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating MonsterArchive messages
+ */
+ public static MessageFactoryoptional uint32 play_music_id = 6;
+ */
+ private int playMusicId;
+
+ private PlayBackGroundMusicCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code PlayBackGroundMusicCsReq}
+ */
+ public static PlayBackGroundMusicCsReq newInstance() {
+ return new PlayBackGroundMusicCsReq();
+ }
+
+ /**
+ * optional uint32 play_music_id = 6;
+ * @return whether the playMusicId field is set
+ */
+ public boolean hasPlayMusicId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 play_music_id = 6;
+ * @return this
+ */
+ public PlayBackGroundMusicCsReq clearPlayMusicId() {
+ bitField0_ &= ~0x00000001;
+ playMusicId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 play_music_id = 6;
+ * @return the playMusicId
+ */
+ public int getPlayMusicId() {
+ return playMusicId;
+ }
+
+ /**
+ * optional uint32 play_music_id = 6;
+ * @param value the playMusicId to set
+ * @return this
+ */
+ public PlayBackGroundMusicCsReq setPlayMusicId(final int value) {
+ bitField0_ |= 0x00000001;
+ playMusicId = value;
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicCsReq copyFrom(final PlayBackGroundMusicCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ playMusicId = other.playMusicId;
+ }
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicCsReq mergeFrom(final PlayBackGroundMusicCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasPlayMusicId()) {
+ setPlayMusicId(other.playMusicId);
+ }
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ playMusicId = 0;
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicCsReq 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 PlayBackGroundMusicCsReq)) {
+ return false;
+ }
+ PlayBackGroundMusicCsReq other = (PlayBackGroundMusicCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasPlayMusicId() || playMusicId == other.playMusicId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 48);
+ output.writeUInt32NoTag(playMusicId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(playMusicId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public PlayBackGroundMusicCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 48: {
+ // playMusicId
+ playMusicId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.playMusicId, playMusicId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public PlayBackGroundMusicCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 835898444:
+ case -1319856608: {
+ if (input.isAtField(FieldNames.playMusicId)) {
+ if (!input.trySkipNullValue()) {
+ playMusicId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicCsReq clone() {
+ return new PlayBackGroundMusicCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static PlayBackGroundMusicCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new PlayBackGroundMusicCsReq(), data).checkInitialized();
+ }
+
+ public static PlayBackGroundMusicCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new PlayBackGroundMusicCsReq(), input).checkInitialized();
+ }
+
+ public static PlayBackGroundMusicCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new PlayBackGroundMusicCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating PlayBackGroundMusicCsReq messages
+ */
+ public static MessageFactoryoptional uint32 retcode = 6;
+ */
+ private int retcode;
+
+ /**
+ * optional uint32 playing_id = 7;
+ */
+ private int playingId;
+
+ /**
+ * optional uint32 play_music_id = 8;
+ */
+ private int playMusicId;
+
+ private PlayBackGroundMusicScRsp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code PlayBackGroundMusicScRsp}
+ */
+ public static PlayBackGroundMusicScRsp newInstance() {
+ return new PlayBackGroundMusicScRsp();
+ }
+
+ /**
+ * optional uint32 retcode = 6;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 6;
+ * @return this
+ */
+ public PlayBackGroundMusicScRsp clearRetcode() {
+ bitField0_ &= ~0x00000001;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 6;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 6;
+ * @param value the retcode to set
+ * @return this
+ */
+ public PlayBackGroundMusicScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000001;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 playing_id = 7;
+ * @return whether the playingId field is set
+ */
+ public boolean hasPlayingId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 playing_id = 7;
+ * @return this
+ */
+ public PlayBackGroundMusicScRsp clearPlayingId() {
+ bitField0_ &= ~0x00000002;
+ playingId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 playing_id = 7;
+ * @return the playingId
+ */
+ public int getPlayingId() {
+ return playingId;
+ }
+
+ /**
+ * optional uint32 playing_id = 7;
+ * @param value the playingId to set
+ * @return this
+ */
+ public PlayBackGroundMusicScRsp setPlayingId(final int value) {
+ bitField0_ |= 0x00000002;
+ playingId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 play_music_id = 8;
+ * @return whether the playMusicId field is set
+ */
+ public boolean hasPlayMusicId() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 play_music_id = 8;
+ * @return this
+ */
+ public PlayBackGroundMusicScRsp clearPlayMusicId() {
+ bitField0_ &= ~0x00000004;
+ playMusicId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 play_music_id = 8;
+ * @return the playMusicId
+ */
+ public int getPlayMusicId() {
+ return playMusicId;
+ }
+
+ /**
+ * optional uint32 play_music_id = 8;
+ * @param value the playMusicId to set
+ * @return this
+ */
+ public PlayBackGroundMusicScRsp setPlayMusicId(final int value) {
+ bitField0_ |= 0x00000004;
+ playMusicId = value;
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicScRsp copyFrom(final PlayBackGroundMusicScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ retcode = other.retcode;
+ playingId = other.playingId;
+ playMusicId = other.playMusicId;
+ }
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicScRsp mergeFrom(final PlayBackGroundMusicScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasPlayingId()) {
+ setPlayingId(other.playingId);
+ }
+ if (other.hasPlayMusicId()) {
+ setPlayMusicId(other.playMusicId);
+ }
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ retcode = 0;
+ playingId = 0;
+ playMusicId = 0;
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicScRsp 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 PlayBackGroundMusicScRsp)) {
+ return false;
+ }
+ PlayBackGroundMusicScRsp other = (PlayBackGroundMusicScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasPlayingId() || playingId == other.playingId)
+ && (!hasPlayMusicId() || playMusicId == other.playMusicId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 48);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(playingId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt32NoTag(playMusicId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(playMusicId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public PlayBackGroundMusicScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 48: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // playingId
+ playingId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 64) {
+ break;
+ }
+ }
+ case 64: {
+ // playMusicId
+ playMusicId = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.playingId, playingId);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.playMusicId, playMusicId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public PlayBackGroundMusicScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1868462615:
+ case -2087744820: {
+ if (input.isAtField(FieldNames.playingId)) {
+ if (!input.trySkipNullValue()) {
+ playingId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 835898444:
+ case -1319856608: {
+ if (input.isAtField(FieldNames.playMusicId)) {
+ if (!input.trySkipNullValue()) {
+ playMusicId = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public PlayBackGroundMusicScRsp clone() {
+ return new PlayBackGroundMusicScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static PlayBackGroundMusicScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new PlayBackGroundMusicScRsp(), data).checkInitialized();
+ }
+
+ public static PlayBackGroundMusicScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new PlayBackGroundMusicScRsp(), input).checkInitialized();
+ }
+
+ public static PlayBackGroundMusicScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new PlayBackGroundMusicScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating PlayBackGroundMusicScRsp messages
+ */
+ public static MessageFactoryoptional int64 finish_time = 13;
+ */
+ private long finishTime;
+
+ /**
+ * optional uint32 id = 3;
+ */
+ private int id;
+
+ /**
+ * optional uint32 progress = 9;
+ */
+ private int progress;
+
+ /**
+ * optional .Quest.QuestStatus status = 5;
+ */
+ private int status;
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ */
+ private final RepeatedInt takenAchievementLevelList = RepeatedInt.newEmptyInstance();
+
+ private Quest() {
+ }
+
+ /**
+ * @return a new empty instance of {@code Quest}
+ */
+ public static Quest newInstance() {
+ return new Quest();
+ }
+
+ /**
+ * optional int64 finish_time = 13;
+ * @return whether the finishTime field is set
+ */
+ public boolean hasFinishTime() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional int64 finish_time = 13;
+ * @return this
+ */
+ public Quest clearFinishTime() {
+ bitField0_ &= ~0x00000001;
+ finishTime = 0L;
+ return this;
+ }
+
+ /**
+ * optional int64 finish_time = 13;
+ * @return the finishTime
+ */
+ public long getFinishTime() {
+ return finishTime;
+ }
+
+ /**
+ * optional int64 finish_time = 13;
+ * @param value the finishTime to set
+ * @return this
+ */
+ public Quest setFinishTime(final long value) {
+ bitField0_ |= 0x00000001;
+ finishTime = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 3;
+ * @return whether the id field is set
+ */
+ public boolean hasId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 id = 3;
+ * @return this
+ */
+ public Quest clearId() {
+ bitField0_ &= ~0x00000002;
+ id = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 3;
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * optional uint32 id = 3;
+ * @param value the id to set
+ * @return this
+ */
+ public Quest setId(final int value) {
+ bitField0_ |= 0x00000002;
+ id = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 progress = 9;
+ * @return whether the progress field is set
+ */
+ public boolean hasProgress() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 progress = 9;
+ * @return this
+ */
+ public Quest clearProgress() {
+ bitField0_ &= ~0x00000004;
+ progress = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 progress = 9;
+ * @return the progress
+ */
+ public int getProgress() {
+ return progress;
+ }
+
+ /**
+ * optional uint32 progress = 9;
+ * @param value the progress to set
+ * @return this
+ */
+ public Quest setProgress(final int value) {
+ bitField0_ |= 0x00000004;
+ progress = value;
+ return this;
+ }
+
+ /**
+ * optional .Quest.QuestStatus status = 5;
+ * @return whether the status field is set
+ */
+ public boolean hasStatus() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional .Quest.QuestStatus status = 5;
+ * @return this
+ */
+ public Quest clearStatus() {
+ bitField0_ &= ~0x00000008;
+ status = 0;
+ return this;
+ }
+
+ /**
+ * optional .Quest.QuestStatus status = 5;
+ * @return the status
+ */
+ public QuestStatus getStatus() {
+ return QuestStatus.forNumber(status);
+ }
+
+ /**
+ * Gets the value of the internal enum store. The result is
+ * equivalent to {@link Quest#getStatus()}.getNumber().
+ *
+ * @return numeric wire representation
+ */
+ public int getStatusValue() {
+ return status;
+ }
+
+ /**
+ * Sets the value of the internal enum store. This does not
+ * do any validity checks, so be sure to use appropriate value
+ * constants from {@link QuestStatus}. Setting an invalid value
+ * can cause {@link Quest#getStatus()} to return null
+ *
+ * @param value the numeric wire value to set
+ * @return this
+ */
+ public Quest setStatusValue(final int value) {
+ bitField0_ |= 0x00000008;
+ status = value;
+ return this;
+ }
+
+ /**
+ * optional .Quest.QuestStatus status = 5;
+ * @param value the status to set
+ * @return this
+ */
+ public Quest setStatus(final QuestStatus value) {
+ bitField0_ |= 0x00000008;
+ status = value.getNumber();
+ return this;
+ }
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ * @return whether the takenAchievementLevelList field is set
+ */
+ public boolean hasTakenAchievementLevelList() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ * @return this
+ */
+ public Quest clearTakenAchievementLevelList() {
+ bitField0_ &= ~0x00000010;
+ takenAchievementLevelList.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableTakenAchievementLevelList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getTakenAchievementLevelList() {
+ return takenAchievementLevelList;
+ }
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableTakenAchievementLevelList() {
+ bitField0_ |= 0x00000010;
+ return takenAchievementLevelList;
+ }
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ * @param value the takenAchievementLevelList to add
+ * @return this
+ */
+ public Quest addTakenAchievementLevelList(final int value) {
+ bitField0_ |= 0x00000010;
+ takenAchievementLevelList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 taken_achievement_level_list = 7;
+ * @param values the takenAchievementLevelList to add
+ * @return this
+ */
+ public Quest addAllTakenAchievementLevelList(final int... values) {
+ bitField0_ |= 0x00000010;
+ takenAchievementLevelList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public Quest copyFrom(final Quest other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ finishTime = other.finishTime;
+ id = other.id;
+ progress = other.progress;
+ status = other.status;
+ takenAchievementLevelList.copyFrom(other.takenAchievementLevelList);
+ }
+ return this;
+ }
+
+ @Override
+ public Quest mergeFrom(final Quest other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasFinishTime()) {
+ setFinishTime(other.finishTime);
+ }
+ if (other.hasId()) {
+ setId(other.id);
+ }
+ if (other.hasProgress()) {
+ setProgress(other.progress);
+ }
+ if (other.hasStatus()) {
+ setStatusValue(other.status);
+ }
+ if (other.hasTakenAchievementLevelList()) {
+ getMutableTakenAchievementLevelList().addAll(other.takenAchievementLevelList);
+ }
+ return this;
+ }
+
+ @Override
+ public Quest clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ finishTime = 0L;
+ id = 0;
+ progress = 0;
+ status = 0;
+ takenAchievementLevelList.clear();
+ return this;
+ }
+
+ @Override
+ public Quest clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ takenAchievementLevelList.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof Quest)) {
+ return false;
+ }
+ Quest other = (Quest) o;
+ return bitField0_ == other.bitField0_
+ && (!hasFinishTime() || finishTime == other.finishTime)
+ && (!hasId() || id == other.id)
+ && (!hasProgress() || progress == other.progress)
+ && (!hasStatus() || status == other.status)
+ && (!hasTakenAchievementLevelList() || takenAchievementLevelList.equals(other.takenAchievementLevelList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 104);
+ output.writeInt64NoTag(finishTime);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt32NoTag(progress);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 40);
+ output.writeEnumNoTag(status);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ for (int i = 0; i < takenAchievementLevelList.length(); i++) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(takenAchievementLevelList.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeInt64SizeNoTag(finishTime);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(progress);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 1 + ProtoSink.computeEnumSizeNoTag(status);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += (1 * takenAchievementLevelList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenAchievementLevelList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public Quest mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 104: {
+ // finishTime
+ finishTime = input.readInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 24) {
+ break;
+ }
+ }
+ case 24: {
+ // id
+ id = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // progress
+ progress = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 40) {
+ break;
+ }
+ }
+ case 40: {
+ // status
+ final int value = input.readInt32();
+ if (QuestStatus.forNumber(value) != null) {
+ status = value;
+ bitField0_ |= 0x00000008;
+ }
+ tag = input.readTag();
+ if (tag != 58) {
+ break;
+ }
+ }
+ case 58: {
+ // takenAchievementLevelList [packed=true]
+ input.readPackedUInt32(takenAchievementLevelList, tag);
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 56: {
+ // takenAchievementLevelList [packed=false]
+ tag = input.readRepeatedUInt32(takenAchievementLevelList, tag);
+ bitField0_ |= 0x00000010;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeInt64(FieldNames.finishTime, finishTime);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.id, id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.progress, progress);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeEnum(FieldNames.status, status, QuestStatus.converter());
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRepeatedUInt32(FieldNames.takenAchievementLevelList, takenAchievementLevelList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public Quest mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1151521280:
+ case 1347904249: {
+ if (input.isAtField(FieldNames.finishTime)) {
+ if (!input.trySkipNullValue()) {
+ finishTime = input.readInt64();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 3355: {
+ if (input.isAtField(FieldNames.id)) {
+ if (!input.trySkipNullValue()) {
+ id = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1001078227: {
+ if (input.isAtField(FieldNames.progress)) {
+ if (!input.trySkipNullValue()) {
+ progress = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -892481550: {
+ if (input.isAtField(FieldNames.status)) {
+ if (!input.trySkipNullValue()) {
+ final QuestStatus value = input.readEnum(QuestStatus.converter());
+ if (value != null) {
+ status = value.getNumber();
+ bitField0_ |= 0x00000008;
+ } else {
+ input.skipUnknownEnumValue();
+ }
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 149879610:
+ case 1076639233: {
+ if (input.isAtField(FieldNames.takenAchievementLevelList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(takenAchievementLevelList);
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public Quest clone() {
+ return new Quest().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static Quest parseFrom(final byte[] data) throws InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new Quest(), data).checkInitialized();
+ }
+
+ public static Quest parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new Quest(), input).checkInitialized();
+ }
+
+ public static Quest parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new Quest(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating Quest messages
+ */
+ public static MessageFactoryQUEST_NONE = 0;
+ */
+ QUEST_NONE("QUEST_NONE", 0),
+
+ /**
+ * QUEST_DOING = 1;
+ */
+ QUEST_DOING("QUEST_DOING", 1),
+
+ /**
+ * QUEST_FINISH = 2;
+ */
+ QUEST_FINISH("QUEST_FINISH", 2),
+
+ /**
+ * QUEST_CLOSE = 3;
+ */
+ QUEST_CLOSE("QUEST_CLOSE", 3),
+
+ /**
+ * QUEST_DELETE = 4;
+ */
+ QUEST_DELETE("QUEST_DELETE", 4);
+
+ /**
+ * QUEST_NONE = 0;
+ */
+ public static final int QUEST_NONE_VALUE = 0;
+
+ /**
+ * QUEST_DOING = 1;
+ */
+ public static final int QUEST_DOING_VALUE = 1;
+
+ /**
+ * QUEST_FINISH = 2;
+ */
+ public static final int QUEST_FINISH_VALUE = 2;
+
+ /**
+ * QUEST_CLOSE = 3;
+ */
+ public static final int QUEST_CLOSE_VALUE = 3;
+
+ /**
+ * QUEST_DELETE = 4;
+ */
+ public static final int QUEST_DELETE_VALUE = 4;
+
+ private final String name;
+
+ private final int number;
+
+ private QuestStatus(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.EnumConverteroptional uint32 type = 6;
+ */
+ private int type;
+
+ /**
+ * optional uint32 relic_id = 8;
+ */
+ private int relicId;
+
+ private RelicArchive() {
+ }
+
+ /**
+ * @return a new empty instance of {@code RelicArchive}
+ */
+ public static RelicArchive newInstance() {
+ return new RelicArchive();
+ }
+
+ /**
+ * optional uint32 type = 6;
+ * @return whether the type field is set
+ */
+ public boolean hasType() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 type = 6;
+ * @return this
+ */
+ public RelicArchive clearType() {
+ bitField0_ &= ~0x00000001;
+ type = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 type = 6;
+ * @return the type
+ */
+ public int getType() {
+ return type;
+ }
+
+ /**
+ * optional uint32 type = 6;
+ * @param value the type to set
+ * @return this
+ */
+ public RelicArchive setType(final int value) {
+ bitField0_ |= 0x00000001;
+ type = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 relic_id = 8;
+ * @return whether the relicId field is set
+ */
+ public boolean hasRelicId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 relic_id = 8;
+ * @return this
+ */
+ public RelicArchive clearRelicId() {
+ bitField0_ &= ~0x00000002;
+ relicId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 relic_id = 8;
+ * @return the relicId
+ */
+ public int getRelicId() {
+ return relicId;
+ }
+
+ /**
+ * optional uint32 relic_id = 8;
+ * @param value the relicId to set
+ * @return this
+ */
+ public RelicArchive setRelicId(final int value) {
+ bitField0_ |= 0x00000002;
+ relicId = value;
+ return this;
+ }
+
+ @Override
+ public RelicArchive copyFrom(final RelicArchive other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ type = other.type;
+ relicId = other.relicId;
+ }
+ return this;
+ }
+
+ @Override
+ public RelicArchive mergeFrom(final RelicArchive other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasType()) {
+ setType(other.type);
+ }
+ if (other.hasRelicId()) {
+ setRelicId(other.relicId);
+ }
+ return this;
+ }
+
+ @Override
+ public RelicArchive clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ type = 0;
+ relicId = 0;
+ return this;
+ }
+
+ @Override
+ public RelicArchive 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 RelicArchive)) {
+ return false;
+ }
+ RelicArchive other = (RelicArchive) o;
+ return bitField0_ == other.bitField0_
+ && (!hasType() || type == other.type)
+ && (!hasRelicId() || relicId == other.relicId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 48);
+ output.writeUInt32NoTag(type);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt32NoTag(relicId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(type);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(relicId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public RelicArchive mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 48: {
+ // type
+ type = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 64) {
+ break;
+ }
+ }
+ case 64: {
+ // relicId
+ relicId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.type, type);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.relicId, relicId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public RelicArchive mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 3575610: {
+ if (input.isAtField(FieldNames.type)) {
+ if (!input.trySkipNullValue()) {
+ type = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1090714606:
+ case -547564185: {
+ if (input.isAtField(FieldNames.relicId)) {
+ if (!input.trySkipNullValue()) {
+ relicId = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public RelicArchive clone() {
+ return new RelicArchive().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static RelicArchive parseFrom(final byte[] data) throws InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new RelicArchive(), data).checkInitialized();
+ }
+
+ public static RelicArchive parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new RelicArchive(), input).checkInitialized();
+ }
+
+ public static RelicArchive parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new RelicArchive(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating RelicArchive messages
+ */
+ public static MessageFactoryrepeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ */
+ private final RepeatedMessagerepeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ * @return whether the turnSnapshotList field is set
+ */
+ public boolean hasTurnSnapshotList() {
+ return (bitField0_ & 0x00000100) != 0;
+ }
+
+ /**
+ * repeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ * @return this
+ */
+ public SceneBattleInfo clearTurnSnapshotList() {
+ bitField0_ &= ~0x00000100;
+ turnSnapshotList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableTurnSnapshotList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ * @param value the turnSnapshotList to add
+ * @return this
+ */
+ public SceneBattleInfo addTurnSnapshotList(
+ final ClientTurnSnapshotOuterClass.ClientTurnSnapshot value) {
+ bitField0_ |= 0x00000100;
+ turnSnapshotList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ClientTurnSnapshot turn_snapshot_list = 219;
+ * @param values the turnSnapshotList to add
+ * @return this
+ */
+ public SceneBattleInfo addAllTurnSnapshotList(
+ final ClientTurnSnapshotOuterClass.ClientTurnSnapshot... values) {
+ bitField0_ |= 0x00000100;
+ turnSnapshotList.addAll(values);
+ return this;
+ }
+
@Override
public SceneBattleInfo copyFrom(final SceneBattleInfo other) {
cachedSize = other.cachedSize;
@@ -475,6 +551,7 @@ public final class SceneBattleInfoOuterClass {
battleAvatarList.copyFrom(other.battleAvatarList);
monsterWaveList.copyFrom(other.monsterWaveList);
buffList.copyFrom(other.buffList);
+ turnSnapshotList.copyFrom(other.turnSnapshotList);
}
return this;
}
@@ -509,6 +586,9 @@ public final class SceneBattleInfoOuterClass {
if (other.hasBuffList()) {
getMutableBuffList().addAll(other.buffList);
}
+ if (other.hasTurnSnapshotList()) {
+ getMutableTurnSnapshotList().addAll(other.turnSnapshotList);
+ }
return this;
}
@@ -527,6 +607,7 @@ public final class SceneBattleInfoOuterClass {
battleAvatarList.clear();
monsterWaveList.clear();
buffList.clear();
+ turnSnapshotList.clear();
return this;
}
@@ -540,6 +621,7 @@ public final class SceneBattleInfoOuterClass {
battleAvatarList.clearQuick();
monsterWaveList.clearQuick();
buffList.clearQuick();
+ turnSnapshotList.clearQuick();
return this;
}
@@ -560,7 +642,8 @@ public final class SceneBattleInfoOuterClass {
&& (!hasBattleId() || battleId == other.battleId)
&& (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList))
&& (!hasMonsterWaveList() || monsterWaveList.equals(other.monsterWaveList))
- && (!hasBuffList() || buffList.equals(other.buffList));
+ && (!hasBuffList() || buffList.equals(other.buffList))
+ && (!hasTurnSnapshotList() || turnSnapshotList.equals(other.turnSnapshotList));
}
@Override
@@ -603,6 +686,12 @@ public final class SceneBattleInfoOuterClass {
output.writeMessageNoTag(buffList.get(i));
}
}
+ if ((bitField0_ & 0x00000100) != 0) {
+ for (int i = 0; i < turnSnapshotList.length(); i++) {
+ output.writeRawLittleEndian16((short) 3546);
+ output.writeMessageNoTag(turnSnapshotList.get(i));
+ }
+ }
}
@Override
@@ -632,6 +721,9 @@ public final class SceneBattleInfoOuterClass {
if ((bitField0_ & 0x00000080) != 0) {
size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList);
}
+ if ((bitField0_ & 0x00000100) != 0) {
+ size += (2 * turnSnapshotList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(turnSnapshotList);
+ }
return size;
}
@@ -707,6 +799,14 @@ public final class SceneBattleInfoOuterClass {
// buffList
tag = input.readRepeatedMessage(buffList, tag);
bitField0_ |= 0x00000080;
+ if (tag != 1754) {
+ break;
+ }
+ }
+ case 1754: {
+ // turnSnapshotList
+ tag = input.readRepeatedMessage(turnSnapshotList, tag);
+ bitField0_ |= 0x00000100;
if (tag != 0) {
break;
}
@@ -752,6 +852,9 @@ public final class SceneBattleInfoOuterClass {
if ((bitField0_ & 0x00000080) != 0) {
output.writeRepeatedMessage(FieldNames.buffList, buffList);
}
+ if ((bitField0_ & 0x00000100) != 0) {
+ output.writeRepeatedMessage(FieldNames.turnSnapshotList, turnSnapshotList);
+ }
output.endObject();
}
@@ -858,6 +961,18 @@ public final class SceneBattleInfoOuterClass {
}
break;
}
+ case 716339615:
+ case 397197815: {
+ if (input.isAtField(FieldNames.turnSnapshotList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(turnSnapshotList);
+ bitField0_ |= 0x00000100;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
default: {
input.skipUnknownField();
break;
@@ -926,6 +1041,8 @@ public final class SceneBattleInfoOuterClass {
static final FieldName monsterWaveList = FieldName.forField("monsterWaveList", "monster_wave_list");
static final FieldName buffList = FieldName.forField("buffList", "buff_list");
+
+ static final FieldName turnSnapshotList = FieldName.forField("turnSnapshotList", "turn_snapshot_list");
}
}
}
diff --git a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java
new file mode 100644
index 0000000..c40b6a0
--- /dev/null
+++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java
@@ -0,0 +1,260 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.lunarcore.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+
+public final class SelectChatBubbleCsReqOuterClass {
+ /**
+ * Protobuf type {@code SelectChatBubbleCsReq}
+ */
+ public static final class SelectChatBubbleCsReq extends ProtoMessageoptional uint32 bubble_id = 7;
+ */
+ private int bubbleId;
+
+ private SelectChatBubbleCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code SelectChatBubbleCsReq}
+ */
+ public static SelectChatBubbleCsReq newInstance() {
+ return new SelectChatBubbleCsReq();
+ }
+
+ /**
+ * optional uint32 bubble_id = 7;
+ * @return whether the bubbleId field is set
+ */
+ public boolean hasBubbleId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 bubble_id = 7;
+ * @return this
+ */
+ public SelectChatBubbleCsReq clearBubbleId() {
+ bitField0_ &= ~0x00000001;
+ bubbleId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 bubble_id = 7;
+ * @return the bubbleId
+ */
+ public int getBubbleId() {
+ return bubbleId;
+ }
+
+ /**
+ * optional uint32 bubble_id = 7;
+ * @param value the bubbleId to set
+ * @return this
+ */
+ public SelectChatBubbleCsReq setBubbleId(final int value) {
+ bitField0_ |= 0x00000001;
+ bubbleId = value;
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleCsReq copyFrom(final SelectChatBubbleCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ bubbleId = other.bubbleId;
+ }
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleCsReq mergeFrom(final SelectChatBubbleCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBubbleId()) {
+ setBubbleId(other.bubbleId);
+ }
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ bubbleId = 0;
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleCsReq 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 SelectChatBubbleCsReq)) {
+ return false;
+ }
+ SelectChatBubbleCsReq other = (SelectChatBubbleCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBubbleId() || bubbleId == other.bubbleId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(bubbleId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(bubbleId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public SelectChatBubbleCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 56: {
+ // bubbleId
+ bubbleId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.bubbleId, bubbleId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public SelectChatBubbleCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -1640052025:
+ case 698016174: {
+ if (input.isAtField(FieldNames.bubbleId)) {
+ if (!input.trySkipNullValue()) {
+ bubbleId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleCsReq clone() {
+ return new SelectChatBubbleCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static SelectChatBubbleCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new SelectChatBubbleCsReq(), data).checkInitialized();
+ }
+
+ public static SelectChatBubbleCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectChatBubbleCsReq(), input).checkInitialized();
+ }
+
+ public static SelectChatBubbleCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectChatBubbleCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating SelectChatBubbleCsReq messages
+ */
+ public static MessageFactoryoptional uint32 cur_chat_bubble = 1;
+ */
+ private int curChatBubble;
+
+ /**
+ * optional uint32 retcode = 10;
+ */
+ private int retcode;
+
+ private SelectChatBubbleScRsp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code SelectChatBubbleScRsp}
+ */
+ public static SelectChatBubbleScRsp newInstance() {
+ return new SelectChatBubbleScRsp();
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 1;
+ * @return whether the curChatBubble field is set
+ */
+ public boolean hasCurChatBubble() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 1;
+ * @return this
+ */
+ public SelectChatBubbleScRsp clearCurChatBubble() {
+ bitField0_ &= ~0x00000001;
+ curChatBubble = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 1;
+ * @return the curChatBubble
+ */
+ public int getCurChatBubble() {
+ return curChatBubble;
+ }
+
+ /**
+ * optional uint32 cur_chat_bubble = 1;
+ * @param value the curChatBubble to set
+ * @return this
+ */
+ public SelectChatBubbleScRsp setCurChatBubble(final int value) {
+ bitField0_ |= 0x00000001;
+ curChatBubble = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 10;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 10;
+ * @return this
+ */
+ public SelectChatBubbleScRsp clearRetcode() {
+ bitField0_ &= ~0x00000002;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 10;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 10;
+ * @param value the retcode to set
+ * @return this
+ */
+ public SelectChatBubbleScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000002;
+ retcode = value;
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleScRsp copyFrom(final SelectChatBubbleScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ curChatBubble = other.curChatBubble;
+ retcode = other.retcode;
+ }
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleScRsp mergeFrom(final SelectChatBubbleScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasCurChatBubble()) {
+ setCurChatBubble(other.curChatBubble);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ curChatBubble = 0;
+ retcode = 0;
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleScRsp 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 SelectChatBubbleScRsp)) {
+ return false;
+ }
+ SelectChatBubbleScRsp other = (SelectChatBubbleScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasCurChatBubble() || curChatBubble == other.curChatBubble)
+ && (!hasRetcode() || retcode == other.retcode);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(curChatBubble);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 80);
+ output.writeUInt32NoTag(retcode);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public SelectChatBubbleScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // curChatBubble
+ curChatBubble = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 80) {
+ break;
+ }
+ }
+ case 80: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.curChatBubble, curChatBubble);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public SelectChatBubbleScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 94167140:
+ case 1828957140: {
+ if (input.isAtField(FieldNames.curChatBubble)) {
+ if (!input.trySkipNullValue()) {
+ curChatBubble = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public SelectChatBubbleScRsp clone() {
+ return new SelectChatBubbleScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static SelectChatBubbleScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new SelectChatBubbleScRsp(), data).checkInitialized();
+ }
+
+ public static SelectChatBubbleScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectChatBubbleScRsp(), input).checkInitialized();
+ }
+
+ public static SelectChatBubbleScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectChatBubbleScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating SelectChatBubbleScRsp messages
+ */
+ public static MessageFactoryoptional uint32 theme_id = 2;
+ */
+ private int themeId;
+
+ private SelectPhoneThemeCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code SelectPhoneThemeCsReq}
+ */
+ public static SelectPhoneThemeCsReq newInstance() {
+ return new SelectPhoneThemeCsReq();
+ }
+
+ /**
+ * optional uint32 theme_id = 2;
+ * @return whether the themeId field is set
+ */
+ public boolean hasThemeId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 theme_id = 2;
+ * @return this
+ */
+ public SelectPhoneThemeCsReq clearThemeId() {
+ bitField0_ &= ~0x00000001;
+ themeId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 theme_id = 2;
+ * @return the themeId
+ */
+ public int getThemeId() {
+ return themeId;
+ }
+
+ /**
+ * optional uint32 theme_id = 2;
+ * @param value the themeId to set
+ * @return this
+ */
+ public SelectPhoneThemeCsReq setThemeId(final int value) {
+ bitField0_ |= 0x00000001;
+ themeId = value;
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeCsReq copyFrom(final SelectPhoneThemeCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ themeId = other.themeId;
+ }
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeCsReq mergeFrom(final SelectPhoneThemeCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasThemeId()) {
+ setThemeId(other.themeId);
+ }
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ themeId = 0;
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeCsReq 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 SelectPhoneThemeCsReq)) {
+ return false;
+ }
+ SelectPhoneThemeCsReq other = (SelectPhoneThemeCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasThemeId() || themeId == other.themeId);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt32NoTag(themeId);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(themeId);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public SelectPhoneThemeCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 16: {
+ // themeId
+ themeId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.themeId, themeId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public SelectPhoneThemeCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case -1349701436:
+ case 1108949841: {
+ if (input.isAtField(FieldNames.themeId)) {
+ if (!input.trySkipNullValue()) {
+ themeId = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeCsReq clone() {
+ return new SelectPhoneThemeCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static SelectPhoneThemeCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new SelectPhoneThemeCsReq(), data).checkInitialized();
+ }
+
+ public static SelectPhoneThemeCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectPhoneThemeCsReq(), input).checkInitialized();
+ }
+
+ public static SelectPhoneThemeCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectPhoneThemeCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating SelectPhoneThemeCsReq messages
+ */
+ public static MessageFactoryoptional uint32 cur_phone_theme = 6;
+ */
+ private int curPhoneTheme;
+
+ /**
+ * optional uint32 retcode = 8;
+ */
+ private int retcode;
+
+ private SelectPhoneThemeScRsp() {
+ }
+
+ /**
+ * @return a new empty instance of {@code SelectPhoneThemeScRsp}
+ */
+ public static SelectPhoneThemeScRsp newInstance() {
+ return new SelectPhoneThemeScRsp();
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 6;
+ * @return whether the curPhoneTheme field is set
+ */
+ public boolean hasCurPhoneTheme() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 6;
+ * @return this
+ */
+ public SelectPhoneThemeScRsp clearCurPhoneTheme() {
+ bitField0_ &= ~0x00000001;
+ curPhoneTheme = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 6;
+ * @return the curPhoneTheme
+ */
+ public int getCurPhoneTheme() {
+ return curPhoneTheme;
+ }
+
+ /**
+ * optional uint32 cur_phone_theme = 6;
+ * @param value the curPhoneTheme to set
+ * @return this
+ */
+ public SelectPhoneThemeScRsp setCurPhoneTheme(final int value) {
+ bitField0_ |= 0x00000001;
+ curPhoneTheme = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 8;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 8;
+ * @return this
+ */
+ public SelectPhoneThemeScRsp clearRetcode() {
+ bitField0_ &= ~0x00000002;
+ 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 SelectPhoneThemeScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000002;
+ retcode = value;
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeScRsp copyFrom(final SelectPhoneThemeScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ curPhoneTheme = other.curPhoneTheme;
+ retcode = other.retcode;
+ }
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeScRsp mergeFrom(final SelectPhoneThemeScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasCurPhoneTheme()) {
+ setCurPhoneTheme(other.curPhoneTheme);
+ }
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ curPhoneTheme = 0;
+ retcode = 0;
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeScRsp 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 SelectPhoneThemeScRsp)) {
+ return false;
+ }
+ SelectPhoneThemeScRsp other = (SelectPhoneThemeScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme)
+ && (!hasRetcode() || retcode == other.retcode);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 48);
+ output.writeUInt32NoTag(curPhoneTheme);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt32NoTag(retcode);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public SelectPhoneThemeScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 48: {
+ // curPhoneTheme
+ curPhoneTheme = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 64) {
+ break;
+ }
+ }
+ case 64: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public SelectPhoneThemeScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 405670747:
+ case -514634695: {
+ if (input.isAtField(FieldNames.curPhoneTheme)) {
+ if (!input.trySkipNullValue()) {
+ curPhoneTheme = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public SelectPhoneThemeScRsp clone() {
+ return new SelectPhoneThemeScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static SelectPhoneThemeScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new SelectPhoneThemeScRsp(), data).checkInitialized();
+ }
+
+ public static SelectPhoneThemeScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectPhoneThemeScRsp(), input).checkInitialized();
+ }
+
+ public static SelectPhoneThemeScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new SelectPhoneThemeScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating SelectPhoneThemeScRsp messages
+ */
+ public static MessageFactoryrepeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ */
+ private final RepeatedMessagerepeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ * @return whether the announceDataList field is set
+ */
+ public boolean hasAnnounceDataList() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ * @return this
+ */
+ public ServerAnnounceNotify clearAnnounceDataList() {
+ bitField0_ &= ~0x00000001;
+ announceDataList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableAnnounceDataList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ * @param value the announceDataList to add
+ * @return this
+ */
+ public ServerAnnounceNotify addAnnounceDataList(final AnnounceData value) {
+ bitField0_ |= 0x00000001;
+ announceDataList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2;
+ * @param values the announceDataList to add
+ * @return this
+ */
+ public ServerAnnounceNotify addAllAnnounceDataList(final AnnounceData... values) {
+ bitField0_ |= 0x00000001;
+ announceDataList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public ServerAnnounceNotify copyFrom(final ServerAnnounceNotify other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ announceDataList.copyFrom(other.announceDataList);
+ }
+ return this;
+ }
+
+ @Override
+ public ServerAnnounceNotify mergeFrom(final ServerAnnounceNotify other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasAnnounceDataList()) {
+ getMutableAnnounceDataList().addAll(other.announceDataList);
+ }
+ return this;
+ }
+
+ @Override
+ public ServerAnnounceNotify clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ announceDataList.clear();
+ return this;
+ }
+
+ @Override
+ public ServerAnnounceNotify clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ announceDataList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof ServerAnnounceNotify)) {
+ return false;
+ }
+ ServerAnnounceNotify other = (ServerAnnounceNotify) o;
+ return bitField0_ == other.bitField0_
+ && (!hasAnnounceDataList() || announceDataList.equals(other.announceDataList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ for (int i = 0; i < announceDataList.length(); i++) {
+ output.writeRawByte((byte) 18);
+ output.writeMessageNoTag(announceDataList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += (1 * announceDataList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(announceDataList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public ServerAnnounceNotify mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 18: {
+ // announceDataList
+ tag = input.readRepeatedMessage(announceDataList, tag);
+ bitField0_ |= 0x00000001;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRepeatedMessage(FieldNames.announceDataList, announceDataList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public ServerAnnounceNotify mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1895739121:
+ case 121672637: {
+ if (input.isAtField(FieldNames.announceDataList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(announceDataList);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public ServerAnnounceNotify clone() {
+ return new ServerAnnounceNotify().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static ServerAnnounceNotify parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new ServerAnnounceNotify(), data).checkInitialized();
+ }
+
+ public static ServerAnnounceNotify parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ServerAnnounceNotify(), input).checkInitialized();
+ }
+
+ public static ServerAnnounceNotify parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new ServerAnnounceNotify(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating ServerAnnounceNotify messages
+ */
+ public static MessageFactoryoptional int64 begin_time = 1;
+ */
+ private long beginTime;
+
+ /**
+ * optional int64 end_time = 4;
+ */
+ private long endTime;
+
+ /**
+ * optional uint32 config_id = 6;
+ */
+ private int configId;
+
+ /**
+ * optional uint32 center_system_frequency = 7;
+ */
+ private int centerSystemFrequency;
+
+ /**
+ * optional uint32 count_down_frequency = 9;
+ */
+ private int countDownFrequency;
+
+ /**
+ * optional bool is_center_system_last_5_every_minutes = 11;
+ */
+ private boolean isCenterSystemLast5EveryMinutes;
+
+ /**
+ * optional string count_down_text = 5;
+ */
+ private final Utf8String countDownText = Utf8String.newEmptyInstance();
+
+ /**
+ * optional string center_system_text = 8;
+ */
+ private final Utf8String centerSystemText = Utf8String.newEmptyInstance();
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ */
+ private final Utf8String dungeonConfirmText = Utf8String.newEmptyInstance();
+
+ private AnnounceData() {
+ }
+
+ /**
+ * @return a new empty instance of {@code AnnounceData}
+ */
+ public static AnnounceData newInstance() {
+ return new AnnounceData();
+ }
+
+ /**
+ * optional int64 begin_time = 1;
+ * @return whether the beginTime field is set
+ */
+ public boolean hasBeginTime() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional int64 begin_time = 1;
+ * @return this
+ */
+ public AnnounceData clearBeginTime() {
+ bitField0_ &= ~0x00000001;
+ beginTime = 0L;
+ return this;
+ }
+
+ /**
+ * optional int64 begin_time = 1;
+ * @return the beginTime
+ */
+ public long getBeginTime() {
+ return beginTime;
+ }
+
+ /**
+ * optional int64 begin_time = 1;
+ * @param value the beginTime to set
+ * @return this
+ */
+ public AnnounceData setBeginTime(final long value) {
+ bitField0_ |= 0x00000001;
+ beginTime = value;
+ return this;
+ }
+
+ /**
+ * optional int64 end_time = 4;
+ * @return whether the endTime field is set
+ */
+ public boolean hasEndTime() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional int64 end_time = 4;
+ * @return this
+ */
+ public AnnounceData clearEndTime() {
+ bitField0_ &= ~0x00000002;
+ endTime = 0L;
+ return this;
+ }
+
+ /**
+ * optional int64 end_time = 4;
+ * @return the endTime
+ */
+ public long getEndTime() {
+ return endTime;
+ }
+
+ /**
+ * optional int64 end_time = 4;
+ * @param value the endTime to set
+ * @return this
+ */
+ public AnnounceData setEndTime(final long value) {
+ bitField0_ |= 0x00000002;
+ endTime = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 config_id = 6;
+ * @return whether the configId field is set
+ */
+ public boolean hasConfigId() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint32 config_id = 6;
+ * @return this
+ */
+ public AnnounceData clearConfigId() {
+ bitField0_ &= ~0x00000004;
+ configId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 config_id = 6;
+ * @return the configId
+ */
+ public int getConfigId() {
+ return configId;
+ }
+
+ /**
+ * optional uint32 config_id = 6;
+ * @param value the configId to set
+ * @return this
+ */
+ public AnnounceData setConfigId(final int value) {
+ bitField0_ |= 0x00000004;
+ configId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 center_system_frequency = 7;
+ * @return whether the centerSystemFrequency field is set
+ */
+ public boolean hasCenterSystemFrequency() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional uint32 center_system_frequency = 7;
+ * @return this
+ */
+ public AnnounceData clearCenterSystemFrequency() {
+ bitField0_ &= ~0x00000008;
+ centerSystemFrequency = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 center_system_frequency = 7;
+ * @return the centerSystemFrequency
+ */
+ public int getCenterSystemFrequency() {
+ return centerSystemFrequency;
+ }
+
+ /**
+ * optional uint32 center_system_frequency = 7;
+ * @param value the centerSystemFrequency to set
+ * @return this
+ */
+ public AnnounceData setCenterSystemFrequency(final int value) {
+ bitField0_ |= 0x00000008;
+ centerSystemFrequency = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 count_down_frequency = 9;
+ * @return whether the countDownFrequency field is set
+ */
+ public boolean hasCountDownFrequency() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * optional uint32 count_down_frequency = 9;
+ * @return this
+ */
+ public AnnounceData clearCountDownFrequency() {
+ bitField0_ &= ~0x00000010;
+ countDownFrequency = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 count_down_frequency = 9;
+ * @return the countDownFrequency
+ */
+ public int getCountDownFrequency() {
+ return countDownFrequency;
+ }
+
+ /**
+ * optional uint32 count_down_frequency = 9;
+ * @param value the countDownFrequency to set
+ * @return this
+ */
+ public AnnounceData setCountDownFrequency(final int value) {
+ bitField0_ |= 0x00000010;
+ countDownFrequency = value;
+ return this;
+ }
+
+ /**
+ * optional bool is_center_system_last_5_every_minutes = 11;
+ * @return whether the isCenterSystemLast5EveryMinutes field is set
+ */
+ public boolean hasIsCenterSystemLast5EveryMinutes() {
+ return (bitField0_ & 0x00000020) != 0;
+ }
+
+ /**
+ * optional bool is_center_system_last_5_every_minutes = 11;
+ * @return this
+ */
+ public AnnounceData clearIsCenterSystemLast5EveryMinutes() {
+ bitField0_ &= ~0x00000020;
+ isCenterSystemLast5EveryMinutes = false;
+ return this;
+ }
+
+ /**
+ * optional bool is_center_system_last_5_every_minutes = 11;
+ * @return the isCenterSystemLast5EveryMinutes
+ */
+ public boolean getIsCenterSystemLast5EveryMinutes() {
+ return isCenterSystemLast5EveryMinutes;
+ }
+
+ /**
+ * optional bool is_center_system_last_5_every_minutes = 11;
+ * @param value the isCenterSystemLast5EveryMinutes to set
+ * @return this
+ */
+ public AnnounceData setIsCenterSystemLast5EveryMinutes(final boolean value) {
+ bitField0_ |= 0x00000020;
+ isCenterSystemLast5EveryMinutes = value;
+ return this;
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @return whether the countDownText field is set
+ */
+ public boolean hasCountDownText() {
+ return (bitField0_ & 0x00000040) != 0;
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @return this
+ */
+ public AnnounceData clearCountDownText() {
+ bitField0_ &= ~0x00000040;
+ countDownText.clear();
+ return this;
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @return the countDownText
+ */
+ public String getCountDownText() {
+ return countDownText.getString();
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @return internal {@code Utf8String} representation of countDownText for reading
+ */
+ public Utf8String getCountDownTextBytes() {
+ return this.countDownText;
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @return internal {@code Utf8String} representation of countDownText for modifications
+ */
+ public Utf8String getMutableCountDownTextBytes() {
+ bitField0_ |= 0x00000040;
+ return this.countDownText;
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @param value the countDownText to set
+ * @return this
+ */
+ public AnnounceData setCountDownText(final CharSequence value) {
+ bitField0_ |= 0x00000040;
+ countDownText.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional string count_down_text = 5;
+ * @param value the countDownText to set
+ * @return this
+ */
+ public AnnounceData setCountDownText(final Utf8String value) {
+ bitField0_ |= 0x00000040;
+ countDownText.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @return whether the centerSystemText field is set
+ */
+ public boolean hasCenterSystemText() {
+ return (bitField0_ & 0x00000080) != 0;
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @return this
+ */
+ public AnnounceData clearCenterSystemText() {
+ bitField0_ &= ~0x00000080;
+ centerSystemText.clear();
+ return this;
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @return the centerSystemText
+ */
+ public String getCenterSystemText() {
+ return centerSystemText.getString();
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @return internal {@code Utf8String} representation of centerSystemText for reading
+ */
+ public Utf8String getCenterSystemTextBytes() {
+ return this.centerSystemText;
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @return internal {@code Utf8String} representation of centerSystemText for modifications
+ */
+ public Utf8String getMutableCenterSystemTextBytes() {
+ bitField0_ |= 0x00000080;
+ return this.centerSystemText;
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @param value the centerSystemText to set
+ * @return this
+ */
+ public AnnounceData setCenterSystemText(final CharSequence value) {
+ bitField0_ |= 0x00000080;
+ centerSystemText.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional string center_system_text = 8;
+ * @param value the centerSystemText to set
+ * @return this
+ */
+ public AnnounceData setCenterSystemText(final Utf8String value) {
+ bitField0_ |= 0x00000080;
+ centerSystemText.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @return whether the dungeonConfirmText field is set
+ */
+ public boolean hasDungeonConfirmText() {
+ return (bitField0_ & 0x00000100) != 0;
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @return this
+ */
+ public AnnounceData clearDungeonConfirmText() {
+ bitField0_ &= ~0x00000100;
+ dungeonConfirmText.clear();
+ return this;
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @return the dungeonConfirmText
+ */
+ public String getDungeonConfirmText() {
+ return dungeonConfirmText.getString();
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @return internal {@code Utf8String} representation of dungeonConfirmText for reading
+ */
+ public Utf8String getDungeonConfirmTextBytes() {
+ return this.dungeonConfirmText;
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @return internal {@code Utf8String} representation of dungeonConfirmText for modifications
+ */
+ public Utf8String getMutableDungeonConfirmTextBytes() {
+ bitField0_ |= 0x00000100;
+ return this.dungeonConfirmText;
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @param value the dungeonConfirmText to set
+ * @return this
+ */
+ public AnnounceData setDungeonConfirmText(final CharSequence value) {
+ bitField0_ |= 0x00000100;
+ dungeonConfirmText.copyFrom(value);
+ return this;
+ }
+
+ /**
+ * optional string dungeon_confirm_text = 14;
+ * @param value the dungeonConfirmText to set
+ * @return this
+ */
+ public AnnounceData setDungeonConfirmText(final Utf8String value) {
+ bitField0_ |= 0x00000100;
+ dungeonConfirmText.copyFrom(value);
+ return this;
+ }
+
+ @Override
+ public AnnounceData copyFrom(final AnnounceData other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ beginTime = other.beginTime;
+ endTime = other.endTime;
+ configId = other.configId;
+ centerSystemFrequency = other.centerSystemFrequency;
+ countDownFrequency = other.countDownFrequency;
+ isCenterSystemLast5EveryMinutes = other.isCenterSystemLast5EveryMinutes;
+ countDownText.copyFrom(other.countDownText);
+ centerSystemText.copyFrom(other.centerSystemText);
+ dungeonConfirmText.copyFrom(other.dungeonConfirmText);
+ }
+ return this;
+ }
+
+ @Override
+ public AnnounceData mergeFrom(final AnnounceData other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasBeginTime()) {
+ setBeginTime(other.beginTime);
+ }
+ if (other.hasEndTime()) {
+ setEndTime(other.endTime);
+ }
+ if (other.hasConfigId()) {
+ setConfigId(other.configId);
+ }
+ if (other.hasCenterSystemFrequency()) {
+ setCenterSystemFrequency(other.centerSystemFrequency);
+ }
+ if (other.hasCountDownFrequency()) {
+ setCountDownFrequency(other.countDownFrequency);
+ }
+ if (other.hasIsCenterSystemLast5EveryMinutes()) {
+ setIsCenterSystemLast5EveryMinutes(other.isCenterSystemLast5EveryMinutes);
+ }
+ if (other.hasCountDownText()) {
+ getMutableCountDownTextBytes().copyFrom(other.countDownText);
+ }
+ if (other.hasCenterSystemText()) {
+ getMutableCenterSystemTextBytes().copyFrom(other.centerSystemText);
+ }
+ if (other.hasDungeonConfirmText()) {
+ getMutableDungeonConfirmTextBytes().copyFrom(other.dungeonConfirmText);
+ }
+ return this;
+ }
+
+ @Override
+ public AnnounceData clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ beginTime = 0L;
+ endTime = 0L;
+ configId = 0;
+ centerSystemFrequency = 0;
+ countDownFrequency = 0;
+ isCenterSystemLast5EveryMinutes = false;
+ countDownText.clear();
+ centerSystemText.clear();
+ dungeonConfirmText.clear();
+ return this;
+ }
+
+ @Override
+ public AnnounceData clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ countDownText.clear();
+ centerSystemText.clear();
+ dungeonConfirmText.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof AnnounceData)) {
+ return false;
+ }
+ AnnounceData other = (AnnounceData) o;
+ return bitField0_ == other.bitField0_
+ && (!hasBeginTime() || beginTime == other.beginTime)
+ && (!hasEndTime() || endTime == other.endTime)
+ && (!hasConfigId() || configId == other.configId)
+ && (!hasCenterSystemFrequency() || centerSystemFrequency == other.centerSystemFrequency)
+ && (!hasCountDownFrequency() || countDownFrequency == other.countDownFrequency)
+ && (!hasIsCenterSystemLast5EveryMinutes() || isCenterSystemLast5EveryMinutes == other.isCenterSystemLast5EveryMinutes)
+ && (!hasCountDownText() || countDownText.equals(other.countDownText))
+ && (!hasCenterSystemText() || centerSystemText.equals(other.centerSystemText))
+ && (!hasDungeonConfirmText() || dungeonConfirmText.equals(other.dungeonConfirmText));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeInt64NoTag(beginTime);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 32);
+ output.writeInt64NoTag(endTime);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 48);
+ output.writeUInt32NoTag(configId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(centerSystemFrequency);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRawByte((byte) 72);
+ output.writeUInt32NoTag(countDownFrequency);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
+ output.writeRawByte((byte) 88);
+ output.writeBoolNoTag(isCenterSystemLast5EveryMinutes);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ output.writeRawByte((byte) 42);
+ output.writeStringNoTag(countDownText);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
+ output.writeRawByte((byte) 66);
+ output.writeStringNoTag(centerSystemText);
+ }
+ if ((bitField0_ & 0x00000100) != 0) {
+ output.writeRawByte((byte) 114);
+ output.writeStringNoTag(dungeonConfirmText);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeInt64SizeNoTag(endTime);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(configId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(centerSystemFrequency);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(countDownFrequency);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
+ size += 2;
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ size += 1 + ProtoSink.computeStringSizeNoTag(countDownText);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
+ size += 1 + ProtoSink.computeStringSizeNoTag(centerSystemText);
+ }
+ if ((bitField0_ & 0x00000100) != 0) {
+ size += 1 + ProtoSink.computeStringSizeNoTag(dungeonConfirmText);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public AnnounceData mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 8: {
+ // beginTime
+ beginTime = input.readInt64();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 32) {
+ break;
+ }
+ }
+ case 32: {
+ // endTime
+ endTime = input.readInt64();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 48) {
+ break;
+ }
+ }
+ case 48: {
+ // configId
+ configId = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // centerSystemFrequency
+ centerSystemFrequency = input.readUInt32();
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
+ if (tag != 72) {
+ break;
+ }
+ }
+ case 72: {
+ // countDownFrequency
+ countDownFrequency = input.readUInt32();
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
+ if (tag != 88) {
+ break;
+ }
+ }
+ case 88: {
+ // isCenterSystemLast5EveryMinutes
+ isCenterSystemLast5EveryMinutes = input.readBool();
+ bitField0_ |= 0x00000020;
+ tag = input.readTag();
+ if (tag != 42) {
+ break;
+ }
+ }
+ case 42: {
+ // countDownText
+ input.readString(countDownText);
+ bitField0_ |= 0x00000040;
+ tag = input.readTag();
+ if (tag != 66) {
+ break;
+ }
+ }
+ case 66: {
+ // centerSystemText
+ input.readString(centerSystemText);
+ bitField0_ |= 0x00000080;
+ tag = input.readTag();
+ if (tag != 114) {
+ break;
+ }
+ }
+ case 114: {
+ // dungeonConfirmText
+ input.readString(dungeonConfirmText);
+ bitField0_ |= 0x00000100;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeInt64(FieldNames.beginTime, beginTime);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeInt64(FieldNames.endTime, endTime);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeUInt32(FieldNames.configId, configId);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeUInt32(FieldNames.centerSystemFrequency, centerSystemFrequency);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
+ output.writeUInt32(FieldNames.countDownFrequency, countDownFrequency);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
+ output.writeBool(FieldNames.isCenterSystemLast5EveryMinutes, isCenterSystemLast5EveryMinutes);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ output.writeString(FieldNames.countDownText, countDownText);
+ }
+ if ((bitField0_ & 0x00000080) != 0) {
+ output.writeString(FieldNames.centerSystemText, centerSystemText);
+ }
+ if ((bitField0_ & 0x00000100) != 0) {
+ output.writeString(FieldNames.dungeonConfirmText, dungeonConfirmText);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public AnnounceData mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ 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 -580140035:
+ case -804450504: {
+ if (input.isAtField(FieldNames.configId)) {
+ if (!input.trySkipNullValue()) {
+ configId = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1285402920:
+ case 671051254: {
+ if (input.isAtField(FieldNames.centerSystemFrequency)) {
+ if (!input.trySkipNullValue()) {
+ centerSystemFrequency = input.readUInt32();
+ bitField0_ |= 0x00000008;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1551558155:
+ case -1526415569: {
+ if (input.isAtField(FieldNames.countDownFrequency)) {
+ if (!input.trySkipNullValue()) {
+ countDownFrequency = input.readUInt32();
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -68660299:
+ case -630028317: {
+ if (input.isAtField(FieldNames.isCenterSystemLast5EveryMinutes)) {
+ if (!input.trySkipNullValue()) {
+ isCenterSystemLast5EveryMinutes = input.readBool();
+ bitField0_ |= 0x00000020;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 515044126:
+ case 1806103418: {
+ if (input.isAtField(FieldNames.countDownText)) {
+ if (!input.trySkipNullValue()) {
+ input.readString(countDownText);
+ bitField0_ |= 0x00000040;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1011450319:
+ case 1305338963: {
+ if (input.isAtField(FieldNames.centerSystemText)) {
+ if (!input.trySkipNullValue()) {
+ input.readString(centerSystemText);
+ bitField0_ |= 0x00000080;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 136983795:
+ case 1723587761: {
+ if (input.isAtField(FieldNames.dungeonConfirmText)) {
+ if (!input.trySkipNullValue()) {
+ input.readString(dungeonConfirmText);
+ bitField0_ |= 0x00000100;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public AnnounceData clone() {
+ return new AnnounceData().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static AnnounceData parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new AnnounceData(), data).checkInitialized();
+ }
+
+ public static AnnounceData parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AnnounceData(), input).checkInitialized();
+ }
+
+ public static AnnounceData parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new AnnounceData(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating AnnounceData messages
+ */
+ public static MessageFactoryoptional uint32 chat_bubble_id = 13;
+ */
+ private int chatBubbleId;
+
/**
* optional .PlatformType platform_type = 7;
*/
@@ -222,12 +227,49 @@ public final class SimpleInfoOuterClass {
return this;
}
+ /**
+ * optional uint32 chat_bubble_id = 13;
+ * @return whether the chatBubbleId field is set
+ */
+ public boolean hasChatBubbleId() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * optional uint32 chat_bubble_id = 13;
+ * @return this
+ */
+ public SimpleInfo clearChatBubbleId() {
+ bitField0_ &= ~0x00000010;
+ chatBubbleId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 chat_bubble_id = 13;
+ * @return the chatBubbleId
+ */
+ public int getChatBubbleId() {
+ return chatBubbleId;
+ }
+
+ /**
+ * optional uint32 chat_bubble_id = 13;
+ * @param value the chatBubbleId to set
+ * @return this
+ */
+ public SimpleInfo setChatBubbleId(final int value) {
+ bitField0_ |= 0x00000010;
+ chatBubbleId = value;
+ return this;
+ }
+
/**
* optional .PlatformType platform_type = 7;
* @return whether the platformType field is set
*/
public boolean hasPlatformType() {
- return (bitField0_ & 0x00000010) != 0;
+ return (bitField0_ & 0x00000020) != 0;
}
/**
@@ -235,7 +277,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo clearPlatformType() {
- bitField0_ &= ~0x00000010;
+ bitField0_ &= ~0x00000020;
platformType = 0;
return this;
}
@@ -268,7 +310,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setPlatformTypeValue(final int value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
platformType = value;
return this;
}
@@ -279,7 +321,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
platformType = value.getNumber();
return this;
}
@@ -289,7 +331,7 @@ public final class SimpleInfoOuterClass {
* @return whether the onlineStatus field is set
*/
public boolean hasOnlineStatus() {
- return (bitField0_ & 0x00000020) != 0;
+ return (bitField0_ & 0x00000040) != 0;
}
/**
@@ -297,7 +339,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo clearOnlineStatus() {
- bitField0_ &= ~0x00000020;
+ bitField0_ &= ~0x00000040;
onlineStatus = 0;
return this;
}
@@ -330,7 +372,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setOnlineStatusValue(final int value) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onlineStatus = value;
return this;
}
@@ -341,7 +383,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setOnlineStatus(final FriendOnlineStatusOuterClass.FriendOnlineStatus value) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onlineStatus = value.getNumber();
return this;
}
@@ -351,7 +393,7 @@ public final class SimpleInfoOuterClass {
* @return whether the simpleAvatarInfo field is set
*/
public boolean hasSimpleAvatarInfo() {
- return (bitField0_ & 0x00000040) != 0;
+ return (bitField0_ & 0x00000080) != 0;
}
/**
@@ -359,7 +401,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo clearSimpleAvatarInfo() {
- bitField0_ &= ~0x00000040;
+ bitField0_ &= ~0x00000080;
simpleAvatarInfo.clear();
return this;
}
@@ -388,7 +430,7 @@ public final class SimpleInfoOuterClass {
* @return internal storage object for modifications
*/
public SimpleAvatarInfoOuterClass.SimpleAvatarInfo getMutableSimpleAvatarInfo() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
return simpleAvatarInfo;
}
@@ -398,7 +440,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setSimpleAvatarInfo(final SimpleAvatarInfoOuterClass.SimpleAvatarInfo value) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
simpleAvatarInfo.copyFrom(value);
return this;
}
@@ -408,7 +450,7 @@ public final class SimpleInfoOuterClass {
* @return whether the nickname field is set
*/
public boolean hasNickname() {
- return (bitField0_ & 0x00000080) != 0;
+ return (bitField0_ & 0x00000100) != 0;
}
/**
@@ -416,7 +458,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo clearNickname() {
- bitField0_ &= ~0x00000080;
+ bitField0_ &= ~0x00000100;
nickname.clear();
return this;
}
@@ -442,7 +484,7 @@ public final class SimpleInfoOuterClass {
* @return internal {@code Utf8String} representation of nickname for modifications
*/
public Utf8String getMutableNicknameBytes() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
return this.nickname;
}
@@ -452,7 +494,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setNickname(final CharSequence value) {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
nickname.copyFrom(value);
return this;
}
@@ -463,7 +505,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setNickname(final Utf8String value) {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
nickname.copyFrom(value);
return this;
}
@@ -473,7 +515,7 @@ public final class SimpleInfoOuterClass {
* @return whether the signature field is set
*/
public boolean hasSignature() {
- return (bitField0_ & 0x00000100) != 0;
+ return (bitField0_ & 0x00000200) != 0;
}
/**
@@ -481,7 +523,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo clearSignature() {
- bitField0_ &= ~0x00000100;
+ bitField0_ &= ~0x00000200;
signature.clear();
return this;
}
@@ -507,7 +549,7 @@ public final class SimpleInfoOuterClass {
* @return internal {@code Utf8String} representation of signature for modifications
*/
public Utf8String getMutableSignatureBytes() {
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
return this.signature;
}
@@ -517,7 +559,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setSignature(final CharSequence value) {
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
signature.copyFrom(value);
return this;
}
@@ -528,7 +570,7 @@ public final class SimpleInfoOuterClass {
* @return this
*/
public SimpleInfo setSignature(final Utf8String value) {
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
signature.copyFrom(value);
return this;
}
@@ -542,6 +584,7 @@ public final class SimpleInfoOuterClass {
level = other.level;
headIcon = other.headIcon;
uid = other.uid;
+ chatBubbleId = other.chatBubbleId;
platformType = other.platformType;
onlineStatus = other.onlineStatus;
simpleAvatarInfo.copyFrom(other.simpleAvatarInfo);
@@ -569,6 +612,9 @@ public final class SimpleInfoOuterClass {
if (other.hasUid()) {
setUid(other.uid);
}
+ if (other.hasChatBubbleId()) {
+ setChatBubbleId(other.chatBubbleId);
+ }
if (other.hasPlatformType()) {
setPlatformTypeValue(other.platformType);
}
@@ -598,6 +644,7 @@ public final class SimpleInfoOuterClass {
level = 0;
headIcon = 0;
uid = 0;
+ chatBubbleId = 0;
platformType = 0;
onlineStatus = 0;
simpleAvatarInfo.clear();
@@ -633,6 +680,7 @@ public final class SimpleInfoOuterClass {
&& (!hasLevel() || level == other.level)
&& (!hasHeadIcon() || headIcon == other.headIcon)
&& (!hasUid() || uid == other.uid)
+ && (!hasChatBubbleId() || chatBubbleId == other.chatBubbleId)
&& (!hasPlatformType() || platformType == other.platformType)
&& (!hasOnlineStatus() || onlineStatus == other.onlineStatus)
&& (!hasSimpleAvatarInfo() || simpleAvatarInfo.equals(other.simpleAvatarInfo))
@@ -659,22 +707,26 @@ public final class SimpleInfoOuterClass {
output.writeUInt32NoTag(uid);
}
if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRawByte((byte) 104);
+ output.writeUInt32NoTag(chatBubbleId);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 56);
output.writeEnumNoTag(platformType);
}
- if ((bitField0_ & 0x00000020) != 0) {
+ if ((bitField0_ & 0x00000040) != 0) {
output.writeRawByte((byte) 120);
output.writeEnumNoTag(onlineStatus);
}
- if ((bitField0_ & 0x00000040) != 0) {
+ if ((bitField0_ & 0x00000080) != 0) {
output.writeRawByte((byte) 26);
output.writeMessageNoTag(simpleAvatarInfo);
}
- if ((bitField0_ & 0x00000080) != 0) {
+ if ((bitField0_ & 0x00000100) != 0) {
output.writeRawByte((byte) 34);
output.writeStringNoTag(nickname);
}
- if ((bitField0_ & 0x00000100) != 0) {
+ if ((bitField0_ & 0x00000200) != 0) {
output.writeRawByte((byte) 74);
output.writeStringNoTag(signature);
}
@@ -696,18 +748,21 @@ public final class SimpleInfoOuterClass {
size += 1 + ProtoSink.computeUInt32SizeNoTag(uid);
}
if ((bitField0_ & 0x00000010) != 0) {
- size += 1 + ProtoSink.computeEnumSizeNoTag(platformType);
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(chatBubbleId);
}
if ((bitField0_ & 0x00000020) != 0) {
- size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus);
+ size += 1 + ProtoSink.computeEnumSizeNoTag(platformType);
}
if ((bitField0_ & 0x00000040) != 0) {
- size += 1 + ProtoSink.computeMessageSizeNoTag(simpleAvatarInfo);
+ size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus);
}
if ((bitField0_ & 0x00000080) != 0) {
- size += 1 + ProtoSink.computeStringSizeNoTag(nickname);
+ size += 1 + ProtoSink.computeMessageSizeNoTag(simpleAvatarInfo);
}
if ((bitField0_ & 0x00000100) != 0) {
+ size += 1 + ProtoSink.computeStringSizeNoTag(nickname);
+ }
+ if ((bitField0_ & 0x00000200) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(signature);
}
return size;
@@ -752,6 +807,15 @@ public final class SimpleInfoOuterClass {
uid = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
+ if (tag != 104) {
+ break;
+ }
+ }
+ case 104: {
+ // chatBubbleId
+ chatBubbleId = input.readUInt32();
+ bitField0_ |= 0x00000010;
+ tag = input.readTag();
if (tag != 56) {
break;
}
@@ -761,7 +825,7 @@ public final class SimpleInfoOuterClass {
final int value = input.readInt32();
if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) {
platformType = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
}
tag = input.readTag();
if (tag != 120) {
@@ -773,7 +837,7 @@ public final class SimpleInfoOuterClass {
final int value = input.readInt32();
if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) {
onlineStatus = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
}
tag = input.readTag();
if (tag != 26) {
@@ -783,7 +847,7 @@ public final class SimpleInfoOuterClass {
case 26: {
// simpleAvatarInfo
input.readMessage(simpleAvatarInfo);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
tag = input.readTag();
if (tag != 34) {
break;
@@ -792,7 +856,7 @@ public final class SimpleInfoOuterClass {
case 34: {
// nickname
input.readString(nickname);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
tag = input.readTag();
if (tag != 74) {
break;
@@ -801,7 +865,7 @@ public final class SimpleInfoOuterClass {
case 74: {
// signature
input.readString(signature);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
tag = input.readTag();
if (tag != 0) {
break;
@@ -837,18 +901,21 @@ public final class SimpleInfoOuterClass {
output.writeUInt32(FieldNames.uid, uid);
}
if ((bitField0_ & 0x00000010) != 0) {
- output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter());
+ output.writeUInt32(FieldNames.chatBubbleId, chatBubbleId);
}
if ((bitField0_ & 0x00000020) != 0) {
- output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter());
+ output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter());
}
if ((bitField0_ & 0x00000040) != 0) {
- output.writeMessage(FieldNames.simpleAvatarInfo, simpleAvatarInfo);
+ output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter());
}
if ((bitField0_ & 0x00000080) != 0) {
- output.writeString(FieldNames.nickname, nickname);
+ output.writeMessage(FieldNames.simpleAvatarInfo, simpleAvatarInfo);
}
if ((bitField0_ & 0x00000100) != 0) {
+ output.writeString(FieldNames.nickname, nickname);
+ }
+ if ((bitField0_ & 0x00000200) != 0) {
output.writeString(FieldNames.signature, signature);
}
output.endObject();
@@ -907,6 +974,18 @@ public final class SimpleInfoOuterClass {
}
break;
}
+ case -678761921:
+ case 1892426119: {
+ if (input.isAtField(FieldNames.chatBubbleId)) {
+ if (!input.trySkipNullValue()) {
+ chatBubbleId = input.readUInt32();
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case 155581005:
case 538062726: {
if (input.isAtField(FieldNames.platformType)) {
@@ -914,7 +993,7 @@ public final class SimpleInfoOuterClass {
final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter());
if (value != null) {
platformType = value.getNumber();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
} else {
input.skipUnknownEnumValue();
}
@@ -931,7 +1010,7 @@ public final class SimpleInfoOuterClass {
final FriendOnlineStatusOuterClass.FriendOnlineStatus value = input.readEnum(FriendOnlineStatusOuterClass.FriendOnlineStatus.converter());
if (value != null) {
onlineStatus = value.getNumber();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
} else {
input.skipUnknownEnumValue();
}
@@ -946,7 +1025,7 @@ public final class SimpleInfoOuterClass {
if (input.isAtField(FieldNames.simpleAvatarInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(simpleAvatarInfo);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
}
} else {
input.skipUnknownField();
@@ -957,7 +1036,7 @@ public final class SimpleInfoOuterClass {
if (input.isAtField(FieldNames.nickname)) {
if (!input.trySkipNullValue()) {
input.readString(nickname);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
}
} else {
input.skipUnknownField();
@@ -968,7 +1047,7 @@ public final class SimpleInfoOuterClass {
if (input.isAtField(FieldNames.signature)) {
if (!input.trySkipNullValue()) {
input.readString(signature);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
}
} else {
input.skipUnknownField();
@@ -1035,6 +1114,8 @@ public final class SimpleInfoOuterClass {
static final FieldName uid = FieldName.forField("uid");
+ static final FieldName chatBubbleId = FieldName.forField("chatBubbleId", "chat_bubble_id");
+
static final FieldName platformType = FieldName.forField("platformType", "platform_type");
static final FieldName onlineStatus = FieldName.forField("onlineStatus", "online_status");
diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java
new file mode 100644
index 0000000..b3ce615
--- /dev/null
+++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java
@@ -0,0 +1,301 @@
+// Code generated by protocol buffer compiler. Do not edit!
+package emu.lunarcore.proto;
+
+import java.io.IOException;
+import us.hebi.quickbuf.FieldName;
+import us.hebi.quickbuf.InvalidProtocolBufferException;
+import us.hebi.quickbuf.JsonSink;
+import us.hebi.quickbuf.JsonSource;
+import us.hebi.quickbuf.MessageFactory;
+import us.hebi.quickbuf.ProtoMessage;
+import us.hebi.quickbuf.ProtoSink;
+import us.hebi.quickbuf.ProtoSource;
+import us.hebi.quickbuf.RepeatedInt;
+
+public final class TextJoinQueryCsReqOuterClass {
+ /**
+ * Protobuf type {@code TextJoinQueryCsReq}
+ */
+ public static final class TextJoinQueryCsReq extends ProtoMessagerepeated uint32 text_join_id_list = 7;
+ */
+ private final RepeatedInt textJoinIdList = RepeatedInt.newEmptyInstance();
+
+ private TextJoinQueryCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code TextJoinQueryCsReq}
+ */
+ public static TextJoinQueryCsReq newInstance() {
+ return new TextJoinQueryCsReq();
+ }
+
+ /**
+ * repeated uint32 text_join_id_list = 7;
+ * @return whether the textJoinIdList field is set
+ */
+ public boolean hasTextJoinIdList() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * repeated uint32 text_join_id_list = 7;
+ * @return this
+ */
+ public TextJoinQueryCsReq clearTextJoinIdList() {
+ bitField0_ &= ~0x00000001;
+ textJoinIdList.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 text_join_id_list = 7;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableTextJoinIdList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getTextJoinIdList() {
+ return textJoinIdList;
+ }
+
+ /**
+ * repeated uint32 text_join_id_list = 7;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableTextJoinIdList() {
+ bitField0_ |= 0x00000001;
+ return textJoinIdList;
+ }
+
+ /**
+ * repeated uint32 text_join_id_list = 7;
+ * @param value the textJoinIdList to add
+ * @return this
+ */
+ public TextJoinQueryCsReq addTextJoinIdList(final int value) {
+ bitField0_ |= 0x00000001;
+ textJoinIdList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 text_join_id_list = 7;
+ * @param values the textJoinIdList to add
+ * @return this
+ */
+ public TextJoinQueryCsReq addAllTextJoinIdList(final int... values) {
+ bitField0_ |= 0x00000001;
+ textJoinIdList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryCsReq copyFrom(final TextJoinQueryCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ textJoinIdList.copyFrom(other.textJoinIdList);
+ }
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryCsReq mergeFrom(final TextJoinQueryCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasTextJoinIdList()) {
+ getMutableTextJoinIdList().addAll(other.textJoinIdList);
+ }
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ textJoinIdList.clear();
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryCsReq clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ textJoinIdList.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof TextJoinQueryCsReq)) {
+ return false;
+ }
+ TextJoinQueryCsReq other = (TextJoinQueryCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasTextJoinIdList() || textJoinIdList.equals(other.textJoinIdList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ for (int i = 0; i < textJoinIdList.length(); i++) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt32NoTag(textJoinIdList.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += (1 * textJoinIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(textJoinIdList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public TextJoinQueryCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 58: {
+ // textJoinIdList [packed=true]
+ input.readPackedUInt32(textJoinIdList, 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 56: {
+ // textJoinIdList [packed=false]
+ tag = input.readRepeatedUInt32(textJoinIdList, tag);
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRepeatedUInt32(FieldNames.textJoinIdList, textJoinIdList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public TextJoinQueryCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1149123376:
+ case 449627391: {
+ if (input.isAtField(FieldNames.textJoinIdList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(textJoinIdList);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryCsReq clone() {
+ return new TextJoinQueryCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static TextJoinQueryCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new TextJoinQueryCsReq(), data).checkInitialized();
+ }
+
+ public static TextJoinQueryCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new TextJoinQueryCsReq(), input).checkInitialized();
+ }
+
+ public static TextJoinQueryCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new TextJoinQueryCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating TextJoinQueryCsReq messages
+ */
+ public static MessageFactoryoptional uint32 retcode = 13;
+ */
+ private int retcode;
+
+ /**
+ * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ */
+ private final RepeatedMessageoptional uint32 retcode = 13;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 13;
+ * @return this
+ */
+ public TextJoinQueryScRsp clearRetcode() {
+ bitField0_ &= ~0x00000001;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 13;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 13;
+ * @param value the retcode to set
+ * @return this
+ */
+ public TextJoinQueryScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000001;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ * @return whether the textJoinList field is set
+ */
+ public boolean hasTextJoinList() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ * @return this
+ */
+ public TextJoinQueryScRsp clearTextJoinList() {
+ bitField0_ &= ~0x00000002;
+ textJoinList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableTextJoinList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ * @param value the textJoinList to add
+ * @return this
+ */
+ public TextJoinQueryScRsp addTextJoinList(final TextJoinInfo value) {
+ bitField0_ |= 0x00000002;
+ textJoinList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .TextJoinQueryScRsp.TextJoinInfo text_join_list = 4;
+ * @param values the textJoinList to add
+ * @return this
+ */
+ public TextJoinQueryScRsp addAllTextJoinList(final TextJoinInfo... values) {
+ bitField0_ |= 0x00000002;
+ textJoinList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryScRsp copyFrom(final TextJoinQueryScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ retcode = other.retcode;
+ textJoinList.copyFrom(other.textJoinList);
+ }
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryScRsp mergeFrom(final TextJoinQueryScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasTextJoinList()) {
+ getMutableTextJoinList().addAll(other.textJoinList);
+ }
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ retcode = 0;
+ textJoinList.clear();
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ textJoinList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof TextJoinQueryScRsp)) {
+ return false;
+ }
+ TextJoinQueryScRsp other = (TextJoinQueryScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasTextJoinList() || textJoinList.equals(other.textJoinList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 104);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ for (int i = 0; i < textJoinList.length(); i++) {
+ output.writeRawByte((byte) 34);
+ output.writeMessageNoTag(textJoinList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += (1 * textJoinList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(textJoinList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public TextJoinQueryScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 104: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 34) {
+ break;
+ }
+ }
+ case 34: {
+ // textJoinList
+ tag = input.readRepeatedMessage(textJoinList, tag);
+ bitField0_ |= 0x00000002;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRepeatedMessage(FieldNames.textJoinList, textJoinList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public TextJoinQueryScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1670215371:
+ case 249668097: {
+ if (input.isAtField(FieldNames.textJoinList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(textJoinList);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public TextJoinQueryScRsp clone() {
+ return new TextJoinQueryScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static TextJoinQueryScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new TextJoinQueryScRsp(), data).checkInitialized();
+ }
+
+ public static TextJoinQueryScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new TextJoinQueryScRsp(), input).checkInitialized();
+ }
+
+ public static TextJoinQueryScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new TextJoinQueryScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating TextJoinQueryScRsp messages
+ */
+ public static MessageFactoryoptional uint32 text_item_id = 2;
+ */
+ private int textItemId;
+
+ /**
+ * optional uint32 text_item_config_id = 3;
+ */
+ private int textItemConfigId;
+
+ private TextJoinInfo() {
+ }
+
+ /**
+ * @return a new empty instance of {@code TextJoinInfo}
+ */
+ public static TextJoinInfo newInstance() {
+ return new TextJoinInfo();
+ }
+
+ /**
+ * optional uint32 text_item_id = 2;
+ * @return whether the textItemId field is set
+ */
+ public boolean hasTextItemId() {
+ return (bitField0_ & 0x00000001) != 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
+ */
+ public int getTextItemId() {
+ return textItemId;
+ }
+
+ /**
+ * 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
+ */
+ public int getTextItemConfigId() {
+ 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;
+ }
+
+ @Override
+ public TextJoinInfo copyFrom(final TextJoinInfo other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ textItemId = other.textItemId;
+ textItemConfigId = other.textItemConfigId;
+ }
+ return this;
+ }
+
+ @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;
+ }
+
+ @Override
+ public TextJoinInfo clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ 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);
+ }
+ 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;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.textItemId, textItemId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public TextJoinInfo mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ 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;
+ }
+ }
+ }
+ 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 MessageFactoryrepeated uint32 unlock_ids = 11;
+ */
+ private final RepeatedInt unlockIds = RepeatedInt.newEmptyInstance();
+
+ private UnlockBackGroundMusicCsReq() {
+ }
+
+ /**
+ * @return a new empty instance of {@code UnlockBackGroundMusicCsReq}
+ */
+ public static UnlockBackGroundMusicCsReq newInstance() {
+ return new UnlockBackGroundMusicCsReq();
+ }
+
+ /**
+ * repeated uint32 unlock_ids = 11;
+ * @return whether the unlockIds field is set
+ */
+ public boolean hasUnlockIds() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * repeated uint32 unlock_ids = 11;
+ * @return this
+ */
+ public UnlockBackGroundMusicCsReq clearUnlockIds() {
+ bitField0_ &= ~0x00000001;
+ unlockIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 unlock_ids = 11;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableUnlockIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getUnlockIds() {
+ return unlockIds;
+ }
+
+ /**
+ * repeated uint32 unlock_ids = 11;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableUnlockIds() {
+ bitField0_ |= 0x00000001;
+ return unlockIds;
+ }
+
+ /**
+ * repeated uint32 unlock_ids = 11;
+ * @param value the unlockIds to add
+ * @return this
+ */
+ public UnlockBackGroundMusicCsReq addUnlockIds(final int value) {
+ bitField0_ |= 0x00000001;
+ unlockIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 unlock_ids = 11;
+ * @param values the unlockIds to add
+ * @return this
+ */
+ public UnlockBackGroundMusicCsReq addAllUnlockIds(final int... values) {
+ bitField0_ |= 0x00000001;
+ unlockIds.addAll(values);
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicCsReq copyFrom(final UnlockBackGroundMusicCsReq other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ unlockIds.copyFrom(other.unlockIds);
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicCsReq mergeFrom(final UnlockBackGroundMusicCsReq other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasUnlockIds()) {
+ getMutableUnlockIds().addAll(other.unlockIds);
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicCsReq clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ unlockIds.clear();
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicCsReq clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ unlockIds.clear();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof UnlockBackGroundMusicCsReq)) {
+ return false;
+ }
+ UnlockBackGroundMusicCsReq other = (UnlockBackGroundMusicCsReq) o;
+ return bitField0_ == other.bitField0_
+ && (!hasUnlockIds() || unlockIds.equals(other.unlockIds));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ for (int i = 0; i < unlockIds.length(); i++) {
+ output.writeRawByte((byte) 88);
+ output.writeUInt32NoTag(unlockIds.array()[i]);
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += (1 * unlockIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockIds);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public UnlockBackGroundMusicCsReq mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 90: {
+ // unlockIds [packed=true]
+ input.readPackedUInt32(unlockIds, 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 88: {
+ // unlockIds [packed=false]
+ tag = input.readRepeatedUInt32(unlockIds, tag);
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRepeatedUInt32(FieldNames.unlockIds, unlockIds);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public UnlockBackGroundMusicCsReq mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 2050476244:
+ case -859086019: {
+ if (input.isAtField(FieldNames.unlockIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(unlockIds);
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicCsReq clone() {
+ return new UnlockBackGroundMusicCsReq().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static UnlockBackGroundMusicCsReq parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new UnlockBackGroundMusicCsReq(), data).checkInitialized();
+ }
+
+ public static UnlockBackGroundMusicCsReq parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockBackGroundMusicCsReq(), input).checkInitialized();
+ }
+
+ public static UnlockBackGroundMusicCsReq parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockBackGroundMusicCsReq(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating UnlockBackGroundMusicCsReq messages
+ */
+ public static MessageFactoryoptional uint32 retcode = 12;
+ */
+ private int retcode;
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ */
+ private final RepeatedInt unlockedIds = RepeatedInt.newEmptyInstance();
+
+ /**
+ * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ */
+ private final RepeatedMessageoptional uint32 retcode = 12;
+ * @return whether the retcode field is set
+ */
+ public boolean hasRetcode() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 retcode = 12;
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp clearRetcode() {
+ bitField0_ &= ~0x00000001;
+ retcode = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 retcode = 12;
+ * @return the retcode
+ */
+ public int getRetcode() {
+ return retcode;
+ }
+
+ /**
+ * optional uint32 retcode = 12;
+ * @param value the retcode to set
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp setRetcode(final int value) {
+ bitField0_ |= 0x00000001;
+ retcode = value;
+ return this;
+ }
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ * @return whether the unlockedIds field is set
+ */
+ public boolean hasUnlockedIds() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp clearUnlockedIds() {
+ bitField0_ &= ~0x00000002;
+ unlockedIds.clear();
+ return this;
+ }
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableUnlockedIds()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedInt getUnlockedIds() {
+ return unlockedIds;
+ }
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedInt getMutableUnlockedIds() {
+ bitField0_ |= 0x00000002;
+ return unlockedIds;
+ }
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ * @param value the unlockedIds to add
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp addUnlockedIds(final int value) {
+ bitField0_ |= 0x00000002;
+ unlockedIds.add(value);
+ return this;
+ }
+
+ /**
+ * repeated uint32 unlocked_ids = 3;
+ * @param values the unlockedIds to add
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp addAllUnlockedIds(final int... values) {
+ bitField0_ |= 0x00000002;
+ unlockedIds.addAll(values);
+ return this;
+ }
+
+ /**
+ * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ * @return whether the musicList field is set
+ */
+ public boolean hasMusicList() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp clearMusicList() {
+ bitField0_ &= ~0x00000004;
+ musicList.clear();
+ return this;
+ }
+
+ /**
+ * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ *
+ * This method returns the internal storage object without modifying any has state.
+ * The returned object should not be modified and be treated as read-only.
+ *
+ * Use {@link #getMutableMusicList()} if you want to modify it.
+ *
+ * @return internal storage object for reading
+ */
+ public RepeatedMessagerepeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ *
+ * This method returns the internal storage object and sets the corresponding
+ * has state. The returned object will become part of this message and its
+ * contents may be modified as long as the has state is not cleared.
+ *
+ * @return internal storage object for modifications
+ */
+ public RepeatedMessagerepeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ * @param value the musicList to add
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp addMusicList(final UnlockedMusic value) {
+ bitField0_ |= 0x00000004;
+ musicList.add(value);
+ return this;
+ }
+
+ /**
+ * repeated .UnlockBackGroundMusicScRsp.UnlockedMusic music_list = 6;
+ * @param values the musicList to add
+ * @return this
+ */
+ public UnlockBackGroundMusicScRsp addAllMusicList(final UnlockedMusic... values) {
+ bitField0_ |= 0x00000004;
+ musicList.addAll(values);
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicScRsp copyFrom(final UnlockBackGroundMusicScRsp other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ retcode = other.retcode;
+ unlockedIds.copyFrom(other.unlockedIds);
+ musicList.copyFrom(other.musicList);
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicScRsp mergeFrom(final UnlockBackGroundMusicScRsp other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasRetcode()) {
+ setRetcode(other.retcode);
+ }
+ if (other.hasUnlockedIds()) {
+ getMutableUnlockedIds().addAll(other.unlockedIds);
+ }
+ if (other.hasMusicList()) {
+ getMutableMusicList().addAll(other.musicList);
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicScRsp clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ retcode = 0;
+ unlockedIds.clear();
+ musicList.clear();
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicScRsp clearQuick() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ unlockedIds.clear();
+ musicList.clearQuick();
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (!(o instanceof UnlockBackGroundMusicScRsp)) {
+ return false;
+ }
+ UnlockBackGroundMusicScRsp other = (UnlockBackGroundMusicScRsp) o;
+ return bitField0_ == other.bitField0_
+ && (!hasRetcode() || retcode == other.retcode)
+ && (!hasUnlockedIds() || unlockedIds.equals(other.unlockedIds))
+ && (!hasMusicList() || musicList.equals(other.musicList));
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 96);
+ output.writeUInt32NoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ for (int i = 0; i < unlockedIds.length(); i++) {
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(unlockedIds.array()[i]);
+ }
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ for (int i = 0; i < musicList.length(); i++) {
+ output.writeRawByte((byte) 50);
+ output.writeMessageNoTag(musicList.get(i));
+ }
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += (1 * unlockedIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedIds);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += (1 * musicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(musicList);
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public UnlockBackGroundMusicScRsp mergeFrom(final ProtoSource input) throws IOException {
+ // Enabled Fall-Through Optimization (QuickBuffers)
+ int tag = input.readTag();
+ while (true) {
+ switch (tag) {
+ case 96: {
+ // retcode
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ tag = input.readTag();
+ if (tag != 26) {
+ break;
+ }
+ }
+ case 26: {
+ // unlockedIds [packed=true]
+ input.readPackedUInt32(unlockedIds, tag);
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 50) {
+ break;
+ }
+ }
+ case 50: {
+ // musicList
+ tag = input.readRepeatedMessage(musicList, tag);
+ bitField0_ |= 0x00000004;
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ case 24: {
+ // unlockedIds [packed=false]
+ tag = input.readRepeatedUInt32(unlockedIds, tag);
+ bitField0_ |= 0x00000002;
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.retcode, retcode);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRepeatedUInt32(FieldNames.unlockedIds, unlockedIds);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRepeatedMessage(FieldNames.musicList, musicList);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public UnlockBackGroundMusicScRsp mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ return this;
+ }
+ while (!input.isAtEnd()) {
+ switch (input.readFieldHash()) {
+ case 1097936398: {
+ if (input.isAtField(FieldNames.retcode)) {
+ if (!input.trySkipNullValue()) {
+ retcode = input.readUInt32();
+ bitField0_ |= 0x00000001;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -856496939:
+ case -780941476: {
+ if (input.isAtField(FieldNames.unlockedIds)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedUInt32(unlockedIds);
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 389904483:
+ case -780236168: {
+ if (input.isAtField(FieldNames.musicList)) {
+ if (!input.trySkipNullValue()) {
+ input.readRepeatedMessage(musicList);
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public UnlockBackGroundMusicScRsp clone() {
+ return new UnlockBackGroundMusicScRsp().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static UnlockBackGroundMusicScRsp parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new UnlockBackGroundMusicScRsp(), data).checkInitialized();
+ }
+
+ public static UnlockBackGroundMusicScRsp parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockBackGroundMusicScRsp(), input).checkInitialized();
+ }
+
+ public static UnlockBackGroundMusicScRsp parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockBackGroundMusicScRsp(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating UnlockBackGroundMusicScRsp messages
+ */
+ public static MessageFactoryoptional uint32 group_id = 1;
+ */
+ private int groupId;
+
+ /**
+ * optional uint32 id = 8;
+ */
+ private int id;
+
+ /**
+ * optional bool unkbool = 7;
+ */
+ private boolean unkbool;
+
+ private UnlockedMusic() {
+ }
+
+ /**
+ * @return a new empty instance of {@code UnlockedMusic}
+ */
+ public static UnlockedMusic newInstance() {
+ return new UnlockedMusic();
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @return whether the groupId field is set
+ */
+ public boolean hasGroupId() {
+ return (bitField0_ & 0x00000001) != 0;
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @return this
+ */
+ public UnlockedMusic clearGroupId() {
+ bitField0_ &= ~0x00000001;
+ groupId = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @return the groupId
+ */
+ public int getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * optional uint32 group_id = 1;
+ * @param value the groupId to set
+ * @return this
+ */
+ public UnlockedMusic setGroupId(final int value) {
+ bitField0_ |= 0x00000001;
+ groupId = value;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @return whether the id field is set
+ */
+ public boolean hasId() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @return this
+ */
+ public UnlockedMusic clearId() {
+ bitField0_ &= ~0x00000002;
+ id = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * optional uint32 id = 8;
+ * @param value the id to set
+ * @return this
+ */
+ public UnlockedMusic setId(final int value) {
+ bitField0_ |= 0x00000002;
+ id = value;
+ return this;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @return whether the unkbool field is set
+ */
+ public boolean hasUnkbool() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @return this
+ */
+ public UnlockedMusic clearUnkbool() {
+ bitField0_ &= ~0x00000004;
+ unkbool = false;
+ return this;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @return the unkbool
+ */
+ public boolean getUnkbool() {
+ return unkbool;
+ }
+
+ /**
+ * optional bool unkbool = 7;
+ * @param value the unkbool to set
+ * @return this
+ */
+ public UnlockedMusic setUnkbool(final boolean value) {
+ bitField0_ |= 0x00000004;
+ unkbool = value;
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic copyFrom(final UnlockedMusic other) {
+ cachedSize = other.cachedSize;
+ if ((bitField0_ | other.bitField0_) != 0) {
+ bitField0_ = other.bitField0_;
+ groupId = other.groupId;
+ id = other.id;
+ unkbool = other.unkbool;
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic mergeFrom(final UnlockedMusic other) {
+ if (other.isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ if (other.hasGroupId()) {
+ setGroupId(other.groupId);
+ }
+ if (other.hasId()) {
+ setId(other.id);
+ }
+ if (other.hasUnkbool()) {
+ setUnkbool(other.unkbool);
+ }
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic clear() {
+ if (isEmpty()) {
+ return this;
+ }
+ cachedSize = -1;
+ bitField0_ = 0;
+ groupId = 0;
+ id = 0;
+ unkbool = false;
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic 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 UnlockedMusic)) {
+ return false;
+ }
+ UnlockedMusic other = (UnlockedMusic) o;
+ return bitField0_ == other.bitField0_
+ && (!hasGroupId() || groupId == other.groupId)
+ && (!hasId() || id == other.id)
+ && (!hasUnkbool() || unkbool == other.unkbool);
+ }
+
+ @Override
+ public void writeTo(final ProtoSink output) throws IOException {
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeRawByte((byte) 8);
+ output.writeUInt32NoTag(groupId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt32NoTag(id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeBoolNoTag(unkbool);
+ }
+ }
+
+ @Override
+ protected int computeSerializedSize() {
+ int size = 0;
+ if ((bitField0_ & 0x00000001) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ size += 2;
+ }
+ return size;
+ }
+
+ @Override
+ @SuppressWarnings("fallthrough")
+ public UnlockedMusic 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 != 64) {
+ break;
+ }
+ }
+ case 64: {
+ // id
+ id = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // unkbool
+ unkbool = input.readBool();
+ bitField0_ |= 0x00000004;
+ tag = input.readTag();
+ if (tag != 0) {
+ break;
+ }
+ }
+ case 0: {
+ return this;
+ }
+ default: {
+ if (!input.skipField(tag)) {
+ return this;
+ }
+ tag = input.readTag();
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void writeTo(final JsonSink output) throws IOException {
+ output.beginObject();
+ if ((bitField0_ & 0x00000001) != 0) {
+ output.writeUInt32(FieldNames.groupId, groupId);
+ }
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt32(FieldNames.id, id);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeBool(FieldNames.unkbool, unkbool);
+ }
+ output.endObject();
+ }
+
+ @Override
+ public UnlockedMusic mergeFrom(final JsonSource input) throws IOException {
+ if (!input.beginObject()) {
+ 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;
+ }
+ case 3355: {
+ if (input.isAtField(FieldNames.id)) {
+ if (!input.trySkipNullValue()) {
+ id = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -285198628: {
+ if (input.isAtField(FieldNames.unkbool)) {
+ if (!input.trySkipNullValue()) {
+ unkbool = input.readBool();
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ default: {
+ input.skipUnknownField();
+ break;
+ }
+ }
+ }
+ input.endObject();
+ return this;
+ }
+
+ @Override
+ public UnlockedMusic clone() {
+ return new UnlockedMusic().copyFrom(this);
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return ((bitField0_) == 0);
+ }
+
+ public static UnlockedMusic parseFrom(final byte[] data) throws
+ InvalidProtocolBufferException {
+ return ProtoMessage.mergeFrom(new UnlockedMusic(), data).checkInitialized();
+ }
+
+ public static UnlockedMusic parseFrom(final ProtoSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized();
+ }
+
+ public static UnlockedMusic parseFrom(final JsonSource input) throws IOException {
+ return ProtoMessage.mergeFrom(new UnlockedMusic(), input).checkInitialized();
+ }
+
+ /**
+ * @return factory for creating UnlockedMusic messages
+ */
+ public static MessageFactory