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

package emu.grasscutter.net.proto;

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

    /**
     * <code>.Vector center_pos = 3;</code>
     * @return Whether the centerPos field is set.
     */
    boolean hasCenterPos();
    /**
     * <code>.Vector center_pos = 3;</code>
     * @return The centerPos.
     */
    emu.grasscutter.net.proto.VectorOuterClass.Vector getCenterPos();
    /**
     * <code>.Vector center_pos = 3;</code>
     */
    emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getCenterPosOrBuilder();

    /**
     * <code>bool is_region_detected = 11;</code>
     * @return The isRegionDetected.
     */
    boolean getIsRegionDetected();

    /**
     * <code>uint32 radius = 10;</code>
     * @return The radius.
     */
    int getRadius();

    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> 
        getSpotListList();
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    emu.grasscutter.net.proto.VectorOuterClass.Vector getSpotList(int index);
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    int getSpotListCount();
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
        getSpotListOrBuilderList();
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpotListOrBuilder(
        int index);

    /**
     * <code>uint32 region_id = 4;</code>
     * @return The regionId.
     */
    int getRegionId();
  }
  /**
   * <pre>
   * Obf: DJEPGGNFHDL
   * </pre>
   *
   * Protobuf type {@code TreasureMapDetectorData}
   */
  public static final class TreasureMapDetectorData extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:TreasureMapDetectorData)
      TreasureMapDetectorDataOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TreasureMapDetectorData.newBuilder() to construct.
    private TreasureMapDetectorData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TreasureMapDetectorData() {
      spotList_ = java.util.Collections.emptyList();
    }

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

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

              break;
            }
            case 32: {

              regionId_ = input.readUInt32();
              break;
            }
            case 74: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                spotList_ = new java.util.ArrayList<emu.grasscutter.net.proto.VectorOuterClass.Vector>();
                mutable_bitField0_ |= 0x00000001;
              }
              spotList_.add(
                  input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry));
              break;
            }
            case 80: {

              radius_ = input.readUInt32();
              break;
            }
            case 88: {

              isRegionDetected_ = 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 {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          spotList_ = java.util.Collections.unmodifiableList(spotList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.internal_static_TreasureMapDetectorData_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.internal_static_TreasureMapDetectorData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData.class, emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData.Builder.class);
    }

    public static final int CENTER_POS_FIELD_NUMBER = 3;
    private emu.grasscutter.net.proto.VectorOuterClass.Vector centerPos_;
    /**
     * <code>.Vector center_pos = 3;</code>
     * @return Whether the centerPos field is set.
     */
    @java.lang.Override
    public boolean hasCenterPos() {
      return centerPos_ != null;
    }
    /**
     * <code>.Vector center_pos = 3;</code>
     * @return The centerPos.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.Vector getCenterPos() {
      return centerPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : centerPos_;
    }
    /**
     * <code>.Vector center_pos = 3;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getCenterPosOrBuilder() {
      return getCenterPos();
    }

    public static final int IS_REGION_DETECTED_FIELD_NUMBER = 11;
    private boolean isRegionDetected_;
    /**
     * <code>bool is_region_detected = 11;</code>
     * @return The isRegionDetected.
     */
    @java.lang.Override
    public boolean getIsRegionDetected() {
      return isRegionDetected_;
    }

    public static final int RADIUS_FIELD_NUMBER = 10;
    private int radius_;
    /**
     * <code>uint32 radius = 10;</code>
     * @return The radius.
     */
    @java.lang.Override
    public int getRadius() {
      return radius_;
    }

    public static final int SPOT_LIST_FIELD_NUMBER = 9;
    private java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> spotList_;
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> getSpotListList() {
      return spotList_;
    }
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
        getSpotListOrBuilderList() {
      return spotList_;
    }
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    @java.lang.Override
    public int getSpotListCount() {
      return spotList_.size();
    }
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.Vector getSpotList(int index) {
      return spotList_.get(index);
    }
    /**
     * <code>repeated .Vector spot_list = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpotListOrBuilder(
        int index) {
      return spotList_.get(index);
    }

    public static final int REGION_ID_FIELD_NUMBER = 4;
    private int regionId_;
    /**
     * <code>uint32 region_id = 4;</code>
     * @return The regionId.
     */
    @java.lang.Override
    public int getRegionId() {
      return regionId_;
    }

    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 (centerPos_ != null) {
        output.writeMessage(3, getCenterPos());
      }
      if (regionId_ != 0) {
        output.writeUInt32(4, regionId_);
      }
      for (int i = 0; i < spotList_.size(); i++) {
        output.writeMessage(9, spotList_.get(i));
      }
      if (radius_ != 0) {
        output.writeUInt32(10, radius_);
      }
      if (isRegionDetected_ != false) {
        output.writeBool(11, isRegionDetected_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (centerPos_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getCenterPos());
      }
      if (regionId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, regionId_);
      }
      for (int i = 0; i < spotList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, spotList_.get(i));
      }
      if (radius_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(10, radius_);
      }
      if (isRegionDetected_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(11, isRegionDetected_);
      }
      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.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData other = (emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData) obj;

      if (hasCenterPos() != other.hasCenterPos()) return false;
      if (hasCenterPos()) {
        if (!getCenterPos()
            .equals(other.getCenterPos())) return false;
      }
      if (getIsRegionDetected()
          != other.getIsRegionDetected()) return false;
      if (getRadius()
          != other.getRadius()) return false;
      if (!getSpotListList()
          .equals(other.getSpotListList())) return false;
      if (getRegionId()
          != other.getRegionId()) 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 (hasCenterPos()) {
        hash = (37 * hash) + CENTER_POS_FIELD_NUMBER;
        hash = (53 * hash) + getCenterPos().hashCode();
      }
      hash = (37 * hash) + IS_REGION_DETECTED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsRegionDetected());
      hash = (37 * hash) + RADIUS_FIELD_NUMBER;
      hash = (53 * hash) + getRadius();
      if (getSpotListCount() > 0) {
        hash = (37 * hash) + SPOT_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getSpotListList().hashCode();
      }
      hash = (37 * hash) + REGION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getRegionId();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.internal_static_TreasureMapDetectorData_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData.class, emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData.Builder.class);
      }

      // Construct using emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getSpotListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (centerPosBuilder_ == null) {
          centerPos_ = null;
        } else {
          centerPos_ = null;
          centerPosBuilder_ = null;
        }
        isRegionDetected_ = false;

        radius_ = 0;

        if (spotListBuilder_ == null) {
          spotList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          spotListBuilder_.clear();
        }
        regionId_ = 0;

        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData buildPartial() {
        emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData result = new emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData(this);
        int from_bitField0_ = bitField0_;
        if (centerPosBuilder_ == null) {
          result.centerPos_ = centerPos_;
        } else {
          result.centerPos_ = centerPosBuilder_.build();
        }
        result.isRegionDetected_ = isRegionDetected_;
        result.radius_ = radius_;
        if (spotListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            spotList_ = java.util.Collections.unmodifiableList(spotList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.spotList_ = spotList_;
        } else {
          result.spotList_ = spotListBuilder_.build();
        }
        result.regionId_ = regionId_;
        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.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData) {
          return mergeFrom((emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData other) {
        if (other == emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData.getDefaultInstance()) return this;
        if (other.hasCenterPos()) {
          mergeCenterPos(other.getCenterPos());
        }
        if (other.getIsRegionDetected() != false) {
          setIsRegionDetected(other.getIsRegionDetected());
        }
        if (other.getRadius() != 0) {
          setRadius(other.getRadius());
        }
        if (spotListBuilder_ == null) {
          if (!other.spotList_.isEmpty()) {
            if (spotList_.isEmpty()) {
              spotList_ = other.spotList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureSpotListIsMutable();
              spotList_.addAll(other.spotList_);
            }
            onChanged();
          }
        } else {
          if (!other.spotList_.isEmpty()) {
            if (spotListBuilder_.isEmpty()) {
              spotListBuilder_.dispose();
              spotListBuilder_ = null;
              spotList_ = other.spotList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              spotListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSpotListFieldBuilder() : null;
            } else {
              spotListBuilder_.addAllMessages(other.spotList_);
            }
          }
        }
        if (other.getRegionId() != 0) {
          setRegionId(other.getRegionId());
        }
        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.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private emu.grasscutter.net.proto.VectorOuterClass.Vector centerPos_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> centerPosBuilder_;
      /**
       * <code>.Vector center_pos = 3;</code>
       * @return Whether the centerPos field is set.
       */
      public boolean hasCenterPos() {
        return centerPosBuilder_ != null || centerPos_ != null;
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       * @return The centerPos.
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector getCenterPos() {
        if (centerPosBuilder_ == null) {
          return centerPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : centerPos_;
        } else {
          return centerPosBuilder_.getMessage();
        }
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      public Builder setCenterPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (centerPosBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          centerPos_ = value;
          onChanged();
        } else {
          centerPosBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      public Builder setCenterPos(
          emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
        if (centerPosBuilder_ == null) {
          centerPos_ = builderForValue.build();
          onChanged();
        } else {
          centerPosBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      public Builder mergeCenterPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (centerPosBuilder_ == null) {
          if (centerPos_ != null) {
            centerPos_ =
              emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(centerPos_).mergeFrom(value).buildPartial();
          } else {
            centerPos_ = value;
          }
          onChanged();
        } else {
          centerPosBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      public Builder clearCenterPos() {
        if (centerPosBuilder_ == null) {
          centerPos_ = null;
          onChanged();
        } else {
          centerPos_ = null;
          centerPosBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getCenterPosBuilder() {
        
        onChanged();
        return getCenterPosFieldBuilder().getBuilder();
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getCenterPosOrBuilder() {
        if (centerPosBuilder_ != null) {
          return centerPosBuilder_.getMessageOrBuilder();
        } else {
          return centerPos_ == null ?
              emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : centerPos_;
        }
      }
      /**
       * <code>.Vector center_pos = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
          getCenterPosFieldBuilder() {
        if (centerPosBuilder_ == null) {
          centerPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
                  getCenterPos(),
                  getParentForChildren(),
                  isClean());
          centerPos_ = null;
        }
        return centerPosBuilder_;
      }

      private boolean isRegionDetected_ ;
      /**
       * <code>bool is_region_detected = 11;</code>
       * @return The isRegionDetected.
       */
      @java.lang.Override
      public boolean getIsRegionDetected() {
        return isRegionDetected_;
      }
      /**
       * <code>bool is_region_detected = 11;</code>
       * @param value The isRegionDetected to set.
       * @return This builder for chaining.
       */
      public Builder setIsRegionDetected(boolean value) {
        
        isRegionDetected_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool is_region_detected = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsRegionDetected() {
        
        isRegionDetected_ = false;
        onChanged();
        return this;
      }

      private int radius_ ;
      /**
       * <code>uint32 radius = 10;</code>
       * @return The radius.
       */
      @java.lang.Override
      public int getRadius() {
        return radius_;
      }
      /**
       * <code>uint32 radius = 10;</code>
       * @param value The radius to set.
       * @return This builder for chaining.
       */
      public Builder setRadius(int value) {
        
        radius_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 radius = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearRadius() {
        
        radius_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> spotList_ =
        java.util.Collections.emptyList();
      private void ensureSpotListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          spotList_ = new java.util.ArrayList<emu.grasscutter.net.proto.VectorOuterClass.Vector>(spotList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> spotListBuilder_;

      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> getSpotListList() {
        if (spotListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(spotList_);
        } else {
          return spotListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public int getSpotListCount() {
        if (spotListBuilder_ == null) {
          return spotList_.size();
        } else {
          return spotListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector getSpotList(int index) {
        if (spotListBuilder_ == null) {
          return spotList_.get(index);
        } else {
          return spotListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder setSpotList(
          int index, emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (spotListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSpotListIsMutable();
          spotList_.set(index, value);
          onChanged();
        } else {
          spotListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder setSpotList(
          int index, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
        if (spotListBuilder_ == null) {
          ensureSpotListIsMutable();
          spotList_.set(index, builderForValue.build());
          onChanged();
        } else {
          spotListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder addSpotList(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (spotListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSpotListIsMutable();
          spotList_.add(value);
          onChanged();
        } else {
          spotListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder addSpotList(
          int index, emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (spotListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSpotListIsMutable();
          spotList_.add(index, value);
          onChanged();
        } else {
          spotListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder addSpotList(
          emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
        if (spotListBuilder_ == null) {
          ensureSpotListIsMutable();
          spotList_.add(builderForValue.build());
          onChanged();
        } else {
          spotListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder addSpotList(
          int index, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
        if (spotListBuilder_ == null) {
          ensureSpotListIsMutable();
          spotList_.add(index, builderForValue.build());
          onChanged();
        } else {
          spotListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder addAllSpotList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.VectorOuterClass.Vector> values) {
        if (spotListBuilder_ == null) {
          ensureSpotListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, spotList_);
          onChanged();
        } else {
          spotListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder clearSpotList() {
        if (spotListBuilder_ == null) {
          spotList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          spotListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public Builder removeSpotList(int index) {
        if (spotListBuilder_ == null) {
          ensureSpotListIsMutable();
          spotList_.remove(index);
          onChanged();
        } else {
          spotListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getSpotListBuilder(
          int index) {
        return getSpotListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpotListOrBuilder(
          int index) {
        if (spotListBuilder_ == null) {
          return spotList_.get(index);  } else {
          return spotListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
           getSpotListOrBuilderList() {
        if (spotListBuilder_ != null) {
          return spotListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(spotList_);
        }
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder addSpotListBuilder() {
        return getSpotListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance());
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder addSpotListBuilder(
          int index) {
        return getSpotListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance());
      }
      /**
       * <code>repeated .Vector spot_list = 9;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder> 
           getSpotListBuilderList() {
        return getSpotListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
          getSpotListFieldBuilder() {
        if (spotListBuilder_ == null) {
          spotListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
                  spotList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          spotList_ = null;
        }
        return spotListBuilder_;
      }

      private int regionId_ ;
      /**
       * <code>uint32 region_id = 4;</code>
       * @return The regionId.
       */
      @java.lang.Override
      public int getRegionId() {
        return regionId_;
      }
      /**
       * <code>uint32 region_id = 4;</code>
       * @param value The regionId to set.
       * @return This builder for chaining.
       */
      public Builder setRegionId(int value) {
        
        regionId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 region_id = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearRegionId() {
        
        regionId_ = 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:TreasureMapDetectorData)
    }

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

    public static emu.grasscutter.net.proto.TreasureMapDetectorDataOuterClass.TreasureMapDetectorData getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_TreasureMapDetectorData_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_TreasureMapDetectorData_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\035TreasureMapDetectorData.proto\032\014Vector." +
      "proto\"\221\001\n\027TreasureMapDetectorData\022\033\n\ncen" +
      "ter_pos\030\003 \001(\0132\007.Vector\022\032\n\022is_region_dete" +
      "cted\030\013 \001(\010\022\016\n\006radius\030\n \001(\r\022\032\n\tspot_list\030" +
      "\t \003(\0132\007.Vector\022\021\n\tregion_id\030\004 \001(\rB\033\n\031emu" +
      ".grasscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(),
        });
    internal_static_TreasureMapDetectorData_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_TreasureMapDetectorData_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_TreasureMapDetectorData_descriptor,
        new java.lang.String[] { "CenterPos", "IsRegionDetected", "Radius", "SpotList", "RegionId", });
    emu.grasscutter.net.proto.VectorOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
