diff --git a/src/generated/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java index f5905919e..0366ba061 100644 --- a/src/generated/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java +++ b/src/generated/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java @@ -1,1524 +1,1547 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarUpgradeRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarUpgradeRspOuterClass { - private AvatarUpgradeRspOuterClass() {} - 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 AvatarUpgradeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarUpgradeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 old_level = 3; - * @return The oldLevel. - */ - int getOldLevel(); - - /** - * uint32 cur_level = 15; - * @return The curLevel. - */ - int getCurLevel(); - - /** - * int32 retcode = 1; - * @return The retcode. - */ - int getRetcode(); - - /** - * uint64 avatar_guid = 13; - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - int getCurFightPropMapCount(); - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - boolean containsCurFightPropMap( - int key); - /** - * Use {@link #getCurFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCurFightPropMap(); - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - java.util.Map - getCurFightPropMapMap(); - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - - float getCurFightPropMapOrDefault( - int key, - float defaultValue); - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - - float getCurFightPropMapOrThrow( - int key); - - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - int getOldFightPropMapCount(); - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - boolean containsOldFightPropMap( - int key); - /** - * Use {@link #getOldFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getOldFightPropMap(); - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - java.util.Map - getOldFightPropMapMap(); - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - - float getOldFightPropMapOrDefault( - int key, - float defaultValue); - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - - float getOldFightPropMapOrThrow( - int key); - } - /** - *
-   * Name: FDBHCBMNCAI
-   * CmdId: 1741
-   * 
- * - * Protobuf type {@code AvatarUpgradeRsp} - */ - public static final class AvatarUpgradeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarUpgradeRsp) - AvatarUpgradeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarUpgradeRsp.newBuilder() to construct. - private AvatarUpgradeRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AvatarUpgradeRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarUpgradeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarUpgradeRsp( - 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 24: { - - oldLevel_ = input.readUInt32(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - oldFightPropMap_ = com.google.protobuf.MapField.newMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - oldFightPropMap__ = input.readMessage( - OldFightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - oldFightPropMap_.getMutableMap().put( - oldFightPropMap__.getKey(), oldFightPropMap__.getValue()); - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - curFightPropMap_ = com.google.protobuf.MapField.newMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - curFightPropMap__ = input.readMessage( - CurFightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - curFightPropMap_.getMutableMap().put( - curFightPropMap__.getKey(), curFightPropMap__.getValue()); - break; - } - case 104: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 120: { - - curLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 12: - return internalGetCurFightPropMap(); - case 7: - return internalGetOldFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.class, emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.Builder.class); - } - - public static final int OLD_LEVEL_FIELD_NUMBER = 3; - private int oldLevel_; - /** - * uint32 old_level = 3; - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - public static final int CUR_LEVEL_FIELD_NUMBER = 15; - private int curLevel_; - /** - * uint32 cur_level = 15; - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - - 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 AVATAR_GUID_FIELD_NUMBER = 13; - private long avatarGuid_; - /** - * uint64 avatar_guid = 13; - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int CUR_FIGHT_PROP_MAP_FIELD_NUMBER = 12; - private static final class CurFightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> curFightPropMap_; - private com.google.protobuf.MapField - internalGetCurFightPropMap() { - if (curFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - } - return curFightPropMap_; - } - - public int getCurFightPropMapCount() { - return internalGetCurFightPropMap().getMap().size(); - } - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - - @java.lang.Override - public boolean containsCurFightPropMap( - int key) { - - return internalGetCurFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getCurFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCurFightPropMap() { - return getCurFightPropMapMap(); - } - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - @java.lang.Override - - public java.util.Map getCurFightPropMapMap() { - return internalGetCurFightPropMap().getMap(); - } - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - @java.lang.Override - - public float getCurFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map map = - internalGetCurFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     *GEKBLKPMJCG
-     * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - @java.lang.Override - - public float getCurFightPropMapOrThrow( - int key) { - - java.util.Map map = - internalGetCurFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int OLD_FIGHT_PROP_MAP_FIELD_NUMBER = 7; - private static final class OldFightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> oldFightPropMap_; - private com.google.protobuf.MapField - internalGetOldFightPropMap() { - if (oldFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - } - return oldFightPropMap_; - } - - public int getOldFightPropMapCount() { - return internalGetOldFightPropMap().getMap().size(); - } - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - - @java.lang.Override - public boolean containsOldFightPropMap( - int key) { - - return internalGetOldFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getOldFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getOldFightPropMap() { - return getOldFightPropMapMap(); - } - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - @java.lang.Override - - public java.util.Map getOldFightPropMapMap() { - return internalGetOldFightPropMap().getMap(); - } - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - @java.lang.Override - - public float getOldFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map map = - internalGetOldFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     *AFEDLAOGFOC
-     * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - @java.lang.Override - - public float getOldFightPropMapOrThrow( - int key) { - - java.util.Map map = - internalGetOldFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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_); - } - if (oldLevel_ != 0) { - output.writeUInt32(3, oldLevel_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetOldFightPropMap(), - OldFightPropMapDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetCurFightPropMap(), - CurFightPropMapDefaultEntryHolder.defaultEntry, - 12); - if (avatarGuid_ != 0L) { - output.writeUInt64(13, avatarGuid_); - } - if (curLevel_ != 0) { - output.writeUInt32(15, curLevel_); - } - 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_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldLevel_); - } - for (java.util.Map.Entry entry - : internalGetOldFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - oldFightPropMap__ = OldFightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, oldFightPropMap__); - } - for (java.util.Map.Entry entry - : internalGetCurFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - curFightPropMap__ = CurFightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, curFightPropMap__); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, avatarGuid_); - } - if (curLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, curLevel_); - } - 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp other = (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) obj; - - if (getOldLevel() - != other.getOldLevel()) return false; - if (getCurLevel() - != other.getCurLevel()) return false; - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!internalGetCurFightPropMap().equals( - other.internalGetCurFightPropMap())) return false; - if (!internalGetOldFightPropMap().equals( - other.internalGetOldFightPropMap())) 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) + OLD_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (37 * hash) + CUR_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurLevel(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - if (!internalGetCurFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + CUR_FIGHT_PROP_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetCurFightPropMap().hashCode(); - } - if (!internalGetOldFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + OLD_FIGHT_PROP_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetOldFightPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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; - } - /** - *
-     * Name: FDBHCBMNCAI
-     * CmdId: 1741
-     * 
- * - * Protobuf type {@code AvatarUpgradeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AvatarUpgradeRsp) - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 12: - return internalGetCurFightPropMap(); - case 7: - return internalGetOldFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 12: - return internalGetMutableCurFightPropMap(); - case 7: - return internalGetMutableOldFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.class, emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.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(); - oldLevel_ = 0; - - curLevel_ = 0; - - retcode_ = 0; - - avatarGuid_ = 0L; - - internalGetMutableCurFightPropMap().clear(); - internalGetMutableOldFightPropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp build() { - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp buildPartial() { - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp result = new emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp(this); - int from_bitField0_ = bitField0_; - result.oldLevel_ = oldLevel_; - result.curLevel_ = curLevel_; - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.curFightPropMap_ = internalGetCurFightPropMap(); - result.curFightPropMap_.makeImmutable(); - result.oldFightPropMap_ = internalGetOldFightPropMap(); - result.oldFightPropMap_.makeImmutable(); - 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp other) { - if (other == emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.getDefaultInstance()) return this; - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - if (other.getCurLevel() != 0) { - setCurLevel(other.getCurLevel()); - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - internalGetMutableCurFightPropMap().mergeFrom( - other.internalGetCurFightPropMap()); - internalGetMutableOldFightPropMap().mergeFrom( - other.internalGetOldFightPropMap()); - 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int oldLevel_ ; - /** - * uint32 old_level = 3; - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * uint32 old_level = 3; - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * uint32 old_level = 3; - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - - private int curLevel_ ; - /** - * uint32 cur_level = 15; - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - /** - * uint32 cur_level = 15; - * @param value The curLevel to set. - * @return This builder for chaining. - */ - public Builder setCurLevel(int value) { - - curLevel_ = value; - onChanged(); - return this; - } - /** - * uint32 cur_level = 15; - * @return This builder for chaining. - */ - public Builder clearCurLevel() { - - curLevel_ = 0; - onChanged(); - return this; - } - - 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 long avatarGuid_ ; - /** - * uint64 avatar_guid = 13; - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * uint64 avatar_guid = 13; - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * uint64 avatar_guid = 13; - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> curFightPropMap_; - private com.google.protobuf.MapField - internalGetCurFightPropMap() { - if (curFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - } - return curFightPropMap_; - } - private com.google.protobuf.MapField - internalGetMutableCurFightPropMap() { - onChanged();; - if (curFightPropMap_ == null) { - curFightPropMap_ = com.google.protobuf.MapField.newMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - } - if (!curFightPropMap_.isMutable()) { - curFightPropMap_ = curFightPropMap_.copy(); - } - return curFightPropMap_; - } - - public int getCurFightPropMapCount() { - return internalGetCurFightPropMap().getMap().size(); - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - - @java.lang.Override - public boolean containsCurFightPropMap( - int key) { - - return internalGetCurFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getCurFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCurFightPropMap() { - return getCurFightPropMapMap(); - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - @java.lang.Override - - public java.util.Map getCurFightPropMapMap() { - return internalGetCurFightPropMap().getMap(); - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - @java.lang.Override - - public float getCurFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map map = - internalGetCurFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - @java.lang.Override - - public float getCurFightPropMapOrThrow( - int key) { - - java.util.Map map = - internalGetCurFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCurFightPropMap() { - internalGetMutableCurFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - - public Builder removeCurFightPropMap( - int key) { - - internalGetMutableCurFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCurFightPropMap() { - return internalGetMutableCurFightPropMap().getMutableMap(); - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - public Builder putCurFightPropMap( - int key, - float value) { - - - internalGetMutableCurFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       *GEKBLKPMJCG
-       * 
- * - * map<uint32, float> cur_fight_prop_map = 12; - */ - - public Builder putAllCurFightPropMap( - java.util.Map values) { - internalGetMutableCurFightPropMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> oldFightPropMap_; - private com.google.protobuf.MapField - internalGetOldFightPropMap() { - if (oldFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - } - return oldFightPropMap_; - } - private com.google.protobuf.MapField - internalGetMutableOldFightPropMap() { - onChanged();; - if (oldFightPropMap_ == null) { - oldFightPropMap_ = com.google.protobuf.MapField.newMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - } - if (!oldFightPropMap_.isMutable()) { - oldFightPropMap_ = oldFightPropMap_.copy(); - } - return oldFightPropMap_; - } - - public int getOldFightPropMapCount() { - return internalGetOldFightPropMap().getMap().size(); - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - - @java.lang.Override - public boolean containsOldFightPropMap( - int key) { - - return internalGetOldFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getOldFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getOldFightPropMap() { - return getOldFightPropMapMap(); - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - @java.lang.Override - - public java.util.Map getOldFightPropMapMap() { - return internalGetOldFightPropMap().getMap(); - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - @java.lang.Override - - public float getOldFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map map = - internalGetOldFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - @java.lang.Override - - public float getOldFightPropMapOrThrow( - int key) { - - java.util.Map map = - internalGetOldFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOldFightPropMap() { - internalGetMutableOldFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - - public Builder removeOldFightPropMap( - int key) { - - internalGetMutableOldFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableOldFightPropMap() { - return internalGetMutableOldFightPropMap().getMutableMap(); - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - public Builder putOldFightPropMap( - int key, - float value) { - - - internalGetMutableOldFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       *AFEDLAOGFOC
-       * 
- * - * map<uint32, float> old_fight_prop_map = 7; - */ - - public Builder putAllOldFightPropMap( - java.util.Map values) { - internalGetMutableOldFightPropMap().getMutableMap() - .putAll(values); - 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:AvatarUpgradeRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarUpgradeRsp) - private static final emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp(); - } - - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvatarUpgradeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarUpgradeRsp(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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeRsp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_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\026AvatarUpgradeRsp.proto\"\326\002\n\020AvatarUpgra" + - "deRsp\022\021\n\told_level\030\003 \001(\r\022\021\n\tcur_level\030\017 " + - "\001(\r\022\017\n\007retcode\030\001 \001(\005\022\023\n\013avatar_guid\030\r \001(" + - "\004\022B\n\022cur_fight_prop_map\030\014 \003(\0132&.AvatarUp" + - "gradeRsp.CurFightPropMapEntry\022B\n\022old_fig" + - "ht_prop_map\030\007 \003(\0132&.AvatarUpgradeRsp.Old" + - "FightPropMapEntry\0326\n\024CurFightPropMapEntr" + - "y\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\002:\0028\001\0326\n\024Old" + - "FightPropMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030" + - "\002 \001(\002:\0028\001B\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarUpgradeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarUpgradeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeRsp_descriptor, - new java.lang.String[] { "OldLevel", "CurLevel", "Retcode", "AvatarGuid", "CurFightPropMap", "OldFightPropMap", }); - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor = - internal_static_AvatarUpgradeRsp_descriptor.getNestedTypes().get(0); - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor = - internal_static_AvatarUpgradeRsp_descriptor.getNestedTypes().get(1); - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarUpgradeRsp.proto + +package emu.grasscutter.net.proto; + +public final class AvatarUpgradeRspOuterClass { + private AvatarUpgradeRspOuterClass() {} + + 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 AvatarUpgradeRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:AvatarUpgradeRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 old_level = 3; + * + * @return The oldLevel. + */ + int getOldLevel(); + + /** + * uint32 cur_level = 15; + * + * @return The curLevel. + */ + int getCurLevel(); + + /** + * int32 retcode = 1; + * + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatar_guid = 13; + * + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + int getCurFightPropMapCount(); + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + boolean containsCurFightPropMap(int key); + /** Use {@link #getCurFightPropMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCurFightPropMap(); + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + java.util.Map getCurFightPropMapMap(); + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + float getCurFightPropMapOrDefault(int key, float defaultValue); + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + float getCurFightPropMapOrThrow(int key); + + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + int getOldFightPropMapCount(); + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + boolean containsOldFightPropMap(int key); + /** Use {@link #getOldFightPropMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map getOldFightPropMap(); + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + java.util.Map getOldFightPropMapMap(); + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + float getOldFightPropMapOrDefault(int key, float defaultValue); + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + float getOldFightPropMapOrThrow(int key); + } + /** + * + * + *
+     * Name: FDBHCBMNCAI
+     * CmdId: 1741
+     * 
+ * + * Protobuf type {@code AvatarUpgradeRsp} + */ + public static final class AvatarUpgradeRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:AvatarUpgradeRsp) + AvatarUpgradeRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvatarUpgradeRsp.newBuilder() to construct. + private AvatarUpgradeRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvatarUpgradeRsp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvatarUpgradeRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AvatarUpgradeRsp( + 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 24: + { + oldLevel_ = input.readUInt32(); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + oldFightPropMap_ = + com.google.protobuf.MapField.newMapField( + OldFightPropMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry oldFightPropMap__ = + input.readMessage( + OldFightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + oldFightPropMap_ + .getMutableMap() + .put(oldFightPropMap__.getKey(), oldFightPropMap__.getValue()); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + curFightPropMap_ = + com.google.protobuf.MapField.newMapField( + CurFightPropMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry curFightPropMap__ = + input.readMessage( + CurFightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + curFightPropMap_ + .getMutableMap() + .put(curFightPropMap__.getKey(), curFightPropMap__.getValue()); + break; + } + case 104: + { + avatarGuid_ = input.readUInt64(); + break; + } + case 120: + { + curLevel_ = input.readUInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 12: + return internalGetCurFightPropMap(); + case 7: + return internalGetOldFightPropMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.class, + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.Builder.class); + } + + public static final int OLD_LEVEL_FIELD_NUMBER = 3; + private int oldLevel_; + /** + * uint32 old_level = 3; + * + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + + public static final int CUR_LEVEL_FIELD_NUMBER = 15; + private int curLevel_; + /** + * uint32 cur_level = 15; + * + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + + 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 AVATAR_GUID_FIELD_NUMBER = 13; + private long avatarGuid_; + /** + * uint64 avatar_guid = 13; + * + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int CUR_FIGHT_PROP_MAP_FIELD_NUMBER = 12; + + private static final class CurFightPropMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0, + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); + } + + private com.google.protobuf.MapField curFightPropMap_; + + private com.google.protobuf.MapField + internalGetCurFightPropMap() { + if (curFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CurFightPropMapDefaultEntryHolder.defaultEntry); + } + return curFightPropMap_; + } + + public int getCurFightPropMapCount() { + return internalGetCurFightPropMap().getMap().size(); + } + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public boolean containsCurFightPropMap(int key) { + + return internalGetCurFightPropMap().getMap().containsKey(key); + } + /** Use {@link #getCurFightPropMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCurFightPropMap() { + return getCurFightPropMapMap(); + } + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public java.util.Map getCurFightPropMapMap() { + return internalGetCurFightPropMap().getMap(); + } + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public float getCurFightPropMapOrDefault(int key, float defaultValue) { + + java.util.Map map = internalGetCurFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+         * GEKBLKPMJCG
+         * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public float getCurFightPropMapOrThrow(int key) { + + java.util.Map map = internalGetCurFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OLD_FIGHT_PROP_MAP_FIELD_NUMBER = 7; + + private static final class OldFightPropMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0, + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); + } + + private com.google.protobuf.MapField oldFightPropMap_; + + private com.google.protobuf.MapField + internalGetOldFightPropMap() { + if (oldFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OldFightPropMapDefaultEntryHolder.defaultEntry); + } + return oldFightPropMap_; + } + + public int getOldFightPropMapCount() { + return internalGetOldFightPropMap().getMap().size(); + } + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public boolean containsOldFightPropMap(int key) { + + return internalGetOldFightPropMap().getMap().containsKey(key); + } + /** Use {@link #getOldFightPropMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOldFightPropMap() { + return getOldFightPropMapMap(); + } + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public java.util.Map getOldFightPropMapMap() { + return internalGetOldFightPropMap().getMap(); + } + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public float getOldFightPropMapOrDefault(int key, float defaultValue) { + + java.util.Map map = internalGetOldFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+         * AFEDLAOGFOC
+         * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public float getOldFightPropMapOrThrow(int key) { + + java.util.Map map = internalGetOldFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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_); + } + if (oldLevel_ != 0) { + output.writeUInt32(3, oldLevel_); + } + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, internalGetOldFightPropMap(), OldFightPropMapDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, internalGetCurFightPropMap(), CurFightPropMapDefaultEntryHolder.defaultEntry, 12); + if (avatarGuid_ != 0L) { + output.writeUInt64(13, avatarGuid_); + } + if (curLevel_ != 0) { + output.writeUInt32(15, curLevel_); + } + 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_); + } + if (oldLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, oldLevel_); + } + for (java.util.Map.Entry entry : + internalGetOldFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry oldFightPropMap__ = + OldFightPropMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, oldFightPropMap__); + } + for (java.util.Map.Entry entry : + internalGetCurFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry curFightPropMap__ = + CurFightPropMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, curFightPropMap__); + } + if (avatarGuid_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(13, avatarGuid_); + } + if (curLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(15, curLevel_); + } + 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp other = + (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) obj; + + if (getOldLevel() != other.getOldLevel()) return false; + if (getCurLevel() != other.getCurLevel()) return false; + if (getRetcode() != other.getRetcode()) return false; + if (getAvatarGuid() != other.getAvatarGuid()) return false; + if (!internalGetCurFightPropMap().equals(other.internalGetCurFightPropMap())) return false; + if (!internalGetOldFightPropMap().equals(other.internalGetOldFightPropMap())) 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) + OLD_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getOldLevel(); + hash = (37 * hash) + CUR_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getCurLevel(); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvatarGuid()); + if (!internalGetCurFightPropMap().getMap().isEmpty()) { + hash = (37 * hash) + CUR_FIGHT_PROP_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetCurFightPropMap().hashCode(); + } + if (!internalGetOldFightPropMap().getMap().isEmpty()) { + hash = (37 * hash) + OLD_FIGHT_PROP_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetOldFightPropMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp 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; + } + /** + * + * + *
+         * Name: FDBHCBMNCAI
+         * CmdId: 1741
+         * 
+ * + * Protobuf type {@code AvatarUpgradeRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:AvatarUpgradeRsp) + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 12: + return internalGetCurFightPropMap(); + case 7: + return internalGetOldFightPropMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 12: + return internalGetMutableCurFightPropMap(); + case 7: + return internalGetMutableOldFightPropMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.class, + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.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(); + oldLevel_ = 0; + + curLevel_ = 0; + + retcode_ = 0; + + avatarGuid_ = 0L; + + internalGetMutableCurFightPropMap().clear(); + internalGetMutableOldFightPropMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass + .internal_static_AvatarUpgradeRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp build() { + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp buildPartial() { + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp result = + new emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp(this); + int from_bitField0_ = bitField0_; + result.oldLevel_ = oldLevel_; + result.curLevel_ = curLevel_; + result.retcode_ = retcode_; + result.avatarGuid_ = avatarGuid_; + result.curFightPropMap_ = internalGetCurFightPropMap(); + result.curFightPropMap_.makeImmutable(); + result.oldFightPropMap_ = internalGetOldFightPropMap(); + result.oldFightPropMap_.makeImmutable(); + 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp other) { + if (other + == emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + .getDefaultInstance()) return this; + if (other.getOldLevel() != 0) { + setOldLevel(other.getOldLevel()); + } + if (other.getCurLevel() != 0) { + setCurLevel(other.getCurLevel()); + } + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + if (other.getAvatarGuid() != 0L) { + setAvatarGuid(other.getAvatarGuid()); + } + internalGetMutableCurFightPropMap().mergeFrom(other.internalGetCurFightPropMap()); + internalGetMutableOldFightPropMap().mergeFrom(other.internalGetOldFightPropMap()); + 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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int oldLevel_; + /** + * uint32 old_level = 3; + * + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 old_level = 3; + * + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 old_level = 3; + * + * @return This builder for chaining. + */ + public Builder clearOldLevel() { + + oldLevel_ = 0; + onChanged(); + return this; + } + + private int curLevel_; + /** + * uint32 cur_level = 15; + * + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + /** + * uint32 cur_level = 15; + * + * @param value The curLevel to set. + * @return This builder for chaining. + */ + public Builder setCurLevel(int value) { + + curLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 cur_level = 15; + * + * @return This builder for chaining. + */ + public Builder clearCurLevel() { + + curLevel_ = 0; + onChanged(); + return this; + } + + 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 long avatarGuid_; + /** + * uint64 avatar_guid = 13; + * + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatar_guid = 13; + * + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatar_guid = 13; + * + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField curFightPropMap_; + + private com.google.protobuf.MapField + internalGetCurFightPropMap() { + if (curFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CurFightPropMapDefaultEntryHolder.defaultEntry); + } + return curFightPropMap_; + } + + private com.google.protobuf.MapField + internalGetMutableCurFightPropMap() { + onChanged(); + ; + if (curFightPropMap_ == null) { + curFightPropMap_ = + com.google.protobuf.MapField.newMapField( + CurFightPropMapDefaultEntryHolder.defaultEntry); + } + if (!curFightPropMap_.isMutable()) { + curFightPropMap_ = curFightPropMap_.copy(); + } + return curFightPropMap_; + } + + public int getCurFightPropMapCount() { + return internalGetCurFightPropMap().getMap().size(); + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public boolean containsCurFightPropMap(int key) { + + return internalGetCurFightPropMap().getMap().containsKey(key); + } + /** Use {@link #getCurFightPropMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCurFightPropMap() { + return getCurFightPropMapMap(); + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public java.util.Map getCurFightPropMapMap() { + return internalGetCurFightPropMap().getMap(); + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public float getCurFightPropMapOrDefault(int key, float defaultValue) { + + java.util.Map map = + internalGetCurFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + @java.lang.Override + public float getCurFightPropMapOrThrow(int key) { + + java.util.Map map = + internalGetCurFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCurFightPropMap() { + internalGetMutableCurFightPropMap().getMutableMap().clear(); + return this; + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + public Builder removeCurFightPropMap(int key) { + + internalGetMutableCurFightPropMap().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCurFightPropMap() { + return internalGetMutableCurFightPropMap().getMutableMap(); + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + public Builder putCurFightPropMap(int key, float value) { + + internalGetMutableCurFightPropMap().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+             * GEKBLKPMJCG
+             * 
+ * + * map<uint32, float> cur_fight_prop_map = 12; + */ + public Builder putAllCurFightPropMap( + java.util.Map values) { + internalGetMutableCurFightPropMap().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.MapField oldFightPropMap_; + + private com.google.protobuf.MapField + internalGetOldFightPropMap() { + if (oldFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OldFightPropMapDefaultEntryHolder.defaultEntry); + } + return oldFightPropMap_; + } + + private com.google.protobuf.MapField + internalGetMutableOldFightPropMap() { + onChanged(); + ; + if (oldFightPropMap_ == null) { + oldFightPropMap_ = + com.google.protobuf.MapField.newMapField( + OldFightPropMapDefaultEntryHolder.defaultEntry); + } + if (!oldFightPropMap_.isMutable()) { + oldFightPropMap_ = oldFightPropMap_.copy(); + } + return oldFightPropMap_; + } + + public int getOldFightPropMapCount() { + return internalGetOldFightPropMap().getMap().size(); + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public boolean containsOldFightPropMap(int key) { + + return internalGetOldFightPropMap().getMap().containsKey(key); + } + /** Use {@link #getOldFightPropMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOldFightPropMap() { + return getOldFightPropMapMap(); + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public java.util.Map getOldFightPropMapMap() { + return internalGetOldFightPropMap().getMap(); + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public float getOldFightPropMapOrDefault(int key, float defaultValue) { + + java.util.Map map = + internalGetOldFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + @java.lang.Override + public float getOldFightPropMapOrThrow(int key) { + + java.util.Map map = + internalGetOldFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOldFightPropMap() { + internalGetMutableOldFightPropMap().getMutableMap().clear(); + return this; + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + public Builder removeOldFightPropMap(int key) { + + internalGetMutableOldFightPropMap().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableOldFightPropMap() { + return internalGetMutableOldFightPropMap().getMutableMap(); + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + public Builder putOldFightPropMap(int key, float value) { + + internalGetMutableOldFightPropMap().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+             * AFEDLAOGFOC
+             * 
+ * + * map<uint32, float> old_fight_prop_map = 7; + */ + public Builder putAllOldFightPropMap( + java.util.Map values) { + internalGetMutableOldFightPropMap().getMutableMap().putAll(values); + 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:AvatarUpgradeRsp) + } + + // @@protoc_insertion_point(class_scope:AvatarUpgradeRsp) + private static final emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp(); + } + + public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvatarUpgradeRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AvatarUpgradeRsp(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.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarUpgradeRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AvatarUpgradeRsp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_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\026AvatarUpgradeRsp.proto\"\326\002\n\020AvatarUpgra" + + "deRsp\022\021\n\told_level\030\003 \001(\r\022\021\n\tcur_level\030\017 " + + "\001(\r\022\017\n\007retcode\030\001 \001(\005\022\023\n\013avatar_guid\030\r \001(" + + "\004\022B\n\022cur_fight_prop_map\030\014 \003(\0132&.AvatarUp" + + "gradeRsp.CurFightPropMapEntry\022B\n\022old_fig" + + "ht_prop_map\030\007 \003(\0132&.AvatarUpgradeRsp.Old" + + "FightPropMapEntry\0326\n\024CurFightPropMapEntr" + + "y\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\002:\0028\001\0326\n\024Old" + + "FightPropMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030" + + "\002 \001(\002:\0028\001B\033\n\031emu.grasscutter.net.protob\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_AvatarUpgradeRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_AvatarUpgradeRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AvatarUpgradeRsp_descriptor, + new java.lang.String[] { + "OldLevel", "CurLevel", "Retcode", "AvatarGuid", "CurFightPropMap", "OldFightPropMap", + }); + internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor = + internal_static_AvatarUpgradeRsp_descriptor.getNestedTypes().get(0); + internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor = + internal_static_AvatarUpgradeRsp_descriptor.getNestedTypes().get(1); + internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailNotifyOuterClass.java index 506cd35b6..24958bcf9 100644 --- a/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailNotifyOuterClass.java +++ b/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailNotifyOuterClass.java @@ -1,547 +1,583 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetAllMailNotify.proto - -package emu.grasscutter.net.proto; - -public final class GetAllMailNotifyOuterClass { - private GetAllMailNotifyOuterClass() {} - 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 GetAllMailNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetAllMailNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * bool is_collected = 6; - * @return The isCollected. - */ - boolean getIsCollected(); - } - /** - *
-   * Name: PFHIOOMPNBH
-   * CmdId: 1442
-   * 
- * - * Protobuf type {@code GetAllMailNotify} - */ - public static final class GetAllMailNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetAllMailNotify) - GetAllMailNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAllMailNotify.newBuilder() to construct. - private GetAllMailNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAllMailNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAllMailNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAllMailNotify( - 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 48: { - - isCollected_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.internal_static_GetAllMailNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.internal_static_GetAllMailNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.class, emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.Builder.class); - } - - public static final int IS_COLLECTED_FIELD_NUMBER = 6; - private boolean isCollected_; - /** - * bool is_collected = 6; - * @return The isCollected. - */ - @java.lang.Override - public boolean getIsCollected() { - return isCollected_; - } - - 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 (isCollected_ != false) { - output.writeBool(6, isCollected_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isCollected_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isCollected_); - } - 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.GetAllMailNotifyOuterClass.GetAllMailNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify other = (emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify) obj; - - if (getIsCollected() - != other.getIsCollected()) 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) + IS_COLLECTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCollected()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify 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; - } - /** - *
-     * Name: PFHIOOMPNBH
-     * CmdId: 1442
-     * 
- * - * Protobuf type {@code GetAllMailNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GetAllMailNotify) - emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.internal_static_GetAllMailNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.internal_static_GetAllMailNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.class, emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.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(); - isCollected_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.internal_static_GetAllMailNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify build() { - emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify buildPartial() { - emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify result = new emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify(this); - result.isCollected_ = isCollected_; - 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.GetAllMailNotifyOuterClass.GetAllMailNotify) { - return mergeFrom((emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify other) { - if (other == emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.getDefaultInstance()) return this; - if (other.getIsCollected() != false) { - setIsCollected(other.getIsCollected()); - } - 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.GetAllMailNotifyOuterClass.GetAllMailNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isCollected_ ; - /** - * bool is_collected = 6; - * @return The isCollected. - */ - @java.lang.Override - public boolean getIsCollected() { - return isCollected_; - } - /** - * bool is_collected = 6; - * @param value The isCollected to set. - * @return This builder for chaining. - */ - public Builder setIsCollected(boolean value) { - - isCollected_ = value; - onChanged(); - return this; - } - /** - * bool is_collected = 6; - * @return This builder for chaining. - */ - public Builder clearIsCollected() { - - isCollected_ = 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:GetAllMailNotify) - } - - // @@protoc_insertion_point(class_scope:GetAllMailNotify) - private static final emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify(); - } - - public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAllMailNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAllMailNotify(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.GetAllMailNotifyOuterClass.GetAllMailNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetAllMailNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetAllMailNotify_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\026GetAllMailNotify.proto\"(\n\020GetAllMailNo" + - "tify\022\024\n\014is_collected\030\006 \001(\010B\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetAllMailNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetAllMailNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetAllMailNotify_descriptor, - new java.lang.String[] { "IsCollected", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetAllMailNotify.proto + +package emu.grasscutter.net.proto; + +public final class GetAllMailNotifyOuterClass { + private GetAllMailNotifyOuterClass() {} + + 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 GetAllMailNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:GetAllMailNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * bool is_collected = 6; + * + * @return The isCollected. + */ + boolean getIsCollected(); + } + /** + * + * + *
+     * Name: PFHIOOMPNBH
+     * CmdId: 1442
+     * 
+ * + * Protobuf type {@code GetAllMailNotify} + */ + public static final class GetAllMailNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:GetAllMailNotify) + GetAllMailNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAllMailNotify.newBuilder() to construct. + private GetAllMailNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAllMailNotify() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAllMailNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetAllMailNotify( + 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 48: + { + isCollected_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass + .internal_static_GetAllMailNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass + .internal_static_GetAllMailNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.class, + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.Builder.class); + } + + public static final int IS_COLLECTED_FIELD_NUMBER = 6; + private boolean isCollected_; + /** + * bool is_collected = 6; + * + * @return The isCollected. + */ + @java.lang.Override + public boolean getIsCollected() { + return isCollected_; + } + + 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 (isCollected_ != false) { + output.writeBool(6, isCollected_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isCollected_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isCollected_); + } + 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.GetAllMailNotifyOuterClass.GetAllMailNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify other = + (emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify) obj; + + if (getIsCollected() != other.getIsCollected()) 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) + IS_COLLECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCollected()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify + 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.GetAllMailNotifyOuterClass.GetAllMailNotify parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify 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.GetAllMailNotifyOuterClass.GetAllMailNotify 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; + } + /** + * + * + *
+         * Name: PFHIOOMPNBH
+         * CmdId: 1442
+         * 
+ * + * Protobuf type {@code GetAllMailNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:GetAllMailNotify) + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass + .internal_static_GetAllMailNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass + .internal_static_GetAllMailNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.class, + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify.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(); + isCollected_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass + .internal_static_GetAllMailNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify build() { + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify buildPartial() { + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify result = + new emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify(this); + result.isCollected_ = isCollected_; + 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.GetAllMailNotifyOuterClass.GetAllMailNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify other) { + if (other + == emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify + .getDefaultInstance()) return this; + if (other.getIsCollected() != false) { + setIsCollected(other.getIsCollected()); + } + 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.GetAllMailNotifyOuterClass.GetAllMailNotify parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean isCollected_; + /** + * bool is_collected = 6; + * + * @return The isCollected. + */ + @java.lang.Override + public boolean getIsCollected() { + return isCollected_; + } + /** + * bool is_collected = 6; + * + * @param value The isCollected to set. + * @return This builder for chaining. + */ + public Builder setIsCollected(boolean value) { + + isCollected_ = value; + onChanged(); + return this; + } + /** + * bool is_collected = 6; + * + * @return This builder for chaining. + */ + public Builder clearIsCollected() { + + isCollected_ = 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:GetAllMailNotify) + } + + // @@protoc_insertion_point(class_scope:GetAllMailNotify) + private static final emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify(); + } + + public static emu.grasscutter.net.proto.GetAllMailNotifyOuterClass.GetAllMailNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAllMailNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAllMailNotify(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.GetAllMailNotifyOuterClass.GetAllMailNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_GetAllMailNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_GetAllMailNotify_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\026GetAllMailNotify.proto\"(\n\020GetAllMailNo" + + "tify\022\024\n\014is_collected\030\006 \001(\010B\033\n\031emu.grassc" + + "utter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_GetAllMailNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_GetAllMailNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_GetAllMailNotify_descriptor, + new java.lang.String[] { + "IsCollected", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailResultNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailResultNotifyOuterClass.java index 6b9963acf..9deeebad3 100644 --- a/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailResultNotifyOuterClass.java +++ b/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailResultNotifyOuterClass.java @@ -1,1288 +1,1317 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetAllMailResultNotify.proto - -package emu.grasscutter.net.proto; - -public final class GetAllMailResultNotifyOuterClass { - private GetAllMailResultNotifyOuterClass() {} - 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 GetAllMailResultNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetAllMailResultNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 retcode = 6; - * @return The retcode. - */ - int getRetcode(); - - /** - * uint32 packet_be_sent_num = 1; - * @return The packetBeSentNum. - */ - int getPacketBeSentNum(); - - /** - * repeated .MailData mail_list = 10; - */ - java.util.List - getMailListList(); - /** - * repeated .MailData mail_list = 10; - */ - emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index); - /** - * repeated .MailData mail_list = 10; - */ - int getMailListCount(); - /** - * repeated .MailData mail_list = 10; - */ - java.util.List - getMailListOrBuilderList(); - /** - * repeated .MailData mail_list = 10; - */ - emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder( - int index); - - /** - * string transaction = 5; - * @return The transaction. - */ - java.lang.String getTransaction(); - /** - * string transaction = 5; - * @return The bytes for transaction. - */ - com.google.protobuf.ByteString - getTransactionBytes(); - - /** - * bool is_collected = 8; - * @return The isCollected. - */ - boolean getIsCollected(); - - /** - * uint32 packet_num = 13; - * @return The packetNum. - */ - int getPacketNum(); - } - /** - *
-   * Name: ILFMLLOCKFB
-   * CmdId: 1429
-   * 
- * - * Protobuf type {@code GetAllMailResultNotify} - */ - public static final class GetAllMailResultNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetAllMailResultNotify) - GetAllMailResultNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAllMailResultNotify.newBuilder() to construct. - private GetAllMailResultNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAllMailResultNotify() { - mailList_ = java.util.Collections.emptyList(); - transaction_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAllMailResultNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAllMailResultNotify( - 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: { - - packetBeSentNum_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - transaction_ = s; - break; - } - case 48: { - - retcode_ = input.readInt32(); - break; - } - case 64: { - - isCollected_ = input.readBool(); - break; - } - case 82: { - 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 104: { - - packetNum_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - 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.GetAllMailResultNotifyOuterClass.internal_static_GetAllMailResultNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.internal_static_GetAllMailResultNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.class, emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 6; - private int retcode_; - /** - * int32 retcode = 6; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int PACKET_BE_SENT_NUM_FIELD_NUMBER = 1; - private int packetBeSentNum_; - /** - * uint32 packet_be_sent_num = 1; - * @return The packetBeSentNum. - */ - @java.lang.Override - public int getPacketBeSentNum() { - return packetBeSentNum_; - } - - public static final int MAIL_LIST_FIELD_NUMBER = 10; - private java.util.List mailList_; - /** - * repeated .MailData mail_list = 10; - */ - @java.lang.Override - public java.util.List getMailListList() { - return mailList_; - } - /** - * repeated .MailData mail_list = 10; - */ - @java.lang.Override - public java.util.List - getMailListOrBuilderList() { - return mailList_; - } - /** - * repeated .MailData mail_list = 10; - */ - @java.lang.Override - public int getMailListCount() { - return mailList_.size(); - } - /** - * repeated .MailData mail_list = 10; - */ - @java.lang.Override - public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) { - return mailList_.get(index); - } - /** - * repeated .MailData mail_list = 10; - */ - @java.lang.Override - public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder( - int index) { - return mailList_.get(index); - } - - public static final int TRANSACTION_FIELD_NUMBER = 5; - private volatile java.lang.Object transaction_; - /** - * string transaction = 5; - * @return The transaction. - */ - @java.lang.Override - public java.lang.String getTransaction() { - java.lang.Object ref = transaction_; - 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(); - transaction_ = s; - return s; - } - } - /** - * string transaction = 5; - * @return The bytes for transaction. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTransactionBytes() { - java.lang.Object ref = transaction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - transaction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_COLLECTED_FIELD_NUMBER = 8; - private boolean isCollected_; - /** - * bool is_collected = 8; - * @return The isCollected. - */ - @java.lang.Override - public boolean getIsCollected() { - return isCollected_; - } - - public static final int PACKET_NUM_FIELD_NUMBER = 13; - private int packetNum_; - /** - * uint32 packet_num = 13; - * @return The packetNum. - */ - @java.lang.Override - public int getPacketNum() { - return packetNum_; - } - - 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 (packetBeSentNum_ != 0) { - output.writeUInt32(1, packetBeSentNum_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transaction_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, transaction_); - } - if (retcode_ != 0) { - output.writeInt32(6, retcode_); - } - if (isCollected_ != false) { - output.writeBool(8, isCollected_); - } - for (int i = 0; i < mailList_.size(); i++) { - output.writeMessage(10, mailList_.get(i)); - } - if (packetNum_ != 0) { - output.writeUInt32(13, packetNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (packetBeSentNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, packetBeSentNum_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transaction_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, transaction_); - } - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, retcode_); - } - if (isCollected_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isCollected_); - } - for (int i = 0; i < mailList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, mailList_.get(i)); - } - if (packetNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, packetNum_); - } - 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify other = (emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getPacketBeSentNum() - != other.getPacketBeSentNum()) return false; - if (!getMailListList() - .equals(other.getMailListList())) return false; - if (!getTransaction() - .equals(other.getTransaction())) return false; - if (getIsCollected() - != other.getIsCollected()) return false; - if (getPacketNum() - != other.getPacketNum()) 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(); - hash = (37 * hash) + PACKET_BE_SENT_NUM_FIELD_NUMBER; - hash = (53 * hash) + getPacketBeSentNum(); - if (getMailListCount() > 0) { - hash = (37 * hash) + MAIL_LIST_FIELD_NUMBER; - hash = (53 * hash) + getMailListList().hashCode(); - } - hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; - hash = (53 * hash) + getTransaction().hashCode(); - hash = (37 * hash) + IS_COLLECTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCollected()); - hash = (37 * hash) + PACKET_NUM_FIELD_NUMBER; - hash = (53 * hash) + getPacketNum(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify 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; - } - /** - *
-     * Name: ILFMLLOCKFB
-     * CmdId: 1429
-     * 
- * - * Protobuf type {@code GetAllMailResultNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GetAllMailResultNotify) - emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.internal_static_GetAllMailResultNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.internal_static_GetAllMailResultNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.class, emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.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; - - packetBeSentNum_ = 0; - - if (mailListBuilder_ == null) { - mailList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - mailListBuilder_.clear(); - } - transaction_ = ""; - - isCollected_ = false; - - packetNum_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.internal_static_GetAllMailResultNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify build() { - emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify buildPartial() { - emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify result = new emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.packetBeSentNum_ = packetBeSentNum_; - 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.transaction_ = transaction_; - result.isCollected_ = isCollected_; - result.packetNum_ = packetNum_; - 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) { - return mergeFrom((emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify other) { - if (other == emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getPacketBeSentNum() != 0) { - setPacketBeSentNum(other.getPacketBeSentNum()); - } - 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.getTransaction().isEmpty()) { - transaction_ = other.transaction_; - onChanged(); - } - if (other.getIsCollected() != false) { - setIsCollected(other.getIsCollected()); - } - if (other.getPacketNum() != 0) { - setPacketNum(other.getPacketNum()); - } - 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * int32 retcode = 6; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * int32 retcode = 6; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * int32 retcode = 6; - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int packetBeSentNum_ ; - /** - * uint32 packet_be_sent_num = 1; - * @return The packetBeSentNum. - */ - @java.lang.Override - public int getPacketBeSentNum() { - return packetBeSentNum_; - } - /** - * uint32 packet_be_sent_num = 1; - * @param value The packetBeSentNum to set. - * @return This builder for chaining. - */ - public Builder setPacketBeSentNum(int value) { - - packetBeSentNum_ = value; - onChanged(); - return this; - } - /** - * uint32 packet_be_sent_num = 1; - * @return This builder for chaining. - */ - public Builder clearPacketBeSentNum() { - - packetBeSentNum_ = 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 mail_list = 10; - */ - public java.util.List getMailListList() { - if (mailListBuilder_ == null) { - return java.util.Collections.unmodifiableList(mailList_); - } else { - return mailListBuilder_.getMessageList(); - } - } - /** - * repeated .MailData mail_list = 10; - */ - public int getMailListCount() { - if (mailListBuilder_ == null) { - return mailList_.size(); - } else { - return mailListBuilder_.getCount(); - } - } - /** - * repeated .MailData mail_list = 10; - */ - public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) { - if (mailListBuilder_ == null) { - return mailList_.get(index); - } else { - return mailListBuilder_.getMessage(index); - } - } - /** - * repeated .MailData mail_list = 10; - */ - 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 mail_list = 10; - */ - 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 mail_list = 10; - */ - 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 mail_list = 10; - */ - 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 mail_list = 10; - */ - 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 mail_list = 10; - */ - 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 mail_list = 10; - */ - public Builder addAllMailList( - java.lang.Iterable values) { - if (mailListBuilder_ == null) { - ensureMailListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mailList_); - onChanged(); - } else { - mailListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .MailData mail_list = 10; - */ - public Builder clearMailList() { - if (mailListBuilder_ == null) { - mailList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - mailListBuilder_.clear(); - } - return this; - } - /** - * repeated .MailData mail_list = 10; - */ - public Builder removeMailList(int index) { - if (mailListBuilder_ == null) { - ensureMailListIsMutable(); - mailList_.remove(index); - onChanged(); - } else { - mailListBuilder_.remove(index); - } - return this; - } - /** - * repeated .MailData mail_list = 10; - */ - public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder getMailListBuilder( - int index) { - return getMailListFieldBuilder().getBuilder(index); - } - /** - * repeated .MailData mail_list = 10; - */ - public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder( - int index) { - if (mailListBuilder_ == null) { - return mailList_.get(index); } else { - return mailListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .MailData mail_list = 10; - */ - public java.util.List - getMailListOrBuilderList() { - if (mailListBuilder_ != null) { - return mailListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(mailList_); - } - } - /** - * repeated .MailData mail_list = 10; - */ - public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder() { - return getMailListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance()); - } - /** - * repeated .MailData mail_list = 10; - */ - public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder( - int index) { - return getMailListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance()); - } - /** - * repeated .MailData mail_list = 10; - */ - 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 java.lang.Object transaction_ = ""; - /** - * string transaction = 5; - * @return The transaction. - */ - public java.lang.String getTransaction() { - java.lang.Object ref = transaction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - transaction_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string transaction = 5; - * @return The bytes for transaction. - */ - public com.google.protobuf.ByteString - getTransactionBytes() { - java.lang.Object ref = transaction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - transaction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string transaction = 5; - * @param value The transaction to set. - * @return This builder for chaining. - */ - public Builder setTransaction( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - transaction_ = value; - onChanged(); - return this; - } - /** - * string transaction = 5; - * @return This builder for chaining. - */ - public Builder clearTransaction() { - - transaction_ = getDefaultInstance().getTransaction(); - onChanged(); - return this; - } - /** - * string transaction = 5; - * @param value The bytes for transaction to set. - * @return This builder for chaining. - */ - public Builder setTransactionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - transaction_ = value; - onChanged(); - return this; - } - - private boolean isCollected_ ; - /** - * bool is_collected = 8; - * @return The isCollected. - */ - @java.lang.Override - public boolean getIsCollected() { - return isCollected_; - } - /** - * bool is_collected = 8; - * @param value The isCollected to set. - * @return This builder for chaining. - */ - public Builder setIsCollected(boolean value) { - - isCollected_ = value; - onChanged(); - return this; - } - /** - * bool is_collected = 8; - * @return This builder for chaining. - */ - public Builder clearIsCollected() { - - isCollected_ = false; - onChanged(); - return this; - } - - private int packetNum_ ; - /** - * uint32 packet_num = 13; - * @return The packetNum. - */ - @java.lang.Override - public int getPacketNum() { - return packetNum_; - } - /** - * uint32 packet_num = 13; - * @param value The packetNum to set. - * @return This builder for chaining. - */ - public Builder setPacketNum(int value) { - - packetNum_ = value; - onChanged(); - return this; - } - /** - * uint32 packet_num = 13; - * @return This builder for chaining. - */ - public Builder clearPacketNum() { - - packetNum_ = 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:GetAllMailResultNotify) - } - - // @@protoc_insertion_point(class_scope:GetAllMailResultNotify) - private static final emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify(); - } - - public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAllMailResultNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAllMailResultNotify(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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetAllMailResultNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetAllMailResultNotify_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\034GetAllMailResultNotify.proto\032\016MailData" + - ".proto\"\242\001\n\026GetAllMailResultNotify\022\017\n\007ret" + - "code\030\006 \001(\005\022\032\n\022packet_be_sent_num\030\001 \001(\r\022\034" + - "\n\tmail_list\030\n \003(\0132\t.MailData\022\023\n\013transact" + - "ion\030\005 \001(\t\022\024\n\014is_collected\030\010 \001(\010\022\022\n\npacke" + - "t_num\030\r \001(\rB\033\n\031emu.grasscutter.net.proto" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MailDataOuterClass.getDescriptor(), - }); - internal_static_GetAllMailResultNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetAllMailResultNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetAllMailResultNotify_descriptor, - new java.lang.String[] { "Retcode", "PacketBeSentNum", "MailList", "Transaction", "IsCollected", "PacketNum", }); - emu.grasscutter.net.proto.MailDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetAllMailResultNotify.proto + +package emu.grasscutter.net.proto; + +public final class GetAllMailResultNotifyOuterClass { + private GetAllMailResultNotifyOuterClass() {} + + 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 GetAllMailResultNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:GetAllMailResultNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 retcode = 6; + * + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 packet_be_sent_num = 1; + * + * @return The packetBeSentNum. + */ + int getPacketBeSentNum(); + + /** repeated .MailData mail_list = 10; */ + java.util.List getMailListList(); + /** repeated .MailData mail_list = 10; */ + emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index); + /** repeated .MailData mail_list = 10; */ + int getMailListCount(); + /** repeated .MailData mail_list = 10; */ + java.util.List + getMailListOrBuilderList(); + /** repeated .MailData mail_list = 10; */ + emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder(int index); + + /** + * string transaction = 5; + * + * @return The transaction. + */ + java.lang.String getTransaction(); + /** + * string transaction = 5; + * + * @return The bytes for transaction. + */ + com.google.protobuf.ByteString getTransactionBytes(); + + /** + * bool is_collected = 8; + * + * @return The isCollected. + */ + boolean getIsCollected(); + + /** + * uint32 packet_num = 13; + * + * @return The packetNum. + */ + int getPacketNum(); + } + /** + * + * + *
+     * Name: ILFMLLOCKFB
+     * CmdId: 1429
+     * 
+ * + * Protobuf type {@code GetAllMailResultNotify} + */ + public static final class GetAllMailResultNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:GetAllMailResultNotify) + GetAllMailResultNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAllMailResultNotify.newBuilder() to construct. + private GetAllMailResultNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAllMailResultNotify() { + mailList_ = java.util.Collections.emptyList(); + transaction_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAllMailResultNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetAllMailResultNotify( + 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: + { + packetBeSentNum_ = input.readUInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + transaction_ = s; + break; + } + case 48: + { + retcode_ = input.readInt32(); + break; + } + case 64: + { + isCollected_ = input.readBool(); + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mailList_ = + new java.util.ArrayList< + emu.grasscutter.net.proto.MailDataOuterClass.MailData>(); + mutable_bitField0_ |= 0x00000001; + } + mailList_.add( + input.readMessage( + emu.grasscutter.net.proto.MailDataOuterClass.MailData.parser(), + extensionRegistry)); + break; + } + case 104: + { + packetNum_ = input.readUInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + 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.GetAllMailResultNotifyOuterClass + .internal_static_GetAllMailResultNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass + .internal_static_GetAllMailResultNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + .class, + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + .Builder.class); + } + + public static final int RETCODE_FIELD_NUMBER = 6; + private int retcode_; + /** + * int32 retcode = 6; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int PACKET_BE_SENT_NUM_FIELD_NUMBER = 1; + private int packetBeSentNum_; + /** + * uint32 packet_be_sent_num = 1; + * + * @return The packetBeSentNum. + */ + @java.lang.Override + public int getPacketBeSentNum() { + return packetBeSentNum_; + } + + public static final int MAIL_LIST_FIELD_NUMBER = 10; + private java.util.List mailList_; + /** repeated .MailData mail_list = 10; */ + @java.lang.Override + public java.util.List getMailListList() { + return mailList_; + } + /** repeated .MailData mail_list = 10; */ + @java.lang.Override + public java.util.List + getMailListOrBuilderList() { + return mailList_; + } + /** repeated .MailData mail_list = 10; */ + @java.lang.Override + public int getMailListCount() { + return mailList_.size(); + } + /** repeated .MailData mail_list = 10; */ + @java.lang.Override + public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) { + return mailList_.get(index); + } + /** repeated .MailData mail_list = 10; */ + @java.lang.Override + public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder( + int index) { + return mailList_.get(index); + } + + public static final int TRANSACTION_FIELD_NUMBER = 5; + private volatile java.lang.Object transaction_; + /** + * string transaction = 5; + * + * @return The transaction. + */ + @java.lang.Override + public java.lang.String getTransaction() { + java.lang.Object ref = transaction_; + 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(); + transaction_ = s; + return s; + } + } + /** + * string transaction = 5; + * + * @return The bytes for transaction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTransactionBytes() { + java.lang.Object ref = transaction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + transaction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_COLLECTED_FIELD_NUMBER = 8; + private boolean isCollected_; + /** + * bool is_collected = 8; + * + * @return The isCollected. + */ + @java.lang.Override + public boolean getIsCollected() { + return isCollected_; + } + + public static final int PACKET_NUM_FIELD_NUMBER = 13; + private int packetNum_; + /** + * uint32 packet_num = 13; + * + * @return The packetNum. + */ + @java.lang.Override + public int getPacketNum() { + return packetNum_; + } + + 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 (packetBeSentNum_ != 0) { + output.writeUInt32(1, packetBeSentNum_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transaction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, transaction_); + } + if (retcode_ != 0) { + output.writeInt32(6, retcode_); + } + if (isCollected_ != false) { + output.writeBool(8, isCollected_); + } + for (int i = 0; i < mailList_.size(); i++) { + output.writeMessage(10, mailList_.get(i)); + } + if (packetNum_ != 0) { + output.writeUInt32(13, packetNum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (packetBeSentNum_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, packetBeSentNum_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transaction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, transaction_); + } + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, retcode_); + } + if (isCollected_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, isCollected_); + } + for (int i = 0; i < mailList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, mailList_.get(i)); + } + if (packetNum_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, packetNum_); + } + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify other = + (emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) obj; + + if (getRetcode() != other.getRetcode()) return false; + if (getPacketBeSentNum() != other.getPacketBeSentNum()) return false; + if (!getMailListList().equals(other.getMailListList())) return false; + if (!getTransaction().equals(other.getTransaction())) return false; + if (getIsCollected() != other.getIsCollected()) return false; + if (getPacketNum() != other.getPacketNum()) 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(); + hash = (37 * hash) + PACKET_BE_SENT_NUM_FIELD_NUMBER; + hash = (53 * hash) + getPacketBeSentNum(); + if (getMailListCount() > 0) { + hash = (37 * hash) + MAIL_LIST_FIELD_NUMBER; + hash = (53 * hash) + getMailListList().hashCode(); + } + hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; + hash = (53 * hash) + getTransaction().hashCode(); + hash = (37 * hash) + IS_COLLECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCollected()); + hash = (37 * hash) + PACKET_NUM_FIELD_NUMBER; + hash = (53 * hash) + getPacketNum(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + 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; + } + /** + * + * + *
+         * Name: ILFMLLOCKFB
+         * CmdId: 1429
+         * 
+ * + * Protobuf type {@code GetAllMailResultNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:GetAllMailResultNotify) + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass + .internal_static_GetAllMailResultNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass + .internal_static_GetAllMailResultNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + .class, + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify.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; + + packetBeSentNum_ = 0; + + if (mailListBuilder_ == null) { + mailList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + mailListBuilder_.clear(); + } + transaction_ = ""; + + isCollected_ = false; + + packetNum_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass + .internal_static_GetAllMailResultNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + build() { + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + buildPartial() { + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify result = + new emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify( + this); + int from_bitField0_ = bitField0_; + result.retcode_ = retcode_; + result.packetBeSentNum_ = packetBeSentNum_; + 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.transaction_ = transaction_; + result.isCollected_ = isCollected_; + result.packetNum_ = packetNum_; + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify other) { + if (other + == emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + .getDefaultInstance()) return this; + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + if (other.getPacketBeSentNum() != 0) { + setPacketBeSentNum(other.getPacketBeSentNum()); + } + 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.getTransaction().isEmpty()) { + transaction_ = other.transaction_; + onChanged(); + } + if (other.getIsCollected() != false) { + setIsCollected(other.getIsCollected()); + } + if (other.getPacketNum() != 0) { + setPacketNum(other.getPacketNum()); + } + 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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int retcode_; + /** + * int32 retcode = 6; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 6; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 6; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int packetBeSentNum_; + /** + * uint32 packet_be_sent_num = 1; + * + * @return The packetBeSentNum. + */ + @java.lang.Override + public int getPacketBeSentNum() { + return packetBeSentNum_; + } + /** + * uint32 packet_be_sent_num = 1; + * + * @param value The packetBeSentNum to set. + * @return This builder for chaining. + */ + public Builder setPacketBeSentNum(int value) { + + packetBeSentNum_ = value; + onChanged(); + return this; + } + /** + * uint32 packet_be_sent_num = 1; + * + * @return This builder for chaining. + */ + public Builder clearPacketBeSentNum() { + + packetBeSentNum_ = 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 mail_list = 10; */ + public java.util.List + getMailListList() { + if (mailListBuilder_ == null) { + return java.util.Collections.unmodifiableList(mailList_); + } else { + return mailListBuilder_.getMessageList(); + } + } + /** repeated .MailData mail_list = 10; */ + public int getMailListCount() { + if (mailListBuilder_ == null) { + return mailList_.size(); + } else { + return mailListBuilder_.getCount(); + } + } + /** repeated .MailData mail_list = 10; */ + public emu.grasscutter.net.proto.MailDataOuterClass.MailData getMailList(int index) { + if (mailListBuilder_ == null) { + return mailList_.get(index); + } else { + return mailListBuilder_.getMessage(index); + } + } + /** repeated .MailData mail_list = 10; */ + 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 mail_list = 10; */ + 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 mail_list = 10; */ + 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 mail_list = 10; */ + 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 mail_list = 10; */ + 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 mail_list = 10; */ + 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 mail_list = 10; */ + public Builder addAllMailList( + java.lang.Iterable + values) { + if (mailListBuilder_ == null) { + ensureMailListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mailList_); + onChanged(); + } else { + mailListBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .MailData mail_list = 10; */ + public Builder clearMailList() { + if (mailListBuilder_ == null) { + mailList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mailListBuilder_.clear(); + } + return this; + } + /** repeated .MailData mail_list = 10; */ + public Builder removeMailList(int index) { + if (mailListBuilder_ == null) { + ensureMailListIsMutable(); + mailList_.remove(index); + onChanged(); + } else { + mailListBuilder_.remove(index); + } + return this; + } + /** repeated .MailData mail_list = 10; */ + public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder getMailListBuilder( + int index) { + return getMailListFieldBuilder().getBuilder(index); + } + /** repeated .MailData mail_list = 10; */ + public emu.grasscutter.net.proto.MailDataOuterClass.MailDataOrBuilder getMailListOrBuilder( + int index) { + if (mailListBuilder_ == null) { + return mailList_.get(index); + } else { + return mailListBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .MailData mail_list = 10; */ + 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 mail_list = 10; */ + public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder() { + return getMailListFieldBuilder() + .addBuilder(emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance()); + } + /** repeated .MailData mail_list = 10; */ + public emu.grasscutter.net.proto.MailDataOuterClass.MailData.Builder addMailListBuilder( + int index) { + return getMailListFieldBuilder() + .addBuilder( + index, emu.grasscutter.net.proto.MailDataOuterClass.MailData.getDefaultInstance()); + } + /** repeated .MailData mail_list = 10; */ + 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 java.lang.Object transaction_ = ""; + /** + * string transaction = 5; + * + * @return The transaction. + */ + public java.lang.String getTransaction() { + java.lang.Object ref = transaction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + transaction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string transaction = 5; + * + * @return The bytes for transaction. + */ + public com.google.protobuf.ByteString getTransactionBytes() { + java.lang.Object ref = transaction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + transaction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string transaction = 5; + * + * @param value The transaction to set. + * @return This builder for chaining. + */ + public Builder setTransaction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + transaction_ = value; + onChanged(); + return this; + } + /** + * string transaction = 5; + * + * @return This builder for chaining. + */ + public Builder clearTransaction() { + + transaction_ = getDefaultInstance().getTransaction(); + onChanged(); + return this; + } + /** + * string transaction = 5; + * + * @param value The bytes for transaction to set. + * @return This builder for chaining. + */ + public Builder setTransactionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + transaction_ = value; + onChanged(); + return this; + } + + private boolean isCollected_; + /** + * bool is_collected = 8; + * + * @return The isCollected. + */ + @java.lang.Override + public boolean getIsCollected() { + return isCollected_; + } + /** + * bool is_collected = 8; + * + * @param value The isCollected to set. + * @return This builder for chaining. + */ + public Builder setIsCollected(boolean value) { + + isCollected_ = value; + onChanged(); + return this; + } + /** + * bool is_collected = 8; + * + * @return This builder for chaining. + */ + public Builder clearIsCollected() { + + isCollected_ = false; + onChanged(); + return this; + } + + private int packetNum_; + /** + * uint32 packet_num = 13; + * + * @return The packetNum. + */ + @java.lang.Override + public int getPacketNum() { + return packetNum_; + } + /** + * uint32 packet_num = 13; + * + * @param value The packetNum to set. + * @return This builder for chaining. + */ + public Builder setPacketNum(int value) { + + packetNum_ = value; + onChanged(); + return this; + } + /** + * uint32 packet_num = 13; + * + * @return This builder for chaining. + */ + public Builder clearPacketNum() { + + packetNum_ = 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:GetAllMailResultNotify) + } + + // @@protoc_insertion_point(class_scope:GetAllMailResultNotify) + private static final emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass + .GetAllMailResultNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify(); + } + + public static emu.grasscutter.net.proto.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAllMailResultNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAllMailResultNotify(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.GetAllMailResultNotifyOuterClass.GetAllMailResultNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_GetAllMailResultNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_GetAllMailResultNotify_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\034GetAllMailResultNotify.proto\032\016MailData" + + ".proto\"\242\001\n\026GetAllMailResultNotify\022\017\n\007ret" + + "code\030\006 \001(\005\022\032\n\022packet_be_sent_num\030\001 \001(\r\022\034" + + "\n\tmail_list\030\n \003(\0132\t.MailData\022\023\n\013transact" + + "ion\030\005 \001(\t\022\024\n\014is_collected\030\010 \001(\010\022\022\n\npacke" + + "t_num\030\r \001(\rB\033\n\031emu.grasscutter.net.proto" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.MailDataOuterClass.getDescriptor(), + }); + internal_static_GetAllMailResultNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_GetAllMailResultNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_GetAllMailResultNotify_descriptor, + new java.lang.String[] { + "Retcode", "PacketBeSentNum", "MailList", "Transaction", "IsCollected", "PacketNum", + }); + emu.grasscutter.net.proto.MailDataOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}