diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeMailStarNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeMailStarNotifyOuterClass.java
new file mode 100644
index 000000000..d238a3ecd
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/ChangeMailStarNotifyOuterClass.java
@@ -0,0 +1,737 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ChangeMailStarNotify.proto
+
+package emu.grasscutter.net.proto;
+
+public final class ChangeMailStarNotifyOuterClass {
+ private ChangeMailStarNotifyOuterClass() {}
+ 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 ChangeMailStarNotifyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ChangeMailStarNotify)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ java.util.List getMailIdListList();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ int getMailIdListCount();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ int getMailIdList(int index);
+
+ /**
+ * bool isStar = 2;
+ * @return The isStar.
+ */
+ boolean getIsStar();
+ }
+ /**
+ * Protobuf type {@code ChangeMailStarNotify}
+ */
+ public static final class ChangeMailStarNotify extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ChangeMailStarNotify)
+ ChangeMailStarNotifyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ChangeMailStarNotify.newBuilder() to construct.
+ private ChangeMailStarNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ChangeMailStarNotify() {
+ mailIdList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ChangeMailStarNotify();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ChangeMailStarNotify(
+ 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 8: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ mailIdList_.addInt(input.readUInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ case 16: {
+
+ isStar_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.internal_static_ChangeMailStarNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.internal_static_ChangeMailStarNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.class, emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.Builder.class);
+ }
+
+ public static final int MAILIDLIST_FIELD_NUMBER = 1;
+ private com.google.protobuf.Internal.IntList mailIdList_;
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getMailIdListList() {
+ return mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ private int mailIdListMemoizedSerializedSize = -1;
+
+ public static final int ISSTAR_FIELD_NUMBER = 2;
+ private boolean isStar_;
+ /**
+ * bool isStar = 2;
+ * @return The isStar.
+ */
+ @java.lang.Override
+ public boolean getIsStar() {
+ return isStar_;
+ }
+
+ 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 (getMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ output.writeUInt32NoTag(mailIdList_.getInt(i));
+ }
+ if (isStar_ != false) {
+ output.writeBool(2, isStar_);
+ }
+ 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 < mailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(mailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ mailIdListMemoizedSerializedSize = dataSize;
+ }
+ if (isStar_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, isStar_);
+ }
+ 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify other = (emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify) obj;
+
+ if (!getMailIdListList()
+ .equals(other.getMailIdListList())) return false;
+ if (getIsStar()
+ != other.getIsStar()) 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 (getMailIdListCount() > 0) {
+ hash = (37 * hash) + MAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailIdListList().hashCode();
+ }
+ hash = (37 * hash) + ISSTAR_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsStar());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify 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 ChangeMailStarNotify}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ChangeMailStarNotify)
+ emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotifyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.internal_static_ChangeMailStarNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.internal_static_ChangeMailStarNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.class, emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.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();
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ isStar_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.internal_static_ChangeMailStarNotify_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify build() {
+ emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify buildPartial() {
+ emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify result = new emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailIdList_ = mailIdList_;
+ result.isStar_ = isStar_;
+ 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify) {
+ return mergeFrom((emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify other) {
+ if (other == emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.getDefaultInstance()) return this;
+ if (!other.mailIdList_.isEmpty()) {
+ if (mailIdList_.isEmpty()) {
+ mailIdList_ = other.mailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailIdListIsMutable();
+ mailIdList_.addAll(other.mailIdList_);
+ }
+ onChanged();
+ }
+ if (other.getIsStar() != false) {
+ setIsStar(other.getIsStar());
+ }
+ 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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
+ private void ensureMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = mutableCopy(mailIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ public java.util.List
+ getMailIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index to set the value at.
+ * @param value The mailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailIdList(
+ int index, int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param value The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMailIdList(int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param values The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailIdList() {
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private boolean isStar_ ;
+ /**
+ * bool isStar = 2;
+ * @return The isStar.
+ */
+ @java.lang.Override
+ public boolean getIsStar() {
+ return isStar_;
+ }
+ /**
+ * bool isStar = 2;
+ * @param value The isStar to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsStar(boolean value) {
+
+ isStar_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool isStar = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsStar() {
+
+ isStar_ = false;
+ 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:ChangeMailStarNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:ChangeMailStarNotify)
+ private static final emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify();
+ }
+
+ public static emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ChangeMailStarNotify parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ChangeMailStarNotify(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.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ChangeMailStarNotify_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ChangeMailStarNotify_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\032ChangeMailStarNotify.proto\":\n\024ChangeMa" +
+ "ilStarNotify\022\022\n\nmailIdList\030\001 \003(\r\022\016\n\006isSt" +
+ "ar\030\002 \001(\010B\033\n\031emu.grasscutter.net.protob\006p" +
+ "roto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_ChangeMailStarNotify_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_ChangeMailStarNotify_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ChangeMailStarNotify_descriptor,
+ new java.lang.String[] { "MailIdList", "IsStar", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/DelMailReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DelMailReqOuterClass.java
new file mode 100644
index 000000000..1355d5457
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/DelMailReqOuterClass.java
@@ -0,0 +1,665 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DelMailReq.proto
+
+package emu.grasscutter.net.proto;
+
+public final class DelMailReqOuterClass {
+ private DelMailReqOuterClass() {}
+ 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 DelMailReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:DelMailReq)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ java.util.List getMailIdListList();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ int getMailIdListCount();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ int getMailIdList(int index);
+ }
+ /**
+ * Protobuf type {@code DelMailReq}
+ */
+ public static final class DelMailReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:DelMailReq)
+ DelMailReqOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DelMailReq.newBuilder() to construct.
+ private DelMailReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DelMailReq() {
+ mailIdList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DelMailReq();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DelMailReq(
+ 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 8: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ mailIdList_.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 (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.DelMailReqOuterClass.internal_static_DelMailReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.DelMailReqOuterClass.internal_static_DelMailReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.class, emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.Builder.class);
+ }
+
+ public static final int MAILIDLIST_FIELD_NUMBER = 1;
+ private com.google.protobuf.Internal.IntList mailIdList_;
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getMailIdListList() {
+ return mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ private int mailIdListMemoizedSerializedSize = -1;
+
+ 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 (getMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ output.writeUInt32NoTag(mailIdList_.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 < mailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(mailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ mailIdListMemoizedSerializedSize = dataSize;
+ }
+ 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.DelMailReqOuterClass.DelMailReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq other = (emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq) obj;
+
+ if (!getMailIdListList()
+ .equals(other.getMailIdListList())) 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 (getMailIdListCount() > 0) {
+ hash = (37 * hash) + MAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq 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.DelMailReqOuterClass.DelMailReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq 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.DelMailReqOuterClass.DelMailReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq 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.DelMailReqOuterClass.DelMailReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq 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.DelMailReqOuterClass.DelMailReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq 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.DelMailReqOuterClass.DelMailReq 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 DelMailReq}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:DelMailReq)
+ emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReqOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.DelMailReqOuterClass.internal_static_DelMailReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.DelMailReqOuterClass.internal_static_DelMailReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.class, emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.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();
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.DelMailReqOuterClass.internal_static_DelMailReq_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq build() {
+ emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq buildPartial() {
+ emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq result = new emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailIdList_ = mailIdList_;
+ 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.DelMailReqOuterClass.DelMailReq) {
+ return mergeFrom((emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq other) {
+ if (other == emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq.getDefaultInstance()) return this;
+ if (!other.mailIdList_.isEmpty()) {
+ if (mailIdList_.isEmpty()) {
+ mailIdList_ = other.mailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailIdListIsMutable();
+ mailIdList_.addAll(other.mailIdList_);
+ }
+ 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.DelMailReqOuterClass.DelMailReq parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
+ private void ensureMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = mutableCopy(mailIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ public java.util.List
+ getMailIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index to set the value at.
+ * @param value The mailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailIdList(
+ int index, int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param value The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMailIdList(int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param values The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailIdList() {
+ mailIdList_ = 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:DelMailReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:DelMailReq)
+ private static final emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq();
+ }
+
+ public static emu.grasscutter.net.proto.DelMailReqOuterClass.DelMailReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DelMailReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DelMailReq(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.DelMailReqOuterClass.DelMailReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_DelMailReq_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_DelMailReq_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\020DelMailReq.proto\" \n\nDelMailReq\022\022\n\nmail" +
+ "IdList\030\001 \003(\rB\033\n\031emu.grasscutter.net.prot" +
+ "ob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_DelMailReq_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_DelMailReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_DelMailReq_descriptor,
+ new java.lang.String[] { "MailIdList", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/DelMailRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DelMailRspOuterClass.java
new file mode 100644
index 000000000..a9f3c03de
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/DelMailRspOuterClass.java
@@ -0,0 +1,735 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DelMailRsp.proto
+
+package emu.grasscutter.net.proto;
+
+public final class DelMailRspOuterClass {
+ private DelMailRspOuterClass() {}
+ 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 DelMailRspOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:DelMailRsp)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ int getRetcode();
+
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return A list containing the mailIdList.
+ */
+ java.util.List getMailIdListList();
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return The count of mailIdList.
+ */
+ int getMailIdListCount();
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ int getMailIdList(int index);
+ }
+ /**
+ * Protobuf type {@code DelMailRsp}
+ */
+ public static final class DelMailRsp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:DelMailRsp)
+ DelMailRspOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DelMailRsp.newBuilder() to construct.
+ private DelMailRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DelMailRsp() {
+ mailIdList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DelMailRsp();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DelMailRsp(
+ 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 8: {
+
+ retcode_ = input.readInt32();
+ break;
+ }
+ case 16: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ mailIdList_.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 (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.DelMailRspOuterClass.internal_static_DelMailRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.DelMailRspOuterClass.internal_static_DelMailRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.class, emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.Builder.class);
+ }
+
+ public static final int RETCODE_FIELD_NUMBER = 1;
+ private int retcode_;
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+
+ public static final int MAILIDLIST_FIELD_NUMBER = 2;
+ private com.google.protobuf.Internal.IntList mailIdList_;
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return A list containing the mailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getMailIdListList() {
+ return mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ private int mailIdListMemoizedSerializedSize = -1;
+
+ 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 (retcode_ != 0) {
+ output.writeInt32(1, retcode_);
+ }
+ if (getMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ output.writeUInt32NoTag(mailIdList_.getInt(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, retcode_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(mailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ mailIdListMemoizedSerializedSize = dataSize;
+ }
+ 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.DelMailRspOuterClass.DelMailRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp other = (emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp) obj;
+
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (!getMailIdListList()
+ .equals(other.getMailIdListList())) 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 (getMailIdListCount() > 0) {
+ hash = (37 * hash) + MAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp 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.DelMailRspOuterClass.DelMailRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp 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.DelMailRspOuterClass.DelMailRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp 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.DelMailRspOuterClass.DelMailRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp 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.DelMailRspOuterClass.DelMailRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp 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.DelMailRspOuterClass.DelMailRsp 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 DelMailRsp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:DelMailRsp)
+ emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRspOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.DelMailRspOuterClass.internal_static_DelMailRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.DelMailRspOuterClass.internal_static_DelMailRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.class, emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.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();
+ retcode_ = 0;
+
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.DelMailRspOuterClass.internal_static_DelMailRsp_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp build() {
+ emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp buildPartial() {
+ emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp result = new emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp(this);
+ int from_bitField0_ = bitField0_;
+ result.retcode_ = retcode_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailIdList_ = mailIdList_;
+ 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.DelMailRspOuterClass.DelMailRsp) {
+ return mergeFrom((emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp other) {
+ if (other == emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp.getDefaultInstance()) return this;
+ if (other.getRetcode() != 0) {
+ setRetcode(other.getRetcode());
+ }
+ if (!other.mailIdList_.isEmpty()) {
+ if (mailIdList_.isEmpty()) {
+ mailIdList_ = other.mailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailIdListIsMutable();
+ mailIdList_.addAll(other.mailIdList_);
+ }
+ 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.DelMailRspOuterClass.DelMailRsp parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 1;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRetcode() {
+
+ retcode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
+ private void ensureMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = mutableCopy(mailIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return A list containing the mailIdList.
+ */
+ public java.util.List
+ getMailIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index to set the value at.
+ * @param value The mailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailIdList(
+ int index, int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param value The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMailIdList(int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param values The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailIdList() {
+ mailIdList_ = 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:DelMailRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:DelMailRsp)
+ private static final emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp();
+ }
+
+ public static emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DelMailRsp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DelMailRsp(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.DelMailRspOuterClass.DelMailRsp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_DelMailRsp_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_DelMailRsp_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\020DelMailRsp.proto\"1\n\nDelMailRsp\022\017\n\007retc" +
+ "ode\030\001 \001(\005\022\022\n\nmailIdList\030\002 \003(\rB\033\n\031emu.gra" +
+ "sscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_DelMailRsp_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_DelMailRsp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_DelMailRsp_descriptor,
+ new java.lang.String[] { "Retcode", "MailIdList", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/EquipParamOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EquipParamOuterClass.java
new file mode 100644
index 000000000..f583bf608
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/EquipParamOuterClass.java
@@ -0,0 +1,749 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: EquipParam.proto
+
+package emu.grasscutter.net.proto;
+
+public final class EquipParamOuterClass {
+ private EquipParamOuterClass() {}
+ 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 EquipParamOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:EquipParam)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint32 itemId = 1;
+ * @return The itemId.
+ */
+ int getItemId();
+
+ /**
+ * uint32 itemNum = 2;
+ * @return The itemNum.
+ */
+ int getItemNum();
+
+ /**
+ * uint32 itemLevel = 3;
+ * @return The itemLevel.
+ */
+ int getItemLevel();
+
+ /**
+ * uint32 PromoteLevel = 4;
+ * @return The promoteLevel.
+ */
+ int getPromoteLevel();
+ }
+ /**
+ * Protobuf type {@code EquipParam}
+ */
+ public static final class EquipParam extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:EquipParam)
+ EquipParamOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EquipParam.newBuilder() to construct.
+ private EquipParam(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private EquipParam() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EquipParam();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EquipParam(
+ 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 8: {
+
+ itemId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ itemNum_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ itemLevel_ = input.readUInt32();
+ break;
+ }
+ case 32: {
+
+ promoteLevel_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().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.EquipParamOuterClass.internal_static_EquipParam_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.EquipParamOuterClass.internal_static_EquipParam_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.class, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder.class);
+ }
+
+ public static final int ITEMID_FIELD_NUMBER = 1;
+ private int itemId_;
+ /**
+ * uint32 itemId = 1;
+ * @return The itemId.
+ */
+ @java.lang.Override
+ public int getItemId() {
+ return itemId_;
+ }
+
+ public static final int ITEMNUM_FIELD_NUMBER = 2;
+ private int itemNum_;
+ /**
+ * uint32 itemNum = 2;
+ * @return The itemNum.
+ */
+ @java.lang.Override
+ public int getItemNum() {
+ return itemNum_;
+ }
+
+ public static final int ITEMLEVEL_FIELD_NUMBER = 3;
+ private int itemLevel_;
+ /**
+ * uint32 itemLevel = 3;
+ * @return The itemLevel.
+ */
+ @java.lang.Override
+ public int getItemLevel() {
+ return itemLevel_;
+ }
+
+ public static final int PROMOTELEVEL_FIELD_NUMBER = 4;
+ private int promoteLevel_;
+ /**
+ * uint32 PromoteLevel = 4;
+ * @return The promoteLevel.
+ */
+ @java.lang.Override
+ public int getPromoteLevel() {
+ return promoteLevel_;
+ }
+
+ 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 (itemId_ != 0) {
+ output.writeUInt32(1, itemId_);
+ }
+ if (itemNum_ != 0) {
+ output.writeUInt32(2, itemNum_);
+ }
+ if (itemLevel_ != 0) {
+ output.writeUInt32(3, itemLevel_);
+ }
+ if (promoteLevel_ != 0) {
+ output.writeUInt32(4, promoteLevel_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (itemId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, itemId_);
+ }
+ if (itemNum_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, itemNum_);
+ }
+ if (itemLevel_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, itemLevel_);
+ }
+ if (promoteLevel_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, promoteLevel_);
+ }
+ 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.EquipParamOuterClass.EquipParam)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam other = (emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam) obj;
+
+ if (getItemId()
+ != other.getItemId()) return false;
+ if (getItemNum()
+ != other.getItemNum()) return false;
+ if (getItemLevel()
+ != other.getItemLevel()) return false;
+ if (getPromoteLevel()
+ != other.getPromoteLevel()) 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) + ITEMID_FIELD_NUMBER;
+ hash = (53 * hash) + getItemId();
+ hash = (37 * hash) + ITEMNUM_FIELD_NUMBER;
+ hash = (53 * hash) + getItemNum();
+ hash = (37 * hash) + ITEMLEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getItemLevel();
+ hash = (37 * hash) + PROMOTELEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getPromoteLevel();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam 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.EquipParamOuterClass.EquipParam parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam 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.EquipParamOuterClass.EquipParam parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam 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.EquipParamOuterClass.EquipParam parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam 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.EquipParamOuterClass.EquipParam parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam 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.EquipParamOuterClass.EquipParam 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 EquipParam}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:EquipParam)
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.EquipParamOuterClass.internal_static_EquipParam_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.EquipParamOuterClass.internal_static_EquipParam_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.class, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.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();
+ itemId_ = 0;
+
+ itemNum_ = 0;
+
+ itemLevel_ = 0;
+
+ promoteLevel_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.EquipParamOuterClass.internal_static_EquipParam_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam build() {
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam buildPartial() {
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam result = new emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam(this);
+ result.itemId_ = itemId_;
+ result.itemNum_ = itemNum_;
+ result.itemLevel_ = itemLevel_;
+ result.promoteLevel_ = promoteLevel_;
+ 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.EquipParamOuterClass.EquipParam) {
+ return mergeFrom((emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam other) {
+ if (other == emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.getDefaultInstance()) return this;
+ if (other.getItemId() != 0) {
+ setItemId(other.getItemId());
+ }
+ if (other.getItemNum() != 0) {
+ setItemNum(other.getItemNum());
+ }
+ if (other.getItemLevel() != 0) {
+ setItemLevel(other.getItemLevel());
+ }
+ if (other.getPromoteLevel() != 0) {
+ setPromoteLevel(other.getPromoteLevel());
+ }
+ 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.EquipParamOuterClass.EquipParam parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int itemId_ ;
+ /**
+ * uint32 itemId = 1;
+ * @return The itemId.
+ */
+ @java.lang.Override
+ public int getItemId() {
+ return itemId_;
+ }
+ /**
+ * uint32 itemId = 1;
+ * @param value The itemId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setItemId(int value) {
+
+ itemId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 itemId = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearItemId() {
+
+ itemId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int itemNum_ ;
+ /**
+ * uint32 itemNum = 2;
+ * @return The itemNum.
+ */
+ @java.lang.Override
+ public int getItemNum() {
+ return itemNum_;
+ }
+ /**
+ * uint32 itemNum = 2;
+ * @param value The itemNum to set.
+ * @return This builder for chaining.
+ */
+ public Builder setItemNum(int value) {
+
+ itemNum_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 itemNum = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearItemNum() {
+
+ itemNum_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int itemLevel_ ;
+ /**
+ * uint32 itemLevel = 3;
+ * @return The itemLevel.
+ */
+ @java.lang.Override
+ public int getItemLevel() {
+ return itemLevel_;
+ }
+ /**
+ * uint32 itemLevel = 3;
+ * @param value The itemLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setItemLevel(int value) {
+
+ itemLevel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 itemLevel = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearItemLevel() {
+
+ itemLevel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int promoteLevel_ ;
+ /**
+ * uint32 PromoteLevel = 4;
+ * @return The promoteLevel.
+ */
+ @java.lang.Override
+ public int getPromoteLevel() {
+ return promoteLevel_;
+ }
+ /**
+ * uint32 PromoteLevel = 4;
+ * @param value The promoteLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPromoteLevel(int value) {
+
+ promoteLevel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 PromoteLevel = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPromoteLevel() {
+
+ promoteLevel_ = 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:EquipParam)
+ }
+
+ // @@protoc_insertion_point(class_scope:EquipParam)
+ private static final emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam();
+ }
+
+ public static emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public EquipParam parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new EquipParam(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.EquipParamOuterClass.EquipParam getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_EquipParam_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_EquipParam_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\020EquipParam.proto\"V\n\nEquipParam\022\016\n\006item" +
+ "Id\030\001 \001(\r\022\017\n\007itemNum\030\002 \001(\r\022\021\n\titemLevel\030\003" +
+ " \001(\r\022\024\n\014PromoteLevel\030\004 \001(\rB\033\n\031emu.grassc" +
+ "utter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_EquipParam_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_EquipParam_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_EquipParam_descriptor,
+ new java.lang.String[] { "ItemId", "ItemNum", "ItemLevel", "PromoteLevel", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/FetterStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FetterStateOuterClass.java
new file mode 100644
index 000000000..c7306c5cc
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/FetterStateOuterClass.java
@@ -0,0 +1,163 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: FetterState.proto
+
+package emu.grasscutter.net.proto;
+
+public final class FetterStateOuterClass {
+ private FetterStateOuterClass() {}
+ 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 FetterState}
+ */
+ public enum FetterState
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * NONE = 0;
+ */
+ NONE(0),
+ /**
+ * NOT_OPEN = 1;
+ */
+ NOT_OPEN(1),
+ /**
+ * OPEN = 2;
+ */
+ OPEN(2),
+ /**
+ * FINISH = 3;
+ */
+ FINISH(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * NONE = 0;
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * NOT_OPEN = 1;
+ */
+ public static final int NOT_OPEN_VALUE = 1;
+ /**
+ * OPEN = 2;
+ */
+ public static final int OPEN_VALUE = 2;
+ /**
+ * FINISH = 3;
+ */
+ public static final int FINISH_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 FetterState 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 FetterState forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 1: return NOT_OPEN;
+ case 2: return OPEN;
+ case 3: return FINISH;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ FetterState> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public FetterState findValueByNumber(int number) {
+ return FetterState.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.FetterStateOuterClass.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final FetterState[] VALUES = values();
+
+ public static FetterState 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 FetterState(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:FetterState)
+ }
+
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\021FetterState.proto*;\n\013FetterState\022\010\n\004NO" +
+ "NE\020\000\022\014\n\010NOT_OPEN\020\001\022\010\n\004OPEN\020\002\022\n\n\006FINISH\020\003" +
+ "B\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/main/java/emu/grasscutter/net/proto/GetAllMailReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetAllMailReqOuterClass.java
new file mode 100644
index 000000000..7be5e757e
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/GetAllMailReqOuterClass.java
@@ -0,0 +1,539 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: GetAllMailReq.proto
+
+package emu.grasscutter.net.proto;
+
+public final class GetAllMailReqOuterClass {
+ private GetAllMailReqOuterClass() {}
+ 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 GetAllMailReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:GetAllMailReq)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool isGiftMail = 1;
+ * @return The isGiftMail.
+ */
+ boolean getIsGiftMail();
+ }
+ /**
+ * Protobuf type {@code GetAllMailReq}
+ */
+ public static final class GetAllMailReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:GetAllMailReq)
+ GetAllMailReqOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetAllMailReq.newBuilder() to construct.
+ private GetAllMailReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetAllMailReq() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetAllMailReq();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetAllMailReq(
+ 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 8: {
+
+ isGiftMail_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().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.GetAllMailReqOuterClass.internal_static_GetAllMailReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetAllMailReqOuterClass.internal_static_GetAllMailReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.class, emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.Builder.class);
+ }
+
+ public static final int ISGIFTMAIL_FIELD_NUMBER = 1;
+ private boolean isGiftMail_;
+ /**
+ * bool isGiftMail = 1;
+ * @return The isGiftMail.
+ */
+ @java.lang.Override
+ public boolean getIsGiftMail() {
+ return isGiftMail_;
+ }
+
+ 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 (isGiftMail_ != false) {
+ output.writeBool(1, isGiftMail_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (isGiftMail_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, isGiftMail_);
+ }
+ 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.GetAllMailReqOuterClass.GetAllMailReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq other = (emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq) obj;
+
+ if (getIsGiftMail()
+ != other.getIsGiftMail()) 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) + ISGIFTMAIL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsGiftMail());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq 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.GetAllMailReqOuterClass.GetAllMailReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq 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.GetAllMailReqOuterClass.GetAllMailReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq 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.GetAllMailReqOuterClass.GetAllMailReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq 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.GetAllMailReqOuterClass.GetAllMailReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq 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.GetAllMailReqOuterClass.GetAllMailReq 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 GetAllMailReq}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:GetAllMailReq)
+ emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReqOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.GetAllMailReqOuterClass.internal_static_GetAllMailReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetAllMailReqOuterClass.internal_static_GetAllMailReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.class, emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.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();
+ isGiftMail_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.GetAllMailReqOuterClass.internal_static_GetAllMailReq_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq build() {
+ emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq buildPartial() {
+ emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq result = new emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq(this);
+ result.isGiftMail_ = isGiftMail_;
+ 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.GetAllMailReqOuterClass.GetAllMailReq) {
+ return mergeFrom((emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq other) {
+ if (other == emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq.getDefaultInstance()) return this;
+ if (other.getIsGiftMail() != false) {
+ setIsGiftMail(other.getIsGiftMail());
+ }
+ 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.GetAllMailReqOuterClass.GetAllMailReq parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private boolean isGiftMail_ ;
+ /**
+ * bool isGiftMail = 1;
+ * @return The isGiftMail.
+ */
+ @java.lang.Override
+ public boolean getIsGiftMail() {
+ return isGiftMail_;
+ }
+ /**
+ * bool isGiftMail = 1;
+ * @param value The isGiftMail to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsGiftMail(boolean value) {
+
+ isGiftMail_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool isGiftMail = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsGiftMail() {
+
+ isGiftMail_ = false;
+ 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:GetAllMailReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:GetAllMailReq)
+ private static final emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq();
+ }
+
+ public static emu.grasscutter.net.proto.GetAllMailReqOuterClass.GetAllMailReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetAllMailReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetAllMailReq(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.GetAllMailReqOuterClass.GetAllMailReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_GetAllMailReq_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_GetAllMailReq_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\023GetAllMailReq.proto\"#\n\rGetAllMailReq\022\022" +
+ "\n\nisGiftMail\030\001 \001(\010B\033\n\031emu.grasscutter.ne" +
+ "t.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_GetAllMailReq_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_GetAllMailReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_GetAllMailReq_descriptor,
+ new java.lang.String[] { "IsGiftMail", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/GetAllMailRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetAllMailRspOuterClass.java
new file mode 100644
index 000000000..244235538
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/GetAllMailRspOuterClass.java
@@ -0,0 +1,987 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: GetAllMailRsp.proto
+
+package emu.grasscutter.net.proto;
+
+public final class GetAllMailRspOuterClass {
+ private GetAllMailRspOuterClass() {}
+ 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 GetAllMailRspOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:GetAllMailRsp)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ int getRetcode();
+
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ java.util.List
+ getMailListList();
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index);
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ int getMailListCount();
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ java.util.List extends emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListOrBuilderList();
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(
+ int index);
+
+ /**
+ * bool isTruncated = 3;
+ * @return The isTruncated.
+ */
+ boolean getIsTruncated();
+ }
+ /**
+ * Protobuf type {@code GetAllMailRsp}
+ */
+ public static final class GetAllMailRsp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:GetAllMailRsp)
+ GetAllMailRspOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetAllMailRsp.newBuilder() to construct.
+ private GetAllMailRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetAllMailRsp() {
+ mailList_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetAllMailRsp();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetAllMailRsp(
+ 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 8: {
+
+ retcode_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailList_.add(
+ input.readMessage(emu.grasscutter.net.proto.MailDataOuterClass.MailData.parser(), extensionRegistry));
+ break;
+ }
+ case 24: {
+
+ isTruncated_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailList_ = java.util.Collections.unmodifiableList(mailList_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.GetAllMailRspOuterClass.internal_static_GetAllMailRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetAllMailRspOuterClass.internal_static_GetAllMailRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.class, emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.Builder.class);
+ }
+
+ public static final int RETCODE_FIELD_NUMBER = 1;
+ private int retcode_;
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+
+ public static final int MAILLIST_FIELD_NUMBER = 2;
+ private java.util.List mailList_;
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ @java.lang.Override
+ public java.util.List getMailListList() {
+ return mailList_;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListOrBuilderList() {
+ return mailList_;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ @java.lang.Override
+ public int getMailListCount() {
+ return mailList_.size();
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) {
+ return mailList_.get(index);
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(
+ int index) {
+ return mailList_.get(index);
+ }
+
+ public static final int ISTRUNCATED_FIELD_NUMBER = 3;
+ private boolean isTruncated_;
+ /**
+ * bool isTruncated = 3;
+ * @return The isTruncated.
+ */
+ @java.lang.Override
+ public boolean getIsTruncated() {
+ return isTruncated_;
+ }
+
+ 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 (retcode_ != 0) {
+ output.writeInt32(1, retcode_);
+ }
+ for (int i = 0; i < mailList_.size(); i++) {
+ output.writeMessage(2, mailList_.get(i));
+ }
+ if (isTruncated_ != false) {
+ output.writeBool(3, isTruncated_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, retcode_);
+ }
+ for (int i = 0; i < mailList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, mailList_.get(i));
+ }
+ if (isTruncated_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, isTruncated_);
+ }
+ 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.GetAllMailRspOuterClass.GetAllMailRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp other = (emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp) obj;
+
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (!getMailListList()
+ .equals(other.getMailListList())) return false;
+ if (getIsTruncated()
+ != other.getIsTruncated()) 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 (getMailListCount() > 0) {
+ hash = (37 * hash) + MAILLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailListList().hashCode();
+ }
+ hash = (37 * hash) + ISTRUNCATED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsTruncated());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp 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.GetAllMailRspOuterClass.GetAllMailRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp 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.GetAllMailRspOuterClass.GetAllMailRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp 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.GetAllMailRspOuterClass.GetAllMailRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp 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.GetAllMailRspOuterClass.GetAllMailRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp 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.GetAllMailRspOuterClass.GetAllMailRsp 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 GetAllMailRsp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:GetAllMailRsp)
+ emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRspOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.GetAllMailRspOuterClass.internal_static_GetAllMailRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetAllMailRspOuterClass.internal_static_GetAllMailRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.class, emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getMailListFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ retcode_ = 0;
+
+ if (mailListBuilder_ == null) {
+ mailList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ mailListBuilder_.clear();
+ }
+ isTruncated_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.GetAllMailRspOuterClass.internal_static_GetAllMailRsp_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp build() {
+ emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp buildPartial() {
+ emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp result = new emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp(this);
+ int from_bitField0_ = bitField0_;
+ result.retcode_ = retcode_;
+ if (mailListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailList_ = java.util.Collections.unmodifiableList(mailList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailList_ = mailList_;
+ } else {
+ result.mailList_ = mailListBuilder_.build();
+ }
+ result.isTruncated_ = isTruncated_;
+ 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.GetAllMailRspOuterClass.GetAllMailRsp) {
+ return mergeFrom((emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp other) {
+ if (other == emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp.getDefaultInstance()) return this;
+ if (other.getRetcode() != 0) {
+ setRetcode(other.getRetcode());
+ }
+ if (mailListBuilder_ == null) {
+ if (!other.mailList_.isEmpty()) {
+ if (mailList_.isEmpty()) {
+ mailList_ = other.mailList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailListIsMutable();
+ mailList_.addAll(other.mailList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.mailList_.isEmpty()) {
+ if (mailListBuilder_.isEmpty()) {
+ mailListBuilder_.dispose();
+ mailListBuilder_ = null;
+ mailList_ = other.mailList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ mailListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getMailListFieldBuilder() : null;
+ } else {
+ mailListBuilder_.addAllMessages(other.mailList_);
+ }
+ }
+ }
+ if (other.getIsTruncated() != false) {
+ setIsTruncated(other.getIsTruncated());
+ }
+ 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.GetAllMailRspOuterClass.GetAllMailRsp parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 1;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRetcode() {
+
+ retcode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List mailList_ =
+ java.util.Collections.emptyList();
+ private void ensureMailListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailList_ = new java.util.ArrayList(mailList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder, emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder> mailListBuilder_;
+
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public java.util.List getMailListList() {
+ if (mailListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(mailList_);
+ } else {
+ return mailListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public int getMailListCount() {
+ if (mailListBuilder_ == null) {
+ return mailList_.size();
+ } else {
+ return mailListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) {
+ if (mailListBuilder_ == null) {
+ return mailList_.get(index);
+ } else {
+ return mailListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder setMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData value) {
+ if (mailListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMailListIsMutable();
+ mailList_.set(index, value);
+ onChanged();
+ } else {
+ mailListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder setMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder builderForValue) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ mailListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder addMailList(emu.grasscutter.net.proto.MailDataOuterClass.MailData value) {
+ if (mailListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMailListIsMutable();
+ mailList_.add(value);
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder addMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData value) {
+ if (mailListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMailListIsMutable();
+ mailList_.add(index, value);
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder addMailList(
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder builderForValue) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder addMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder builderForValue) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder addAllMailList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.MailDataOuterClass.MailData> values) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailList_);
+ onChanged();
+ } else {
+ mailListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder clearMailList() {
+ if (mailListBuilder_ == null) {
+ mailList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ mailListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public Builder removeMailList(int index) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.remove(index);
+ onChanged();
+ } else {
+ mailListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder getMailListBuilder(
+ int index) {
+ return getMailListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(
+ int index) {
+ if (mailListBuilder_ == null) {
+ return mailList_.get(index); } else {
+ return mailListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListOrBuilderList() {
+ if (mailListBuilder_ != null) {
+ return mailListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(mailList_);
+ }
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder() {
+ return getMailListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance());
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder(
+ int index) {
+ return getMailListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance());
+ }
+ /**
+ * repeated .MailData mailList = 2;
+ */
+ public java.util.List
+ getMailListBuilderList() {
+ return getMailListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder, emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListFieldBuilder() {
+ if (mailListBuilder_ == null) {
+ mailListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder, emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>(
+ mailList_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ mailList_ = null;
+ }
+ return mailListBuilder_;
+ }
+
+ private boolean isTruncated_ ;
+ /**
+ * bool isTruncated = 3;
+ * @return The isTruncated.
+ */
+ @java.lang.Override
+ public boolean getIsTruncated() {
+ return isTruncated_;
+ }
+ /**
+ * bool isTruncated = 3;
+ * @param value The isTruncated to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsTruncated(boolean value) {
+
+ isTruncated_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool isTruncated = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsTruncated() {
+
+ isTruncated_ = false;
+ 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:GetAllMailRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:GetAllMailRsp)
+ private static final emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp();
+ }
+
+ public static emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetAllMailRsp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetAllMailRsp(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.GetAllMailRspOuterClass.GetAllMailRsp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_GetAllMailRsp_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_GetAllMailRsp_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\023GetAllMailRsp.proto\032\016MailData.proto\"R\n" +
+ "\rGetAllMailRsp\022\017\n\007retcode\030\001 \001(\005\022\033\n\010mailL" +
+ "ist\030\002 \003(\0132\t.MailData\022\023\n\013isTruncated\030\003 \001(" +
+ "\010B\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.MailDataOuterClass.getDescriptor(),
+ });
+ internal_static_GetAllMailRsp_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_GetAllMailRsp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_GetAllMailRsp_descriptor,
+ new java.lang.String[] { "Retcode", "MailList", "IsTruncated", });
+ emu.grasscutter.net.proto.MailDataOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/GetMailItemReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetMailItemReqOuterClass.java
new file mode 100644
index 000000000..4610e8ba4
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/GetMailItemReqOuterClass.java
@@ -0,0 +1,665 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: GetMailItemReq.proto
+
+package emu.grasscutter.net.proto;
+
+public final class GetMailItemReqOuterClass {
+ private GetMailItemReqOuterClass() {}
+ 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 GetMailItemReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:GetMailItemReq)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ java.util.List getMailIdListList();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ int getMailIdListCount();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ int getMailIdList(int index);
+ }
+ /**
+ * Protobuf type {@code GetMailItemReq}
+ */
+ public static final class GetMailItemReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:GetMailItemReq)
+ GetMailItemReqOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetMailItemReq.newBuilder() to construct.
+ private GetMailItemReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetMailItemReq() {
+ mailIdList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetMailItemReq();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetMailItemReq(
+ 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 8: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ mailIdList_.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 (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.GetMailItemReqOuterClass.internal_static_GetMailItemReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetMailItemReqOuterClass.internal_static_GetMailItemReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.class, emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.Builder.class);
+ }
+
+ public static final int MAILIDLIST_FIELD_NUMBER = 1;
+ private com.google.protobuf.Internal.IntList mailIdList_;
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getMailIdListList() {
+ return mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ private int mailIdListMemoizedSerializedSize = -1;
+
+ 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 (getMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ output.writeUInt32NoTag(mailIdList_.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 < mailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(mailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ mailIdListMemoizedSerializedSize = dataSize;
+ }
+ 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.GetMailItemReqOuterClass.GetMailItemReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq other = (emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq) obj;
+
+ if (!getMailIdListList()
+ .equals(other.getMailIdListList())) 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 (getMailIdListCount() > 0) {
+ hash = (37 * hash) + MAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq 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.GetMailItemReqOuterClass.GetMailItemReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq 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.GetMailItemReqOuterClass.GetMailItemReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq 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.GetMailItemReqOuterClass.GetMailItemReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq 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.GetMailItemReqOuterClass.GetMailItemReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq 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.GetMailItemReqOuterClass.GetMailItemReq 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 GetMailItemReq}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:GetMailItemReq)
+ emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReqOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.GetMailItemReqOuterClass.internal_static_GetMailItemReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetMailItemReqOuterClass.internal_static_GetMailItemReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.class, emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.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();
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.GetMailItemReqOuterClass.internal_static_GetMailItemReq_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq build() {
+ emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq buildPartial() {
+ emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq result = new emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailIdList_ = mailIdList_;
+ 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.GetMailItemReqOuterClass.GetMailItemReq) {
+ return mergeFrom((emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq other) {
+ if (other == emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq.getDefaultInstance()) return this;
+ if (!other.mailIdList_.isEmpty()) {
+ if (mailIdList_.isEmpty()) {
+ mailIdList_ = other.mailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailIdListIsMutable();
+ mailIdList_.addAll(other.mailIdList_);
+ }
+ 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.GetMailItemReqOuterClass.GetMailItemReq parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
+ private void ensureMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = mutableCopy(mailIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ public java.util.List
+ getMailIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index to set the value at.
+ * @param value The mailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailIdList(
+ int index, int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param value The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMailIdList(int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param values The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailIdList() {
+ mailIdList_ = 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:GetMailItemReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:GetMailItemReq)
+ private static final emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq();
+ }
+
+ public static emu.grasscutter.net.proto.GetMailItemReqOuterClass.GetMailItemReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetMailItemReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetMailItemReq(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.GetMailItemReqOuterClass.GetMailItemReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_GetMailItemReq_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_GetMailItemReq_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\024GetMailItemReq.proto\"$\n\016GetMailItemReq" +
+ "\022\022\n\nmailIdList\030\001 \003(\rB\033\n\031emu.grasscutter." +
+ "net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_GetMailItemReq_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_GetMailItemReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_GetMailItemReq_descriptor,
+ new java.lang.String[] { "MailIdList", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/GetMailItemRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetMailItemRspOuterClass.java
new file mode 100644
index 000000000..83a29c529
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/GetMailItemRspOuterClass.java
@@ -0,0 +1,1111 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: GetMailItemRsp.proto
+
+package emu.grasscutter.net.proto;
+
+public final class GetMailItemRspOuterClass {
+ private GetMailItemRspOuterClass() {}
+ 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 GetMailItemRspOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:GetMailItemRsp)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ int getRetcode();
+
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return A list containing the mailIdList.
+ */
+ java.util.List getMailIdListList();
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return The count of mailIdList.
+ */
+ int getMailIdListCount();
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ int getMailIdList(int index);
+
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ java.util.List
+ getItemListList();
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam getItemList(int index);
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ int getItemListCount();
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ java.util.List extends emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder>
+ getItemListOrBuilderList();
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder getItemListOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code GetMailItemRsp}
+ */
+ public static final class GetMailItemRsp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:GetMailItemRsp)
+ GetMailItemRspOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetMailItemRsp.newBuilder() to construct.
+ private GetMailItemRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetMailItemRsp() {
+ mailIdList_ = emptyIntList();
+ itemList_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetMailItemRsp();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetMailItemRsp(
+ 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 8: {
+
+ retcode_ = input.readInt32();
+ break;
+ }
+ case 16: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ mailIdList_.addInt(input.readUInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ itemList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ itemList_.add(
+ input.readMessage(emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable(); // C
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 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.GetMailItemRspOuterClass.internal_static_GetMailItemRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetMailItemRspOuterClass.internal_static_GetMailItemRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.class, emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.Builder.class);
+ }
+
+ public static final int RETCODE_FIELD_NUMBER = 1;
+ private int retcode_;
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+
+ public static final int MAILIDLIST_FIELD_NUMBER = 2;
+ private com.google.protobuf.Internal.IntList mailIdList_;
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return A list containing the mailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getMailIdListList() {
+ return mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ private int mailIdListMemoizedSerializedSize = -1;
+
+ public static final int ITEMLIST_FIELD_NUMBER = 3;
+ private java.util.List itemList_;
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ @java.lang.Override
+ public java.util.List getItemListList() {
+ return itemList_;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder>
+ getItemListOrBuilderList() {
+ return itemList_;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ @java.lang.Override
+ public int getItemListCount() {
+ return itemList_.size();
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam getItemList(int index) {
+ return itemList_.get(index);
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder getItemListOrBuilder(
+ int index) {
+ return itemList_.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();
+ if (retcode_ != 0) {
+ output.writeInt32(1, retcode_);
+ }
+ if (getMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ output.writeUInt32NoTag(mailIdList_.getInt(i));
+ }
+ for (int i = 0; i < itemList_.size(); i++) {
+ output.writeMessage(3, itemList_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, retcode_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(mailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ mailIdListMemoizedSerializedSize = dataSize;
+ }
+ for (int i = 0; i < itemList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, itemList_.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.GetMailItemRspOuterClass.GetMailItemRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp other = (emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp) obj;
+
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (!getMailIdListList()
+ .equals(other.getMailIdListList())) return false;
+ if (!getItemListList()
+ .equals(other.getItemListList())) 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 (getMailIdListCount() > 0) {
+ hash = (37 * hash) + MAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailIdListList().hashCode();
+ }
+ if (getItemListCount() > 0) {
+ hash = (37 * hash) + ITEMLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getItemListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp 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.GetMailItemRspOuterClass.GetMailItemRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp 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.GetMailItemRspOuterClass.GetMailItemRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp 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.GetMailItemRspOuterClass.GetMailItemRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp 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.GetMailItemRspOuterClass.GetMailItemRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp 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.GetMailItemRspOuterClass.GetMailItemRsp 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 GetMailItemRsp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:GetMailItemRsp)
+ emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRspOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.GetMailItemRspOuterClass.internal_static_GetMailItemRsp_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.GetMailItemRspOuterClass.internal_static_GetMailItemRsp_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.class, emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.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;
+
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ itemListBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.GetMailItemRspOuterClass.internal_static_GetMailItemRsp_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp build() {
+ emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp buildPartial() {
+ emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp result = new emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp(this);
+ int from_bitField0_ = bitField0_;
+ result.retcode_ = retcode_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailIdList_ = mailIdList_;
+ if (itemListBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ itemList_ = java.util.Collections.unmodifiableList(itemList_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.itemList_ = itemList_;
+ } else {
+ result.itemList_ = itemListBuilder_.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.GetMailItemRspOuterClass.GetMailItemRsp) {
+ return mergeFrom((emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp other) {
+ if (other == emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp.getDefaultInstance()) return this;
+ if (other.getRetcode() != 0) {
+ setRetcode(other.getRetcode());
+ }
+ if (!other.mailIdList_.isEmpty()) {
+ if (mailIdList_.isEmpty()) {
+ mailIdList_ = other.mailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailIdListIsMutable();
+ mailIdList_.addAll(other.mailIdList_);
+ }
+ onChanged();
+ }
+ if (itemListBuilder_ == null) {
+ if (!other.itemList_.isEmpty()) {
+ if (itemList_.isEmpty()) {
+ itemList_ = other.itemList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureItemListIsMutable();
+ itemList_.addAll(other.itemList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.itemList_.isEmpty()) {
+ if (itemListBuilder_.isEmpty()) {
+ itemListBuilder_.dispose();
+ itemListBuilder_ = null;
+ itemList_ = other.itemList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ itemListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getItemListFieldBuilder() : null;
+ } else {
+ itemListBuilder_.addAllMessages(other.itemList_);
+ }
+ }
+ }
+ 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.GetMailItemRspOuterClass.GetMailItemRsp parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 1;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 1;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRetcode() {
+
+ retcode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
+ private void ensureMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = mutableCopy(mailIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return A list containing the mailIdList.
+ */
+ public java.util.List
+ getMailIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param index The index to set the value at.
+ * @param value The mailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailIdList(
+ int index, int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param value The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMailIdList(int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @param values The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailIdList() {
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List itemList_ =
+ java.util.Collections.emptyList();
+ private void ensureItemListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ itemList_ = new java.util.ArrayList(itemList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder> itemListBuilder_;
+
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public java.util.List getItemListList() {
+ if (itemListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(itemList_);
+ } else {
+ return itemListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public int getItemListCount() {
+ if (itemListBuilder_ == null) {
+ return itemList_.size();
+ } else {
+ return itemListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam getItemList(int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index);
+ } else {
+ return itemListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.set(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder addItemList(emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder addItemList(
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder addAllItemList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam> values) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, itemList_);
+ onChanged();
+ } else {
+ itemListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder clearItemList() {
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ itemListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public Builder removeItemList(int index) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.remove(index);
+ onChanged();
+ } else {
+ itemListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder getItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder getItemListOrBuilder(
+ int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index); } else {
+ return itemListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder>
+ getItemListOrBuilderList() {
+ if (itemListBuilder_ != null) {
+ return itemListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(itemList_);
+ }
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder addItemListBuilder() {
+ return getItemListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.getDefaultInstance());
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder addItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.getDefaultInstance());
+ }
+ /**
+ * repeated .EquipParam itemList = 3;
+ */
+ public java.util.List
+ getItemListBuilderList() {
+ return getItemListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder>
+ getItemListFieldBuilder() {
+ if (itemListBuilder_ == null) {
+ itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParam.Builder, emu.grasscutter.net.proto.EquipParamOuterClass.EquipParamOrBuilder>(
+ itemList_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ itemList_ = null;
+ }
+ return itemListBuilder_;
+ }
+ @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:GetMailItemRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:GetMailItemRsp)
+ private static final emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp();
+ }
+
+ public static emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetMailItemRsp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetMailItemRsp(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.GetMailItemRspOuterClass.GetMailItemRsp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_GetMailItemRsp_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_GetMailItemRsp_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\024GetMailItemRsp.proto\032\020EquipParam.proto" +
+ "\"T\n\016GetMailItemRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\nm" +
+ "ailIdList\030\002 \003(\r\022\035\n\010itemList\030\003 \003(\0132\013.Equi" +
+ "pParamB\033\n\031emu.grasscutter.net.protob\006pro" +
+ "to3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.EquipParamOuterClass.getDescriptor(),
+ });
+ internal_static_GetMailItemRsp_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_GetMailItemRsp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_GetMailItemRsp_descriptor,
+ new java.lang.String[] { "Retcode", "MailIdList", "ItemList", });
+ emu.grasscutter.net.proto.EquipParamOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/MailChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MailChangeNotifyOuterClass.java
new file mode 100644
index 000000000..020cc0e7c
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/MailChangeNotifyOuterClass.java
@@ -0,0 +1,1040 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: MailChangeNotify.proto
+
+package emu.grasscutter.net.proto;
+
+public final class MailChangeNotifyOuterClass {
+ private MailChangeNotifyOuterClass() {}
+ 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 MailChangeNotifyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MailChangeNotify)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ java.util.List
+ getMailListList();
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index);
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ int getMailListCount();
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ java.util.List extends emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListOrBuilderList();
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(
+ int index);
+
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return A list containing the delMailIdList.
+ */
+ java.util.List getDelMailIdListList();
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return The count of delMailIdList.
+ */
+ int getDelMailIdListCount();
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The delMailIdList at the given index.
+ */
+ int getDelMailIdList(int index);
+ }
+ /**
+ * Protobuf type {@code MailChangeNotify}
+ */
+ public static final class MailChangeNotify extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MailChangeNotify)
+ MailChangeNotifyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MailChangeNotify.newBuilder() to construct.
+ private MailChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MailChangeNotify() {
+ mailList_ = java.util.Collections.emptyList();
+ delMailIdList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MailChangeNotify();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MailChangeNotify(
+ 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 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailList_.add(
+ input.readMessage(emu.grasscutter.net.proto.MailDataOuterClass.MailData.parser(), extensionRegistry));
+ break;
+ }
+ case 16: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ delMailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ delMailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
+ delMailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ delMailIdList_.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 (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailList_ = java.util.Collections.unmodifiableList(mailList_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ delMailIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.MailChangeNotifyOuterClass.internal_static_MailChangeNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailChangeNotifyOuterClass.internal_static_MailChangeNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.class, emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.Builder.class);
+ }
+
+ public static final int MAILLIST_FIELD_NUMBER = 1;
+ private java.util.List mailList_;
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ @java.lang.Override
+ public java.util.List getMailListList() {
+ return mailList_;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListOrBuilderList() {
+ return mailList_;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ @java.lang.Override
+ public int getMailListCount() {
+ return mailList_.size();
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) {
+ return mailList_.get(index);
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(
+ int index) {
+ return mailList_.get(index);
+ }
+
+ public static final int DELMAILIDLIST_FIELD_NUMBER = 2;
+ private com.google.protobuf.Internal.IntList delMailIdList_;
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return A list containing the delMailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getDelMailIdListList() {
+ return delMailIdList_;
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return The count of delMailIdList.
+ */
+ public int getDelMailIdListCount() {
+ return delMailIdList_.size();
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The delMailIdList at the given index.
+ */
+ public int getDelMailIdList(int index) {
+ return delMailIdList_.getInt(index);
+ }
+ private int delMailIdListMemoizedSerializedSize = -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 < mailList_.size(); i++) {
+ output.writeMessage(1, mailList_.get(i));
+ }
+ if (getDelMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(delMailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < delMailIdList_.size(); i++) {
+ output.writeUInt32NoTag(delMailIdList_.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 < mailList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, mailList_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < delMailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(delMailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getDelMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ delMailIdListMemoizedSerializedSize = 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.MailChangeNotifyOuterClass.MailChangeNotify)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify other = (emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify) obj;
+
+ if (!getMailListList()
+ .equals(other.getMailListList())) return false;
+ if (!getDelMailIdListList()
+ .equals(other.getDelMailIdListList())) 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 (getMailListCount() > 0) {
+ hash = (37 * hash) + MAILLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailListList().hashCode();
+ }
+ if (getDelMailIdListCount() > 0) {
+ hash = (37 * hash) + DELMAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getDelMailIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify 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.MailChangeNotifyOuterClass.MailChangeNotify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify 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.MailChangeNotifyOuterClass.MailChangeNotify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify 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.MailChangeNotifyOuterClass.MailChangeNotify parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify 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.MailChangeNotifyOuterClass.MailChangeNotify parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify 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.MailChangeNotifyOuterClass.MailChangeNotify 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 MailChangeNotify}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:MailChangeNotify)
+ emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotifyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.MailChangeNotifyOuterClass.internal_static_MailChangeNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailChangeNotifyOuterClass.internal_static_MailChangeNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.class, emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getMailListFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (mailListBuilder_ == null) {
+ mailList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ mailListBuilder_.clear();
+ }
+ delMailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.MailChangeNotifyOuterClass.internal_static_MailChangeNotify_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify build() {
+ emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify buildPartial() {
+ emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify result = new emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify(this);
+ int from_bitField0_ = bitField0_;
+ if (mailListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailList_ = java.util.Collections.unmodifiableList(mailList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailList_ = mailList_;
+ } else {
+ result.mailList_ = mailListBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ delMailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.delMailIdList_ = delMailIdList_;
+ 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.MailChangeNotifyOuterClass.MailChangeNotify) {
+ return mergeFrom((emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify other) {
+ if (other == emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify.getDefaultInstance()) return this;
+ if (mailListBuilder_ == null) {
+ if (!other.mailList_.isEmpty()) {
+ if (mailList_.isEmpty()) {
+ mailList_ = other.mailList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailListIsMutable();
+ mailList_.addAll(other.mailList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.mailList_.isEmpty()) {
+ if (mailListBuilder_.isEmpty()) {
+ mailListBuilder_.dispose();
+ mailListBuilder_ = null;
+ mailList_ = other.mailList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ mailListBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getMailListFieldBuilder() : null;
+ } else {
+ mailListBuilder_.addAllMessages(other.mailList_);
+ }
+ }
+ }
+ if (!other.delMailIdList_.isEmpty()) {
+ if (delMailIdList_.isEmpty()) {
+ delMailIdList_ = other.delMailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureDelMailIdListIsMutable();
+ delMailIdList_.addAll(other.delMailIdList_);
+ }
+ 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.MailChangeNotifyOuterClass.MailChangeNotify parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List mailList_ =
+ java.util.Collections.emptyList();
+ private void ensureMailListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailList_ = new java.util.ArrayList(mailList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder, emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder> mailListBuilder_;
+
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public java.util.List getMailListList() {
+ if (mailListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(mailList_);
+ } else {
+ return mailListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public int getMailListCount() {
+ if (mailListBuilder_ == null) {
+ return mailList_.size();
+ } else {
+ return mailListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) {
+ if (mailListBuilder_ == null) {
+ return mailList_.get(index);
+ } else {
+ return mailListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder setMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData value) {
+ if (mailListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMailListIsMutable();
+ mailList_.set(index, value);
+ onChanged();
+ } else {
+ mailListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder setMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder builderForValue) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ mailListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder addMailList(emu.grasscutter.net.proto.MailDataOuterClass.MailData value) {
+ if (mailListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMailListIsMutable();
+ mailList_.add(value);
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder addMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData value) {
+ if (mailListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMailListIsMutable();
+ mailList_.add(index, value);
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder addMailList(
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder builderForValue) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder addMailList(
+ int index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder builderForValue) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ mailListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder addAllMailList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.MailDataOuterClass.MailData> values) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailList_);
+ onChanged();
+ } else {
+ mailListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder clearMailList() {
+ if (mailListBuilder_ == null) {
+ mailList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ mailListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public Builder removeMailList(int index) {
+ if (mailListBuilder_ == null) {
+ ensureMailListIsMutable();
+ mailList_.remove(index);
+ onChanged();
+ } else {
+ mailListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder getMailListBuilder(
+ int index) {
+ return getMailListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(
+ int index) {
+ if (mailListBuilder_ == null) {
+ return mailList_.get(index); } else {
+ return mailListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListOrBuilderList() {
+ if (mailListBuilder_ != null) {
+ return mailListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(mailList_);
+ }
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder() {
+ return getMailListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance());
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder(
+ int index) {
+ return getMailListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance());
+ }
+ /**
+ * repeated .MailData mailList = 1;
+ */
+ public java.util.List
+ getMailListBuilderList() {
+ return getMailListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder, emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>
+ getMailListFieldBuilder() {
+ if (mailListBuilder_ == null) {
+ mailListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder, emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder>(
+ mailList_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ mailList_ = null;
+ }
+ return mailListBuilder_;
+ }
+
+ private com.google.protobuf.Internal.IntList delMailIdList_ = emptyIntList();
+ private void ensureDelMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ delMailIdList_ = mutableCopy(delMailIdList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return A list containing the delMailIdList.
+ */
+ public java.util.List
+ getDelMailIdListList() {
+ return ((bitField0_ & 0x00000002) != 0) ?
+ java.util.Collections.unmodifiableList(delMailIdList_) : delMailIdList_;
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return The count of delMailIdList.
+ */
+ public int getDelMailIdListCount() {
+ return delMailIdList_.size();
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @param index The index of the element to return.
+ * @return The delMailIdList at the given index.
+ */
+ public int getDelMailIdList(int index) {
+ return delMailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @param index The index to set the value at.
+ * @param value The delMailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDelMailIdList(
+ int index, int value) {
+ ensureDelMailIdListIsMutable();
+ delMailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @param value The delMailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDelMailIdList(int value) {
+ ensureDelMailIdListIsMutable();
+ delMailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @param values The delMailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDelMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureDelMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, delMailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 delMailIdList = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDelMailIdList() {
+ delMailIdList_ = 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:MailChangeNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:MailChangeNotify)
+ private static final emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify();
+ }
+
+ public static emu.grasscutter.net.proto.MailChangeNotifyOuterClass.MailChangeNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MailChangeNotify parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MailChangeNotify(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.MailChangeNotifyOuterClass.MailChangeNotify getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_MailChangeNotify_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_MailChangeNotify_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\026MailChangeNotify.proto\032\016MailData.proto" +
+ "\"F\n\020MailChangeNotify\022\033\n\010mailList\030\001 \003(\0132\t" +
+ ".MailData\022\025\n\rdelMailIdList\030\002 \003(\rB\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.MailDataOuterClass.getDescriptor(),
+ });
+ internal_static_MailChangeNotify_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_MailChangeNotify_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_MailChangeNotify_descriptor,
+ new java.lang.String[] { "MailList", "DelMailIdList", });
+ emu.grasscutter.net.proto.MailDataOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/MailDataOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MailDataOuterClass.java
new file mode 100644
index 000000000..0bb1d7534
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/MailDataOuterClass.java
@@ -0,0 +1,1835 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: MailData.proto
+
+package emu.grasscutter.net.proto;
+
+public final class MailDataOuterClass {
+ private MailDataOuterClass() {}
+ 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 MailDataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MailData)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint32 mailId = 1;
+ * @return The mailId.
+ */
+ int getMailId();
+
+ /**
+ * .MailTextContent mailTextContent = 4;
+ * @return Whether the mailTextContent field is set.
+ */
+ boolean hasMailTextContent();
+ /**
+ * .MailTextContent mailTextContent = 4;
+ * @return The mailTextContent.
+ */
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent getMailTextContent();
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder getMailTextContentOrBuilder();
+
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ java.util.List
+ getItemListList();
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem getItemList(int index);
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ int getItemListCount();
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ java.util.List extends emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder>
+ getItemListOrBuilderList();
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder getItemListOrBuilder(
+ int index);
+
+ /**
+ * uint32 sendTime = 8;
+ * @return The sendTime.
+ */
+ int getSendTime();
+
+ /**
+ * uint32 expireTime = 9;
+ * @return The expireTime.
+ */
+ int getExpireTime();
+
+ /**
+ * uint32 importance = 10;
+ * @return The importance.
+ */
+ int getImportance();
+
+ /**
+ * bool isRead = 11;
+ * @return The isRead.
+ */
+ boolean getIsRead();
+
+ /**
+ * bool isAttachmentGot = 12;
+ * @return The isAttachmentGot.
+ */
+ boolean getIsAttachmentGot();
+
+ /**
+ * uint32 configId = 13;
+ * @return The configId.
+ */
+ int getConfigId();
+
+ /**
+ * repeated string argumentList = 14;
+ * @return A list containing the argumentList.
+ */
+ java.util.List
+ getArgumentListList();
+ /**
+ * repeated string argumentList = 14;
+ * @return The count of argumentList.
+ */
+ int getArgumentListCount();
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index of the element to return.
+ * @return The argumentList at the given index.
+ */
+ java.lang.String getArgumentList(int index);
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index of the value to return.
+ * @return The bytes of the argumentList at the given index.
+ */
+ com.google.protobuf.ByteString
+ getArgumentListBytes(int index);
+
+ /**
+ * uint32 stateValue = 15;
+ * @return The stateValue.
+ */
+ int getStateValue();
+ }
+ /**
+ * Protobuf type {@code MailData}
+ */
+ public static final class MailData extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MailData)
+ MailDataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MailData.newBuilder() to construct.
+ private MailData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MailData() {
+ itemList_ = java.util.Collections.emptyList();
+ argumentList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MailData();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MailData(
+ 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 8: {
+
+ mailId_ = input.readUInt32();
+ break;
+ }
+ case 34: {
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder subBuilder = null;
+ if (mailTextContent_ != null) {
+ subBuilder = mailTextContent_.toBuilder();
+ }
+ mailTextContent_ = input.readMessage(emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(mailTextContent_);
+ mailTextContent_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ itemList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ itemList_.add(
+ input.readMessage(emu.grasscutter.net.proto.MailItemOuterClass.MailItem.parser(), extensionRegistry));
+ break;
+ }
+ case 64: {
+
+ sendTime_ = input.readUInt32();
+ break;
+ }
+ case 72: {
+
+ expireTime_ = input.readUInt32();
+ break;
+ }
+ case 80: {
+
+ importance_ = input.readUInt32();
+ break;
+ }
+ case 88: {
+
+ isRead_ = input.readBool();
+ break;
+ }
+ case 96: {
+
+ isAttachmentGot_ = input.readBool();
+ break;
+ }
+ case 104: {
+
+ configId_ = input.readUInt32();
+ break;
+ }
+ case 114: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ argumentList_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ argumentList_.add(s);
+ break;
+ }
+ case 120: {
+
+ stateValue_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().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)) {
+ argumentList_ = argumentList_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.MailDataOuterClass.internal_static_MailData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailDataOuterClass.internal_static_MailData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData.class, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder.class);
+ }
+
+ public static final int MAILID_FIELD_NUMBER = 1;
+ private int mailId_;
+ /**
+ * uint32 mailId = 1;
+ * @return The mailId.
+ */
+ @java.lang.Override
+ public int getMailId() {
+ return mailId_;
+ }
+
+ public static final int MAILTEXTCONTENT_FIELD_NUMBER = 4;
+ private emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent mailTextContent_;
+ /**
+ * .MailTextContent mailTextContent = 4;
+ * @return Whether the mailTextContent field is set.
+ */
+ @java.lang.Override
+ public boolean hasMailTextContent() {
+ return mailTextContent_ != null;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ * @return The mailTextContent.
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent getMailTextContent() {
+ return mailTextContent_ == null ? emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.getDefaultInstance() : mailTextContent_;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder getMailTextContentOrBuilder() {
+ return getMailTextContent();
+ }
+
+ public static final int ITEMLIST_FIELD_NUMBER = 7;
+ private java.util.List itemList_;
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ @java.lang.Override
+ public java.util.List getItemListList() {
+ return itemList_;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ @java.lang.Override
+ public java.util.List extends emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder>
+ getItemListOrBuilderList() {
+ return itemList_;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ @java.lang.Override
+ public int getItemListCount() {
+ return itemList_.size();
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem getItemList(int index) {
+ return itemList_.get(index);
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder getItemListOrBuilder(
+ int index) {
+ return itemList_.get(index);
+ }
+
+ public static final int SENDTIME_FIELD_NUMBER = 8;
+ private int sendTime_;
+ /**
+ * uint32 sendTime = 8;
+ * @return The sendTime.
+ */
+ @java.lang.Override
+ public int getSendTime() {
+ return sendTime_;
+ }
+
+ public static final int EXPIRETIME_FIELD_NUMBER = 9;
+ private int expireTime_;
+ /**
+ * uint32 expireTime = 9;
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public int getExpireTime() {
+ return expireTime_;
+ }
+
+ public static final int IMPORTANCE_FIELD_NUMBER = 10;
+ private int importance_;
+ /**
+ * uint32 importance = 10;
+ * @return The importance.
+ */
+ @java.lang.Override
+ public int getImportance() {
+ return importance_;
+ }
+
+ public static final int ISREAD_FIELD_NUMBER = 11;
+ private boolean isRead_;
+ /**
+ * bool isRead = 11;
+ * @return The isRead.
+ */
+ @java.lang.Override
+ public boolean getIsRead() {
+ return isRead_;
+ }
+
+ public static final int ISATTACHMENTGOT_FIELD_NUMBER = 12;
+ private boolean isAttachmentGot_;
+ /**
+ * bool isAttachmentGot = 12;
+ * @return The isAttachmentGot.
+ */
+ @java.lang.Override
+ public boolean getIsAttachmentGot() {
+ return isAttachmentGot_;
+ }
+
+ public static final int CONFIGID_FIELD_NUMBER = 13;
+ private int configId_;
+ /**
+ * uint32 configId = 13;
+ * @return The configId.
+ */
+ @java.lang.Override
+ public int getConfigId() {
+ return configId_;
+ }
+
+ public static final int ARGUMENTLIST_FIELD_NUMBER = 14;
+ private com.google.protobuf.LazyStringList argumentList_;
+ /**
+ * repeated string argumentList = 14;
+ * @return A list containing the argumentList.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getArgumentListList() {
+ return argumentList_;
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @return The count of argumentList.
+ */
+ public int getArgumentListCount() {
+ return argumentList_.size();
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index of the element to return.
+ * @return The argumentList at the given index.
+ */
+ public java.lang.String getArgumentList(int index) {
+ return argumentList_.get(index);
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index of the value to return.
+ * @return The bytes of the argumentList at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getArgumentListBytes(int index) {
+ return argumentList_.getByteString(index);
+ }
+
+ public static final int STATEVALUE_FIELD_NUMBER = 15;
+ private int stateValue_;
+ /**
+ * uint32 stateValue = 15;
+ * @return The stateValue.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return stateValue_;
+ }
+
+ 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 (mailId_ != 0) {
+ output.writeUInt32(1, mailId_);
+ }
+ if (mailTextContent_ != null) {
+ output.writeMessage(4, getMailTextContent());
+ }
+ for (int i = 0; i < itemList_.size(); i++) {
+ output.writeMessage(7, itemList_.get(i));
+ }
+ if (sendTime_ != 0) {
+ output.writeUInt32(8, sendTime_);
+ }
+ if (expireTime_ != 0) {
+ output.writeUInt32(9, expireTime_);
+ }
+ if (importance_ != 0) {
+ output.writeUInt32(10, importance_);
+ }
+ if (isRead_ != false) {
+ output.writeBool(11, isRead_);
+ }
+ if (isAttachmentGot_ != false) {
+ output.writeBool(12, isAttachmentGot_);
+ }
+ if (configId_ != 0) {
+ output.writeUInt32(13, configId_);
+ }
+ for (int i = 0; i < argumentList_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, argumentList_.getRaw(i));
+ }
+ if (stateValue_ != 0) {
+ output.writeUInt32(15, stateValue_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (mailId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, mailId_);
+ }
+ if (mailTextContent_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getMailTextContent());
+ }
+ for (int i = 0; i < itemList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, itemList_.get(i));
+ }
+ if (sendTime_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(8, sendTime_);
+ }
+ if (expireTime_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(9, expireTime_);
+ }
+ if (importance_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(10, importance_);
+ }
+ if (isRead_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(11, isRead_);
+ }
+ if (isAttachmentGot_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(12, isAttachmentGot_);
+ }
+ if (configId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(13, configId_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < argumentList_.size(); i++) {
+ dataSize += computeStringSizeNoTag(argumentList_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getArgumentListList().size();
+ }
+ if (stateValue_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(15, stateValue_);
+ }
+ 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.MailDataOuterClass.MailData)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData other = (emu.grasscutter.net.proto.MailDataOuterClass.MailData) obj;
+
+ if (getMailId()
+ != other.getMailId()) return false;
+ if (hasMailTextContent() != other.hasMailTextContent()) return false;
+ if (hasMailTextContent()) {
+ if (!getMailTextContent()
+ .equals(other.getMailTextContent())) return false;
+ }
+ if (!getItemListList()
+ .equals(other.getItemListList())) return false;
+ if (getSendTime()
+ != other.getSendTime()) return false;
+ if (getExpireTime()
+ != other.getExpireTime()) return false;
+ if (getImportance()
+ != other.getImportance()) return false;
+ if (getIsRead()
+ != other.getIsRead()) return false;
+ if (getIsAttachmentGot()
+ != other.getIsAttachmentGot()) return false;
+ if (getConfigId()
+ != other.getConfigId()) return false;
+ if (!getArgumentListList()
+ .equals(other.getArgumentListList())) return false;
+ if (getStateValue()
+ != other.getStateValue()) 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) + MAILID_FIELD_NUMBER;
+ hash = (53 * hash) + getMailId();
+ if (hasMailTextContent()) {
+ hash = (37 * hash) + MAILTEXTCONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getMailTextContent().hashCode();
+ }
+ if (getItemListCount() > 0) {
+ hash = (37 * hash) + ITEMLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getItemListList().hashCode();
+ }
+ hash = (37 * hash) + SENDTIME_FIELD_NUMBER;
+ hash = (53 * hash) + getSendTime();
+ hash = (37 * hash) + EXPIRETIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime();
+ hash = (37 * hash) + IMPORTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getImportance();
+ hash = (37 * hash) + ISREAD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsRead());
+ hash = (37 * hash) + ISATTACHMENTGOT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsAttachmentGot());
+ hash = (37 * hash) + CONFIGID_FIELD_NUMBER;
+ hash = (53 * hash) + getConfigId();
+ if (getArgumentListCount() > 0) {
+ hash = (37 * hash) + ARGUMENTLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getArgumentListList().hashCode();
+ }
+ hash = (37 * hash) + STATEVALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getStateValue();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData 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.MailDataOuterClass.MailData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData 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.MailDataOuterClass.MailData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData 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.MailDataOuterClass.MailData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData 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.MailDataOuterClass.MailData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData 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.MailDataOuterClass.MailData 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 MailData}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:MailData)
+ emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.MailDataOuterClass.internal_static_MailData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailDataOuterClass.internal_static_MailData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData.class, emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.MailDataOuterClass.MailData.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();
+ mailId_ = 0;
+
+ if (mailTextContentBuilder_ == null) {
+ mailTextContent_ = null;
+ } else {
+ mailTextContent_ = null;
+ mailTextContentBuilder_ = null;
+ }
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ itemListBuilder_.clear();
+ }
+ sendTime_ = 0;
+
+ expireTime_ = 0;
+
+ importance_ = 0;
+
+ isRead_ = false;
+
+ isAttachmentGot_ = false;
+
+ configId_ = 0;
+
+ argumentList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ stateValue_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.MailDataOuterClass.internal_static_MailData_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData build() {
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailDataOuterClass.MailData buildPartial() {
+ emu.grasscutter.net.proto.MailDataOuterClass.MailData result = new emu.grasscutter.net.proto.MailDataOuterClass.MailData(this);
+ int from_bitField0_ = bitField0_;
+ result.mailId_ = mailId_;
+ if (mailTextContentBuilder_ == null) {
+ result.mailTextContent_ = mailTextContent_;
+ } else {
+ result.mailTextContent_ = mailTextContentBuilder_.build();
+ }
+ if (itemListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ itemList_ = java.util.Collections.unmodifiableList(itemList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.itemList_ = itemList_;
+ } else {
+ result.itemList_ = itemListBuilder_.build();
+ }
+ result.sendTime_ = sendTime_;
+ result.expireTime_ = expireTime_;
+ result.importance_ = importance_;
+ result.isRead_ = isRead_;
+ result.isAttachmentGot_ = isAttachmentGot_;
+ result.configId_ = configId_;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ argumentList_ = argumentList_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.argumentList_ = argumentList_;
+ result.stateValue_ = stateValue_;
+ 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.MailDataOuterClass.MailData) {
+ return mergeFrom((emu.grasscutter.net.proto.MailDataOuterClass.MailData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.MailDataOuterClass.MailData other) {
+ if (other == emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance()) return this;
+ if (other.getMailId() != 0) {
+ setMailId(other.getMailId());
+ }
+ if (other.hasMailTextContent()) {
+ mergeMailTextContent(other.getMailTextContent());
+ }
+ 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.getSendTime() != 0) {
+ setSendTime(other.getSendTime());
+ }
+ if (other.getExpireTime() != 0) {
+ setExpireTime(other.getExpireTime());
+ }
+ if (other.getImportance() != 0) {
+ setImportance(other.getImportance());
+ }
+ if (other.getIsRead() != false) {
+ setIsRead(other.getIsRead());
+ }
+ if (other.getIsAttachmentGot() != false) {
+ setIsAttachmentGot(other.getIsAttachmentGot());
+ }
+ if (other.getConfigId() != 0) {
+ setConfigId(other.getConfigId());
+ }
+ if (!other.argumentList_.isEmpty()) {
+ if (argumentList_.isEmpty()) {
+ argumentList_ = other.argumentList_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureArgumentListIsMutable();
+ argumentList_.addAll(other.argumentList_);
+ }
+ onChanged();
+ }
+ if (other.getStateValue() != 0) {
+ setStateValue(other.getStateValue());
+ }
+ 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.MailDataOuterClass.MailData parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.MailDataOuterClass.MailData) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int mailId_ ;
+ /**
+ * uint32 mailId = 1;
+ * @return The mailId.
+ */
+ @java.lang.Override
+ public int getMailId() {
+ return mailId_;
+ }
+ /**
+ * uint32 mailId = 1;
+ * @param value The mailId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailId(int value) {
+
+ mailId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 mailId = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailId() {
+
+ mailId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent mailTextContent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder> mailTextContentBuilder_;
+ /**
+ * .MailTextContent mailTextContent = 4;
+ * @return Whether the mailTextContent field is set.
+ */
+ public boolean hasMailTextContent() {
+ return mailTextContentBuilder_ != null || mailTextContent_ != null;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ * @return The mailTextContent.
+ */
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent getMailTextContent() {
+ if (mailTextContentBuilder_ == null) {
+ return mailTextContent_ == null ? emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.getDefaultInstance() : mailTextContent_;
+ } else {
+ return mailTextContentBuilder_.getMessage();
+ }
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ public Builder setMailTextContent(emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent value) {
+ if (mailTextContentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mailTextContent_ = value;
+ onChanged();
+ } else {
+ mailTextContentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ public Builder setMailTextContent(
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder builderForValue) {
+ if (mailTextContentBuilder_ == null) {
+ mailTextContent_ = builderForValue.build();
+ onChanged();
+ } else {
+ mailTextContentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ public Builder mergeMailTextContent(emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent value) {
+ if (mailTextContentBuilder_ == null) {
+ if (mailTextContent_ != null) {
+ mailTextContent_ =
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.newBuilder(mailTextContent_).mergeFrom(value).buildPartial();
+ } else {
+ mailTextContent_ = value;
+ }
+ onChanged();
+ } else {
+ mailTextContentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ public Builder clearMailTextContent() {
+ if (mailTextContentBuilder_ == null) {
+ mailTextContent_ = null;
+ onChanged();
+ } else {
+ mailTextContent_ = null;
+ mailTextContentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder getMailTextContentBuilder() {
+
+ onChanged();
+ return getMailTextContentFieldBuilder().getBuilder();
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder getMailTextContentOrBuilder() {
+ if (mailTextContentBuilder_ != null) {
+ return mailTextContentBuilder_.getMessageOrBuilder();
+ } else {
+ return mailTextContent_ == null ?
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.getDefaultInstance() : mailTextContent_;
+ }
+ }
+ /**
+ * .MailTextContent mailTextContent = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder>
+ getMailTextContentFieldBuilder() {
+ if (mailTextContentBuilder_ == null) {
+ mailTextContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder>(
+ getMailTextContent(),
+ getParentForChildren(),
+ isClean());
+ mailTextContent_ = null;
+ }
+ return mailTextContentBuilder_;
+ }
+
+ 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.MailItemOuterClass.MailItem, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder, emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder> itemListBuilder_;
+
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public java.util.List getItemListList() {
+ if (itemListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(itemList_);
+ } else {
+ return itemListBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public int getItemListCount() {
+ if (itemListBuilder_ == null) {
+ return itemList_.size();
+ } else {
+ return itemListBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem getItemList(int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index);
+ } else {
+ return itemListBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.MailItemOuterClass.MailItem value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.set(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder setItemList(
+ int index, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder addItemList(emu.grasscutter.net.proto.MailItemOuterClass.MailItem value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.MailItemOuterClass.MailItem value) {
+ if (itemListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemListIsMutable();
+ itemList_.add(index, value);
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder addItemList(
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder addItemList(
+ int index, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder builderForValue) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder addAllItemList(
+ java.lang.Iterable extends emu.grasscutter.net.proto.MailItemOuterClass.MailItem> values) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, itemList_);
+ onChanged();
+ } else {
+ itemListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder clearItemList() {
+ if (itemListBuilder_ == null) {
+ itemList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ itemListBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public Builder removeItemList(int index) {
+ if (itemListBuilder_ == null) {
+ ensureItemListIsMutable();
+ itemList_.remove(index);
+ onChanged();
+ } else {
+ itemListBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder getItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder getItemListOrBuilder(
+ int index) {
+ if (itemListBuilder_ == null) {
+ return itemList_.get(index); } else {
+ return itemListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public java.util.List extends emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder>
+ getItemListOrBuilderList() {
+ if (itemListBuilder_ != null) {
+ return itemListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(itemList_);
+ }
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder addItemListBuilder() {
+ return getItemListFieldBuilder().addBuilder(
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem.getDefaultInstance());
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder addItemListBuilder(
+ int index) {
+ return getItemListFieldBuilder().addBuilder(
+ index, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.getDefaultInstance());
+ }
+ /**
+ * repeated .MailItem itemList = 7;
+ */
+ public java.util.List
+ getItemListBuilderList() {
+ return getItemListFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder, emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder>
+ getItemListFieldBuilder() {
+ if (itemListBuilder_ == null) {
+ itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder, emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder>(
+ itemList_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ itemList_ = null;
+ }
+ return itemListBuilder_;
+ }
+
+ private int sendTime_ ;
+ /**
+ * uint32 sendTime = 8;
+ * @return The sendTime.
+ */
+ @java.lang.Override
+ public int getSendTime() {
+ return sendTime_;
+ }
+ /**
+ * uint32 sendTime = 8;
+ * @param value The sendTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSendTime(int value) {
+
+ sendTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 sendTime = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearSendTime() {
+
+ sendTime_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int expireTime_ ;
+ /**
+ * uint32 expireTime = 9;
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public int getExpireTime() {
+ return expireTime_;
+ }
+ /**
+ * uint32 expireTime = 9;
+ * @param value The expireTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExpireTime(int value) {
+
+ expireTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 expireTime = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearExpireTime() {
+
+ expireTime_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int importance_ ;
+ /**
+ * uint32 importance = 10;
+ * @return The importance.
+ */
+ @java.lang.Override
+ public int getImportance() {
+ return importance_;
+ }
+ /**
+ * uint32 importance = 10;
+ * @param value The importance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImportance(int value) {
+
+ importance_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 importance = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearImportance() {
+
+ importance_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean isRead_ ;
+ /**
+ * bool isRead = 11;
+ * @return The isRead.
+ */
+ @java.lang.Override
+ public boolean getIsRead() {
+ return isRead_;
+ }
+ /**
+ * bool isRead = 11;
+ * @param value The isRead to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsRead(boolean value) {
+
+ isRead_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool isRead = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsRead() {
+
+ isRead_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean isAttachmentGot_ ;
+ /**
+ * bool isAttachmentGot = 12;
+ * @return The isAttachmentGot.
+ */
+ @java.lang.Override
+ public boolean getIsAttachmentGot() {
+ return isAttachmentGot_;
+ }
+ /**
+ * bool isAttachmentGot = 12;
+ * @param value The isAttachmentGot to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsAttachmentGot(boolean value) {
+
+ isAttachmentGot_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool isAttachmentGot = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsAttachmentGot() {
+
+ isAttachmentGot_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int configId_ ;
+ /**
+ * uint32 configId = 13;
+ * @return The configId.
+ */
+ @java.lang.Override
+ public int getConfigId() {
+ return configId_;
+ }
+ /**
+ * uint32 configId = 13;
+ * @param value The configId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConfigId(int value) {
+
+ configId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 configId = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearConfigId() {
+
+ configId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList argumentList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureArgumentListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ argumentList_ = new com.google.protobuf.LazyStringArrayList(argumentList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @return A list containing the argumentList.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getArgumentListList() {
+ return argumentList_.getUnmodifiableView();
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @return The count of argumentList.
+ */
+ public int getArgumentListCount() {
+ return argumentList_.size();
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index of the element to return.
+ * @return The argumentList at the given index.
+ */
+ public java.lang.String getArgumentList(int index) {
+ return argumentList_.get(index);
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index of the value to return.
+ * @return The bytes of the argumentList at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getArgumentListBytes(int index) {
+ return argumentList_.getByteString(index);
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param index The index to set the value at.
+ * @param value The argumentList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArgumentList(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgumentListIsMutable();
+ argumentList_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param value The argumentList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addArgumentList(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgumentListIsMutable();
+ argumentList_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param values The argumentList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllArgumentList(
+ java.lang.Iterable values) {
+ ensureArgumentListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, argumentList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @return This builder for chaining.
+ */
+ public Builder clearArgumentList() {
+ argumentList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string argumentList = 14;
+ * @param value The bytes of the argumentList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addArgumentListBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureArgumentListIsMutable();
+ argumentList_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private int stateValue_ ;
+ /**
+ * uint32 stateValue = 15;
+ * @return The stateValue.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return stateValue_;
+ }
+ /**
+ * uint32 stateValue = 15;
+ * @param value The stateValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+
+ stateValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 stateValue = 15;
+ * @return This builder for chaining.
+ */
+ public Builder clearStateValue() {
+
+ stateValue_ = 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:MailData)
+ }
+
+ // @@protoc_insertion_point(class_scope:MailData)
+ private static final emu.grasscutter.net.proto.MailDataOuterClass.MailData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MailDataOuterClass.MailData();
+ }
+
+ public static emu.grasscutter.net.proto.MailDataOuterClass.MailData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MailData parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MailData(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.MailDataOuterClass.MailData getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_MailData_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_MailData_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\016MailData.proto\032\025MailTextContent.proto\032" +
+ "\016MailItem.proto\"\201\002\n\010MailData\022\016\n\006mailId\030\001" +
+ " \001(\r\022)\n\017mailTextContent\030\004 \001(\0132\020.MailText" +
+ "Content\022\033\n\010itemList\030\007 \003(\0132\t.MailItem\022\020\n\010" +
+ "sendTime\030\010 \001(\r\022\022\n\nexpireTime\030\t \001(\r\022\022\n\nim" +
+ "portance\030\n \001(\r\022\016\n\006isRead\030\013 \001(\010\022\027\n\017isAtta" +
+ "chmentGot\030\014 \001(\010\022\020\n\010configId\030\r \001(\r\022\024\n\014arg" +
+ "umentList\030\016 \003(\t\022\022\n\nstateValue\030\017 \001(\rB\033\n\031e" +
+ "mu.grasscutter.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.MailTextContentOuterClass.getDescriptor(),
+ emu.grasscutter.net.proto.MailItemOuterClass.getDescriptor(),
+ });
+ internal_static_MailData_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_MailData_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_MailData_descriptor,
+ new java.lang.String[] { "MailId", "MailTextContent", "ItemList", "SendTime", "ExpireTime", "Importance", "IsRead", "IsAttachmentGot", "ConfigId", "ArgumentList", "StateValue", });
+ emu.grasscutter.net.proto.MailTextContentOuterClass.getDescriptor();
+ emu.grasscutter.net.proto.MailItemOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/MailItemOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MailItemOuterClass.java
new file mode 100644
index 000000000..9298bb251
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/MailItemOuterClass.java
@@ -0,0 +1,880 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: MailItem.proto
+
+package emu.grasscutter.net.proto;
+
+public final class MailItemOuterClass {
+ private MailItemOuterClass() {}
+ 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 MailItemOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MailItem)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .ItemParam itemParam = 1;
+ * @return Whether the itemParam field is set.
+ */
+ boolean hasItemParam();
+ /**
+ * .ItemParam itemParam = 1;
+ * @return The itemParam.
+ */
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParam();
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamOrBuilder();
+
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ * @return Whether the deleteInfo field is set.
+ */
+ boolean hasDeleteInfo();
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ * @return The deleteInfo.
+ */
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo();
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder getDeleteInfoOrBuilder();
+ }
+ /**
+ * Protobuf type {@code MailItem}
+ */
+ public static final class MailItem extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MailItem)
+ MailItemOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MailItem.newBuilder() to construct.
+ private MailItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MailItem() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MailItem();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MailItem(
+ 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 10: {
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder subBuilder = null;
+ if (itemParam_ != null) {
+ subBuilder = itemParam_.toBuilder();
+ }
+ itemParam_ = input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(itemParam_);
+ itemParam_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder subBuilder = null;
+ if (deleteInfo_ != null) {
+ subBuilder = deleteInfo_.toBuilder();
+ }
+ deleteInfo_ = input.readMessage(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(deleteInfo_);
+ deleteInfo_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().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.MailItemOuterClass.internal_static_MailItem_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailItemOuterClass.internal_static_MailItem_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem.class, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder.class);
+ }
+
+ public static final int ITEMPARAM_FIELD_NUMBER = 1;
+ private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam itemParam_;
+ /**
+ * .ItemParam itemParam = 1;
+ * @return Whether the itemParam field is set.
+ */
+ @java.lang.Override
+ public boolean hasItemParam() {
+ return itemParam_ != null;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ * @return The itemParam.
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParam() {
+ return itemParam_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : itemParam_;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamOrBuilder() {
+ return getItemParam();
+ }
+
+ public static final int DELETEINFO_FIELD_NUMBER = 2;
+ private emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo deleteInfo_;
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ * @return Whether the deleteInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteInfo() {
+ return deleteInfo_ != null;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ * @return The deleteInfo.
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo() {
+ return deleteInfo_ == null ? emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance() : deleteInfo_;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder getDeleteInfoOrBuilder() {
+ return getDeleteInfo();
+ }
+
+ 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 (itemParam_ != null) {
+ output.writeMessage(1, getItemParam());
+ }
+ if (deleteInfo_ != null) {
+ output.writeMessage(2, getDeleteInfo());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (itemParam_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getItemParam());
+ }
+ if (deleteInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getDeleteInfo());
+ }
+ 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.MailItemOuterClass.MailItem)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem other = (emu.grasscutter.net.proto.MailItemOuterClass.MailItem) obj;
+
+ if (hasItemParam() != other.hasItemParam()) return false;
+ if (hasItemParam()) {
+ if (!getItemParam()
+ .equals(other.getItemParam())) return false;
+ }
+ if (hasDeleteInfo() != other.hasDeleteInfo()) return false;
+ if (hasDeleteInfo()) {
+ if (!getDeleteInfo()
+ .equals(other.getDeleteInfo())) 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 (hasItemParam()) {
+ hash = (37 * hash) + ITEMPARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getItemParam().hashCode();
+ }
+ if (hasDeleteInfo()) {
+ hash = (37 * hash) + DELETEINFO_FIELD_NUMBER;
+ hash = (53 * hash) + getDeleteInfo().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem 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.MailItemOuterClass.MailItem parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem 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.MailItemOuterClass.MailItem parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem 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.MailItemOuterClass.MailItem parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem 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.MailItemOuterClass.MailItem parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem 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.MailItemOuterClass.MailItem 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 MailItem}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:MailItem)
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItemOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.MailItemOuterClass.internal_static_MailItem_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailItemOuterClass.internal_static_MailItem_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem.class, emu.grasscutter.net.proto.MailItemOuterClass.MailItem.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.MailItemOuterClass.MailItem.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();
+ if (itemParamBuilder_ == null) {
+ itemParam_ = null;
+ } else {
+ itemParam_ = null;
+ itemParamBuilder_ = null;
+ }
+ if (deleteInfoBuilder_ == null) {
+ deleteInfo_ = null;
+ } else {
+ deleteInfo_ = null;
+ deleteInfoBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.MailItemOuterClass.internal_static_MailItem_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.MailItemOuterClass.MailItem.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem build() {
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailItemOuterClass.MailItem buildPartial() {
+ emu.grasscutter.net.proto.MailItemOuterClass.MailItem result = new emu.grasscutter.net.proto.MailItemOuterClass.MailItem(this);
+ if (itemParamBuilder_ == null) {
+ result.itemParam_ = itemParam_;
+ } else {
+ result.itemParam_ = itemParamBuilder_.build();
+ }
+ if (deleteInfoBuilder_ == null) {
+ result.deleteInfo_ = deleteInfo_;
+ } else {
+ result.deleteInfo_ = deleteInfoBuilder_.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.MailItemOuterClass.MailItem) {
+ return mergeFrom((emu.grasscutter.net.proto.MailItemOuterClass.MailItem)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.MailItemOuterClass.MailItem other) {
+ if (other == emu.grasscutter.net.proto.MailItemOuterClass.MailItem.getDefaultInstance()) return this;
+ if (other.hasItemParam()) {
+ mergeItemParam(other.getItemParam());
+ }
+ if (other.hasDeleteInfo()) {
+ mergeDeleteInfo(other.getDeleteInfo());
+ }
+ 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.MailItemOuterClass.MailItem parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.MailItemOuterClass.MailItem) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam itemParam_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamBuilder_;
+ /**
+ * .ItemParam itemParam = 1;
+ * @return Whether the itemParam field is set.
+ */
+ public boolean hasItemParam() {
+ return itemParamBuilder_ != null || itemParam_ != null;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ * @return The itemParam.
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParam() {
+ if (itemParamBuilder_ == null) {
+ return itemParam_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : itemParam_;
+ } else {
+ return itemParamBuilder_.getMessage();
+ }
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ public Builder setItemParam(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemParamBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ itemParam_ = value;
+ onChanged();
+ } else {
+ itemParamBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ public Builder setItemParam(
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
+ if (itemParamBuilder_ == null) {
+ itemParam_ = builderForValue.build();
+ onChanged();
+ } else {
+ itemParamBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ public Builder mergeItemParam(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
+ if (itemParamBuilder_ == null) {
+ if (itemParam_ != null) {
+ itemParam_ =
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder(itemParam_).mergeFrom(value).buildPartial();
+ } else {
+ itemParam_ = value;
+ }
+ onChanged();
+ } else {
+ itemParamBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ public Builder clearItemParam() {
+ if (itemParamBuilder_ == null) {
+ itemParam_ = null;
+ onChanged();
+ } else {
+ itemParam_ = null;
+ itemParamBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamBuilder() {
+
+ onChanged();
+ return getItemParamFieldBuilder().getBuilder();
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamOrBuilder() {
+ if (itemParamBuilder_ != null) {
+ return itemParamBuilder_.getMessageOrBuilder();
+ } else {
+ return itemParam_ == null ?
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : itemParam_;
+ }
+ }
+ /**
+ * .ItemParam itemParam = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
+ getItemParamFieldBuilder() {
+ if (itemParamBuilder_ == null) {
+ itemParamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
+ getItemParam(),
+ getParentForChildren(),
+ isClean());
+ itemParam_ = null;
+ }
+ return itemParamBuilder_;
+ }
+
+ private emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo deleteInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder> deleteInfoBuilder_;
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ * @return Whether the deleteInfo field is set.
+ */
+ public boolean hasDeleteInfo() {
+ return deleteInfoBuilder_ != null || deleteInfo_ != null;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ * @return The deleteInfo.
+ */
+ public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo() {
+ if (deleteInfoBuilder_ == null) {
+ return deleteInfo_ == null ? emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance() : deleteInfo_;
+ } else {
+ return deleteInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ public Builder setDeleteInfo(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo value) {
+ if (deleteInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deleteInfo_ = value;
+ onChanged();
+ } else {
+ deleteInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ public Builder setDeleteInfo(
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder builderForValue) {
+ if (deleteInfoBuilder_ == null) {
+ deleteInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ deleteInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ public Builder mergeDeleteInfo(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo value) {
+ if (deleteInfoBuilder_ == null) {
+ if (deleteInfo_ != null) {
+ deleteInfo_ =
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.newBuilder(deleteInfo_).mergeFrom(value).buildPartial();
+ } else {
+ deleteInfo_ = value;
+ }
+ onChanged();
+ } else {
+ deleteInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ public Builder clearDeleteInfo() {
+ if (deleteInfoBuilder_ == null) {
+ deleteInfo_ = null;
+ onChanged();
+ } else {
+ deleteInfo_ = null;
+ deleteInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder getDeleteInfoBuilder() {
+
+ onChanged();
+ return getDeleteInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder getDeleteInfoOrBuilder() {
+ if (deleteInfoBuilder_ != null) {
+ return deleteInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return deleteInfo_ == null ?
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance() : deleteInfo_;
+ }
+ }
+ /**
+ * .MaterialDeleteInfo deleteInfo = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder>
+ getDeleteInfoFieldBuilder() {
+ if (deleteInfoBuilder_ == null) {
+ deleteInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder>(
+ getDeleteInfo(),
+ getParentForChildren(),
+ isClean());
+ deleteInfo_ = null;
+ }
+ return deleteInfoBuilder_;
+ }
+ @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:MailItem)
+ }
+
+ // @@protoc_insertion_point(class_scope:MailItem)
+ private static final emu.grasscutter.net.proto.MailItemOuterClass.MailItem DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MailItemOuterClass.MailItem();
+ }
+
+ public static emu.grasscutter.net.proto.MailItemOuterClass.MailItem getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MailItem parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MailItem(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.MailItemOuterClass.MailItem getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_MailItem_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_MailItem_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\016MailItem.proto\032\017ItemParam.proto\032\030Mater" +
+ "ialDeleteInfo.proto\"R\n\010MailItem\022\035\n\titemP" +
+ "aram\030\001 \001(\0132\n.ItemParam\022\'\n\ndeleteInfo\030\002 \001" +
+ "(\0132\023.MaterialDeleteInfoB\033\n\031emu.grasscutt" +
+ "er.net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.getDescriptor(),
+ });
+ internal_static_MailItem_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_MailItem_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_MailItem_descriptor,
+ new java.lang.String[] { "ItemParam", "DeleteInfo", });
+ emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
+ emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/MailTextContentOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MailTextContentOuterClass.java
new file mode 100644
index 000000000..869011ffa
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/MailTextContentOuterClass.java
@@ -0,0 +1,919 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: MailTextContent.proto
+
+package emu.grasscutter.net.proto;
+
+public final class MailTextContentOuterClass {
+ private MailTextContentOuterClass() {}
+ 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 MailTextContentOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MailTextContent)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string title = 1;
+ * @return The title.
+ */
+ java.lang.String getTitle();
+ /**
+ * string title = 1;
+ * @return The bytes for title.
+ */
+ com.google.protobuf.ByteString
+ getTitleBytes();
+
+ /**
+ * string content = 2;
+ * @return The content.
+ */
+ java.lang.String getContent();
+ /**
+ * string content = 2;
+ * @return The bytes for content.
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+
+ /**
+ * string sender = 3;
+ * @return The sender.
+ */
+ java.lang.String getSender();
+ /**
+ * string sender = 3;
+ * @return The bytes for sender.
+ */
+ com.google.protobuf.ByteString
+ getSenderBytes();
+ }
+ /**
+ * Protobuf type {@code MailTextContent}
+ */
+ public static final class MailTextContent extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MailTextContent)
+ MailTextContentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MailTextContent.newBuilder() to construct.
+ private MailTextContent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MailTextContent() {
+ title_ = "";
+ content_ = "";
+ sender_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MailTextContent();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MailTextContent(
+ 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 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ title_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ content_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sender_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().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.MailTextContentOuterClass.internal_static_MailTextContent_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailTextContentOuterClass.internal_static_MailTextContent_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.class, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder.class);
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object title_;
+ /**
+ * string title = 1;
+ * @return The title.
+ */
+ @java.lang.Override
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ * string title = 1;
+ * @return The bytes for title.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object content_;
+ /**
+ * string content = 2;
+ * @return The content.
+ */
+ @java.lang.Override
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * string content = 2;
+ * @return The bytes for content.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SENDER_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sender_;
+ /**
+ * string sender = 3;
+ * @return The sender.
+ */
+ @java.lang.Override
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sender = 3;
+ * @return The bytes for sender.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sender_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sender_);
+ }
+ 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.MailTextContentOuterClass.MailTextContent)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent other = (emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent) obj;
+
+ if (!getTitle()
+ .equals(other.getTitle())) return false;
+ if (!getContent()
+ .equals(other.getContent())) return false;
+ if (!getSender()
+ .equals(other.getSender())) 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) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent 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.MailTextContentOuterClass.MailTextContent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent 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.MailTextContentOuterClass.MailTextContent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent 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.MailTextContentOuterClass.MailTextContent parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent 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.MailTextContentOuterClass.MailTextContent parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent 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.MailTextContentOuterClass.MailTextContent 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 MailTextContent}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:MailTextContent)
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.MailTextContentOuterClass.internal_static_MailTextContent_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.MailTextContentOuterClass.internal_static_MailTextContent_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.class, emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.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();
+ title_ = "";
+
+ content_ = "";
+
+ sender_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.MailTextContentOuterClass.internal_static_MailTextContent_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent build() {
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent buildPartial() {
+ emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent result = new emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent(this);
+ result.title_ = title_;
+ result.content_ = content_;
+ result.sender_ = sender_;
+ 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.MailTextContentOuterClass.MailTextContent) {
+ return mergeFrom((emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent other) {
+ if (other == emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent.getDefaultInstance()) return this;
+ if (!other.getTitle().isEmpty()) {
+ title_ = other.title_;
+ onChanged();
+ }
+ if (!other.getContent().isEmpty()) {
+ content_ = other.content_;
+ onChanged();
+ }
+ if (!other.getSender().isEmpty()) {
+ sender_ = other.sender_;
+ 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.MailTextContentOuterClass.MailTextContent parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+ /**
+ * string title = 1;
+ * @return The title.
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string title = 1;
+ * @return The bytes for title.
+ */
+ public com.google.protobuf.ByteString
+ getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string title = 1;
+ * @param value The title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitle(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 1;
+ * @param value The bytes for title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitleBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object content_ = "";
+ /**
+ * string content = 2;
+ * @return The content.
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string content = 2;
+ * @return The bytes for content.
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string content = 2;
+ * @param value The content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContent() {
+
+ content_ = getDefaultInstance().getContent();
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 2;
+ * @param value The bytes for content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sender_ = "";
+ /**
+ * string sender = 3;
+ * @return The sender.
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sender = 3;
+ * @return The bytes for sender.
+ */
+ public com.google.protobuf.ByteString
+ getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sender = 3;
+ * @param value The sender to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSender(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSender() {
+
+ sender_ = getDefaultInstance().getSender();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sender = 3;
+ * @param value The bytes for sender to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSenderBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sender_ = value;
+ 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:MailTextContent)
+ }
+
+ // @@protoc_insertion_point(class_scope:MailTextContent)
+ private static final emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent();
+ }
+
+ public static emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MailTextContent parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MailTextContent(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.MailTextContentOuterClass.MailTextContent getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_MailTextContent_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_MailTextContent_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\025MailTextContent.proto\"A\n\017MailTextConte" +
+ "nt\022\r\n\005title\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\022\016\n\006se" +
+ "nder\030\003 \001(\tB\033\n\031emu.grasscutter.net.protob" +
+ "\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_MailTextContent_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_MailTextContent_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_MailTextContent_descriptor,
+ new java.lang.String[] { "Title", "Content", "Sender", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/emu/grasscutter/net/proto/ReadMailNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ReadMailNotifyOuterClass.java
new file mode 100644
index 000000000..cf4ef50ca
--- /dev/null
+++ b/src/main/java/emu/grasscutter/net/proto/ReadMailNotifyOuterClass.java
@@ -0,0 +1,665 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReadMailNotify.proto
+
+package emu.grasscutter.net.proto;
+
+public final class ReadMailNotifyOuterClass {
+ private ReadMailNotifyOuterClass() {}
+ 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 ReadMailNotifyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ReadMailNotify)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ java.util.List getMailIdListList();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ int getMailIdListCount();
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ int getMailIdList(int index);
+ }
+ /**
+ * Protobuf type {@code ReadMailNotify}
+ */
+ public static final class ReadMailNotify extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ReadMailNotify)
+ ReadMailNotifyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ReadMailNotify.newBuilder() to construct.
+ private ReadMailNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ReadMailNotify() {
+ mailIdList_ = emptyIntList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadMailNotify();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadMailNotify(
+ 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 8: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ mailIdList_.addInt(input.readUInt32());
+ break;
+ }
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ mailIdList_ = newIntList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ mailIdList_.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 (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.ReadMailNotifyOuterClass.internal_static_ReadMailNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.ReadMailNotifyOuterClass.internal_static_ReadMailNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.class, emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.Builder.class);
+ }
+
+ public static final int MAILIDLIST_FIELD_NUMBER = 1;
+ private com.google.protobuf.Internal.IntList mailIdList_;
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ @java.lang.Override
+ public java.util.List
+ getMailIdListList() {
+ return mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ private int mailIdListMemoizedSerializedSize = -1;
+
+ 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 (getMailIdListList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < mailIdList_.size(); i++) {
+ output.writeUInt32NoTag(mailIdList_.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 < mailIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(mailIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getMailIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ mailIdListMemoizedSerializedSize = dataSize;
+ }
+ 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.ReadMailNotifyOuterClass.ReadMailNotify)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify other = (emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify) obj;
+
+ if (!getMailIdListList()
+ .equals(other.getMailIdListList())) 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 (getMailIdListCount() > 0) {
+ hash = (37 * hash) + MAILIDLIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMailIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify 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.ReadMailNotifyOuterClass.ReadMailNotify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify 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.ReadMailNotifyOuterClass.ReadMailNotify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify 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.ReadMailNotifyOuterClass.ReadMailNotify parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify 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.ReadMailNotifyOuterClass.ReadMailNotify parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify 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.ReadMailNotifyOuterClass.ReadMailNotify 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 ReadMailNotify}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ReadMailNotify)
+ emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotifyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return emu.grasscutter.net.proto.ReadMailNotifyOuterClass.internal_static_ReadMailNotify_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return emu.grasscutter.net.proto.ReadMailNotifyOuterClass.internal_static_ReadMailNotify_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.class, emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.Builder.class);
+ }
+
+ // Construct using emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.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();
+ mailIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return emu.grasscutter.net.proto.ReadMailNotifyOuterClass.internal_static_ReadMailNotify_descriptor;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify getDefaultInstanceForType() {
+ return emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify build() {
+ emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify buildPartial() {
+ emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify result = new emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.mailIdList_ = mailIdList_;
+ 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.ReadMailNotifyOuterClass.ReadMailNotify) {
+ return mergeFrom((emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify other) {
+ if (other == emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify.getDefaultInstance()) return this;
+ if (!other.mailIdList_.isEmpty()) {
+ if (mailIdList_.isEmpty()) {
+ mailIdList_ = other.mailIdList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMailIdListIsMutable();
+ mailIdList_.addAll(other.mailIdList_);
+ }
+ 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.ReadMailNotifyOuterClass.ReadMailNotify parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
+ private void ensureMailIdListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ mailIdList_ = mutableCopy(mailIdList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return A list containing the mailIdList.
+ */
+ public java.util.List
+ getMailIdListList() {
+ return ((bitField0_ & 0x00000001) != 0) ?
+ java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return The count of mailIdList.
+ */
+ public int getMailIdListCount() {
+ return mailIdList_.size();
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index of the element to return.
+ * @return The mailIdList at the given index.
+ */
+ public int getMailIdList(int index) {
+ return mailIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param index The index to set the value at.
+ * @param value The mailIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMailIdList(
+ int index, int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param value The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMailIdList(int value) {
+ ensureMailIdListIsMutable();
+ mailIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @param values The mailIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMailIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureMailIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, mailIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 mailIdList = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMailIdList() {
+ mailIdList_ = 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:ReadMailNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReadMailNotify)
+ private static final emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify();
+ }
+
+ public static emu.grasscutter.net.proto.ReadMailNotifyOuterClass.ReadMailNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReadMailNotify parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReadMailNotify(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.ReadMailNotifyOuterClass.ReadMailNotify getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ReadMailNotify_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ReadMailNotify_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\024ReadMailNotify.proto\"$\n\016ReadMailNotify" +
+ "\022\022\n\nmailIdList\030\001 \003(\rB\033\n\031emu.grasscutter." +
+ "net.protob\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_ReadMailNotify_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_ReadMailNotify_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReadMailNotify_descriptor,
+ new java.lang.String[] { "MailIdList", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}