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

package emu.grasscutter.net.proto;

public final class WidgetDoBagReqOuterClass {
  private WidgetDoBagReqOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface WidgetDoBagReqOrBuilder extends
      // @@protoc_insertion_point(interface_extends:WidgetDoBagReq)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>uint32 material_id = 9;</code>
     * @return The materialId.
     */
    int getMaterialId();

    /**
     * <code>.WidgetCreateLocationInfo location_info = 832;</code>
     * @return Whether the locationInfo field is set.
     */
    boolean hasLocationInfo();
    /**
     * <code>.WidgetCreateLocationInfo location_info = 832;</code>
     * @return The locationInfo.
     */
    emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo getLocationInfo();
    /**
     * <code>.WidgetCreateLocationInfo location_info = 832;</code>
     */
    emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfoOrBuilder getLocationInfoOrBuilder();

    /**
     * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
     * @return Whether the widgetCreatorInfo field is set.
     */
    boolean hasWidgetCreatorInfo();
    /**
     * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
     * @return The widgetCreatorInfo.
     */
    emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo getWidgetCreatorInfo();
    /**
     * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
     */
    emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfoOrBuilder getWidgetCreatorInfoOrBuilder();

    public emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq.OpInfoCase getOpInfoCase();
  }
  /**
   * <pre>
   * CmdId: 4255
   * EnetChannelId: 0
   * EnetIsReliable: false
   * IsAllowClient: true
   * </pre>
   *
   * Protobuf type {@code WidgetDoBagReq}
   */
  public static final class WidgetDoBagReq extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:WidgetDoBagReq)
      WidgetDoBagReqOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use WidgetDoBagReq.newBuilder() to construct.
    private WidgetDoBagReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private WidgetDoBagReq() {
    }

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

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

              materialId_ = input.readUInt32();
              break;
            }
            case 6658: {
              emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.Builder subBuilder = null;
              if (opInfoCase_ == 832) {
                subBuilder = ((emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_).toBuilder();
              }
              opInfo_ =
                  input.readMessage(emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_);
                opInfo_ = subBuilder.buildPartial();
              }
              opInfoCase_ = 832;
              break;
            }
            case 11978: {
              emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.Builder subBuilder = null;
              if (opInfoCase_ == 1497) {
                subBuilder = ((emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_).toBuilder();
              }
              opInfo_ =
                  input.readMessage(emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_);
                opInfo_ = subBuilder.buildPartial();
              }
              opInfoCase_ = 1497;
              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 emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.internal_static_WidgetDoBagReq_descriptor;
    }

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

    private int opInfoCase_ = 0;
    private java.lang.Object opInfo_;
    public enum OpInfoCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      LOCATION_INFO(832),
      WIDGET_CREATOR_INFO(1497),
      OPINFO_NOT_SET(0);
      private final int value;
      private OpInfoCase(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 OpInfoCase valueOf(int value) {
        return forNumber(value);
      }

      public static OpInfoCase forNumber(int value) {
        switch (value) {
          case 832: return LOCATION_INFO;
          case 1497: return WIDGET_CREATOR_INFO;
          case 0: return OPINFO_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public OpInfoCase
    getOpInfoCase() {
      return OpInfoCase.forNumber(
          opInfoCase_);
    }

    public static final int MATERIAL_ID_FIELD_NUMBER = 9;
    private int materialId_;
    /**
     * <code>uint32 material_id = 9;</code>
     * @return The materialId.
     */
    @java.lang.Override
    public int getMaterialId() {
      return materialId_;
    }

    public static final int LOCATION_INFO_FIELD_NUMBER = 832;
    /**
     * <code>.WidgetCreateLocationInfo location_info = 832;</code>
     * @return Whether the locationInfo field is set.
     */
    @java.lang.Override
    public boolean hasLocationInfo() {
      return opInfoCase_ == 832;
    }
    /**
     * <code>.WidgetCreateLocationInfo location_info = 832;</code>
     * @return The locationInfo.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo getLocationInfo() {
      if (opInfoCase_ == 832) {
         return (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_;
      }
      return emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance();
    }
    /**
     * <code>.WidgetCreateLocationInfo location_info = 832;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfoOrBuilder getLocationInfoOrBuilder() {
      if (opInfoCase_ == 832) {
         return (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_;
      }
      return emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance();
    }

    public static final int WIDGET_CREATOR_INFO_FIELD_NUMBER = 1497;
    /**
     * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
     * @return Whether the widgetCreatorInfo field is set.
     */
    @java.lang.Override
    public boolean hasWidgetCreatorInfo() {
      return opInfoCase_ == 1497;
    }
    /**
     * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
     * @return The widgetCreatorInfo.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo getWidgetCreatorInfo() {
      if (opInfoCase_ == 1497) {
         return (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_;
      }
      return emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.getDefaultInstance();
    }
    /**
     * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfoOrBuilder getWidgetCreatorInfoOrBuilder() {
      if (opInfoCase_ == 1497) {
         return (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_;
      }
      return emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.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 (materialId_ != 0) {
        output.writeUInt32(9, materialId_);
      }
      if (opInfoCase_ == 832) {
        output.writeMessage(832, (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_);
      }
      if (opInfoCase_ == 1497) {
        output.writeMessage(1497, (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (materialId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(9, materialId_);
      }
      if (opInfoCase_ == 832) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(832, (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_);
      }
      if (opInfoCase_ == 1497) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1497, (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq other = (emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq) obj;

      if (getMaterialId()
          != other.getMaterialId()) return false;
      if (!getOpInfoCase().equals(other.getOpInfoCase())) return false;
      switch (opInfoCase_) {
        case 832:
          if (!getLocationInfo()
              .equals(other.getLocationInfo())) return false;
          break;
        case 1497:
          if (!getWidgetCreatorInfo()
              .equals(other.getWidgetCreatorInfo())) 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) + MATERIAL_ID_FIELD_NUMBER;
      hash = (53 * hash) + getMaterialId();
      switch (opInfoCase_) {
        case 832:
          hash = (37 * hash) + LOCATION_INFO_FIELD_NUMBER;
          hash = (53 * hash) + getLocationInfo().hashCode();
          break;
        case 1497:
          hash = (37 * hash) + WIDGET_CREATOR_INFO_FIELD_NUMBER;
          hash = (53 * hash) + getWidgetCreatorInfo().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq 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: 4255
     * EnetChannelId: 0
     * EnetIsReliable: false
     * IsAllowClient: true
     * </pre>
     *
     * Protobuf type {@code WidgetDoBagReq}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:WidgetDoBagReq)
        emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReqOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.internal_static_WidgetDoBagReq_descriptor;
      }

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

      // Construct using emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq.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();
        materialId_ = 0;

        opInfoCase_ = 0;
        opInfo_ = null;
        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq buildPartial() {
        emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq result = new emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq(this);
        result.materialId_ = materialId_;
        if (opInfoCase_ == 832) {
          if (locationInfoBuilder_ == null) {
            result.opInfo_ = opInfo_;
          } else {
            result.opInfo_ = locationInfoBuilder_.build();
          }
        }
        if (opInfoCase_ == 1497) {
          if (widgetCreatorInfoBuilder_ == null) {
            result.opInfo_ = opInfo_;
          } else {
            result.opInfo_ = widgetCreatorInfoBuilder_.build();
          }
        }
        result.opInfoCase_ = opInfoCase_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq) {
          return mergeFrom((emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq other) {
        if (other == emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq.getDefaultInstance()) return this;
        if (other.getMaterialId() != 0) {
          setMaterialId(other.getMaterialId());
        }
        switch (other.getOpInfoCase()) {
          case LOCATION_INFO: {
            mergeLocationInfo(other.getLocationInfo());
            break;
          }
          case WIDGET_CREATOR_INFO: {
            mergeWidgetCreatorInfo(other.getWidgetCreatorInfo());
            break;
          }
          case OPINFO_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 {
        emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int opInfoCase_ = 0;
      private java.lang.Object opInfo_;
      public OpInfoCase
          getOpInfoCase() {
        return OpInfoCase.forNumber(
            opInfoCase_);
      }

      public Builder clearOpInfo() {
        opInfoCase_ = 0;
        opInfo_ = null;
        onChanged();
        return this;
      }


      private int materialId_ ;
      /**
       * <code>uint32 material_id = 9;</code>
       * @return The materialId.
       */
      @java.lang.Override
      public int getMaterialId() {
        return materialId_;
      }
      /**
       * <code>uint32 material_id = 9;</code>
       * @param value The materialId to set.
       * @return This builder for chaining.
       */
      public Builder setMaterialId(int value) {
        
        materialId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 material_id = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearMaterialId() {
        
        materialId_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo, emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.Builder, emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfoOrBuilder> locationInfoBuilder_;
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       * @return Whether the locationInfo field is set.
       */
      @java.lang.Override
      public boolean hasLocationInfo() {
        return opInfoCase_ == 832;
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       * @return The locationInfo.
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo getLocationInfo() {
        if (locationInfoBuilder_ == null) {
          if (opInfoCase_ == 832) {
            return (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_;
          }
          return emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance();
        } else {
          if (opInfoCase_ == 832) {
            return locationInfoBuilder_.getMessage();
          }
          return emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance();
        }
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      public Builder setLocationInfo(emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo value) {
        if (locationInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          opInfo_ = value;
          onChanged();
        } else {
          locationInfoBuilder_.setMessage(value);
        }
        opInfoCase_ = 832;
        return this;
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      public Builder setLocationInfo(
          emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.Builder builderForValue) {
        if (locationInfoBuilder_ == null) {
          opInfo_ = builderForValue.build();
          onChanged();
        } else {
          locationInfoBuilder_.setMessage(builderForValue.build());
        }
        opInfoCase_ = 832;
        return this;
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      public Builder mergeLocationInfo(emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo value) {
        if (locationInfoBuilder_ == null) {
          if (opInfoCase_ == 832 &&
              opInfo_ != emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance()) {
            opInfo_ = emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.newBuilder((emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_)
                .mergeFrom(value).buildPartial();
          } else {
            opInfo_ = value;
          }
          onChanged();
        } else {
          if (opInfoCase_ == 832) {
            locationInfoBuilder_.mergeFrom(value);
          }
          locationInfoBuilder_.setMessage(value);
        }
        opInfoCase_ = 832;
        return this;
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      public Builder clearLocationInfo() {
        if (locationInfoBuilder_ == null) {
          if (opInfoCase_ == 832) {
            opInfoCase_ = 0;
            opInfo_ = null;
            onChanged();
          }
        } else {
          if (opInfoCase_ == 832) {
            opInfoCase_ = 0;
            opInfo_ = null;
          }
          locationInfoBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      public emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.Builder getLocationInfoBuilder() {
        return getLocationInfoFieldBuilder().getBuilder();
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfoOrBuilder getLocationInfoOrBuilder() {
        if ((opInfoCase_ == 832) && (locationInfoBuilder_ != null)) {
          return locationInfoBuilder_.getMessageOrBuilder();
        } else {
          if (opInfoCase_ == 832) {
            return (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_;
          }
          return emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance();
        }
      }
      /**
       * <code>.WidgetCreateLocationInfo location_info = 832;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo, emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.Builder, emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfoOrBuilder> 
          getLocationInfoFieldBuilder() {
        if (locationInfoBuilder_ == null) {
          if (!(opInfoCase_ == 832)) {
            opInfo_ = emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.getDefaultInstance();
          }
          locationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo, emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo.Builder, emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfoOrBuilder>(
                  (emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.WidgetCreateLocationInfo) opInfo_,
                  getParentForChildren(),
                  isClean());
          opInfo_ = null;
        }
        opInfoCase_ = 832;
        onChanged();;
        return locationInfoBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo, emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.Builder, emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfoOrBuilder> widgetCreatorInfoBuilder_;
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       * @return Whether the widgetCreatorInfo field is set.
       */
      @java.lang.Override
      public boolean hasWidgetCreatorInfo() {
        return opInfoCase_ == 1497;
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       * @return The widgetCreatorInfo.
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo getWidgetCreatorInfo() {
        if (widgetCreatorInfoBuilder_ == null) {
          if (opInfoCase_ == 1497) {
            return (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_;
          }
          return emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.getDefaultInstance();
        } else {
          if (opInfoCase_ == 1497) {
            return widgetCreatorInfoBuilder_.getMessage();
          }
          return emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.getDefaultInstance();
        }
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      public Builder setWidgetCreatorInfo(emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo value) {
        if (widgetCreatorInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          opInfo_ = value;
          onChanged();
        } else {
          widgetCreatorInfoBuilder_.setMessage(value);
        }
        opInfoCase_ = 1497;
        return this;
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      public Builder setWidgetCreatorInfo(
          emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.Builder builderForValue) {
        if (widgetCreatorInfoBuilder_ == null) {
          opInfo_ = builderForValue.build();
          onChanged();
        } else {
          widgetCreatorInfoBuilder_.setMessage(builderForValue.build());
        }
        opInfoCase_ = 1497;
        return this;
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      public Builder mergeWidgetCreatorInfo(emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo value) {
        if (widgetCreatorInfoBuilder_ == null) {
          if (opInfoCase_ == 1497 &&
              opInfo_ != emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.getDefaultInstance()) {
            opInfo_ = emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.newBuilder((emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_)
                .mergeFrom(value).buildPartial();
          } else {
            opInfo_ = value;
          }
          onChanged();
        } else {
          if (opInfoCase_ == 1497) {
            widgetCreatorInfoBuilder_.mergeFrom(value);
          }
          widgetCreatorInfoBuilder_.setMessage(value);
        }
        opInfoCase_ = 1497;
        return this;
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      public Builder clearWidgetCreatorInfo() {
        if (widgetCreatorInfoBuilder_ == null) {
          if (opInfoCase_ == 1497) {
            opInfoCase_ = 0;
            opInfo_ = null;
            onChanged();
          }
        } else {
          if (opInfoCase_ == 1497) {
            opInfoCase_ = 0;
            opInfo_ = null;
          }
          widgetCreatorInfoBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      public emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.Builder getWidgetCreatorInfoBuilder() {
        return getWidgetCreatorInfoFieldBuilder().getBuilder();
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfoOrBuilder getWidgetCreatorInfoOrBuilder() {
        if ((opInfoCase_ == 1497) && (widgetCreatorInfoBuilder_ != null)) {
          return widgetCreatorInfoBuilder_.getMessageOrBuilder();
        } else {
          if (opInfoCase_ == 1497) {
            return (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_;
          }
          return emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.getDefaultInstance();
        }
      }
      /**
       * <code>.WidgetCreatorInfo widget_creator_info = 1497;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo, emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.Builder, emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfoOrBuilder> 
          getWidgetCreatorInfoFieldBuilder() {
        if (widgetCreatorInfoBuilder_ == null) {
          if (!(opInfoCase_ == 1497)) {
            opInfo_ = emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.getDefaultInstance();
          }
          widgetCreatorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo, emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo.Builder, emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfoOrBuilder>(
                  (emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.WidgetCreatorInfo) opInfo_,
                  getParentForChildren(),
                  isClean());
          opInfo_ = null;
        }
        opInfoCase_ = 1497;
        onChanged();;
        return widgetCreatorInfoBuilder_;
      }
      @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:WidgetDoBagReq)
    }

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

    public static emu.grasscutter.net.proto.WidgetDoBagReqOuterClass.WidgetDoBagReq getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_WidgetDoBagReq_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_WidgetDoBagReq_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\024WidgetDoBagReq.proto\032\036WidgetCreateLoca" +
      "tionInfo.proto\032\027WidgetCreatorInfo.proto\"" +
      "\231\001\n\016WidgetDoBagReq\022\023\n\013material_id\030\t \001(\r\022" +
      "3\n\rlocation_info\030\300\006 \001(\0132\031.WidgetCreateLo" +
      "cationInfoH\000\0222\n\023widget_creator_info\030\331\013 \001" +
      "(\0132\022.WidgetCreatorInfoH\000B\t\n\007op_infoB\033\n\031e" +
      "mu.grasscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.getDescriptor(),
        });
    internal_static_WidgetDoBagReq_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_WidgetDoBagReq_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_WidgetDoBagReq_descriptor,
        new java.lang.String[] { "MaterialId", "LocationInfo", "WidgetCreatorInfo", "OpInfo", });
    emu.grasscutter.net.proto.WidgetCreateLocationInfoOuterClass.getDescriptor();
    emu.grasscutter.net.proto.WidgetCreatorInfoOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
