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

package io.grasscutter.net.proto.scene;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private MarkMapReq(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 66: {
            io.grasscutter.net.proto.define.MapMarkPoint.Builder subBuilder = null;
            if (mark_ != null) {
              subBuilder = mark_.toBuilder();
            }
            mark_ = input.readMessage(io.grasscutter.net.proto.define.MapMarkPoint.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(mark_);
              mark_ = subBuilder.buildPartial();
            }

            break;
          }
          case 106: {
            io.grasscutter.net.proto.define.MapMarkPoint.Builder subBuilder = null;
            if (old_ != null) {
              subBuilder = old_.toBuilder();
            }
            old_ = input.readMessage(io.grasscutter.net.proto.define.MapMarkPoint.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(old_);
              old_ = subBuilder.buildPartial();
            }

            break;
          }
          case 120: {
            int rawValue = input.readEnum();

            op_ = rawValue;
            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.scene.Scene.internal_static_MarkMapReq_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.scene.Scene.internal_static_MarkMapReq_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.scene.MarkMapReq.class, io.grasscutter.net.proto.scene.MarkMapReq.Builder.class);
  }

  public static final int MARK_FIELD_NUMBER = 8;
  private io.grasscutter.net.proto.define.MapMarkPoint mark_;
  /**
   * <code>.MapMarkPoint mark = 8;</code>
   * @return Whether the mark field is set.
   */
  @java.lang.Override
  public boolean hasMark() {
    return mark_ != null;
  }
  /**
   * <code>.MapMarkPoint mark = 8;</code>
   * @return The mark.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MapMarkPoint getMark() {
    return mark_ == null ? io.grasscutter.net.proto.define.MapMarkPoint.getDefaultInstance() : mark_;
  }
  /**
   * <code>.MapMarkPoint mark = 8;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MapMarkPointOrBuilder getMarkOrBuilder() {
    return getMark();
  }

  public static final int OLD_FIELD_NUMBER = 13;
  private io.grasscutter.net.proto.define.MapMarkPoint old_;
  /**
   * <code>.MapMarkPoint old = 13;</code>
   * @return Whether the old field is set.
   */
  @java.lang.Override
  public boolean hasOld() {
    return old_ != null;
  }
  /**
   * <code>.MapMarkPoint old = 13;</code>
   * @return The old.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MapMarkPoint getOld() {
    return old_ == null ? io.grasscutter.net.proto.define.MapMarkPoint.getDefaultInstance() : old_;
  }
  /**
   * <code>.MapMarkPoint old = 13;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MapMarkPointOrBuilder getOldOrBuilder() {
    return getOld();
  }

  public static final int OP_FIELD_NUMBER = 15;
  private int op_;
  /**
   * <code>.Operation op = 15;</code>
   * @return The enum numeric value on the wire for op.
   */
  @java.lang.Override public int getOpValue() {
    return op_;
  }
  /**
   * <code>.Operation op = 15;</code>
   * @return The op.
   */
  @java.lang.Override public io.grasscutter.net.proto.scene.Operation getOp() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.scene.Operation result = io.grasscutter.net.proto.scene.Operation.valueOf(op_);
    return result == null ? io.grasscutter.net.proto.scene.Operation.UNRECOGNIZED : result;
  }

  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 (mark_ != null) {
      output.writeMessage(8, getMark());
    }
    if (old_ != null) {
      output.writeMessage(13, getOld());
    }
    if (op_ != io.grasscutter.net.proto.scene.Operation.Operation_ADD.getNumber()) {
      output.writeEnum(15, op_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (mark_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, getMark());
    }
    if (old_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(13, getOld());
    }
    if (op_ != io.grasscutter.net.proto.scene.Operation.Operation_ADD.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(15, op_);
    }
    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.scene.MarkMapReq)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.scene.MarkMapReq other = (io.grasscutter.net.proto.scene.MarkMapReq) obj;

    if (hasMark() != other.hasMark()) return false;
    if (hasMark()) {
      if (!getMark()
          .equals(other.getMark())) return false;
    }
    if (hasOld() != other.hasOld()) return false;
    if (hasOld()) {
      if (!getOld()
          .equals(other.getOld())) return false;
    }
    if (op_ != other.op_) 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 (hasMark()) {
      hash = (37 * hash) + MARK_FIELD_NUMBER;
      hash = (53 * hash) + getMark().hashCode();
    }
    if (hasOld()) {
      hash = (37 * hash) + OLD_FIELD_NUMBER;
      hash = (53 * hash) + getOld().hashCode();
    }
    hash = (37 * hash) + OP_FIELD_NUMBER;
    hash = (53 * hash) + op_;
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * CmdId: 26646
   * </pre>
   *
   * Protobuf type {@code MarkMapReq}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:MarkMapReq)
      io.grasscutter.net.proto.scene.MarkMapReqOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_MarkMapReq_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_MarkMapReq_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.scene.MarkMapReq.class, io.grasscutter.net.proto.scene.MarkMapReq.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.scene.MarkMapReq.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 (markBuilder_ == null) {
        mark_ = null;
      } else {
        mark_ = null;
        markBuilder_ = null;
      }
      if (oldBuilder_ == null) {
        old_ = null;
      } else {
        old_ = null;
        oldBuilder_ = null;
      }
      op_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_MarkMapReq_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.scene.MarkMapReq buildPartial() {
      io.grasscutter.net.proto.scene.MarkMapReq result = new io.grasscutter.net.proto.scene.MarkMapReq(this);
      if (markBuilder_ == null) {
        result.mark_ = mark_;
      } else {
        result.mark_ = markBuilder_.build();
      }
      if (oldBuilder_ == null) {
        result.old_ = old_;
      } else {
        result.old_ = oldBuilder_.build();
      }
      result.op_ = op_;
      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.scene.MarkMapReq) {
        return mergeFrom((io.grasscutter.net.proto.scene.MarkMapReq)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.scene.MarkMapReq other) {
      if (other == io.grasscutter.net.proto.scene.MarkMapReq.getDefaultInstance()) return this;
      if (other.hasMark()) {
        mergeMark(other.getMark());
      }
      if (other.hasOld()) {
        mergeOld(other.getOld());
      }
      if (other.op_ != 0) {
        setOpValue(other.getOpValue());
      }
      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.scene.MarkMapReq parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.scene.MarkMapReq) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private io.grasscutter.net.proto.define.MapMarkPoint mark_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MapMarkPoint, io.grasscutter.net.proto.define.MapMarkPoint.Builder, io.grasscutter.net.proto.define.MapMarkPointOrBuilder> markBuilder_;
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     * @return Whether the mark field is set.
     */
    public boolean hasMark() {
      return markBuilder_ != null || mark_ != null;
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     * @return The mark.
     */
    public io.grasscutter.net.proto.define.MapMarkPoint getMark() {
      if (markBuilder_ == null) {
        return mark_ == null ? io.grasscutter.net.proto.define.MapMarkPoint.getDefaultInstance() : mark_;
      } else {
        return markBuilder_.getMessage();
      }
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    public Builder setMark(io.grasscutter.net.proto.define.MapMarkPoint value) {
      if (markBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        mark_ = value;
        onChanged();
      } else {
        markBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    public Builder setMark(
        io.grasscutter.net.proto.define.MapMarkPoint.Builder builderForValue) {
      if (markBuilder_ == null) {
        mark_ = builderForValue.build();
        onChanged();
      } else {
        markBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    public Builder mergeMark(io.grasscutter.net.proto.define.MapMarkPoint value) {
      if (markBuilder_ == null) {
        if (mark_ != null) {
          mark_ =
            io.grasscutter.net.proto.define.MapMarkPoint.newBuilder(mark_).mergeFrom(value).buildPartial();
        } else {
          mark_ = value;
        }
        onChanged();
      } else {
        markBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    public Builder clearMark() {
      if (markBuilder_ == null) {
        mark_ = null;
        onChanged();
      } else {
        mark_ = null;
        markBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    public io.grasscutter.net.proto.define.MapMarkPoint.Builder getMarkBuilder() {
      
      onChanged();
      return getMarkFieldBuilder().getBuilder();
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    public io.grasscutter.net.proto.define.MapMarkPointOrBuilder getMarkOrBuilder() {
      if (markBuilder_ != null) {
        return markBuilder_.getMessageOrBuilder();
      } else {
        return mark_ == null ?
            io.grasscutter.net.proto.define.MapMarkPoint.getDefaultInstance() : mark_;
      }
    }
    /**
     * <code>.MapMarkPoint mark = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MapMarkPoint, io.grasscutter.net.proto.define.MapMarkPoint.Builder, io.grasscutter.net.proto.define.MapMarkPointOrBuilder> 
        getMarkFieldBuilder() {
      if (markBuilder_ == null) {
        markBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.MapMarkPoint, io.grasscutter.net.proto.define.MapMarkPoint.Builder, io.grasscutter.net.proto.define.MapMarkPointOrBuilder>(
                getMark(),
                getParentForChildren(),
                isClean());
        mark_ = null;
      }
      return markBuilder_;
    }

    private io.grasscutter.net.proto.define.MapMarkPoint old_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MapMarkPoint, io.grasscutter.net.proto.define.MapMarkPoint.Builder, io.grasscutter.net.proto.define.MapMarkPointOrBuilder> oldBuilder_;
    /**
     * <code>.MapMarkPoint old = 13;</code>
     * @return Whether the old field is set.
     */
    public boolean hasOld() {
      return oldBuilder_ != null || old_ != null;
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     * @return The old.
     */
    public io.grasscutter.net.proto.define.MapMarkPoint getOld() {
      if (oldBuilder_ == null) {
        return old_ == null ? io.grasscutter.net.proto.define.MapMarkPoint.getDefaultInstance() : old_;
      } else {
        return oldBuilder_.getMessage();
      }
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    public Builder setOld(io.grasscutter.net.proto.define.MapMarkPoint value) {
      if (oldBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        old_ = value;
        onChanged();
      } else {
        oldBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    public Builder setOld(
        io.grasscutter.net.proto.define.MapMarkPoint.Builder builderForValue) {
      if (oldBuilder_ == null) {
        old_ = builderForValue.build();
        onChanged();
      } else {
        oldBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    public Builder mergeOld(io.grasscutter.net.proto.define.MapMarkPoint value) {
      if (oldBuilder_ == null) {
        if (old_ != null) {
          old_ =
            io.grasscutter.net.proto.define.MapMarkPoint.newBuilder(old_).mergeFrom(value).buildPartial();
        } else {
          old_ = value;
        }
        onChanged();
      } else {
        oldBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    public Builder clearOld() {
      if (oldBuilder_ == null) {
        old_ = null;
        onChanged();
      } else {
        old_ = null;
        oldBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    public io.grasscutter.net.proto.define.MapMarkPoint.Builder getOldBuilder() {
      
      onChanged();
      return getOldFieldBuilder().getBuilder();
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    public io.grasscutter.net.proto.define.MapMarkPointOrBuilder getOldOrBuilder() {
      if (oldBuilder_ != null) {
        return oldBuilder_.getMessageOrBuilder();
      } else {
        return old_ == null ?
            io.grasscutter.net.proto.define.MapMarkPoint.getDefaultInstance() : old_;
      }
    }
    /**
     * <code>.MapMarkPoint old = 13;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MapMarkPoint, io.grasscutter.net.proto.define.MapMarkPoint.Builder, io.grasscutter.net.proto.define.MapMarkPointOrBuilder> 
        getOldFieldBuilder() {
      if (oldBuilder_ == null) {
        oldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.MapMarkPoint, io.grasscutter.net.proto.define.MapMarkPoint.Builder, io.grasscutter.net.proto.define.MapMarkPointOrBuilder>(
                getOld(),
                getParentForChildren(),
                isClean());
        old_ = null;
      }
      return oldBuilder_;
    }

    private int op_ = 0;
    /**
     * <code>.Operation op = 15;</code>
     * @return The enum numeric value on the wire for op.
     */
    @java.lang.Override public int getOpValue() {
      return op_;
    }
    /**
     * <code>.Operation op = 15;</code>
     * @param value The enum numeric value on the wire for op to set.
     * @return This builder for chaining.
     */
    public Builder setOpValue(int value) {
      
      op_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.Operation op = 15;</code>
     * @return The op.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.scene.Operation getOp() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.scene.Operation result = io.grasscutter.net.proto.scene.Operation.valueOf(op_);
      return result == null ? io.grasscutter.net.proto.scene.Operation.UNRECOGNIZED : result;
    }
    /**
     * <code>.Operation op = 15;</code>
     * @param value The op to set.
     * @return This builder for chaining.
     */
    public Builder setOp(io.grasscutter.net.proto.scene.Operation value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      op_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.Operation op = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearOp() {
      
      op_ = 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:MarkMapReq)
  }

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

  public static io.grasscutter.net.proto.scene.MarkMapReq getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

