// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: EnterCustomDungeonRsp.proto

package emu.grasscutter.net.proto;

public final class EnterCustomDungeonRspOuterClass {
  private EnterCustomDungeonRspOuterClass() {}
  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 EnterCustomDungeonRspOrBuilder extends
      // @@protoc_insertion_point(interface_extends:EnterCustomDungeonRsp)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */
    int getRoomCostMapCount();
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */
    boolean containsRoomCostMap(
        int key);
    /**
     * Use {@link #getRoomCostMapMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.Integer, java.lang.Integer>
    getRoomCostMap();
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */
    java.util.Map<java.lang.Integer, java.lang.Integer>
    getRoomCostMapMap();
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */

    int getRoomCostMapOrDefault(
        int key,
        int defaultValue);
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */

    int getRoomCostMapOrThrow(
        int key);

    /**
     * <code>.EnterCustomDungeonType enter_type = 8;</code>
     * @return The enum numeric value on the wire for enterType.
     */
    int getEnterTypeValue();
    /**
     * <code>.EnterCustomDungeonType enter_type = 8;</code>
     * @return The enterType.
     */
    emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType getEnterType();

    /**
     * <code>int32 retcode = 6;</code>
     * @return The retcode.
     */
    int getRetcode();

    /**
     * <code>.CustomDungeon custom_dungeon = 5;</code>
     * @return Whether the customDungeon field is set.
     */
    boolean hasCustomDungeon();
    /**
     * <code>.CustomDungeon custom_dungeon = 5;</code>
     * @return The customDungeon.
     */
    emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon getCustomDungeon();
    /**
     * <code>.CustomDungeon custom_dungeon = 5;</code>
     */
    emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeonOrBuilder getCustomDungeonOrBuilder();
  }
  /**
   * <pre>
   * CmdId: 22598
   * Obf: HJBLNFGNAGN
   * </pre>
   *
   * Protobuf type {@code EnterCustomDungeonRsp}
   */
  public static final class EnterCustomDungeonRsp extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:EnterCustomDungeonRsp)
      EnterCustomDungeonRspOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use EnterCustomDungeonRsp.newBuilder() to construct.
    private EnterCustomDungeonRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private EnterCustomDungeonRsp() {
      enterType_ = 0;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new EnterCustomDungeonRsp();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private EnterCustomDungeonRsp(
        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 42: {
              emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.Builder subBuilder = null;
              if (customDungeon_ != null) {
                subBuilder = customDungeon_.toBuilder();
              }
              customDungeon_ = input.readMessage(emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(customDungeon_);
                customDungeon_ = subBuilder.buildPartial();
              }

              break;
            }
            case 48: {

              retcode_ = input.readInt32();
              break;
            }
            case 64: {
              int rawValue = input.readEnum();

              enterType_ = rawValue;
              break;
            }
            case 122: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                roomCostMap_ = com.google.protobuf.MapField.newMapField(
                    RoomCostMapDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000001;
              }
              com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
              roomCostMap__ = input.readMessage(
                  RoomCostMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              roomCostMap_.getMutableMap().put(
                  roomCostMap__.getKey(), roomCostMap__.getValue());
              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.EnterCustomDungeonRspOuterClass.internal_static_EnterCustomDungeonRsp_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 15:
          return internalGetRoomCostMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.internal_static_EnterCustomDungeonRsp_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.class, emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.Builder.class);
    }

    public static final int ROOM_COST_MAP_FIELD_NUMBER = 15;
    private static final class RoomCostMapDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.Integer, java.lang.Integer> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                  emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.internal_static_EnterCustomDungeonRsp_RoomCostMapEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.UINT32,
                  0,
                  com.google.protobuf.WireFormat.FieldType.UINT32,
                  0);
    }
    private com.google.protobuf.MapField<
        java.lang.Integer, java.lang.Integer> roomCostMap_;
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetRoomCostMap() {
      if (roomCostMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            RoomCostMapDefaultEntryHolder.defaultEntry);
      }
      return roomCostMap_;
    }

    public int getRoomCostMapCount() {
      return internalGetRoomCostMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */

    @java.lang.Override
    public boolean containsRoomCostMap(
        int key) {
      
      return internalGetRoomCostMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getRoomCostMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer> getRoomCostMap() {
      return getRoomCostMapMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, java.lang.Integer> getRoomCostMapMap() {
      return internalGetRoomCostMap().getMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */
    @java.lang.Override

    public int getRoomCostMapOrDefault(
        int key,
        int defaultValue) {
      
      java.util.Map<java.lang.Integer, java.lang.Integer> map =
          internalGetRoomCostMap().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
     */
    @java.lang.Override

    public int getRoomCostMapOrThrow(
        int key) {
      
      java.util.Map<java.lang.Integer, java.lang.Integer> map =
          internalGetRoomCostMap().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public static final int ENTER_TYPE_FIELD_NUMBER = 8;
    private int enterType_;
    /**
     * <code>.EnterCustomDungeonType enter_type = 8;</code>
     * @return The enum numeric value on the wire for enterType.
     */
    @java.lang.Override public int getEnterTypeValue() {
      return enterType_;
    }
    /**
     * <code>.EnterCustomDungeonType enter_type = 8;</code>
     * @return The enterType.
     */
    @java.lang.Override public emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType getEnterType() {
      @SuppressWarnings("deprecation")
      emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType result = emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType.valueOf(enterType_);
      return result == null ? emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType.UNRECOGNIZED : result;
    }

    public static final int RETCODE_FIELD_NUMBER = 6;
    private int retcode_;
    /**
     * <code>int32 retcode = 6;</code>
     * @return The retcode.
     */
    @java.lang.Override
    public int getRetcode() {
      return retcode_;
    }

    public static final int CUSTOM_DUNGEON_FIELD_NUMBER = 5;
    private emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon customDungeon_;
    /**
     * <code>.CustomDungeon custom_dungeon = 5;</code>
     * @return Whether the customDungeon field is set.
     */
    @java.lang.Override
    public boolean hasCustomDungeon() {
      return customDungeon_ != null;
    }
    /**
     * <code>.CustomDungeon custom_dungeon = 5;</code>
     * @return The customDungeon.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon getCustomDungeon() {
      return customDungeon_ == null ? emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.getDefaultInstance() : customDungeon_;
    }
    /**
     * <code>.CustomDungeon custom_dungeon = 5;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeonOrBuilder getCustomDungeonOrBuilder() {
      return getCustomDungeon();
    }

    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 (customDungeon_ != null) {
        output.writeMessage(5, getCustomDungeon());
      }
      if (retcode_ != 0) {
        output.writeInt32(6, retcode_);
      }
      if (enterType_ != emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType.ENTER_CUSTOM_DUNGEON_NONE.getNumber()) {
        output.writeEnum(8, enterType_);
      }
      com.google.protobuf.GeneratedMessageV3
        .serializeIntegerMapTo(
          output,
          internalGetRoomCostMap(),
          RoomCostMapDefaultEntryHolder.defaultEntry,
          15);
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (customDungeon_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, getCustomDungeon());
      }
      if (retcode_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(6, retcode_);
      }
      if (enterType_ != emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType.ENTER_CUSTOM_DUNGEON_NONE.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(8, enterType_);
      }
      for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
           : internalGetRoomCostMap().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
        roomCostMap__ = RoomCostMapDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(15, roomCostMap__);
      }
      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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp other = (emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp) obj;

      if (!internalGetRoomCostMap().equals(
          other.internalGetRoomCostMap())) return false;
      if (enterType_ != other.enterType_) return false;
      if (getRetcode()
          != other.getRetcode()) return false;
      if (hasCustomDungeon() != other.hasCustomDungeon()) return false;
      if (hasCustomDungeon()) {
        if (!getCustomDungeon()
            .equals(other.getCustomDungeon())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (!internalGetRoomCostMap().getMap().isEmpty()) {
        hash = (37 * hash) + ROOM_COST_MAP_FIELD_NUMBER;
        hash = (53 * hash) + internalGetRoomCostMap().hashCode();
      }
      hash = (37 * hash) + ENTER_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + enterType_;
      hash = (37 * hash) + RETCODE_FIELD_NUMBER;
      hash = (53 * hash) + getRetcode();
      if (hasCustomDungeon()) {
        hash = (37 * hash) + CUSTOM_DUNGEON_FIELD_NUMBER;
        hash = (53 * hash) + getCustomDungeon().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp 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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp 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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp 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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp 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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp 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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp 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;
    }
    /**
     * <pre>
     * CmdId: 22598
     * Obf: HJBLNFGNAGN
     * </pre>
     *
     * Protobuf type {@code EnterCustomDungeonRsp}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:EnterCustomDungeonRsp)
        emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRspOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.internal_static_EnterCustomDungeonRsp_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 15:
            return internalGetRoomCostMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 15:
            return internalGetMutableRoomCostMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.internal_static_EnterCustomDungeonRsp_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.class, emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.Builder.class);
      }

      // Construct using emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.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();
        internalGetMutableRoomCostMap().clear();
        enterType_ = 0;

        retcode_ = 0;

        if (customDungeonBuilder_ == null) {
          customDungeon_ = null;
        } else {
          customDungeon_ = null;
          customDungeonBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.internal_static_EnterCustomDungeonRsp_descriptor;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp getDefaultInstanceForType() {
        return emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.getDefaultInstance();
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp build() {
        emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp buildPartial() {
        emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp result = new emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp(this);
        int from_bitField0_ = bitField0_;
        result.roomCostMap_ = internalGetRoomCostMap();
        result.roomCostMap_.makeImmutable();
        result.enterType_ = enterType_;
        result.retcode_ = retcode_;
        if (customDungeonBuilder_ == null) {
          result.customDungeon_ = customDungeon_;
        } else {
          result.customDungeon_ = customDungeonBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp) {
          return mergeFrom((emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp other) {
        if (other == emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp.getDefaultInstance()) return this;
        internalGetMutableRoomCostMap().mergeFrom(
            other.internalGetRoomCostMap());
        if (other.enterType_ != 0) {
          setEnterTypeValue(other.getEnterTypeValue());
        }
        if (other.getRetcode() != 0) {
          setRetcode(other.getRetcode());
        }
        if (other.hasCustomDungeon()) {
          mergeCustomDungeon(other.getCustomDungeon());
        }
        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.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.MapField<
          java.lang.Integer, java.lang.Integer> roomCostMap_;
      private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
      internalGetRoomCostMap() {
        if (roomCostMap_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              RoomCostMapDefaultEntryHolder.defaultEntry);
        }
        return roomCostMap_;
      }
      private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
      internalGetMutableRoomCostMap() {
        onChanged();;
        if (roomCostMap_ == null) {
          roomCostMap_ = com.google.protobuf.MapField.newMapField(
              RoomCostMapDefaultEntryHolder.defaultEntry);
        }
        if (!roomCostMap_.isMutable()) {
          roomCostMap_ = roomCostMap_.copy();
        }
        return roomCostMap_;
      }

      public int getRoomCostMapCount() {
        return internalGetRoomCostMap().getMap().size();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */

      @java.lang.Override
      public boolean containsRoomCostMap(
          int key) {
        
        return internalGetRoomCostMap().getMap().containsKey(key);
      }
      /**
       * Use {@link #getRoomCostMapMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, java.lang.Integer> getRoomCostMap() {
        return getRoomCostMapMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */
      @java.lang.Override

      public java.util.Map<java.lang.Integer, java.lang.Integer> getRoomCostMapMap() {
        return internalGetRoomCostMap().getMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */
      @java.lang.Override

      public int getRoomCostMapOrDefault(
          int key,
          int defaultValue) {
        
        java.util.Map<java.lang.Integer, java.lang.Integer> map =
            internalGetRoomCostMap().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */
      @java.lang.Override

      public int getRoomCostMapOrThrow(
          int key) {
        
        java.util.Map<java.lang.Integer, java.lang.Integer> map =
            internalGetRoomCostMap().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearRoomCostMap() {
        internalGetMutableRoomCostMap().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */

      public Builder removeRoomCostMap(
          int key) {
        
        internalGetMutableRoomCostMap().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, java.lang.Integer>
      getMutableRoomCostMap() {
        return internalGetMutableRoomCostMap().getMutableMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */
      public Builder putRoomCostMap(
          int key,
          int value) {
        
        
        internalGetMutableRoomCostMap().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; room_cost_map = 15;</code>
       */

      public Builder putAllRoomCostMap(
          java.util.Map<java.lang.Integer, java.lang.Integer> values) {
        internalGetMutableRoomCostMap().getMutableMap()
            .putAll(values);
        return this;
      }

      private int enterType_ = 0;
      /**
       * <code>.EnterCustomDungeonType enter_type = 8;</code>
       * @return The enum numeric value on the wire for enterType.
       */
      @java.lang.Override public int getEnterTypeValue() {
        return enterType_;
      }
      /**
       * <code>.EnterCustomDungeonType enter_type = 8;</code>
       * @param value The enum numeric value on the wire for enterType to set.
       * @return This builder for chaining.
       */
      public Builder setEnterTypeValue(int value) {
        
        enterType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.EnterCustomDungeonType enter_type = 8;</code>
       * @return The enterType.
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType getEnterType() {
        @SuppressWarnings("deprecation")
        emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType result = emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType.valueOf(enterType_);
        return result == null ? emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType.UNRECOGNIZED : result;
      }
      /**
       * <code>.EnterCustomDungeonType enter_type = 8;</code>
       * @param value The enterType to set.
       * @return This builder for chaining.
       */
      public Builder setEnterType(emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.EnterCustomDungeonType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        enterType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.EnterCustomDungeonType enter_type = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearEnterType() {
        
        enterType_ = 0;
        onChanged();
        return this;
      }

      private int retcode_ ;
      /**
       * <code>int32 retcode = 6;</code>
       * @return The retcode.
       */
      @java.lang.Override
      public int getRetcode() {
        return retcode_;
      }
      /**
       * <code>int32 retcode = 6;</code>
       * @param value The retcode to set.
       * @return This builder for chaining.
       */
      public Builder setRetcode(int value) {
        
        retcode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 retcode = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearRetcode() {
        
        retcode_ = 0;
        onChanged();
        return this;
      }

      private emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon customDungeon_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon, emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.Builder, emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeonOrBuilder> customDungeonBuilder_;
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       * @return Whether the customDungeon field is set.
       */
      public boolean hasCustomDungeon() {
        return customDungeonBuilder_ != null || customDungeon_ != null;
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       * @return The customDungeon.
       */
      public emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon getCustomDungeon() {
        if (customDungeonBuilder_ == null) {
          return customDungeon_ == null ? emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.getDefaultInstance() : customDungeon_;
        } else {
          return customDungeonBuilder_.getMessage();
        }
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      public Builder setCustomDungeon(emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon value) {
        if (customDungeonBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          customDungeon_ = value;
          onChanged();
        } else {
          customDungeonBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      public Builder setCustomDungeon(
          emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.Builder builderForValue) {
        if (customDungeonBuilder_ == null) {
          customDungeon_ = builderForValue.build();
          onChanged();
        } else {
          customDungeonBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      public Builder mergeCustomDungeon(emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon value) {
        if (customDungeonBuilder_ == null) {
          if (customDungeon_ != null) {
            customDungeon_ =
              emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.newBuilder(customDungeon_).mergeFrom(value).buildPartial();
          } else {
            customDungeon_ = value;
          }
          onChanged();
        } else {
          customDungeonBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      public Builder clearCustomDungeon() {
        if (customDungeonBuilder_ == null) {
          customDungeon_ = null;
          onChanged();
        } else {
          customDungeon_ = null;
          customDungeonBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      public emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.Builder getCustomDungeonBuilder() {
        
        onChanged();
        return getCustomDungeonFieldBuilder().getBuilder();
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      public emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeonOrBuilder getCustomDungeonOrBuilder() {
        if (customDungeonBuilder_ != null) {
          return customDungeonBuilder_.getMessageOrBuilder();
        } else {
          return customDungeon_ == null ?
              emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.getDefaultInstance() : customDungeon_;
        }
      }
      /**
       * <code>.CustomDungeon custom_dungeon = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon, emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.Builder, emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeonOrBuilder> 
          getCustomDungeonFieldBuilder() {
        if (customDungeonBuilder_ == null) {
          customDungeonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon, emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeon.Builder, emu.grasscutter.net.proto.CustomDungeonOuterClass.CustomDungeonOrBuilder>(
                  getCustomDungeon(),
                  getParentForChildren(),
                  isClean());
          customDungeon_ = null;
        }
        return customDungeonBuilder_;
      }
      @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:EnterCustomDungeonRsp)
    }

    // @@protoc_insertion_point(class_scope:EnterCustomDungeonRsp)
    private static final emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp();
    }

    public static emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<EnterCustomDungeonRsp>
        PARSER = new com.google.protobuf.AbstractParser<EnterCustomDungeonRsp>() {
      @java.lang.Override
      public EnterCustomDungeonRsp parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new EnterCustomDungeonRsp(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<EnterCustomDungeonRsp> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<EnterCustomDungeonRsp> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public emu.grasscutter.net.proto.EnterCustomDungeonRspOuterClass.EnterCustomDungeonRsp getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_EnterCustomDungeonRsp_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_EnterCustomDungeonRsp_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_EnterCustomDungeonRsp_RoomCostMapEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_EnterCustomDungeonRsp_RoomCostMapEntry_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\033EnterCustomDungeonRsp.proto\032\034EnterCust" +
      "omDungeonType.proto\032\023CustomDungeon.proto" +
      "\"\361\001\n\025EnterCustomDungeonRsp\022>\n\rroom_cost_" +
      "map\030\017 \003(\0132\'.EnterCustomDungeonRsp.RoomCo" +
      "stMapEntry\022+\n\nenter_type\030\010 \001(\0162\027.EnterCu" +
      "stomDungeonType\022\017\n\007retcode\030\006 \001(\005\022&\n\016cust" +
      "om_dungeon\030\005 \001(\0132\016.CustomDungeon\0322\n\020Room" +
      "CostMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r" +
      ":\0028\001B\033\n\031emu.grasscutter.net.protob\006proto" +
      "3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.CustomDungeonOuterClass.getDescriptor(),
        });
    internal_static_EnterCustomDungeonRsp_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_EnterCustomDungeonRsp_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_EnterCustomDungeonRsp_descriptor,
        new java.lang.String[] { "RoomCostMap", "EnterType", "Retcode", "CustomDungeon", });
    internal_static_EnterCustomDungeonRsp_RoomCostMapEntry_descriptor =
      internal_static_EnterCustomDungeonRsp_descriptor.getNestedTypes().get(0);
    internal_static_EnterCustomDungeonRsp_RoomCostMapEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_EnterCustomDungeonRsp_RoomCostMapEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    emu.grasscutter.net.proto.EnterCustomDungeonTypeOuterClass.getDescriptor();
    emu.grasscutter.net.proto.CustomDungeonOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
