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

package io.grasscutter.net.proto.define;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Item(
      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 8: {

            itemId_ = input.readUInt32();
            break;
          }
          case 16: {

            guid_ = input.readUInt64();
            break;
          }
          case 42: {
            io.grasscutter.net.proto.define.Material.Builder subBuilder = null;
            if (oJOLLMHNGLICase_ == 5) {
              subBuilder = ((io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_).toBuilder();
            }
            oJOLLMHNGLI_ =
                input.readMessage(io.grasscutter.net.proto.define.Material.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_);
              oJOLLMHNGLI_ = subBuilder.buildPartial();
            }
            oJOLLMHNGLICase_ = 5;
            break;
          }
          case 50: {
            io.grasscutter.net.proto.define.Equip.Builder subBuilder = null;
            if (oJOLLMHNGLICase_ == 6) {
              subBuilder = ((io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_).toBuilder();
            }
            oJOLLMHNGLI_ =
                input.readMessage(io.grasscutter.net.proto.define.Equip.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_);
              oJOLLMHNGLI_ = subBuilder.buildPartial();
            }
            oJOLLMHNGLICase_ = 6;
            break;
          }
          case 58: {
            io.grasscutter.net.proto.define.Furniture.Builder subBuilder = null;
            if (oJOLLMHNGLICase_ == 7) {
              subBuilder = ((io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_).toBuilder();
            }
            oJOLLMHNGLI_ =
                input.readMessage(io.grasscutter.net.proto.define.Furniture.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_);
              oJOLLMHNGLI_ = subBuilder.buildPartial();
            }
            oJOLLMHNGLICase_ = 7;
            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_Item_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_Item_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.Item.class, io.grasscutter.net.proto.define.Item.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 {
    MATERIAL(5),
    EQUIP(6),
    FURNITURE(7),
    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 5: return MATERIAL;
        case 6: return EQUIP;
        case 7: return FURNITURE;
        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 GUID_FIELD_NUMBER = 2;
  private long guid_;
  /**
   * <code>uint64 guid = 2;</code>
   * @return The guid.
   */
  @java.lang.Override
  public long getGuid() {
    return guid_;
  }

  public static final int ITEM_ID_FIELD_NUMBER = 1;
  private int itemId_;
  /**
   * <code>uint32 item_id = 1;</code>
   * @return The itemId.
   */
  @java.lang.Override
  public int getItemId() {
    return itemId_;
  }

  public static final int MATERIAL_FIELD_NUMBER = 5;
  /**
   * <code>.Material material = 5;</code>
   * @return Whether the material field is set.
   */
  @java.lang.Override
  public boolean hasMaterial() {
    return oJOLLMHNGLICase_ == 5;
  }
  /**
   * <code>.Material material = 5;</code>
   * @return The material.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Material getMaterial() {
    if (oJOLLMHNGLICase_ == 5) {
       return (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.Material.getDefaultInstance();
  }
  /**
   * <code>.Material material = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MaterialOrBuilder getMaterialOrBuilder() {
    if (oJOLLMHNGLICase_ == 5) {
       return (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.Material.getDefaultInstance();
  }

  public static final int EQUIP_FIELD_NUMBER = 6;
  /**
   * <code>.Equip equip = 6;</code>
   * @return Whether the equip field is set.
   */
  @java.lang.Override
  public boolean hasEquip() {
    return oJOLLMHNGLICase_ == 6;
  }
  /**
   * <code>.Equip equip = 6;</code>
   * @return The equip.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Equip getEquip() {
    if (oJOLLMHNGLICase_ == 6) {
       return (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.Equip.getDefaultInstance();
  }
  /**
   * <code>.Equip equip = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.EquipOrBuilder getEquipOrBuilder() {
    if (oJOLLMHNGLICase_ == 6) {
       return (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.Equip.getDefaultInstance();
  }

  public static final int FURNITURE_FIELD_NUMBER = 7;
  /**
   * <code>.Furniture furniture = 7;</code>
   * @return Whether the furniture field is set.
   */
  @java.lang.Override
  public boolean hasFurniture() {
    return oJOLLMHNGLICase_ == 7;
  }
  /**
   * <code>.Furniture furniture = 7;</code>
   * @return The furniture.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Furniture getFurniture() {
    if (oJOLLMHNGLICase_ == 7) {
       return (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.Furniture.getDefaultInstance();
  }
  /**
   * <code>.Furniture furniture = 7;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.FurnitureOrBuilder getFurnitureOrBuilder() {
    if (oJOLLMHNGLICase_ == 7) {
       return (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_;
    }
    return io.grasscutter.net.proto.define.Furniture.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 (itemId_ != 0) {
      output.writeUInt32(1, itemId_);
    }
    if (guid_ != 0L) {
      output.writeUInt64(2, guid_);
    }
    if (oJOLLMHNGLICase_ == 5) {
      output.writeMessage(5, (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_);
    }
    if (oJOLLMHNGLICase_ == 6) {
      output.writeMessage(6, (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_);
    }
    if (oJOLLMHNGLICase_ == 7) {
      output.writeMessage(7, (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (itemId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, itemId_);
    }
    if (guid_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, guid_);
    }
    if (oJOLLMHNGLICase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_);
    }
    if (oJOLLMHNGLICase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_);
    }
    if (oJOLLMHNGLICase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_);
    }
    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.Item)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.Item other = (io.grasscutter.net.proto.define.Item) obj;

    if (getGuid()
        != other.getGuid()) return false;
    if (getItemId()
        != other.getItemId()) return false;
    if (!getOJOLLMHNGLICase().equals(other.getOJOLLMHNGLICase())) return false;
    switch (oJOLLMHNGLICase_) {
      case 5:
        if (!getMaterial()
            .equals(other.getMaterial())) return false;
        break;
      case 6:
        if (!getEquip()
            .equals(other.getEquip())) return false;
        break;
      case 7:
        if (!getFurniture()
            .equals(other.getFurniture())) 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) + GUID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getGuid());
    hash = (37 * hash) + ITEM_ID_FIELD_NUMBER;
    hash = (53 * hash) + getItemId();
    switch (oJOLLMHNGLICase_) {
      case 5:
        hash = (37 * hash) + MATERIAL_FIELD_NUMBER;
        hash = (53 * hash) + getMaterial().hashCode();
        break;
      case 6:
        hash = (37 * hash) + EQUIP_FIELD_NUMBER;
        hash = (53 * hash) + getEquip().hashCode();
        break;
      case 7:
        hash = (37 * hash) + FURNITURE_FIELD_NUMBER;
        hash = (53 * hash) + getFurniture().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using io.grasscutter.net.proto.define.Item.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();
      guid_ = 0L;

      itemId_ = 0;

      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_Item_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.Item buildPartial() {
      io.grasscutter.net.proto.define.Item result = new io.grasscutter.net.proto.define.Item(this);
      result.guid_ = guid_;
      result.itemId_ = itemId_;
      if (oJOLLMHNGLICase_ == 5) {
        if (materialBuilder_ == null) {
          result.oJOLLMHNGLI_ = oJOLLMHNGLI_;
        } else {
          result.oJOLLMHNGLI_ = materialBuilder_.build();
        }
      }
      if (oJOLLMHNGLICase_ == 6) {
        if (equipBuilder_ == null) {
          result.oJOLLMHNGLI_ = oJOLLMHNGLI_;
        } else {
          result.oJOLLMHNGLI_ = equipBuilder_.build();
        }
      }
      if (oJOLLMHNGLICase_ == 7) {
        if (furnitureBuilder_ == null) {
          result.oJOLLMHNGLI_ = oJOLLMHNGLI_;
        } else {
          result.oJOLLMHNGLI_ = furnitureBuilder_.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.Item) {
        return mergeFrom((io.grasscutter.net.proto.define.Item)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.Item other) {
      if (other == io.grasscutter.net.proto.define.Item.getDefaultInstance()) return this;
      if (other.getGuid() != 0L) {
        setGuid(other.getGuid());
      }
      if (other.getItemId() != 0) {
        setItemId(other.getItemId());
      }
      switch (other.getOJOLLMHNGLICase()) {
        case MATERIAL: {
          mergeMaterial(other.getMaterial());
          break;
        }
        case EQUIP: {
          mergeEquip(other.getEquip());
          break;
        }
        case FURNITURE: {
          mergeFurniture(other.getFurniture());
          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.Item parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.Item) 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 long guid_ ;
    /**
     * <code>uint64 guid = 2;</code>
     * @return The guid.
     */
    @java.lang.Override
    public long getGuid() {
      return guid_;
    }
    /**
     * <code>uint64 guid = 2;</code>
     * @param value The guid to set.
     * @return This builder for chaining.
     */
    public Builder setGuid(long value) {
      
      guid_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 guid = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearGuid() {
      
      guid_ = 0L;
      onChanged();
      return this;
    }

    private int itemId_ ;
    /**
     * <code>uint32 item_id = 1;</code>
     * @return The itemId.
     */
    @java.lang.Override
    public int getItemId() {
      return itemId_;
    }
    /**
     * <code>uint32 item_id = 1;</code>
     * @param value The itemId to set.
     * @return This builder for chaining.
     */
    public Builder setItemId(int value) {
      
      itemId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 item_id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemId() {
      
      itemId_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Material, io.grasscutter.net.proto.define.Material.Builder, io.grasscutter.net.proto.define.MaterialOrBuilder> materialBuilder_;
    /**
     * <code>.Material material = 5;</code>
     * @return Whether the material field is set.
     */
    @java.lang.Override
    public boolean hasMaterial() {
      return oJOLLMHNGLICase_ == 5;
    }
    /**
     * <code>.Material material = 5;</code>
     * @return The material.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.Material getMaterial() {
      if (materialBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 5) {
          return (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.Material.getDefaultInstance();
      } else {
        if (oJOLLMHNGLICase_ == 5) {
          return materialBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.Material.getDefaultInstance();
      }
    }
    /**
     * <code>.Material material = 5;</code>
     */
    public Builder setMaterial(io.grasscutter.net.proto.define.Material value) {
      if (materialBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        oJOLLMHNGLI_ = value;
        onChanged();
      } else {
        materialBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 5;
      return this;
    }
    /**
     * <code>.Material material = 5;</code>
     */
    public Builder setMaterial(
        io.grasscutter.net.proto.define.Material.Builder builderForValue) {
      if (materialBuilder_ == null) {
        oJOLLMHNGLI_ = builderForValue.build();
        onChanged();
      } else {
        materialBuilder_.setMessage(builderForValue.build());
      }
      oJOLLMHNGLICase_ = 5;
      return this;
    }
    /**
     * <code>.Material material = 5;</code>
     */
    public Builder mergeMaterial(io.grasscutter.net.proto.define.Material value) {
      if (materialBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 5 &&
            oJOLLMHNGLI_ != io.grasscutter.net.proto.define.Material.getDefaultInstance()) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.Material.newBuilder((io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_)
              .mergeFrom(value).buildPartial();
        } else {
          oJOLLMHNGLI_ = value;
        }
        onChanged();
      } else {
        if (oJOLLMHNGLICase_ == 5) {
          materialBuilder_.mergeFrom(value);
        }
        materialBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 5;
      return this;
    }
    /**
     * <code>.Material material = 5;</code>
     */
    public Builder clearMaterial() {
      if (materialBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 5) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
          onChanged();
        }
      } else {
        if (oJOLLMHNGLICase_ == 5) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
        }
        materialBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.Material material = 5;</code>
     */
    public io.grasscutter.net.proto.define.Material.Builder getMaterialBuilder() {
      return getMaterialFieldBuilder().getBuilder();
    }
    /**
     * <code>.Material material = 5;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MaterialOrBuilder getMaterialOrBuilder() {
      if ((oJOLLMHNGLICase_ == 5) && (materialBuilder_ != null)) {
        return materialBuilder_.getMessageOrBuilder();
      } else {
        if (oJOLLMHNGLICase_ == 5) {
          return (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.Material.getDefaultInstance();
      }
    }
    /**
     * <code>.Material material = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Material, io.grasscutter.net.proto.define.Material.Builder, io.grasscutter.net.proto.define.MaterialOrBuilder> 
        getMaterialFieldBuilder() {
      if (materialBuilder_ == null) {
        if (!(oJOLLMHNGLICase_ == 5)) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.Material.getDefaultInstance();
        }
        materialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Material, io.grasscutter.net.proto.define.Material.Builder, io.grasscutter.net.proto.define.MaterialOrBuilder>(
                (io.grasscutter.net.proto.define.Material) oJOLLMHNGLI_,
                getParentForChildren(),
                isClean());
        oJOLLMHNGLI_ = null;
      }
      oJOLLMHNGLICase_ = 5;
      onChanged();;
      return materialBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Equip, io.grasscutter.net.proto.define.Equip.Builder, io.grasscutter.net.proto.define.EquipOrBuilder> equipBuilder_;
    /**
     * <code>.Equip equip = 6;</code>
     * @return Whether the equip field is set.
     */
    @java.lang.Override
    public boolean hasEquip() {
      return oJOLLMHNGLICase_ == 6;
    }
    /**
     * <code>.Equip equip = 6;</code>
     * @return The equip.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.Equip getEquip() {
      if (equipBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 6) {
          return (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.Equip.getDefaultInstance();
      } else {
        if (oJOLLMHNGLICase_ == 6) {
          return equipBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.Equip.getDefaultInstance();
      }
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    public Builder setEquip(io.grasscutter.net.proto.define.Equip value) {
      if (equipBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        oJOLLMHNGLI_ = value;
        onChanged();
      } else {
        equipBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 6;
      return this;
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    public Builder setEquip(
        io.grasscutter.net.proto.define.Equip.Builder builderForValue) {
      if (equipBuilder_ == null) {
        oJOLLMHNGLI_ = builderForValue.build();
        onChanged();
      } else {
        equipBuilder_.setMessage(builderForValue.build());
      }
      oJOLLMHNGLICase_ = 6;
      return this;
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    public Builder mergeEquip(io.grasscutter.net.proto.define.Equip value) {
      if (equipBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 6 &&
            oJOLLMHNGLI_ != io.grasscutter.net.proto.define.Equip.getDefaultInstance()) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.Equip.newBuilder((io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_)
              .mergeFrom(value).buildPartial();
        } else {
          oJOLLMHNGLI_ = value;
        }
        onChanged();
      } else {
        if (oJOLLMHNGLICase_ == 6) {
          equipBuilder_.mergeFrom(value);
        }
        equipBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 6;
      return this;
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    public Builder clearEquip() {
      if (equipBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 6) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
          onChanged();
        }
      } else {
        if (oJOLLMHNGLICase_ == 6) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
        }
        equipBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    public io.grasscutter.net.proto.define.Equip.Builder getEquipBuilder() {
      return getEquipFieldBuilder().getBuilder();
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.EquipOrBuilder getEquipOrBuilder() {
      if ((oJOLLMHNGLICase_ == 6) && (equipBuilder_ != null)) {
        return equipBuilder_.getMessageOrBuilder();
      } else {
        if (oJOLLMHNGLICase_ == 6) {
          return (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.Equip.getDefaultInstance();
      }
    }
    /**
     * <code>.Equip equip = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Equip, io.grasscutter.net.proto.define.Equip.Builder, io.grasscutter.net.proto.define.EquipOrBuilder> 
        getEquipFieldBuilder() {
      if (equipBuilder_ == null) {
        if (!(oJOLLMHNGLICase_ == 6)) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.Equip.getDefaultInstance();
        }
        equipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Equip, io.grasscutter.net.proto.define.Equip.Builder, io.grasscutter.net.proto.define.EquipOrBuilder>(
                (io.grasscutter.net.proto.define.Equip) oJOLLMHNGLI_,
                getParentForChildren(),
                isClean());
        oJOLLMHNGLI_ = null;
      }
      oJOLLMHNGLICase_ = 6;
      onChanged();;
      return equipBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Furniture, io.grasscutter.net.proto.define.Furniture.Builder, io.grasscutter.net.proto.define.FurnitureOrBuilder> furnitureBuilder_;
    /**
     * <code>.Furniture furniture = 7;</code>
     * @return Whether the furniture field is set.
     */
    @java.lang.Override
    public boolean hasFurniture() {
      return oJOLLMHNGLICase_ == 7;
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     * @return The furniture.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.Furniture getFurniture() {
      if (furnitureBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 7) {
          return (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.Furniture.getDefaultInstance();
      } else {
        if (oJOLLMHNGLICase_ == 7) {
          return furnitureBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.Furniture.getDefaultInstance();
      }
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    public Builder setFurniture(io.grasscutter.net.proto.define.Furniture value) {
      if (furnitureBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        oJOLLMHNGLI_ = value;
        onChanged();
      } else {
        furnitureBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 7;
      return this;
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    public Builder setFurniture(
        io.grasscutter.net.proto.define.Furniture.Builder builderForValue) {
      if (furnitureBuilder_ == null) {
        oJOLLMHNGLI_ = builderForValue.build();
        onChanged();
      } else {
        furnitureBuilder_.setMessage(builderForValue.build());
      }
      oJOLLMHNGLICase_ = 7;
      return this;
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    public Builder mergeFurniture(io.grasscutter.net.proto.define.Furniture value) {
      if (furnitureBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 7 &&
            oJOLLMHNGLI_ != io.grasscutter.net.proto.define.Furniture.getDefaultInstance()) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.Furniture.newBuilder((io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_)
              .mergeFrom(value).buildPartial();
        } else {
          oJOLLMHNGLI_ = value;
        }
        onChanged();
      } else {
        if (oJOLLMHNGLICase_ == 7) {
          furnitureBuilder_.mergeFrom(value);
        }
        furnitureBuilder_.setMessage(value);
      }
      oJOLLMHNGLICase_ = 7;
      return this;
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    public Builder clearFurniture() {
      if (furnitureBuilder_ == null) {
        if (oJOLLMHNGLICase_ == 7) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
          onChanged();
        }
      } else {
        if (oJOLLMHNGLICase_ == 7) {
          oJOLLMHNGLICase_ = 0;
          oJOLLMHNGLI_ = null;
        }
        furnitureBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    public io.grasscutter.net.proto.define.Furniture.Builder getFurnitureBuilder() {
      return getFurnitureFieldBuilder().getBuilder();
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.FurnitureOrBuilder getFurnitureOrBuilder() {
      if ((oJOLLMHNGLICase_ == 7) && (furnitureBuilder_ != null)) {
        return furnitureBuilder_.getMessageOrBuilder();
      } else {
        if (oJOLLMHNGLICase_ == 7) {
          return (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_;
        }
        return io.grasscutter.net.proto.define.Furniture.getDefaultInstance();
      }
    }
    /**
     * <code>.Furniture furniture = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Furniture, io.grasscutter.net.proto.define.Furniture.Builder, io.grasscutter.net.proto.define.FurnitureOrBuilder> 
        getFurnitureFieldBuilder() {
      if (furnitureBuilder_ == null) {
        if (!(oJOLLMHNGLICase_ == 7)) {
          oJOLLMHNGLI_ = io.grasscutter.net.proto.define.Furniture.getDefaultInstance();
        }
        furnitureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Furniture, io.grasscutter.net.proto.define.Furniture.Builder, io.grasscutter.net.proto.define.FurnitureOrBuilder>(
                (io.grasscutter.net.proto.define.Furniture) oJOLLMHNGLI_,
                getParentForChildren(),
                isClean());
        oJOLLMHNGLI_ = null;
      }
      oJOLLMHNGLICase_ = 7;
      onChanged();;
      return furnitureBuilder_;
    }
    @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:Item)
  }

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

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

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

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

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

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

}

