diff --git a/src/generated/main/java/emu/grasscutter/net/proto/AchievementAllDataNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/AchievementAllDataNotifyOuterClass.java
new file mode 100644
index 000000000..2d463266f
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/AchievementAllDataNotifyOuterClass.java
@@ -0,0 +1,1172 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AchievementAllDataNotify.proto
+
+package emu.grasscutter.net.proto;
+
+public final class AchievementAllDataNotifyOuterClass {
+ private AchievementAllDataNotifyOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface AchievementAllDataNotifyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:AchievementAllDataNotify)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return A list containing the rewardTakenGoalIdList.
+ */
+ java.util.List getRewardTakenGoalIdListList();
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return The count of rewardTakenGoalIdList.
+ */
+ int getRewardTakenGoalIdListCount();
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @param index The index of the element to return.
+ * @return The rewardTakenGoalIdList at the given index.
+ */
+ int getRewardTakenGoalIdList(int index);
+
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ java.util.List
+ getAchievementListList();
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement getAchievementList(int index);
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ int getAchievementListCount();
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ java.util.List extends emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListOrBuilderList();
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder getAchievementListOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code AchievementAllDataNotify}
+ */
+ public static final class AchievementAllDataNotify extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:AchievementAllDataNotify)
+ AchievementAllDataNotifyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AchievementAllDataNotify.newBuilder() to construct.
+ private AchievementAllDataNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AchievementAllDataNotify() {
+ rewardTakenGoalIdList_ = emptyIntList();
+ achievementList_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AchievementAllDataNotify();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AchievementAllDataNotify(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ achievementList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ achievementList_.add(
+ input.readMessage(emu.grasscutter.net.proto.AchievementOuterClass.Achievement.parser(), extensionRegistry));
+ break;
+ }
+ case 64: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ rewardTakenGoalIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ rewardTakenGoalIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 66: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ rewardTakenGoalIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ rewardTakenGoalIdList_.addInt(input.readUInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ achievementList_ = java.util.Collections.unmodifiableList(achievementList_);
+ }
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ rewardTakenGoalIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.internal_static_AchievementAllDataNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.internal_static_AchievementAllDataNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.class, emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code AchievementAllDataNotify.BPPEPMJFOPO}
+ */
+ public enum BPPEPMJFOPO
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * NONE = 0;
+ */
+ NONE(0, 0),
+ /**
+ * PEPPOHPHJOJ = 2688;
+ */
+ PEPPOHPHJOJ(1, 2688),
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ NNBKOLMPOEA(3, 1),
+ UNRECOGNIZED(-1, -1),
+ ;
+
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final BPPEPMJFOPO DCDNILFDFLB = NONE;
+ /**
+ * NONE = 0;
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * PEPPOHPHJOJ = 2688;
+ */
+ public static final int PEPPOHPHJOJ_VALUE = 2688;
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final int DCDNILFDFLB_VALUE = 0;
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ public static final int NNBKOLMPOEA_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (index == -1) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static BPPEPMJFOPO valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static BPPEPMJFOPO forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 2688: return PEPPOHPHJOJ;
+ case 1: return NNBKOLMPOEA;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ BPPEPMJFOPO> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public BPPEPMJFOPO findValueByNumber(int number) {
+ return BPPEPMJFOPO.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (index == -1) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final BPPEPMJFOPO[] VALUES = getStaticValuesArray();
+ private static BPPEPMJFOPO[] getStaticValuesArray() {
+ return new BPPEPMJFOPO[] {
+ NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
+ };
+ }
+ public static BPPEPMJFOPO valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private BPPEPMJFOPO(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:AchievementAllDataNotify.BPPEPMJFOPO)
+ }
+
+ public static final int REWARDTAKENGOALIDLIST_FIELD_NUMBER = 8;
+ private com.google.protobuf.Internal.IntList rewardTakenGoalIdList_;
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return A list containing the rewardTakenGoalIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getRewardTakenGoalIdListList() {
+ return rewardTakenGoalIdList_;
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return The count of rewardTakenGoalIdList.
+ */
+ public int getRewardTakenGoalIdListCount() {
+ return rewardTakenGoalIdList_.size();
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @param index The index of the element to return.
+ * @return The rewardTakenGoalIdList at the given index.
+ */
+ public int getRewardTakenGoalIdList(int index) {
+ return rewardTakenGoalIdList_.getInt(index);
+ }
+ private int rewardTakenGoalIdListMemoizedSerializedSize = -1;
+
+ public static final int ACHIEVEMENTLIST_FIELD_NUMBER = 4;
+ private java.util.List achievementList_;
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public java.util.List getAchievementListList() {
+ return achievementList_;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListOrBuilderList() {
+ return achievementList_;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public int getAchievementListCount() {
+ return achievementList_.size();
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement getAchievementList(int index) {
+ return achievementList_.get(index);
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder getAchievementListOrBuilder(
+ int index) {
+ return achievementList_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ for (int i = 0; i < achievementList_.size(); i++) {
+ output.writeMessage(4, achievementList_.get(i));
+ }
+ if (getRewardTakenGoalIdListList().size() > 0) {
+ output.writeUInt32NoTag(66);
+ output.writeUInt32NoTag(rewardTakenGoalIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < rewardTakenGoalIdList_.size(); i++) {
+ output.writeUInt32NoTag(rewardTakenGoalIdList_.getInt(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < achievementList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, achievementList_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < rewardTakenGoalIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(rewardTakenGoalIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getRewardTakenGoalIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ rewardTakenGoalIdListMemoizedSerializedSize = dataSize;
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify other = (emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify) obj;
+
+ if (!getRewardTakenGoalIdListList()
+ .equals(other.getRewardTakenGoalIdListList())) return false;
+ if (!getAchievementListList()
+ .equals(other.getAchievementListList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getRewardTakenGoalIdListCount() > 0) {
+ hash = (37 * hash) + REWARDTAKENGOALIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getRewardTakenGoalIdListList().hashCode();
+ }
+ if (getAchievementListCount() > 0) {
+ hash = (37 * hash) + ACHIEVEMENTLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getAchievementListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code AchievementAllDataNotify}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:AchievementAllDataNotify)
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotifyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.internal_static_AchievementAllDataNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.internal_static_AchievementAllDataNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.class, emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getAchievementListFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ rewardTakenGoalIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (achievementListBuilder_ == null) {
+ achievementList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ achievementListBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.internal_static_AchievementAllDataNotify_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify build() {
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify buildPartial() {
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify result = new emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ rewardTakenGoalIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.rewardTakenGoalIdList_ = rewardTakenGoalIdList_;
+ if (achievementListBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ achievementList_ = java.util.Collections.unmodifiableList(achievementList_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.achievementList_ = achievementList_;
+ } else {
+ result.achievementList_ = achievementListBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify) {
+ return mergeFrom((emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify other) {
+ if (other == emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify.getDefaultInstance()) return this;
+ if (!other.rewardTakenGoalIdList_.isEmpty()) {
+ if (rewardTakenGoalIdList_.isEmpty()) {
+ rewardTakenGoalIdList_ = other.rewardTakenGoalIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureRewardTakenGoalIdListIsMutable();
+ rewardTakenGoalIdList_.addAll(other.rewardTakenGoalIdList_);
+ }
+ onChanged();
+ }
+ if (achievementListBuilder_ == null) {
+ if (!other.achievementList_.isEmpty()) {
+ if (achievementList_.isEmpty()) {
+ achievementList_ = other.achievementList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAchievementListIsMutable();
+ achievementList_.addAll(other.achievementList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.achievementList_.isEmpty()) {
+ if (achievementListBuilder_.isEmpty()) {
+ achievementListBuilder_.dispose();
+ achievementListBuilder_ = null;
+ achievementList_ = other.achievementList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ achievementListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getAchievementListFieldBuilder() : null;
+ } else {
+ achievementListBuilder_.addAllMessages(other.achievementList_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.IntList rewardTakenGoalIdList_ = emptyIntList();
+ private void ensureRewardTakenGoalIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ rewardTakenGoalIdList_ = mutableCopy(rewardTakenGoalIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return A list containing the rewardTakenGoalIdList.
+ */
+ public java.util.List
+ getRewardTakenGoalIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(rewardTakenGoalIdList_) : rewardTakenGoalIdList_;
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return The count of rewardTakenGoalIdList.
+ */
+ public int getRewardTakenGoalIdListCount() {
+ return rewardTakenGoalIdList_.size();
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @param index The index of the element to return.
+ * @return The rewardTakenGoalIdList at the given index.
+ */
+ public int getRewardTakenGoalIdList(int index) {
+ return rewardTakenGoalIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @param index The index to set the value at.
+ * @param value The rewardTakenGoalIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRewardTakenGoalIdList(
+ int index, int value) {
+ ensureRewardTakenGoalIdListIsMutable();
+ rewardTakenGoalIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @param value The rewardTakenGoalIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRewardTakenGoalIdList(int value) {
+ ensureRewardTakenGoalIdListIsMutable();
+ rewardTakenGoalIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @param values The rewardTakenGoalIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllRewardTakenGoalIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureRewardTakenGoalIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rewardTakenGoalIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 rewardTakenGoalIdList = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearRewardTakenGoalIdList() {
+ rewardTakenGoalIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List achievementList_ =
+ java.util.Collections.emptyList();
+ private void ensureAchievementListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ achievementList_ = new java.util.ArrayList(achievementList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder, emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder> achievementListBuilder_;
+
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public java.util.List getAchievementListList() {
+ if (achievementListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(achievementList_);
+ } else {
+ return achievementListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public int getAchievementListCount() {
+ if (achievementListBuilder_ == null) {
+ return achievementList_.size();
+ } else {
+ return achievementListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement getAchievementList(int index) {
+ if (achievementListBuilder_ == null) {
+ return achievementList_.get(index);
+ } else {
+ return achievementListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder setAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement value) {
+ if (achievementListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAchievementListIsMutable();
+ achievementList_.set(index, value);
+ onChanged();
+ } else {
+ achievementListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder setAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder builderForValue) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ achievementListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(emu.grasscutter.net.proto.AchievementOuterClass.Achievement value) {
+ if (achievementListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAchievementListIsMutable();
+ achievementList_.add(value);
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement value) {
+ if (achievementListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAchievementListIsMutable();
+ achievementList_.add(index, value);
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder builderForValue) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder builderForValue) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAllAchievementList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.AchievementOuterClass.Achievement> values) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, achievementList_);
+ onChanged();
+ } else {
+ achievementListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder clearAchievementList() {
+ if (achievementListBuilder_ == null) {
+ achievementList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ achievementListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder removeAchievementList(int index) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.remove(index);
+ onChanged();
+ } else {
+ achievementListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder getAchievementListBuilder(
+ int index) {
+ return getAchievementListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder getAchievementListOrBuilder(
+ int index) {
+ if (achievementListBuilder_ == null) {
+ return achievementList_.get(index); } else {
+ return achievementListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListOrBuilderList() {
+ if (achievementListBuilder_ != null) {
+ return achievementListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(achievementList_);
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder addAchievementListBuilder() {
+ return getAchievementListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance());
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder addAchievementListBuilder(
+ int index) {
+ return getAchievementListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance());
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public java.util.List
+ getAchievementListBuilderList() {
+ return getAchievementListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder, emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListFieldBuilder() {
+ if (achievementListBuilder_ == null) {
+ achievementListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder, emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>(
+ achievementList_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ achievementList_ = null;
+ }
+ return achievementListBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:AchievementAllDataNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:AchievementAllDataNotify)
+ private static final emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify();
+ }
+
+ public static emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AchievementAllDataNotify parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AchievementAllDataNotify(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementAllDataNotifyOuterClass.AchievementAllDataNotify getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_AchievementAllDataNotify_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_AchievementAllDataNotify_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036AchievementAllDataNotify.proto\032\021Achiev" +
+ "ement.proto\"\261\001\n\030AchievementAllDataNotify" +
+ "\022\035\n\025rewardTakenGoalIdList\030\010 \003(\r\022%\n\017achie" +
+ "vementList\030\004 \003(\0132\014.Achievement\"O\n\013BPPEPM" +
+ "JFOPO\022\010\n\004NONE\020\000\022\020\n\013PEPPOHPHJOJ\020\200\025\022\017\n\013DCD" +
+ "NILFDFLB\020\000\022\017\n\013NNBKOLMPOEA\020\001\032\002\020\001B\033\n\031emu.g" +
+ "rasscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.AchievementOuterClass.getDescriptor(),
+ });
+ internal_static_AchievementAllDataNotify_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_AchievementAllDataNotify_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AchievementAllDataNotify_descriptor,
+ new java.lang.String[] { "RewardTakenGoalIdList", "AchievementList", });
+ emu.grasscutter.net.proto.AchievementOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/AchievementOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/AchievementOuterClass.java
new file mode 100644
index 000000000..d83781301
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/AchievementOuterClass.java
@@ -0,0 +1,857 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Achievement.proto
+
+package emu.grasscutter.net.proto;
+
+public final class AchievementOuterClass {
+ private AchievementOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface AchievementOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Achievement)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint32 curProgress = 10;
+ * @return The curProgress.
+ */
+ int getCurProgress();
+
+ /**
+ * uint32 id = 13;
+ * @return The id.
+ */
+ int getId();
+
+ /**
+ * uint32 totalProgress = 14;
+ * @return The totalProgress.
+ */
+ int getTotalProgress();
+
+ /**
+ * .Status status = 5;
+ * @return The enum numeric value on the wire for status.
+ */
+ int getStatusValue();
+ /**
+ * .Status status = 5;
+ * @return The status.
+ */
+ emu.grasscutter.net.proto.StatusOuterClass.Status getStatus();
+
+ /**
+ * uint32 finishTimestamp = 6;
+ * @return The finishTimestamp.
+ */
+ int getFinishTimestamp();
+ }
+ /**
+ * Protobuf type {@code Achievement}
+ */
+ public static final class Achievement extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Achievement)
+ AchievementOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Achievement.newBuilder() to construct.
+ private Achievement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Achievement() {
+ status_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Achievement();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Achievement(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 40: {
+ int rawValue = input.readEnum();
+
+ status_ = rawValue;
+ break;
+ }
+ case 48: {
+
+ finishTimestamp_ = input.readUInt32();
+ break;
+ }
+ case 80: {
+
+ curProgress_ = input.readUInt32();
+ break;
+ }
+ case 104: {
+
+ id_ = input.readUInt32();
+ break;
+ }
+ case 112: {
+
+ totalProgress_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementOuterClass.internal_static_Achievement_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.AchievementOuterClass.internal_static_Achievement_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement.class, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder.class);
+ }
+
+ public static final int CURPROGRESS_FIELD_NUMBER = 10;
+ private int curProgress_;
+ /**
+ * uint32 curProgress = 10;
+ * @return The curProgress.
+ */
+ @java.lang.Override
+ public int getCurProgress() {
+ return curProgress_;
+ }
+
+ public static final int ID_FIELD_NUMBER = 13;
+ private int id_;
+ /**
+ * uint32 id = 13;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+
+ public static final int TOTALPROGRESS_FIELD_NUMBER = 14;
+ private int totalProgress_;
+ /**
+ * uint32 totalProgress = 14;
+ * @return The totalProgress.
+ */
+ @java.lang.Override
+ public int getTotalProgress() {
+ return totalProgress_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 5;
+ private int status_;
+ /**
+ * .Status status = 5;
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * .Status status = 5;
+ * @return The status.
+ */
+ @java.lang.Override public emu.grasscutter.net.proto.StatusOuterClass.Status getStatus() {
+ @SuppressWarnings("deprecation")
+ emu.grasscutter.net.proto.StatusOuterClass.Status result = emu.grasscutter.net.proto.StatusOuterClass.Status.valueOf(status_);
+ return result == null ? emu.grasscutter.net.proto.StatusOuterClass.Status.UNRECOGNIZED : result;
+ }
+
+ public static final int FINISHTIMESTAMP_FIELD_NUMBER = 6;
+ private int finishTimestamp_;
+ /**
+ * uint32 finishTimestamp = 6;
+ * @return The finishTimestamp.
+ */
+ @java.lang.Override
+ public int getFinishTimestamp() {
+ return finishTimestamp_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (status_ != emu.grasscutter.net.proto.StatusOuterClass.Status.STATUS_INVALID.getNumber()) {
+ output.writeEnum(5, status_);
+ }
+ if (finishTimestamp_ != 0) {
+ output.writeUInt32(6, finishTimestamp_);
+ }
+ if (curProgress_ != 0) {
+ output.writeUInt32(10, curProgress_);
+ }
+ if (id_ != 0) {
+ output.writeUInt32(13, id_);
+ }
+ if (totalProgress_ != 0) {
+ output.writeUInt32(14, totalProgress_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != emu.grasscutter.net.proto.StatusOuterClass.Status.STATUS_INVALID.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(5, status_);
+ }
+ if (finishTimestamp_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(6, finishTimestamp_);
+ }
+ if (curProgress_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(10, curProgress_);
+ }
+ if (id_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(13, id_);
+ }
+ if (totalProgress_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(14, totalProgress_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof emu.grasscutter.net.proto.AchievementOuterClass.Achievement)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement other = (emu.grasscutter.net.proto.AchievementOuterClass.Achievement) obj;
+
+ if (getCurProgress()
+ != other.getCurProgress()) return false;
+ if (getId()
+ != other.getId()) return false;
+ if (getTotalProgress()
+ != other.getTotalProgress()) return false;
+ if (status_ != other.status_) return false;
+ if (getFinishTimestamp()
+ != other.getFinishTimestamp()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CURPROGRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getCurProgress();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId();
+ hash = (37 * hash) + TOTALPROGRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalProgress();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ hash = (37 * hash) + FINISHTIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + getFinishTimestamp();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(emu.grasscutter.net.proto.AchievementOuterClass.Achievement prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Achievement}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:Achievement)
+ emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementOuterClass.internal_static_Achievement_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.AchievementOuterClass.internal_static_Achievement_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement.class, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.AchievementOuterClass.Achievement.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ curProgress_ = 0;
+
+ id_ = 0;
+
+ totalProgress_ = 0;
+
+ status_ = 0;
+
+ finishTimestamp_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.AchievementOuterClass.internal_static_Achievement_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement build() {
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement buildPartial() {
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement result = new emu.grasscutter.net.proto.AchievementOuterClass.Achievement(this);
+ result.curProgress_ = curProgress_;
+ result.id_ = id_;
+ result.totalProgress_ = totalProgress_;
+ result.status_ = status_;
+ result.finishTimestamp_ = finishTimestamp_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof emu.grasscutter.net.proto.AchievementOuterClass.Achievement) {
+ return mergeFrom((emu.grasscutter.net.proto.AchievementOuterClass.Achievement)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.AchievementOuterClass.Achievement other) {
+ if (other == emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance()) return this;
+ if (other.getCurProgress() != 0) {
+ setCurProgress(other.getCurProgress());
+ }
+ if (other.getId() != 0) {
+ setId(other.getId());
+ }
+ if (other.getTotalProgress() != 0) {
+ setTotalProgress(other.getTotalProgress());
+ }
+ if (other.status_ != 0) {
+ setStatusValue(other.getStatusValue());
+ }
+ if (other.getFinishTimestamp() != 0) {
+ setFinishTimestamp(other.getFinishTimestamp());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.AchievementOuterClass.Achievement) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int curProgress_ ;
+ /**
+ * uint32 curProgress = 10;
+ * @return The curProgress.
+ */
+ @java.lang.Override
+ public int getCurProgress() {
+ return curProgress_;
+ }
+ /**
+ * uint32 curProgress = 10;
+ * @param value The curProgress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurProgress(int value) {
+
+ curProgress_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 curProgress = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearCurProgress() {
+
+ curProgress_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int id_ ;
+ /**
+ * uint32 id = 13;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+ /**
+ * uint32 id = 13;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(int value) {
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 id = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int totalProgress_ ;
+ /**
+ * uint32 totalProgress = 14;
+ * @return The totalProgress.
+ */
+ @java.lang.Override
+ public int getTotalProgress() {
+ return totalProgress_;
+ }
+ /**
+ * uint32 totalProgress = 14;
+ * @param value The totalProgress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalProgress(int value) {
+
+ totalProgress_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 totalProgress = 14;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalProgress() {
+
+ totalProgress_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int status_ = 0;
+ /**
+ * .Status status = 5;
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * .Status status = 5;
+ * @param value The enum numeric value on the wire for status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatusValue(int value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .Status status = 5;
+ * @return The status.
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.StatusOuterClass.Status getStatus() {
+ @SuppressWarnings("deprecation")
+ emu.grasscutter.net.proto.StatusOuterClass.Status result = emu.grasscutter.net.proto.StatusOuterClass.Status.valueOf(status_);
+ return result == null ? emu.grasscutter.net.proto.StatusOuterClass.Status.UNRECOGNIZED : result;
+ }
+ /**
+ * .Status status = 5;
+ * @param value The status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatus(emu.grasscutter.net.proto.StatusOuterClass.Status value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ status_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .Status status = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearStatus() {
+
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int finishTimestamp_ ;
+ /**
+ * uint32 finishTimestamp = 6;
+ * @return The finishTimestamp.
+ */
+ @java.lang.Override
+ public int getFinishTimestamp() {
+ return finishTimestamp_;
+ }
+ /**
+ * uint32 finishTimestamp = 6;
+ * @param value The finishTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFinishTimestamp(int value) {
+
+ finishTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 finishTimestamp = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearFinishTimestamp() {
+
+ finishTimestamp_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Achievement)
+ }
+
+ // @@protoc_insertion_point(class_scope:Achievement)
+ private static final emu.grasscutter.net.proto.AchievementOuterClass.Achievement DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AchievementOuterClass.Achievement();
+ }
+
+ public static emu.grasscutter.net.proto.AchievementOuterClass.Achievement getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Achievement parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Achievement(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Achievement_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Achievement_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\021Achievement.proto\032\014Status.proto\"w\n\013Ach" +
+ "ievement\022\023\n\013curProgress\030\n \001(\r\022\n\n\002id\030\r \001(" +
+ "\r\022\025\n\rtotalProgress\030\016 \001(\r\022\027\n\006status\030\005 \001(\016" +
+ "2\007.Status\022\027\n\017finishTimestamp\030\006 \001(\rB\033\n\031em" +
+ "u.grasscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.StatusOuterClass.getDescriptor(),
+ });
+ internal_static_Achievement_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Achievement_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Achievement_descriptor,
+ new java.lang.String[] { "CurProgress", "Id", "TotalProgress", "Status", "FinishTimestamp", });
+ emu.grasscutter.net.proto.StatusOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/AchievementUpdateNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/AchievementUpdateNotifyOuterClass.java
new file mode 100644
index 000000000..ee6fe2df4
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/AchievementUpdateNotifyOuterClass.java
@@ -0,0 +1,977 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AchievementUpdateNotify.proto
+
+package emu.grasscutter.net.proto;
+
+public final class AchievementUpdateNotifyOuterClass {
+ private AchievementUpdateNotifyOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface AchievementUpdateNotifyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:AchievementUpdateNotify)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ java.util.List
+ getAchievementListList();
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement getAchievementList(int index);
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ int getAchievementListCount();
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ java.util.List extends emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListOrBuilderList();
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder getAchievementListOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code AchievementUpdateNotify}
+ */
+ public static final class AchievementUpdateNotify extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:AchievementUpdateNotify)
+ AchievementUpdateNotifyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AchievementUpdateNotify.newBuilder() to construct.
+ private AchievementUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AchievementUpdateNotify() {
+ achievementList_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AchievementUpdateNotify();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AchievementUpdateNotify(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ achievementList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ achievementList_.add(
+ input.readMessage(emu.grasscutter.net.proto.AchievementOuterClass.Achievement.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ achievementList_ = java.util.Collections.unmodifiableList(achievementList_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.internal_static_AchievementUpdateNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.internal_static_AchievementUpdateNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.class, emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code AchievementUpdateNotify.LKDGLEKOFGN}
+ */
+ public enum LKDGLEKOFGN
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * NONE = 0;
+ */
+ NONE(0, 0),
+ /**
+ * PEPPOHPHJOJ = 2695;
+ */
+ PEPPOHPHJOJ(1, 2695),
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ NNBKOLMPOEA(3, 1),
+ UNRECOGNIZED(-1, -1),
+ ;
+
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final LKDGLEKOFGN DCDNILFDFLB = NONE;
+ /**
+ * NONE = 0;
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * PEPPOHPHJOJ = 2695;
+ */
+ public static final int PEPPOHPHJOJ_VALUE = 2695;
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final int DCDNILFDFLB_VALUE = 0;
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ public static final int NNBKOLMPOEA_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (index == -1) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static LKDGLEKOFGN valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static LKDGLEKOFGN forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 2695: return PEPPOHPHJOJ;
+ case 1: return NNBKOLMPOEA;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ LKDGLEKOFGN> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public LKDGLEKOFGN findValueByNumber(int number) {
+ return LKDGLEKOFGN.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (index == -1) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final LKDGLEKOFGN[] VALUES = getStaticValuesArray();
+ private static LKDGLEKOFGN[] getStaticValuesArray() {
+ return new LKDGLEKOFGN[] {
+ NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
+ };
+ }
+ public static LKDGLEKOFGN valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private LKDGLEKOFGN(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:AchievementUpdateNotify.LKDGLEKOFGN)
+ }
+
+ public static final int ACHIEVEMENTLIST_FIELD_NUMBER = 4;
+ private java.util.List achievementList_;
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public java.util.List getAchievementListList() {
+ return achievementList_;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListOrBuilderList() {
+ return achievementList_;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public int getAchievementListCount() {
+ return achievementList_.size();
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement getAchievementList(int index) {
+ return achievementList_.get(index);
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder getAchievementListOrBuilder(
+ int index) {
+ return achievementList_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < achievementList_.size(); i++) {
+ output.writeMessage(4, achievementList_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < achievementList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, achievementList_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify other = (emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify) obj;
+
+ if (!getAchievementListList()
+ .equals(other.getAchievementListList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getAchievementListCount() > 0) {
+ hash = (37 * hash) + ACHIEVEMENTLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getAchievementListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code AchievementUpdateNotify}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:AchievementUpdateNotify)
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotifyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.internal_static_AchievementUpdateNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.internal_static_AchievementUpdateNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.class, emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getAchievementListFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (achievementListBuilder_ == null) {
+ achievementList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ achievementListBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.internal_static_AchievementUpdateNotify_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify build() {
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify buildPartial() {
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify result = new emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify(this);
+ int from_bitField0_ = bitField0_;
+ if (achievementListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ achievementList_ = java.util.Collections.unmodifiableList(achievementList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.achievementList_ = achievementList_;
+ } else {
+ result.achievementList_ = achievementListBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify) {
+ return mergeFrom((emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify other) {
+ if (other == emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify.getDefaultInstance()) return this;
+ if (achievementListBuilder_ == null) {
+ if (!other.achievementList_.isEmpty()) {
+ if (achievementList_.isEmpty()) {
+ achievementList_ = other.achievementList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureAchievementListIsMutable();
+ achievementList_.addAll(other.achievementList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.achievementList_.isEmpty()) {
+ if (achievementListBuilder_.isEmpty()) {
+ achievementListBuilder_.dispose();
+ achievementListBuilder_ = null;
+ achievementList_ = other.achievementList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ achievementListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getAchievementListFieldBuilder() : null;
+ } else {
+ achievementListBuilder_.addAllMessages(other.achievementList_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List achievementList_ =
+ java.util.Collections.emptyList();
+ private void ensureAchievementListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ achievementList_ = new java.util.ArrayList(achievementList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder, emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder> achievementListBuilder_;
+
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public java.util.List getAchievementListList() {
+ if (achievementListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(achievementList_);
+ } else {
+ return achievementListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public int getAchievementListCount() {
+ if (achievementListBuilder_ == null) {
+ return achievementList_.size();
+ } else {
+ return achievementListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement getAchievementList(int index) {
+ if (achievementListBuilder_ == null) {
+ return achievementList_.get(index);
+ } else {
+ return achievementListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder setAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement value) {
+ if (achievementListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAchievementListIsMutable();
+ achievementList_.set(index, value);
+ onChanged();
+ } else {
+ achievementListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder setAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder builderForValue) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ achievementListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(emu.grasscutter.net.proto.AchievementOuterClass.Achievement value) {
+ if (achievementListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAchievementListIsMutable();
+ achievementList_.add(value);
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement value) {
+ if (achievementListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAchievementListIsMutable();
+ achievementList_.add(index, value);
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder builderForValue) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAchievementList(
+ int index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder builderForValue) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ achievementListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder addAllAchievementList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.AchievementOuterClass.Achievement> values) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, achievementList_);
+ onChanged();
+ } else {
+ achievementListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder clearAchievementList() {
+ if (achievementListBuilder_ == null) {
+ achievementList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ achievementListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public Builder removeAchievementList(int index) {
+ if (achievementListBuilder_ == null) {
+ ensureAchievementListIsMutable();
+ achievementList_.remove(index);
+ onChanged();
+ } else {
+ achievementListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder getAchievementListBuilder(
+ int index) {
+ return getAchievementListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder getAchievementListOrBuilder(
+ int index) {
+ if (achievementListBuilder_ == null) {
+ return achievementList_.get(index); } else {
+ return achievementListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListOrBuilderList() {
+ if (achievementListBuilder_ != null) {
+ return achievementListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(achievementList_);
+ }
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder addAchievementListBuilder() {
+ return getAchievementListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance());
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder addAchievementListBuilder(
+ int index) {
+ return getAchievementListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance());
+ }
+ /**
+ * repeated .Achievement achievementList = 4;
+ */
+ public java.util.List
+ getAchievementListBuilderList() {
+ return getAchievementListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder, emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>
+ getAchievementListFieldBuilder() {
+ if (achievementListBuilder_ == null) {
+ achievementListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.AchievementOuterClass.Achievement, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder, emu.grasscutter.net.proto.AchievementOuterClass.AchievementOrBuilder>(
+ achievementList_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ achievementList_ = null;
+ }
+ return achievementListBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:AchievementUpdateNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:AchievementUpdateNotify)
+ private static final emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify();
+ }
+
+ public static emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AchievementUpdateNotify parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AchievementUpdateNotify(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.AchievementUpdateNotifyOuterClass.AchievementUpdateNotify getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_AchievementUpdateNotify_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_AchievementUpdateNotify_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\035AchievementUpdateNotify.proto\032\021Achieve" +
+ "ment.proto\"\221\001\n\027AchievementUpdateNotify\022%" +
+ "\n\017achievementList\030\004 \003(\0132\014.Achievement\"O\n" +
+ "\013LKDGLEKOFGN\022\010\n\004NONE\020\000\022\020\n\013PEPPOHPHJOJ\020\207\025" +
+ "\022\017\n\013DCDNILFDFLB\020\000\022\017\n\013NNBKOLMPOEA\020\001\032\002\020\001B\033" +
+ "\n\031emu.grasscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.AchievementOuterClass.getDescriptor(),
+ });
+ internal_static_AchievementUpdateNotify_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_AchievementUpdateNotify_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AchievementUpdateNotify_descriptor,
+ new java.lang.String[] { "AchievementList", });
+ emu.grasscutter.net.proto.AchievementOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/StatusOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/StatusOuterClass.java
new file mode 100644
index 000000000..5eea5ca03
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/StatusOuterClass.java
@@ -0,0 +1,164 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Status.proto
+
+package emu.grasscutter.net.proto;
+
+public final class StatusOuterClass {
+ private StatusOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ /**
+ * Protobuf enum {@code Status}
+ */
+ public enum Status
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * STATUS_INVALID = 0;
+ */
+ STATUS_INVALID(0),
+ /**
+ * STATUS_UNFINISHED = 1;
+ */
+ STATUS_UNFINISHED(1),
+ /**
+ * STATUS_FINISHED = 2;
+ */
+ STATUS_FINISHED(2),
+ /**
+ * STATUS_REWARD_TAKEN = 3;
+ */
+ STATUS_REWARD_TAKEN(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * STATUS_INVALID = 0;
+ */
+ public static final int STATUS_INVALID_VALUE = 0;
+ /**
+ * STATUS_UNFINISHED = 1;
+ */
+ public static final int STATUS_UNFINISHED_VALUE = 1;
+ /**
+ * STATUS_FINISHED = 2;
+ */
+ public static final int STATUS_FINISHED_VALUE = 2;
+ /**
+ * STATUS_REWARD_TAKEN = 3;
+ */
+ public static final int STATUS_REWARD_TAKEN_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Status valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Status forNumber(int value) {
+ switch (value) {
+ case 0: return STATUS_INVALID;
+ case 1: return STATUS_UNFINISHED;
+ case 2: return STATUS_FINISHED;
+ case 3: return STATUS_REWARD_TAKEN;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Status> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Status findValueByNumber(int number) {
+ return Status.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.StatusOuterClass.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Status[] VALUES = values();
+
+ public static Status valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Status(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:Status)
+ }
+
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\014Status.proto*a\n\006Status\022\022\n\016STATUS_INVAL" +
+ "ID\020\000\022\025\n\021STATUS_UNFINISHED\020\001\022\023\n\017STATUS_FI" +
+ "NISHED\020\002\022\027\n\023STATUS_REWARD_TAKEN\020\003B\033\n\031emu" +
+ ".grasscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementGoalRewardReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementGoalRewardReqOuterClass.java
new file mode 100644
index 000000000..ea8925ed1
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementGoalRewardReqOuterClass.java
@@ -0,0 +1,805 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: TakeAchievementGoalRewardReq.proto
+
+package emu.grasscutter.net.proto;
+
+public final class TakeAchievementGoalRewardReqOuterClass {
+ private TakeAchievementGoalRewardReqOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface TakeAchievementGoalRewardReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:TakeAchievementGoalRewardReq)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint32 idList = 7;
+ * @return A list containing the idList.
+ */
+ java.util.List getIdListList();
+ /**
+ * repeated uint32 idList = 7;
+ * @return The count of idList.
+ */
+ int getIdListCount();
+ /**
+ * repeated uint32 idList = 7;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ int getIdList(int index);
+ }
+ /**
+ * Protobuf type {@code TakeAchievementGoalRewardReq}
+ */
+ public static final class TakeAchievementGoalRewardReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:TakeAchievementGoalRewardReq)
+ TakeAchievementGoalRewardReqOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TakeAchievementGoalRewardReq.newBuilder() to construct.
+ private TakeAchievementGoalRewardReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TakeAchievementGoalRewardReq() {
+ idList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TakeAchievementGoalRewardReq();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TakeAchievementGoalRewardReq(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 56: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ idList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ idList_.addInt(input.readUInt32());
+ break;
+ }
+ case 58: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ idList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ idList_.addInt(input.readUInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ idList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.internal_static_TakeAchievementGoalRewardReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.internal_static_TakeAchievementGoalRewardReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.class, emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code TakeAchievementGoalRewardReq.DOKFANBCKNJ}
+ */
+ public enum DOKFANBCKNJ
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * NONE = 0;
+ */
+ NONE(0, 0),
+ /**
+ * PEPPOHPHJOJ = 2669;
+ */
+ PEPPOHPHJOJ(1, 2669),
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ NNBKOLMPOEA(3, 1),
+ UNRECOGNIZED(-1, -1),
+ ;
+
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final DOKFANBCKNJ DCDNILFDFLB = NONE;
+ /**
+ * EAJIABGAOCI = 1;
+ */
+ public static final DOKFANBCKNJ EAJIABGAOCI = NNBKOLMPOEA;
+ /**
+ * NONE = 0;
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * PEPPOHPHJOJ = 2669;
+ */
+ public static final int PEPPOHPHJOJ_VALUE = 2669;
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final int DCDNILFDFLB_VALUE = 0;
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ public static final int NNBKOLMPOEA_VALUE = 1;
+ /**
+ * EAJIABGAOCI = 1;
+ */
+ public static final int EAJIABGAOCI_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (index == -1) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DOKFANBCKNJ valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static DOKFANBCKNJ forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 2669: return PEPPOHPHJOJ;
+ case 1: return NNBKOLMPOEA;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ DOKFANBCKNJ> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public DOKFANBCKNJ findValueByNumber(int number) {
+ return DOKFANBCKNJ.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (index == -1) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final DOKFANBCKNJ[] VALUES = getStaticValuesArray();
+ private static DOKFANBCKNJ[] getStaticValuesArray() {
+ return new DOKFANBCKNJ[] {
+ NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA, EAJIABGAOCI,
+ };
+ }
+ public static DOKFANBCKNJ valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private DOKFANBCKNJ(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:TakeAchievementGoalRewardReq.DOKFANBCKNJ)
+ }
+
+ public static final int IDLIST_FIELD_NUMBER = 7;
+ private com.google.protobuf.Internal.IntList idList_;
+ /**
+ * repeated uint32 idList = 7;
+ * @return A list containing the idList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getIdListList() {
+ return idList_;
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @return The count of idList.
+ */
+ public int getIdListCount() {
+ return idList_.size();
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ public int getIdList(int index) {
+ return idList_.getInt(index);
+ }
+ private int idListMemoizedSerializedSize = -1;
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (getIdListList().size() > 0) {
+ output.writeUInt32NoTag(58);
+ output.writeUInt32NoTag(idListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < idList_.size(); i++) {
+ output.writeUInt32NoTag(idList_.getInt(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < idList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(idList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ idListMemoizedSerializedSize = dataSize;
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq other = (emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq) obj;
+
+ if (!getIdListList()
+ .equals(other.getIdListList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIdListCount() > 0) {
+ hash = (37 * hash) + IDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code TakeAchievementGoalRewardReq}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:TakeAchievementGoalRewardReq)
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReqOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.internal_static_TakeAchievementGoalRewardReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.internal_static_TakeAchievementGoalRewardReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.class, emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ idList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.internal_static_TakeAchievementGoalRewardReq_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq build() {
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq buildPartial() {
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq result = new emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ idList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.idList_ = idList_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq) {
+ return mergeFrom((emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq other) {
+ if (other == emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq.getDefaultInstance()) return this;
+ if (!other.idList_.isEmpty()) {
+ if (idList_.isEmpty()) {
+ idList_ = other.idList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureIdListIsMutable();
+ idList_.addAll(other.idList_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.IntList idList_ = emptyIntList();
+ private void ensureIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ idList_ = mutableCopy(idList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @return A list containing the idList.
+ */
+ public java.util.List
+ getIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(idList_) : idList_;
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @return The count of idList.
+ */
+ public int getIdListCount() {
+ return idList_.size();
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ public int getIdList(int index) {
+ return idList_.getInt(index);
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @param index The index to set the value at.
+ * @param value The idList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdList(
+ int index, int value) {
+ ensureIdListIsMutable();
+ idList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @param value The idList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIdList(int value) {
+ ensureIdListIsMutable();
+ idList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @param values The idList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, idList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearIdList() {
+ idList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:TakeAchievementGoalRewardReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:TakeAchievementGoalRewardReq)
+ private static final emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq();
+ }
+
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TakeAchievementGoalRewardReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TakeAchievementGoalRewardReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardReqOuterClass.TakeAchievementGoalRewardReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_TakeAchievementGoalRewardReq_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_TakeAchievementGoalRewardReq_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\"TakeAchievementGoalRewardReq.proto\"\220\001\n" +
+ "\034TakeAchievementGoalRewardReq\022\016\n\006idList\030" +
+ "\007 \003(\r\"`\n\013DOKFANBCKNJ\022\010\n\004NONE\020\000\022\020\n\013PEPPOH" +
+ "PHJOJ\020\355\024\022\017\n\013DCDNILFDFLB\020\000\022\017\n\013NNBKOLMPOEA" +
+ "\020\001\022\017\n\013EAJIABGAOCI\020\001\032\002\020\001B\033\n\031emu.grasscutt" +
+ "er.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_TakeAchievementGoalRewardReq_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_TakeAchievementGoalRewardReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_TakeAchievementGoalRewardReq_descriptor,
+ new java.lang.String[] { "IdList", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementGoalRewardRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementGoalRewardRspOuterClass.java
new file mode 100644
index 000000000..801deeee8
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementGoalRewardRspOuterClass.java
@@ -0,0 +1,1242 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: TakeAchievementGoalRewardRsp.proto
+
+package emu.grasscutter.net.proto;
+
+public final class TakeAchievementGoalRewardRspOuterClass {
+ private TakeAchievementGoalRewardRspOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface TakeAchievementGoalRewardRspOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:TakeAchievementGoalRewardRsp)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 retcode = 14;
+ * @return The retcode.
+ */
+ int getRetcode();
+
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ java.util.List
+ getItemListList();
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index);
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ int getItemListCount();
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ java.util.List extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListOrBuilderList();
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
+ int index);
+
+ /**
+ * repeated uint32 idList = 15;
+ * @return A list containing the idList.
+ */
+ java.util.List getIdListList();
+ /**
+ * repeated uint32 idList = 15;
+ * @return The count of idList.
+ */
+ int getIdListCount();
+ /**
+ * repeated uint32 idList = 15;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ int getIdList(int index);
+ }
+ /**
+ * Protobuf type {@code TakeAchievementGoalRewardRsp}
+ */
+ public static final class TakeAchievementGoalRewardRsp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:TakeAchievementGoalRewardRsp)
+ TakeAchievementGoalRewardRspOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TakeAchievementGoalRewardRsp.newBuilder() to construct.
+ private TakeAchievementGoalRewardRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TakeAchievementGoalRewardRsp() {
+ itemList_ = java.util.Collections.emptyList();
+ idList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TakeAchievementGoalRewardRsp();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TakeAchievementGoalRewardRsp(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 50: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ itemList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ itemList_.add(
+ input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
+ break;
+ }
+ case 112: {
+
+ retcode_ = input.readInt32();
+ break;
+ }
+ case 120: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ idList_ = newIntList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ idList_.addInt(input.readUInt32());
+ break;
+ }
+ case 122: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
+ idList_ = newIntList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ idList_.addInt(input.readUInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ itemList_ = java.util.Collections.unmodifiableList(itemList_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ idList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.internal_static_TakeAchievementGoalRewardRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.internal_static_TakeAchievementGoalRewardRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.class, emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code TakeAchievementGoalRewardRsp.KGKAJONLMDD}
+ */
+ public enum KGKAJONLMDD
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * NONE = 0;
+ */
+ NONE(0, 0),
+ /**
+ * PEPPOHPHJOJ = 2693;
+ */
+ PEPPOHPHJOJ(1, 2693),
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ NNBKOLMPOEA(3, 1),
+ UNRECOGNIZED(-1, -1),
+ ;
+
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final KGKAJONLMDD DCDNILFDFLB = NONE;
+ /**
+ * NONE = 0;
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * PEPPOHPHJOJ = 2693;
+ */
+ public static final int PEPPOHPHJOJ_VALUE = 2693;
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final int DCDNILFDFLB_VALUE = 0;
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ public static final int NNBKOLMPOEA_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (index == -1) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static KGKAJONLMDD valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static KGKAJONLMDD forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 2693: return PEPPOHPHJOJ;
+ case 1: return NNBKOLMPOEA;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ KGKAJONLMDD> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public KGKAJONLMDD findValueByNumber(int number) {
+ return KGKAJONLMDD.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (index == -1) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final KGKAJONLMDD[] VALUES = getStaticValuesArray();
+ private static KGKAJONLMDD[] getStaticValuesArray() {
+ return new KGKAJONLMDD[] {
+ NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
+ };
+ }
+ public static KGKAJONLMDD valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private KGKAJONLMDD(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:TakeAchievementGoalRewardRsp.KGKAJONLMDD)
+ }
+
+ public static final int RETCODE_FIELD_NUMBER = 14;
+ private int retcode_;
+ /**
+ * int32 retcode = 14;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+
+ public static final int ITEMLIST_FIELD_NUMBER = 6;
+ private java.util.List itemList_;
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ @java.lang.Override
+ public java.util.List getItemListList() {
+ return itemList_;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListOrBuilderList() {
+ return itemList_;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ @java.lang.Override
+ public int getItemListCount() {
+ return itemList_.size();
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) {
+ return itemList_.get(index);
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
+ int index) {
+ return itemList_.get(index);
+ }
+
+ public static final int IDLIST_FIELD_NUMBER = 15;
+ private com.google.protobuf.Internal.IntList idList_;
+ /**
+ * repeated uint32 idList = 15;
+ * @return A list containing the idList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getIdListList() {
+ return idList_;
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @return The count of idList.
+ */
+ public int getIdListCount() {
+ return idList_.size();
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ public int getIdList(int index) {
+ return idList_.getInt(index);
+ }
+ private int idListMemoizedSerializedSize = -1;
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ for (int i = 0; i < itemList_.size(); i++) {
+ output.writeMessage(6, itemList_.get(i));
+ }
+ if (retcode_ != 0) {
+ output.writeInt32(14, retcode_);
+ }
+ if (getIdListList().size() > 0) {
+ output.writeUInt32NoTag(122);
+ output.writeUInt32NoTag(idListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < idList_.size(); i++) {
+ output.writeUInt32NoTag(idList_.getInt(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < itemList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, itemList_.get(i));
+ }
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(14, retcode_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < idList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(idList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ idListMemoizedSerializedSize = dataSize;
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp other = (emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp) obj;
+
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (!getItemListList()
+ .equals(other.getItemListList())) return false;
+ if (!getIdListList()
+ .equals(other.getIdListList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RETCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getRetcode();
+ if (getItemListCount() > 0) {
+ hash = (37 * hash) + ITEMLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getItemListList().hashCode();
+ }
+ if (getIdListCount() > 0) {
+ hash = (37 * hash) + IDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code TakeAchievementGoalRewardRsp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:TakeAchievementGoalRewardRsp)
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRspOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.internal_static_TakeAchievementGoalRewardRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.internal_static_TakeAchievementGoalRewardRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.class, emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getItemListFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ retcode_ = 0;
+
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ itemListBuilder_.clear();
+ }
+ idList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.internal_static_TakeAchievementGoalRewardRsp_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp build() {
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp buildPartial() {
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp result = new emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp(this);
+ int from_bitField0_ = bitField0_;
+ result.retcode_ = retcode_;
+ if (itemListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ itemList_ = java.util.Collections.unmodifiableList(itemList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.itemList_ = itemList_;
+ } else {
+ result.itemList_ = itemListBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ idList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.idList_ = idList_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp) {
+ return mergeFrom((emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp other) {
+ if (other == emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp.getDefaultInstance()) return this;
+ if (other.getRetcode() != 0) {
+ setRetcode(other.getRetcode());
+ }
+ if (itemListBuilder_ == null) {
+ if (!other.itemList_.isEmpty()) {
+ if (itemList_.isEmpty()) {
+ itemList_ = other.itemList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureItemListIsMutable();
+ itemList_.addAll(other.itemList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.itemList_.isEmpty()) {
+ if (itemListBuilder_.isEmpty()) {
+ itemListBuilder_.dispose();
+ itemListBuilder_ = null;
+ itemList_ = other.itemList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ itemListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getItemListFieldBuilder() : null;
+ } else {
+ itemListBuilder_.addAllMessages(other.itemList_);
+ }
+ }
+ }
+ if (!other.idList_.isEmpty()) {
+ if (idList_.isEmpty()) {
+ idList_ = other.idList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureIdListIsMutable();
+ idList_.addAll(other.idList_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 14;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 14;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 14;
+ * @return This builder for chaining.
+ */
+ public Builder clearRetcode() {
+
+ retcode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List itemList_ =
+ java.util.Collections.emptyList();
+ private void ensureItemListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ itemList_ = new java.util.ArrayList(itemList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemListBuilder_;
+
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public java.util.List getItemListList() {
+ if (itemListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(itemList_);
+ } else {
+ return itemListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public int getItemListCount() {
+ if (itemListBuilder_ == null) {
+ return itemList_.size();
+ } else {
+ return itemListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index);
+ } else {
+ return itemListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.set(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder addItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder addItemList(
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder addAllItemList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, itemList_);
+ onChanged();
+ } else {
+ itemListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder clearItemList() {
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ itemListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public Builder removeItemList(int index) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.remove(index);
+ onChanged();
+ } else {
+ itemListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
+ int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index); } else {
+ return itemListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListOrBuilderList() {
+ if (itemListBuilder_ != null) {
+ return itemListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(itemList_);
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder() {
+ return getItemListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
+ }
+ /**
+ * repeated .ItemParam itemList = 6;
+ */
+ public java.util.List
+ getItemListBuilderList() {
+ return getItemListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListFieldBuilder() {
+ if (itemListBuilder_ == null) {
+ itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
+ itemList_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ itemList_ = null;
+ }
+ return itemListBuilder_;
+ }
+
+ private com.google.protobuf.Internal.IntList idList_ = emptyIntList();
+ private void ensureIdListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ idList_ = mutableCopy(idList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @return A list containing the idList.
+ */
+ public java.util.List
+ getIdListList() {
+ return ((bitField0_ & 0x00000002) != 0) ?
+ java.util.Collections.unmodifiableList(idList_) : idList_;
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @return The count of idList.
+ */
+ public int getIdListCount() {
+ return idList_.size();
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ public int getIdList(int index) {
+ return idList_.getInt(index);
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @param index The index to set the value at.
+ * @param value The idList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdList(
+ int index, int value) {
+ ensureIdListIsMutable();
+ idList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @param value The idList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIdList(int value) {
+ ensureIdListIsMutable();
+ idList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @param values The idList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, idList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 15;
+ * @return This builder for chaining.
+ */
+ public Builder clearIdList() {
+ idList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:TakeAchievementGoalRewardRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:TakeAchievementGoalRewardRsp)
+ private static final emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp();
+ }
+
+ public static emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TakeAchievementGoalRewardRsp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TakeAchievementGoalRewardRsp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementGoalRewardRspOuterClass.TakeAchievementGoalRewardRsp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_TakeAchievementGoalRewardRsp_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_TakeAchievementGoalRewardRsp_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\"TakeAchievementGoalRewardRsp.proto\032\017It" +
+ "emParam.proto\"\256\001\n\034TakeAchievementGoalRew" +
+ "ardRsp\022\017\n\007retcode\030\016 \001(\005\022\034\n\010itemList\030\006 \003(" +
+ "\0132\n.ItemParam\022\016\n\006idList\030\017 \003(\r\"O\n\013KGKAJON" +
+ "LMDD\022\010\n\004NONE\020\000\022\020\n\013PEPPOHPHJOJ\020\205\025\022\017\n\013DCDN" +
+ "ILFDFLB\020\000\022\017\n\013NNBKOLMPOEA\020\001\032\002\020\001B\033\n\031emu.gr" +
+ "asscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
+ });
+ internal_static_TakeAchievementGoalRewardRsp_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_TakeAchievementGoalRewardRsp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_TakeAchievementGoalRewardRsp_descriptor,
+ new java.lang.String[] { "Retcode", "ItemList", "IdList", });
+ emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementRewardRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementRewardRspOuterClass.java
new file mode 100644
index 000000000..2824c080b
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/TakeAchievementRewardRspOuterClass.java
@@ -0,0 +1,1242 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: TakeAchievementRewardRsp.proto
+
+package emu.grasscutter.net.proto;
+
+public final class TakeAchievementRewardRspOuterClass {
+ private TakeAchievementRewardRspOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface TakeAchievementRewardRspOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:TakeAchievementRewardRsp)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ java.util.List
+ getItemListList();
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index);
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ int getItemListCount();
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ java.util.List extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListOrBuilderList();
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
+ int index);
+
+ /**
+ * repeated uint32 idList = 4;
+ * @return A list containing the idList.
+ */
+ java.util.List getIdListList();
+ /**
+ * repeated uint32 idList = 4;
+ * @return The count of idList.
+ */
+ int getIdListCount();
+ /**
+ * repeated uint32 idList = 4;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ int getIdList(int index);
+
+ /**
+ * int32 retcode = 13;
+ * @return The retcode.
+ */
+ int getRetcode();
+ }
+ /**
+ * Protobuf type {@code TakeAchievementRewardRsp}
+ */
+ public static final class TakeAchievementRewardRsp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:TakeAchievementRewardRsp)
+ TakeAchievementRewardRspOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TakeAchievementRewardRsp.newBuilder() to construct.
+ private TakeAchievementRewardRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TakeAchievementRewardRsp() {
+ itemList_ = java.util.Collections.emptyList();
+ idList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TakeAchievementRewardRsp();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TakeAchievementRewardRsp(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 32: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ idList_ = newIntList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ idList_.addInt(input.readUInt32());
+ break;
+ }
+ case 34: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
+ idList_ = newIntList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ idList_.addInt(input.readUInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ itemList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ itemList_.add(
+ input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
+ break;
+ }
+ case 104: {
+
+ retcode_ = input.readInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ idList_.makeImmutable(); // C
+ }
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ itemList_ = java.util.Collections.unmodifiableList(itemList_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.internal_static_TakeAchievementRewardRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.internal_static_TakeAchievementRewardRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.class, emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code TakeAchievementRewardRsp.LDLMKKMLOPI}
+ */
+ public enum LDLMKKMLOPI
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * NONE = 0;
+ */
+ NONE(0, 0),
+ /**
+ * PEPPOHPHJOJ = 2691;
+ */
+ PEPPOHPHJOJ(1, 2691),
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ NNBKOLMPOEA(3, 1),
+ UNRECOGNIZED(-1, -1),
+ ;
+
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final LDLMKKMLOPI DCDNILFDFLB = NONE;
+ /**
+ * NONE = 0;
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * PEPPOHPHJOJ = 2691;
+ */
+ public static final int PEPPOHPHJOJ_VALUE = 2691;
+ /**
+ * DCDNILFDFLB = 0;
+ */
+ public static final int DCDNILFDFLB_VALUE = 0;
+ /**
+ * NNBKOLMPOEA = 1;
+ */
+ public static final int NNBKOLMPOEA_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (index == -1) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static LDLMKKMLOPI valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static LDLMKKMLOPI forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 2691: return PEPPOHPHJOJ;
+ case 1: return NNBKOLMPOEA;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ LDLMKKMLOPI> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public LDLMKKMLOPI findValueByNumber(int number) {
+ return LDLMKKMLOPI.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (index == -1) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final LDLMKKMLOPI[] VALUES = getStaticValuesArray();
+ private static LDLMKKMLOPI[] getStaticValuesArray() {
+ return new LDLMKKMLOPI[] {
+ NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
+ };
+ }
+ public static LDLMKKMLOPI valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private LDLMKKMLOPI(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:TakeAchievementRewardRsp.LDLMKKMLOPI)
+ }
+
+ public static final int ITEMLIST_FIELD_NUMBER = 7;
+ private java.util.List itemList_;
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ @java.lang.Override
+ public java.util.List getItemListList() {
+ return itemList_;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListOrBuilderList() {
+ return itemList_;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ @java.lang.Override
+ public int getItemListCount() {
+ return itemList_.size();
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) {
+ return itemList_.get(index);
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
+ int index) {
+ return itemList_.get(index);
+ }
+
+ public static final int IDLIST_FIELD_NUMBER = 4;
+ private com.google.protobuf.Internal.IntList idList_;
+ /**
+ * repeated uint32 idList = 4;
+ * @return A list containing the idList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getIdListList() {
+ return idList_;
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @return The count of idList.
+ */
+ public int getIdListCount() {
+ return idList_.size();
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ public int getIdList(int index) {
+ return idList_.getInt(index);
+ }
+ private int idListMemoizedSerializedSize = -1;
+
+ public static final int RETCODE_FIELD_NUMBER = 13;
+ private int retcode_;
+ /**
+ * int32 retcode = 13;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (getIdListList().size() > 0) {
+ output.writeUInt32NoTag(34);
+ output.writeUInt32NoTag(idListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < idList_.size(); i++) {
+ output.writeUInt32NoTag(idList_.getInt(i));
+ }
+ for (int i = 0; i < itemList_.size(); i++) {
+ output.writeMessage(7, itemList_.get(i));
+ }
+ if (retcode_ != 0) {
+ output.writeInt32(13, retcode_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < idList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(idList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ idListMemoizedSerializedSize = dataSize;
+ }
+ for (int i = 0; i < itemList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, itemList_.get(i));
+ }
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(13, retcode_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp other = (emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp) obj;
+
+ if (!getItemListList()
+ .equals(other.getItemListList())) return false;
+ if (!getIdListList()
+ .equals(other.getIdListList())) return false;
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getItemListCount() > 0) {
+ hash = (37 * hash) + ITEMLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getItemListList().hashCode();
+ }
+ if (getIdListCount() > 0) {
+ hash = (37 * hash) + IDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getIdListList().hashCode();
+ }
+ hash = (37 * hash) + RETCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getRetcode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code TakeAchievementRewardRsp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:TakeAchievementRewardRsp)
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRspOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.internal_static_TakeAchievementRewardRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.internal_static_TakeAchievementRewardRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.class, emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getItemListFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ itemListBuilder_.clear();
+ }
+ idList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ retcode_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.internal_static_TakeAchievementRewardRsp_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp build() {
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp buildPartial() {
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp result = new emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp(this);
+ int from_bitField0_ = bitField0_;
+ if (itemListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ itemList_ = java.util.Collections.unmodifiableList(itemList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.itemList_ = itemList_;
+ } else {
+ result.itemList_ = itemListBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ idList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.idList_ = idList_;
+ result.retcode_ = retcode_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp) {
+ return mergeFrom((emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp other) {
+ if (other == emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp.getDefaultInstance()) return this;
+ if (itemListBuilder_ == null) {
+ if (!other.itemList_.isEmpty()) {
+ if (itemList_.isEmpty()) {
+ itemList_ = other.itemList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureItemListIsMutable();
+ itemList_.addAll(other.itemList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.itemList_.isEmpty()) {
+ if (itemListBuilder_.isEmpty()) {
+ itemListBuilder_.dispose();
+ itemListBuilder_ = null;
+ itemList_ = other.itemList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ itemListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getItemListFieldBuilder() : null;
+ } else {
+ itemListBuilder_.addAllMessages(other.itemList_);
+ }
+ }
+ }
+ if (!other.idList_.isEmpty()) {
+ if (idList_.isEmpty()) {
+ idList_ = other.idList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureIdListIsMutable();
+ idList_.addAll(other.idList_);
+ }
+ onChanged();
+ }
+ if (other.getRetcode() != 0) {
+ setRetcode(other.getRetcode());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List itemList_ =
+ java.util.Collections.emptyList();
+ private void ensureItemListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ itemList_ = new java.util.ArrayList(itemList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemListBuilder_;
+
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public java.util.List getItemListList() {
+ if (itemListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(itemList_);
+ } else {
+ return itemListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public int getItemListCount() {
+ if (itemListBuilder_ == null) {
+ return itemList_.size();
+ } else {
+ return itemListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index);
+ } else {
+ return itemListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.set(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder addItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder addItemList(
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder addAllItemList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, itemList_);
+ onChanged();
+ } else {
+ itemListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder clearItemList() {
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ itemListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public Builder removeItemList(int index) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.remove(index);
+ onChanged();
+ } else {
+ itemListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
+ int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index); } else {
+ return itemListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListOrBuilderList() {
+ if (itemListBuilder_ != null) {
+ return itemListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(itemList_);
+ }
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder() {
+ return getItemListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
+ }
+ /**
+ * repeated .ItemParam itemList = 7;
+ */
+ public java.util.List
+ getItemListBuilderList() {
+ return getItemListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemListFieldBuilder() {
+ if (itemListBuilder_ == null) {
+ itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
+ itemList_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ itemList_ = null;
+ }
+ return itemListBuilder_;
+ }
+
+ private com.google.protobuf.Internal.IntList idList_ = emptyIntList();
+ private void ensureIdListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ idList_ = mutableCopy(idList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @return A list containing the idList.
+ */
+ public java.util.List
+ getIdListList() {
+ return ((bitField0_ & 0x00000002) != 0) ?
+ java.util.Collections.unmodifiableList(idList_) : idList_;
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @return The count of idList.
+ */
+ public int getIdListCount() {
+ return idList_.size();
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @param index The index of the element to return.
+ * @return The idList at the given index.
+ */
+ public int getIdList(int index) {
+ return idList_.getInt(index);
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @param index The index to set the value at.
+ * @param value The idList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdList(
+ int index, int value) {
+ ensureIdListIsMutable();
+ idList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @param value The idList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addIdList(int value) {
+ ensureIdListIsMutable();
+ idList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @param values The idList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, idList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 idList = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearIdList() {
+ idList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 13;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 13;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearRetcode() {
+
+ retcode_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:TakeAchievementRewardRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:TakeAchievementRewardRsp)
+ private static final emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp();
+ }
+
+ public static emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TakeAchievementRewardRsp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TakeAchievementRewardRsp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.TakeAchievementRewardRspOuterClass.TakeAchievementRewardRsp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_TakeAchievementRewardRsp_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_TakeAchievementRewardRsp_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036TakeAchievementRewardRsp.proto\032\017ItemPa" +
+ "ram.proto\"\252\001\n\030TakeAchievementRewardRsp\022\034" +
+ "\n\010itemList\030\007 \003(\0132\n.ItemParam\022\016\n\006idList\030\004" +
+ " \003(\r\022\017\n\007retcode\030\r \001(\005\"O\n\013LDLMKKMLOPI\022\010\n\004" +
+ "NONE\020\000\022\020\n\013PEPPOHPHJOJ\020\203\025\022\017\n\013DCDNILFDFLB\020" +
+ "\000\022\017\n\013NNBKOLMPOEA\020\001\032\002\020\001B\033\n\031emu.grasscutte" +
+ "r.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
+ });
+ internal_static_TakeAchievementRewardRsp_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_TakeAchievementRewardRsp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_TakeAchievementRewardRsp_descriptor,
+ new java.lang.String[] { "ItemList", "IdList", "Retcode", });
+ emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/command/commands/AchievementCommand.java b/src/main/java/emu/grasscutter/command/commands/AchievementCommand.java
new file mode 100644
index 000000000..7b2510c12
--- /dev/null
+++ b/src/main/java/emu/grasscutter/command/commands/AchievementCommand.java
@@ -0,0 +1,130 @@
+package emu.grasscutter.command.commands;
+
+import emu.grasscutter.command.Command;
+import emu.grasscutter.command.CommandHandler;
+import emu.grasscutter.data.GameData;
+import emu.grasscutter.data.excels.AchievementData;
+import emu.grasscutter.game.achievement.AchievementControlReturns;
+import emu.grasscutter.game.achievement.Achievements;
+import emu.grasscutter.game.player.Player;
+
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicInteger;
+
+@Command(
+ label = "achievement",
+ usage = {"(grant|revoke) ", "progress