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

package io.grasscutter.net.proto.define;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Equip(
      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 10: {
            io.grasscutter.net.proto.define.IPBANJACMOM.Builder subBuilder = null;
            if (oJOLLMHNGLICase_ == 1) {
              subBuilder = ((io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_).toBuilder();
            }
            oJOLLMHNGLI_ =
                input.readMessage(io.grasscutter.net.proto.define.IPBANJACMOM.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_);
              oJOLLMHNGLI_ = subBuilder.buildPartial();
            }
            oJOLLMHNGLICase_ = 1;
            break;
          }
          case 18: {
            io.grasscutter.net.proto.define.GDGHGHFEBFC.Builder subBuilder = null;
            if (oJOLLMHNGLICase_ == 2) {
              subBuilder = ((io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_).toBuilder();
            }
            oJOLLMHNGLI_ =
                input.readMessage(io.grasscutter.net.proto.define.GDGHGHFEBFC.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_);
              oJOLLMHNGLI_ = subBuilder.buildPartial();
            }
            oJOLLMHNGLICase_ = 2;
            break;
          }
          case 24: {

            isLocked_ = 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_Equip_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_Equip_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.Equip.class, io.grasscutter.net.proto.define.Equip.Builder.class);
  }

  private int oJOLLMHNGLICase_ = 0;
  private java.lang.Object oJOLLMHNGLI_;
  public enum OJOLLMHNGLICase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    WEAPON(2),
    RELIQUARY(1),
    OJOLLMHNGLI_NOT_SET(0);
    private final int value;
    private OJOLLMHNGLICase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static OJOLLMHNGLICase valueOf(int value) {
      return forNumber(value);
    }

    public static OJOLLMHNGLICase forNumber(int value) {
      switch (value) {
        case 2: return WEAPON;
        case 1: return RELIQUARY;
        case 0: return OJOLLMHNGLI_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public OJOLLMHNGLICase
  getOJOLLMHNGLICase() {
    return OJOLLMHNGLICase.forNumber(
        oJOLLMHNGLICase_);
  }

  public static final int IS_LOCKED_FIELD_NUMBER = 3;
  private boolean isLocked_;
  /**
   * <code>bool is_locked = 3;</code>
   * @return The isLocked.
   */
  @java.lang.Override
  public boolean getIsLocked() {
    return isLocked_;
  }

  public static final int WEAPON_FIELD_NUMBER = 2;
  /**
   * <code>.GDGHGHFEBFC weapon = 2;</code>
   * @return Whether the weapon field is set.
   */
  @java.lang.Override
  public boolean hasWeapon() {
    return oJOLLMHNGLICase_ == 2;
  }
  /**
   * <code>.GDGHGHFEBFC weapon = 2;</code>
   * @return The weapon.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.GDGHGHFEBFC getWeapon() {
    if (oJOLLMHNGLICase_ == 2) {
       return (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance();
  }
  /**
   * <code>.GDGHGHFEBFC weapon = 2;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.GDGHGHFEBFCOrBuilder getWeaponOrBuilder() {
    if (oJOLLMHNGLICase_ == 2) {
       return (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance();
  }

  public static final int RELIQUARY_FIELD_NUMBER = 1;
  /**
   * <code>.IPBANJACMOM reliquary = 1;</code>
   * @return Whether the reliquary field is set.
   */
  @java.lang.Override
  public boolean hasReliquary() {
    return oJOLLMHNGLICase_ == 1;
  }
  /**
   * <code>.IPBANJACMOM reliquary = 1;</code>
   * @return The reliquary.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.IPBANJACMOM getReliquary() {
    if (oJOLLMHNGLICase_ == 1) {
       return (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance();
  }
  /**
   * <code>.IPBANJACMOM reliquary = 1;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.IPBANJACMOMOrBuilder getReliquaryOrBuilder() {
    if (oJOLLMHNGLICase_ == 1) {
       return (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance();
  }

  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 (oJOLLMHNGLICase_ == 1) {
      output.writeMessage(1, (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_);
    }
    if (oJOLLMHNGLICase_ == 2) {
      output.writeMessage(2, (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_);
    }
    if (isLocked_ != false) {
      output.writeBool(3, isLocked_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (oJOLLMHNGLICase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_);
    }
    if (oJOLLMHNGLICase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_);
    }
    if (isLocked_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(3, isLocked_);
    }
    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.Equip)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.Equip other = (io.grasscutter.net.proto.define.Equip) obj;

    if (getIsLocked()
        != other.getIsLocked()) return false;
    if (!getOJOLLMHNGLICase().equals(other.getOJOLLMHNGLICase())) return false;
    switch (oJOLLMHNGLICase_) {
      case 2:
        if (!getWeapon()
            .equals(other.getWeapon())) return false;
        break;
      case 1:
        if (!getReliquary()
            .equals(other.getReliquary())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + IS_LOCKED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsLocked());
    switch (oJOLLMHNGLICase_) {
      case 2:
        hash = (37 * hash) + WEAPON_FIELD_NUMBER;
        hash = (53 * hash) + getWeapon().hashCode();
        break;
      case 1:
        hash = (37 * hash) + RELIQUARY_FIELD_NUMBER;
        hash = (53 * hash) + getReliquary().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.define.Equip parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.Equip 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.Equip parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.Equip 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.Equip parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.Equip 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.Equip parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.Equip 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.Equip parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.Equip 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.Equip 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.Equip 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.Equip 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 Equip}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:Equip)
      io.grasscutter.net.proto.define.EquipOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.define.Define.internal_static_Equip_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.define.Define.internal_static_Equip_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.define.Equip.class, io.grasscutter.net.proto.define.Equip.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.define.Equip.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();
      isLocked_ = false;

      oJOLLMHNGLICase_ = 0;
      oJOLLMHNGLI_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.Equip buildPartial() {
      io.grasscutter.net.proto.define.Equip result = new io.grasscutter.net.proto.define.Equip(this);
      result.isLocked_ = isLocked_;
      if (oJOLLMHNGLICase_ == 2) {
        if (weaponBuilder_ == null) {
          result.oJOLLMHNGLI_ = oJOLLMHNGLI_;
        } else {
          result.oJOLLMHNGLI_ = weaponBuilder_.build();
        }
      }
      if (oJOLLMHNGLICase_ == 1) {
        if (reliquaryBuilder_ == null) {
          result.oJOLLMHNGLI_ = oJOLLMHNGLI_;
        } else {
          result.oJOLLMHNGLI_ = reliquaryBuilder_.build();
        }
      }
      result.oJOLLMHNGLICase_ = oJOLLMHNGLICase_;
      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.Equip) {
        return mergeFrom((io.grasscutter.net.proto.define.Equip)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.Equip other) {
      if (other == io.grasscutter.net.proto.define.Equip.getDefaultInstance()) return this;
      if (other.getIsLocked() != false) {
        setIsLocked(other.getIsLocked());
      }
      switch (other.getOJOLLMHNGLICase()) {
        case WEAPON: {
          mergeWeapon(other.getWeapon());
          break;
        }
        case RELIQUARY: {
          mergeReliquary(other.getReliquary());
          break;
        }
        case OJOLLMHNGLI_NOT_SET: {
          break;
        }
      }
      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.Equip parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.Equip) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int oJOLLMHNGLICase_ = 0;
    private java.lang.Object oJOLLMHNGLI_;
    public OJOLLMHNGLICase
        getOJOLLMHNGLICase() {
      return OJOLLMHNGLICase.forNumber(
          oJOLLMHNGLICase_);
    }

    public Builder clearOJOLLMHNGLI() {
      oJOLLMHNGLICase_ = 0;
      oJOLLMHNGLI_ = null;
      onChanged();
      return this;
    }


    private boolean isLocked_ ;
    /**
     * <code>bool is_locked = 3;</code>
     * @return The isLocked.
     */
    @java.lang.Override
    public boolean getIsLocked() {
      return isLocked_;
    }
    /**
     * <code>bool is_locked = 3;</code>
     * @param value The isLocked to set.
     * @return This builder for chaining.
     */
    public Builder setIsLocked(boolean value) {
      
      isLocked_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_locked = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsLocked() {
      
      isLocked_ = false;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.GDGHGHFEBFC, io.grasscutter.net.proto.define.GDGHGHFEBFC.Builder, io.grasscutter.net.proto.define.GDGHGHFEBFCOrBuilder> weaponBuilder_;
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     * @return Whether the weapon field is set.
     */
    @java.lang.Override
    public boolean hasWeapon() {
      return oJOLLMHNGLICase_ == 2;
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     * @return The weapon.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.GDGHGHFEBFC getWeapon() {
      if (weaponBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 2) {
          return (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance();
      } else {
        if (oJOLLMHNGLICase_ == 2) {
          return weaponBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance();
      }
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    public Builder setWeapon(io.grasscutter.net.proto.define.GDGHGHFEBFC value) {
      if (weaponBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        oJOLLMHNGLI_ = value;
        onChanged();
      } else {
        weaponBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 2;
      return this;
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    public Builder setWeapon(
        io.grasscutter.net.proto.define.GDGHGHFEBFC.Builder builderForValue) {
      if (weaponBuilder_ == null) {
        oJOLLMHNGLI_ = builderForValue.build();
        onChanged();
      } else {
        weaponBuilder_.setMessage(builderForValue.build());
      }
      oJOLLMHNGLICase_ = 2;
      return this;
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    public Builder mergeWeapon(io.grasscutter.net.proto.define.GDGHGHFEBFC value) {
      if (weaponBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 2 &&
            oJOLLMHNGLI_ != io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance()) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.GDGHGHFEBFC.newBuilder((io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_)
              .mergeFrom(value).buildPartial();
        } else {
          oJOLLMHNGLI_ = value;
        }
        onChanged();
      } else {
        if (oJOLLMHNGLICase_ == 2) {
          weaponBuilder_.mergeFrom(value);
        }
        weaponBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 2;
      return this;
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    public Builder clearWeapon() {
      if (weaponBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 2) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
          onChanged();
        }
      } else {
        if (oJOLLMHNGLICase_ == 2) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
        }
        weaponBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    public io.grasscutter.net.proto.define.GDGHGHFEBFC.Builder getWeaponBuilder() {
      return getWeaponFieldBuilder().getBuilder();
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.GDGHGHFEBFCOrBuilder getWeaponOrBuilder() {
      if ((oJOLLMHNGLICase_ == 2) && (weaponBuilder_ != null)) {
        return weaponBuilder_.getMessageOrBuilder();
      } else {
        if (oJOLLMHNGLICase_ == 2) {
          return (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance();
      }
    }
    /**
     * <code>.GDGHGHFEBFC weapon = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.GDGHGHFEBFC, io.grasscutter.net.proto.define.GDGHGHFEBFC.Builder, io.grasscutter.net.proto.define.GDGHGHFEBFCOrBuilder> 
        getWeaponFieldBuilder() {
      if (weaponBuilder_ == null) {
        if (!(oJOLLMHNGLICase_ == 2)) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.GDGHGHFEBFC.getDefaultInstance();
        }
        weaponBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.GDGHGHFEBFC, io.grasscutter.net.proto.define.GDGHGHFEBFC.Builder, io.grasscutter.net.proto.define.GDGHGHFEBFCOrBuilder>(
                (io.grasscutter.net.proto.define.GDGHGHFEBFC) oJOLLMHNGLI_,
                getParentForChildren(),
                isClean());
        oJOLLMHNGLI_ = null;
      }
      oJOLLMHNGLICase_ = 2;
      onChanged();;
      return weaponBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.IPBANJACMOM, io.grasscutter.net.proto.define.IPBANJACMOM.Builder, io.grasscutter.net.proto.define.IPBANJACMOMOrBuilder> reliquaryBuilder_;
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     * @return Whether the reliquary field is set.
     */
    @java.lang.Override
    public boolean hasReliquary() {
      return oJOLLMHNGLICase_ == 1;
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     * @return The reliquary.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.IPBANJACMOM getReliquary() {
      if (reliquaryBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 1) {
          return (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance();
      } else {
        if (oJOLLMHNGLICase_ == 1) {
          return reliquaryBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance();
      }
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    public Builder setReliquary(io.grasscutter.net.proto.define.IPBANJACMOM value) {
      if (reliquaryBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        oJOLLMHNGLI_ = value;
        onChanged();
      } else {
        reliquaryBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 1;
      return this;
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    public Builder setReliquary(
        io.grasscutter.net.proto.define.IPBANJACMOM.Builder builderForValue) {
      if (reliquaryBuilder_ == null) {
        oJOLLMHNGLI_ = builderForValue.build();
        onChanged();
      } else {
        reliquaryBuilder_.setMessage(builderForValue.build());
      }
      oJOLLMHNGLICase_ = 1;
      return this;
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    public Builder mergeReliquary(io.grasscutter.net.proto.define.IPBANJACMOM value) {
      if (reliquaryBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 1 &&
            oJOLLMHNGLI_ != io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance()) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.IPBANJACMOM.newBuilder((io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_)
              .mergeFrom(value).buildPartial();
        } else {
          oJOLLMHNGLI_ = value;
        }
        onChanged();
      } else {
        if (oJOLLMHNGLICase_ == 1) {
          reliquaryBuilder_.mergeFrom(value);
        }
        reliquaryBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 1;
      return this;
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    public Builder clearReliquary() {
      if (reliquaryBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 1) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
          onChanged();
        }
      } else {
        if (oJOLLMHNGLICase_ == 1) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
        }
        reliquaryBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    public io.grasscutter.net.proto.define.IPBANJACMOM.Builder getReliquaryBuilder() {
      return getReliquaryFieldBuilder().getBuilder();
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.IPBANJACMOMOrBuilder getReliquaryOrBuilder() {
      if ((oJOLLMHNGLICase_ == 1) && (reliquaryBuilder_ != null)) {
        return reliquaryBuilder_.getMessageOrBuilder();
      } else {
        if (oJOLLMHNGLICase_ == 1) {
          return (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance();
      }
    }
    /**
     * <code>.IPBANJACMOM reliquary = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.IPBANJACMOM, io.grasscutter.net.proto.define.IPBANJACMOM.Builder, io.grasscutter.net.proto.define.IPBANJACMOMOrBuilder> 
        getReliquaryFieldBuilder() {
      if (reliquaryBuilder_ == null) {
        if (!(oJOLLMHNGLICase_ == 1)) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.IPBANJACMOM.getDefaultInstance();
        }
        reliquaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.IPBANJACMOM, io.grasscutter.net.proto.define.IPBANJACMOM.Builder, io.grasscutter.net.proto.define.IPBANJACMOMOrBuilder>(
                (io.grasscutter.net.proto.define.IPBANJACMOM) oJOLLMHNGLI_,
                getParentForChildren(),
                isClean());
        oJOLLMHNGLI_ = null;
      }
      oJOLLMHNGLICase_ = 1;
      onChanged();;
      return reliquaryBuilder_;
    }
    @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:Equip)
  }

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

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

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

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

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

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

}

