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

package io.grasscutter.net.proto.define;

/**
 * Protobuf type {@code SceneEntityAiInfo}
 */
public final class SceneEntityAiInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:SceneEntityAiInfo)
    SceneEntityAiInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SceneEntityAiInfo.newBuilder() to construct.
  private SceneEntityAiInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SceneEntityAiInfo() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SceneEntityAiInfo(
      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 26: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              skillCdMap_ = com.google.protobuf.MapField.newMapField(
                  SkillCdMapDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000004;
            }
            com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
            skillCdMap__ = input.readMessage(
                SkillCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            skillCdMap_.getMutableMap().put(
                skillCdMap__.getKey(), skillCdMap__.getValue());
            break;
          }
          case 34: {
            io.grasscutter.net.proto.define.ServantInfo.Builder subBuilder = null;
            if (servantInfo_ != null) {
              subBuilder = servantInfo_.toBuilder();
            }
            servantInfo_ = input.readMessage(io.grasscutter.net.proto.define.ServantInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(servantInfo_);
              servantInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              aiThreatMap_ = com.google.protobuf.MapField.newMapField(
                  AiThreatMapDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000002;
            }
            com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
            aiThreatMap__ = input.readMessage(
                AiThreatMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            aiThreatMap_.getMutableMap().put(
                aiThreatMap__.getKey(), aiThreatMap__.getValue());
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              skillGroupCdMap_ = com.google.protobuf.MapField.newMapField(
                  SkillGroupCdMapDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
            skillGroupCdMap__ = input.readMessage(
                SkillGroupCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            skillGroupCdMap_.getMutableMap().put(
                skillGroupCdMap__.getKey(), skillGroupCdMap__.getValue());
            break;
          }
          case 56: {

            curTactic_ = input.readUInt32();
            break;
          }
          case 64: {

            isAiOpen_ = 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 io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 6:
        return internalGetSkillGroupCdMap();
      case 5:
        return internalGetAiThreatMap();
      case 3:
        return internalGetSkillCdMap();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.SceneEntityAiInfo.class, io.grasscutter.net.proto.define.SceneEntityAiInfo.Builder.class);
  }

  public static final int SERVANT_INFO_FIELD_NUMBER = 4;
  private io.grasscutter.net.proto.define.ServantInfo servantInfo_;
  /**
   * <code>.ServantInfo servant_info = 4;</code>
   * @return Whether the servantInfo field is set.
   */
  @java.lang.Override
  public boolean hasServantInfo() {
    return servantInfo_ != null;
  }
  /**
   * <code>.ServantInfo servant_info = 4;</code>
   * @return The servantInfo.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.ServantInfo getServantInfo() {
    return servantInfo_ == null ? io.grasscutter.net.proto.define.ServantInfo.getDefaultInstance() : servantInfo_;
  }
  /**
   * <code>.ServantInfo servant_info = 4;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.ServantInfoOrBuilder getServantInfoOrBuilder() {
    return getServantInfo();
  }

  public static final int SKILL_GROUP_CD_MAP_FIELD_NUMBER = 6;
  private static final class SkillGroupCdMapDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, java.lang.Integer> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_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> skillGroupCdMap_;
  private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
  internalGetSkillGroupCdMap() {
    if (skillGroupCdMap_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          SkillGroupCdMapDefaultEntryHolder.defaultEntry);
    }
    return skillGroupCdMap_;
  }

  public int getSkillGroupCdMapCount() {
    return internalGetSkillGroupCdMap().getMap().size();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
   */

  @java.lang.Override
  public boolean containsSkillGroupCdMap(
      int key) {
    
    return internalGetSkillGroupCdMap().getMap().containsKey(key);
  }
  /**
   * Use {@link #getSkillGroupCdMapMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMap() {
    return getSkillGroupCdMapMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
   */
  @java.lang.Override

  public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMapMap() {
    return internalGetSkillGroupCdMap().getMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
   */
  @java.lang.Override

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

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

  public static final int AI_THREAT_MAP_FIELD_NUMBER = 5;
  private static final class AiThreatMapDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, java.lang.Integer> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_AiThreatMapEntry_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> aiThreatMap_;
  private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
  internalGetAiThreatMap() {
    if (aiThreatMap_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          AiThreatMapDefaultEntryHolder.defaultEntry);
    }
    return aiThreatMap_;
  }

  public int getAiThreatMapCount() {
    return internalGetAiThreatMap().getMap().size();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
   */

  @java.lang.Override
  public boolean containsAiThreatMap(
      int key) {
    
    return internalGetAiThreatMap().getMap().containsKey(key);
  }
  /**
   * Use {@link #getAiThreatMapMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMap() {
    return getAiThreatMapMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
   */
  @java.lang.Override

  public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMapMap() {
    return internalGetAiThreatMap().getMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
   */
  @java.lang.Override

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

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

  public static final int SKILL_CD_MAP_FIELD_NUMBER = 3;
  private static final class SkillCdMapDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, java.lang.Integer> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_SkillCdMapEntry_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> skillCdMap_;
  private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
  internalGetSkillCdMap() {
    if (skillCdMap_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          SkillCdMapDefaultEntryHolder.defaultEntry);
    }
    return skillCdMap_;
  }

  public int getSkillCdMapCount() {
    return internalGetSkillCdMap().getMap().size();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
   */

  @java.lang.Override
  public boolean containsSkillCdMap(
      int key) {
    
    return internalGetSkillCdMap().getMap().containsKey(key);
  }
  /**
   * Use {@link #getSkillCdMapMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMap() {
    return getSkillCdMapMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
   */
  @java.lang.Override

  public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMapMap() {
    return internalGetSkillCdMap().getMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
   */
  @java.lang.Override

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

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

  public static final int IS_AI_OPEN_FIELD_NUMBER = 8;
  private boolean isAiOpen_;
  /**
   * <code>bool is_ai_open = 8;</code>
   * @return The isAiOpen.
   */
  @java.lang.Override
  public boolean getIsAiOpen() {
    return isAiOpen_;
  }

  public static final int CUR_TACTIC_FIELD_NUMBER = 7;
  private int curTactic_;
  /**
   * <code>uint32 cur_tactic = 7;</code>
   * @return The curTactic.
   */
  @java.lang.Override
  public int getCurTactic() {
    return curTactic_;
  }

  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 {
    com.google.protobuf.GeneratedMessageV3
      .serializeIntegerMapTo(
        output,
        internalGetSkillCdMap(),
        SkillCdMapDefaultEntryHolder.defaultEntry,
        3);
    if (servantInfo_ != null) {
      output.writeMessage(4, getServantInfo());
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeIntegerMapTo(
        output,
        internalGetAiThreatMap(),
        AiThreatMapDefaultEntryHolder.defaultEntry,
        5);
    com.google.protobuf.GeneratedMessageV3
      .serializeIntegerMapTo(
        output,
        internalGetSkillGroupCdMap(),
        SkillGroupCdMapDefaultEntryHolder.defaultEntry,
        6);
    if (curTactic_ != 0) {
      output.writeUInt32(7, curTactic_);
    }
    if (isAiOpen_ != false) {
      output.writeBool(8, isAiOpen_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
         : internalGetSkillCdMap().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
      skillCdMap__ = SkillCdMapDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, skillCdMap__);
    }
    if (servantInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getServantInfo());
    }
    for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
         : internalGetAiThreatMap().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
      aiThreatMap__ = AiThreatMapDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, aiThreatMap__);
    }
    for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
         : internalGetSkillGroupCdMap().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
      skillGroupCdMap__ = SkillGroupCdMapDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, skillGroupCdMap__);
    }
    if (curTactic_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, curTactic_);
    }
    if (isAiOpen_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(8, isAiOpen_);
    }
    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 io.grasscutter.net.proto.define.SceneEntityAiInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.SceneEntityAiInfo other = (io.grasscutter.net.proto.define.SceneEntityAiInfo) obj;

    if (hasServantInfo() != other.hasServantInfo()) return false;
    if (hasServantInfo()) {
      if (!getServantInfo()
          .equals(other.getServantInfo())) return false;
    }
    if (!internalGetSkillGroupCdMap().equals(
        other.internalGetSkillGroupCdMap())) return false;
    if (!internalGetAiThreatMap().equals(
        other.internalGetAiThreatMap())) return false;
    if (!internalGetSkillCdMap().equals(
        other.internalGetSkillCdMap())) return false;
    if (getIsAiOpen()
        != other.getIsAiOpen()) return false;
    if (getCurTactic()
        != other.getCurTactic()) 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 (hasServantInfo()) {
      hash = (37 * hash) + SERVANT_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getServantInfo().hashCode();
    }
    if (!internalGetSkillGroupCdMap().getMap().isEmpty()) {
      hash = (37 * hash) + SKILL_GROUP_CD_MAP_FIELD_NUMBER;
      hash = (53 * hash) + internalGetSkillGroupCdMap().hashCode();
    }
    if (!internalGetAiThreatMap().getMap().isEmpty()) {
      hash = (37 * hash) + AI_THREAT_MAP_FIELD_NUMBER;
      hash = (53 * hash) + internalGetAiThreatMap().hashCode();
    }
    if (!internalGetSkillCdMap().getMap().isEmpty()) {
      hash = (37 * hash) + SKILL_CD_MAP_FIELD_NUMBER;
      hash = (53 * hash) + internalGetSkillCdMap().hashCode();
    }
    hash = (37 * hash) + IS_AI_OPEN_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsAiOpen());
    hash = (37 * hash) + CUR_TACTIC_FIELD_NUMBER;
    hash = (53 * hash) + getCurTactic();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo 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 io.grasscutter.net.proto.define.SceneEntityAiInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo 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 io.grasscutter.net.proto.define.SceneEntityAiInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.SceneEntityAiInfo 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(io.grasscutter.net.proto.define.SceneEntityAiInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code SceneEntityAiInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:SceneEntityAiInfo)
      io.grasscutter.net.proto.define.SceneEntityAiInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetSkillGroupCdMap();
        case 5:
          return internalGetAiThreatMap();
        case 3:
          return internalGetSkillCdMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetMutableSkillGroupCdMap();
        case 5:
          return internalGetMutableAiThreatMap();
        case 3:
          return internalGetMutableSkillCdMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.define.SceneEntityAiInfo.class, io.grasscutter.net.proto.define.SceneEntityAiInfo.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.define.SceneEntityAiInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (servantInfoBuilder_ == null) {
        servantInfo_ = null;
      } else {
        servantInfo_ = null;
        servantInfoBuilder_ = null;
      }
      internalGetMutableSkillGroupCdMap().clear();
      internalGetMutableAiThreatMap().clear();
      internalGetMutableSkillCdMap().clear();
      isAiOpen_ = false;

      curTactic_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.define.Define.internal_static_SceneEntityAiInfo_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.define.SceneEntityAiInfo getDefaultInstanceForType() {
      return io.grasscutter.net.proto.define.SceneEntityAiInfo.getDefaultInstance();
    }

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.SceneEntityAiInfo buildPartial() {
      io.grasscutter.net.proto.define.SceneEntityAiInfo result = new io.grasscutter.net.proto.define.SceneEntityAiInfo(this);
      int from_bitField0_ = bitField0_;
      if (servantInfoBuilder_ == null) {
        result.servantInfo_ = servantInfo_;
      } else {
        result.servantInfo_ = servantInfoBuilder_.build();
      }
      result.skillGroupCdMap_ = internalGetSkillGroupCdMap();
      result.skillGroupCdMap_.makeImmutable();
      result.aiThreatMap_ = internalGetAiThreatMap();
      result.aiThreatMap_.makeImmutable();
      result.skillCdMap_ = internalGetSkillCdMap();
      result.skillCdMap_.makeImmutable();
      result.isAiOpen_ = isAiOpen_;
      result.curTactic_ = curTactic_;
      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 io.grasscutter.net.proto.define.SceneEntityAiInfo) {
        return mergeFrom((io.grasscutter.net.proto.define.SceneEntityAiInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.SceneEntityAiInfo other) {
      if (other == io.grasscutter.net.proto.define.SceneEntityAiInfo.getDefaultInstance()) return this;
      if (other.hasServantInfo()) {
        mergeServantInfo(other.getServantInfo());
      }
      internalGetMutableSkillGroupCdMap().mergeFrom(
          other.internalGetSkillGroupCdMap());
      internalGetMutableAiThreatMap().mergeFrom(
          other.internalGetAiThreatMap());
      internalGetMutableSkillCdMap().mergeFrom(
          other.internalGetSkillCdMap());
      if (other.getIsAiOpen() != false) {
        setIsAiOpen(other.getIsAiOpen());
      }
      if (other.getCurTactic() != 0) {
        setCurTactic(other.getCurTactic());
      }
      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 {
      io.grasscutter.net.proto.define.SceneEntityAiInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.SceneEntityAiInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private io.grasscutter.net.proto.define.ServantInfo servantInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.ServantInfo, io.grasscutter.net.proto.define.ServantInfo.Builder, io.grasscutter.net.proto.define.ServantInfoOrBuilder> servantInfoBuilder_;
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     * @return Whether the servantInfo field is set.
     */
    public boolean hasServantInfo() {
      return servantInfoBuilder_ != null || servantInfo_ != null;
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     * @return The servantInfo.
     */
    public io.grasscutter.net.proto.define.ServantInfo getServantInfo() {
      if (servantInfoBuilder_ == null) {
        return servantInfo_ == null ? io.grasscutter.net.proto.define.ServantInfo.getDefaultInstance() : servantInfo_;
      } else {
        return servantInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    public Builder setServantInfo(io.grasscutter.net.proto.define.ServantInfo value) {
      if (servantInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        servantInfo_ = value;
        onChanged();
      } else {
        servantInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    public Builder setServantInfo(
        io.grasscutter.net.proto.define.ServantInfo.Builder builderForValue) {
      if (servantInfoBuilder_ == null) {
        servantInfo_ = builderForValue.build();
        onChanged();
      } else {
        servantInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    public Builder mergeServantInfo(io.grasscutter.net.proto.define.ServantInfo value) {
      if (servantInfoBuilder_ == null) {
        if (servantInfo_ != null) {
          servantInfo_ =
            io.grasscutter.net.proto.define.ServantInfo.newBuilder(servantInfo_).mergeFrom(value).buildPartial();
        } else {
          servantInfo_ = value;
        }
        onChanged();
      } else {
        servantInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    public Builder clearServantInfo() {
      if (servantInfoBuilder_ == null) {
        servantInfo_ = null;
        onChanged();
      } else {
        servantInfo_ = null;
        servantInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    public io.grasscutter.net.proto.define.ServantInfo.Builder getServantInfoBuilder() {
      
      onChanged();
      return getServantInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    public io.grasscutter.net.proto.define.ServantInfoOrBuilder getServantInfoOrBuilder() {
      if (servantInfoBuilder_ != null) {
        return servantInfoBuilder_.getMessageOrBuilder();
      } else {
        return servantInfo_ == null ?
            io.grasscutter.net.proto.define.ServantInfo.getDefaultInstance() : servantInfo_;
      }
    }
    /**
     * <code>.ServantInfo servant_info = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.ServantInfo, io.grasscutter.net.proto.define.ServantInfo.Builder, io.grasscutter.net.proto.define.ServantInfoOrBuilder> 
        getServantInfoFieldBuilder() {
      if (servantInfoBuilder_ == null) {
        servantInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.ServantInfo, io.grasscutter.net.proto.define.ServantInfo.Builder, io.grasscutter.net.proto.define.ServantInfoOrBuilder>(
                getServantInfo(),
                getParentForChildren(),
                isClean());
        servantInfo_ = null;
      }
      return servantInfoBuilder_;
    }

    private com.google.protobuf.MapField<
        java.lang.Integer, java.lang.Integer> skillGroupCdMap_;
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetSkillGroupCdMap() {
      if (skillGroupCdMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            SkillGroupCdMapDefaultEntryHolder.defaultEntry);
      }
      return skillGroupCdMap_;
    }
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetMutableSkillGroupCdMap() {
      onChanged();;
      if (skillGroupCdMap_ == null) {
        skillGroupCdMap_ = com.google.protobuf.MapField.newMapField(
            SkillGroupCdMapDefaultEntryHolder.defaultEntry);
      }
      if (!skillGroupCdMap_.isMutable()) {
        skillGroupCdMap_ = skillGroupCdMap_.copy();
      }
      return skillGroupCdMap_;
    }

    public int getSkillGroupCdMapCount() {
      return internalGetSkillGroupCdMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
     */

    @java.lang.Override
    public boolean containsSkillGroupCdMap(
        int key) {
      
      return internalGetSkillGroupCdMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getSkillGroupCdMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMap() {
      return getSkillGroupCdMapMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMapMap() {
      return internalGetSkillGroupCdMap().getMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
     */
    @java.lang.Override

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

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

    public Builder clearSkillGroupCdMap() {
      internalGetMutableSkillGroupCdMap().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
     */

    public Builder removeSkillGroupCdMap(
        int key) {
      
      internalGetMutableSkillGroupCdMap().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer>
    getMutableSkillGroupCdMap() {
      return internalGetMutableSkillGroupCdMap().getMutableMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
     */
    public Builder putSkillGroupCdMap(
        int key,
        int value) {
      
      
      internalGetMutableSkillGroupCdMap().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_group_cd_map = 6;</code>
     */

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

    private com.google.protobuf.MapField<
        java.lang.Integer, java.lang.Integer> aiThreatMap_;
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetAiThreatMap() {
      if (aiThreatMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            AiThreatMapDefaultEntryHolder.defaultEntry);
      }
      return aiThreatMap_;
    }
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetMutableAiThreatMap() {
      onChanged();;
      if (aiThreatMap_ == null) {
        aiThreatMap_ = com.google.protobuf.MapField.newMapField(
            AiThreatMapDefaultEntryHolder.defaultEntry);
      }
      if (!aiThreatMap_.isMutable()) {
        aiThreatMap_ = aiThreatMap_.copy();
      }
      return aiThreatMap_;
    }

    public int getAiThreatMapCount() {
      return internalGetAiThreatMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
     */

    @java.lang.Override
    public boolean containsAiThreatMap(
        int key) {
      
      return internalGetAiThreatMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getAiThreatMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMap() {
      return getAiThreatMapMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMapMap() {
      return internalGetAiThreatMap().getMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
     */
    @java.lang.Override

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

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

    public Builder clearAiThreatMap() {
      internalGetMutableAiThreatMap().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
     */

    public Builder removeAiThreatMap(
        int key) {
      
      internalGetMutableAiThreatMap().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer>
    getMutableAiThreatMap() {
      return internalGetMutableAiThreatMap().getMutableMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
     */
    public Builder putAiThreatMap(
        int key,
        int value) {
      
      
      internalGetMutableAiThreatMap().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; ai_threat_map = 5;</code>
     */

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

    private com.google.protobuf.MapField<
        java.lang.Integer, java.lang.Integer> skillCdMap_;
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetSkillCdMap() {
      if (skillCdMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            SkillCdMapDefaultEntryHolder.defaultEntry);
      }
      return skillCdMap_;
    }
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetMutableSkillCdMap() {
      onChanged();;
      if (skillCdMap_ == null) {
        skillCdMap_ = com.google.protobuf.MapField.newMapField(
            SkillCdMapDefaultEntryHolder.defaultEntry);
      }
      if (!skillCdMap_.isMutable()) {
        skillCdMap_ = skillCdMap_.copy();
      }
      return skillCdMap_;
    }

    public int getSkillCdMapCount() {
      return internalGetSkillCdMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
     */

    @java.lang.Override
    public boolean containsSkillCdMap(
        int key) {
      
      return internalGetSkillCdMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getSkillCdMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMap() {
      return getSkillCdMapMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMapMap() {
      return internalGetSkillCdMap().getMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
     */
    @java.lang.Override

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

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

    public Builder clearSkillCdMap() {
      internalGetMutableSkillCdMap().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
     */

    public Builder removeSkillCdMap(
        int key) {
      
      internalGetMutableSkillCdMap().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer>
    getMutableSkillCdMap() {
      return internalGetMutableSkillCdMap().getMutableMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
     */
    public Builder putSkillCdMap(
        int key,
        int value) {
      
      
      internalGetMutableSkillCdMap().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; skill_cd_map = 3;</code>
     */

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

    private boolean isAiOpen_ ;
    /**
     * <code>bool is_ai_open = 8;</code>
     * @return The isAiOpen.
     */
    @java.lang.Override
    public boolean getIsAiOpen() {
      return isAiOpen_;
    }
    /**
     * <code>bool is_ai_open = 8;</code>
     * @param value The isAiOpen to set.
     * @return This builder for chaining.
     */
    public Builder setIsAiOpen(boolean value) {
      
      isAiOpen_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_ai_open = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsAiOpen() {
      
      isAiOpen_ = false;
      onChanged();
      return this;
    }

    private int curTactic_ ;
    /**
     * <code>uint32 cur_tactic = 7;</code>
     * @return The curTactic.
     */
    @java.lang.Override
    public int getCurTactic() {
      return curTactic_;
    }
    /**
     * <code>uint32 cur_tactic = 7;</code>
     * @param value The curTactic to set.
     * @return This builder for chaining.
     */
    public Builder setCurTactic(int value) {
      
      curTactic_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 cur_tactic = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearCurTactic() {
      
      curTactic_ = 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:SceneEntityAiInfo)
  }

  // @@protoc_insertion_point(class_scope:SceneEntityAiInfo)
  private static final io.grasscutter.net.proto.define.SceneEntityAiInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.define.SceneEntityAiInfo();
  }

  public static io.grasscutter.net.proto.define.SceneEntityAiInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public io.grasscutter.net.proto.define.SceneEntityAiInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

