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

package pb.xiugou.x1.protobuf.bag;

public final class Bag {
  private Bag() {}
  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 BagInfoResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.BagInfoResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> 
        getGridsList();
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem getGrids(int index);
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    int getGridsCount();
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
        getGridsOrBuilderList();
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder getGridsOrBuilder(
        int index);

    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.equip.Equip.PbEquip> 
        getEquipsList();
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    pb.xiugou.x1.protobuf.equip.Equip.PbEquip getEquips(int index);
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    int getEquipsCount();
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder> 
        getEquipsOrBuilderList();
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder getEquipsOrBuilder(
        int index);

    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> 
        getResourcesList();
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem getResources(int index);
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    int getResourcesCount();
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
        getResourcesOrBuilderList();
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder getResourcesOrBuilder(
        int index);
  }
  /**
   * <pre>
   *背包数据
   * </pre>
   *
   * Protobuf type {@code pb.BagInfoResponse}
   */
  public  static final class BagInfoResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.BagInfoResponse)
      BagInfoResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BagInfoResponse.newBuilder() to construct.
    private BagInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BagInfoResponse() {
      grids_ = java.util.Collections.emptyList();
      equips_ = java.util.Collections.emptyList();
      resources_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BagInfoResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                grids_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem>();
                mutable_bitField0_ |= 0x00000001;
              }
              grids_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.parser(), extensionRegistry));
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                equips_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.equip.Equip.PbEquip>();
                mutable_bitField0_ |= 0x00000002;
              }
              equips_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.equip.Equip.PbEquip.parser(), extensionRegistry));
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                resources_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem>();
                mutable_bitField0_ |= 0x00000004;
              }
              resources_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          grids_ = java.util.Collections.unmodifiableList(grids_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          equips_ = java.util.Collections.unmodifiableList(equips_);
        }
        if (((mutable_bitField0_ & 0x00000004) != 0)) {
          resources_ = java.util.Collections.unmodifiableList(resources_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagInfoResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.class, pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.BagInfoResponse.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 500001;</code>
       */
      ID(500001),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 500001;</code>
       */
      public static final int ID_VALUE = 500001;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 500001: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.BagInfoResponse.Proto)
    }

    public static final int GRIDS_FIELD_NUMBER = 1;
    private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> grids_;
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> getGridsList() {
      return grids_;
    }
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
        getGridsOrBuilderList() {
      return grids_;
    }
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    public int getGridsCount() {
      return grids_.size();
    }
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem getGrids(int index) {
      return grids_.get(index);
    }
    /**
     * <pre>
     *道具
     * </pre>
     *
     * <code>repeated .pb.PbItem grids = 1;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder getGridsOrBuilder(
        int index) {
      return grids_.get(index);
    }

    public static final int EQUIPS_FIELD_NUMBER = 2;
    private java.util.List<pb.xiugou.x1.protobuf.equip.Equip.PbEquip> equips_;
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.equip.Equip.PbEquip> getEquipsList() {
      return equips_;
    }
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder> 
        getEquipsOrBuilderList() {
      return equips_;
    }
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    public int getEquipsCount() {
      return equips_.size();
    }
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    public pb.xiugou.x1.protobuf.equip.Equip.PbEquip getEquips(int index) {
      return equips_.get(index);
    }
    /**
     * <pre>
     *装备
     * </pre>
     *
     * <code>repeated .pb.PbEquip equips = 2;</code>
     */
    public pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder getEquipsOrBuilder(
        int index) {
      return equips_.get(index);
    }

    public static final int RESOURCES_FIELD_NUMBER = 3;
    private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> resources_;
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> getResourcesList() {
      return resources_;
    }
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
        getResourcesOrBuilderList() {
      return resources_;
    }
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    public int getResourcesCount() {
      return resources_.size();
    }
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem getResources(int index) {
      return resources_.get(index);
    }
    /**
     * <pre>
     *数值资源类
     * </pre>
     *
     * <code>repeated .pb.PbItem resources = 3;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder getResourcesOrBuilder(
        int index) {
      return resources_.get(index);
    }

    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 {
      for (int i = 0; i < grids_.size(); i++) {
        output.writeMessage(1, grids_.get(i));
      }
      for (int i = 0; i < equips_.size(); i++) {
        output.writeMessage(2, equips_.get(i));
      }
      for (int i = 0; i < resources_.size(); i++) {
        output.writeMessage(3, resources_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < grids_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, grids_.get(i));
      }
      for (int i = 0; i < equips_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, equips_.get(i));
      }
      for (int i = 0; i < resources_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, resources_.get(i));
      }
      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 pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse other = (pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse) obj;

      if (!getGridsList()
          .equals(other.getGridsList())) return false;
      if (!getEquipsList()
          .equals(other.getEquipsList())) return false;
      if (!getResourcesList()
          .equals(other.getResourcesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getGridsCount() > 0) {
        hash = (37 * hash) + GRIDS_FIELD_NUMBER;
        hash = (53 * hash) + getGridsList().hashCode();
      }
      if (getEquipsCount() > 0) {
        hash = (37 * hash) + EQUIPS_FIELD_NUMBER;
        hash = (53 * hash) + getEquipsList().hashCode();
      }
      if (getResourcesCount() > 0) {
        hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
        hash = (53 * hash) + getResourcesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse 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 pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse 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 pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse 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(pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse 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>
     *背包数据
     * </pre>
     *
     * Protobuf type {@code pb.BagInfoResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.BagInfoResponse)
        pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagInfoResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagInfoResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.class, pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getGridsFieldBuilder();
          getEquipsFieldBuilder();
          getResourcesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (gridsBuilder_ == null) {
          grids_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          gridsBuilder_.clear();
        }
        if (equipsBuilder_ == null) {
          equips_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          equipsBuilder_.clear();
        }
        if (resourcesBuilder_ == null) {
          resources_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          resourcesBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagInfoResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse build() {
        pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse buildPartial() {
        pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse result = new pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse(this);
        int from_bitField0_ = bitField0_;
        if (gridsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            grids_ = java.util.Collections.unmodifiableList(grids_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.grids_ = grids_;
        } else {
          result.grids_ = gridsBuilder_.build();
        }
        if (equipsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            equips_ = java.util.Collections.unmodifiableList(equips_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.equips_ = equips_;
        } else {
          result.equips_ = equipsBuilder_.build();
        }
        if (resourcesBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            resources_ = java.util.Collections.unmodifiableList(resources_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.resources_ = resources_;
        } else {
          result.resources_ = resourcesBuilder_.build();
        }
        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 pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse other) {
        if (other == pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse.getDefaultInstance()) return this;
        if (gridsBuilder_ == null) {
          if (!other.grids_.isEmpty()) {
            if (grids_.isEmpty()) {
              grids_ = other.grids_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureGridsIsMutable();
              grids_.addAll(other.grids_);
            }
            onChanged();
          }
        } else {
          if (!other.grids_.isEmpty()) {
            if (gridsBuilder_.isEmpty()) {
              gridsBuilder_.dispose();
              gridsBuilder_ = null;
              grids_ = other.grids_;
              bitField0_ = (bitField0_ & ~0x00000001);
              gridsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getGridsFieldBuilder() : null;
            } else {
              gridsBuilder_.addAllMessages(other.grids_);
            }
          }
        }
        if (equipsBuilder_ == null) {
          if (!other.equips_.isEmpty()) {
            if (equips_.isEmpty()) {
              equips_ = other.equips_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureEquipsIsMutable();
              equips_.addAll(other.equips_);
            }
            onChanged();
          }
        } else {
          if (!other.equips_.isEmpty()) {
            if (equipsBuilder_.isEmpty()) {
              equipsBuilder_.dispose();
              equipsBuilder_ = null;
              equips_ = other.equips_;
              bitField0_ = (bitField0_ & ~0x00000002);
              equipsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getEquipsFieldBuilder() : null;
            } else {
              equipsBuilder_.addAllMessages(other.equips_);
            }
          }
        }
        if (resourcesBuilder_ == null) {
          if (!other.resources_.isEmpty()) {
            if (resources_.isEmpty()) {
              resources_ = other.resources_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureResourcesIsMutable();
              resources_.addAll(other.resources_);
            }
            onChanged();
          }
        } else {
          if (!other.resources_.isEmpty()) {
            if (resourcesBuilder_.isEmpty()) {
              resourcesBuilder_.dispose();
              resourcesBuilder_ = null;
              resources_ = other.resources_;
              bitField0_ = (bitField0_ & ~0x00000004);
              resourcesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getResourcesFieldBuilder() : null;
            } else {
              resourcesBuilder_.addAllMessages(other.resources_);
            }
          }
        }
        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 {
        pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> grids_ =
        java.util.Collections.emptyList();
      private void ensureGridsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          grids_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem>(grids_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> gridsBuilder_;

      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> getGridsList() {
        if (gridsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(grids_);
        } else {
          return gridsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public int getGridsCount() {
        if (gridsBuilder_ == null) {
          return grids_.size();
        } else {
          return gridsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem getGrids(int index) {
        if (gridsBuilder_ == null) {
          return grids_.get(index);
        } else {
          return gridsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder setGrids(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem value) {
        if (gridsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGridsIsMutable();
          grids_.set(index, value);
          onChanged();
        } else {
          gridsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder setGrids(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder builderForValue) {
        if (gridsBuilder_ == null) {
          ensureGridsIsMutable();
          grids_.set(index, builderForValue.build());
          onChanged();
        } else {
          gridsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder addGrids(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem value) {
        if (gridsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGridsIsMutable();
          grids_.add(value);
          onChanged();
        } else {
          gridsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder addGrids(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem value) {
        if (gridsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGridsIsMutable();
          grids_.add(index, value);
          onChanged();
        } else {
          gridsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder addGrids(
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder builderForValue) {
        if (gridsBuilder_ == null) {
          ensureGridsIsMutable();
          grids_.add(builderForValue.build());
          onChanged();
        } else {
          gridsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder addGrids(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder builderForValue) {
        if (gridsBuilder_ == null) {
          ensureGridsIsMutable();
          grids_.add(index, builderForValue.build());
          onChanged();
        } else {
          gridsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder addAllGrids(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> values) {
        if (gridsBuilder_ == null) {
          ensureGridsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, grids_);
          onChanged();
        } else {
          gridsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder clearGrids() {
        if (gridsBuilder_ == null) {
          grids_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          gridsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public Builder removeGrids(int index) {
        if (gridsBuilder_ == null) {
          ensureGridsIsMutable();
          grids_.remove(index);
          onChanged();
        } else {
          gridsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder getGridsBuilder(
          int index) {
        return getGridsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder getGridsOrBuilder(
          int index) {
        if (gridsBuilder_ == null) {
          return grids_.get(index);  } else {
          return gridsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
           getGridsOrBuilderList() {
        if (gridsBuilder_ != null) {
          return gridsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(grids_);
        }
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder addGridsBuilder() {
        return getGridsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.getDefaultInstance());
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder addGridsBuilder(
          int index) {
        return getGridsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.getDefaultInstance());
      }
      /**
       * <pre>
       *道具
       * </pre>
       *
       * <code>repeated .pb.PbItem grids = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder> 
           getGridsBuilderList() {
        return getGridsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
          getGridsFieldBuilder() {
        if (gridsBuilder_ == null) {
          gridsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder>(
                  grids_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          grids_ = null;
        }
        return gridsBuilder_;
      }

      private java.util.List<pb.xiugou.x1.protobuf.equip.Equip.PbEquip> equips_ =
        java.util.Collections.emptyList();
      private void ensureEquipsIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          equips_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.equip.Equip.PbEquip>(equips_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.equip.Equip.PbEquip, pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder, pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder> equipsBuilder_;

      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.equip.Equip.PbEquip> getEquipsList() {
        if (equipsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(equips_);
        } else {
          return equipsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public int getEquipsCount() {
        if (equipsBuilder_ == null) {
          return equips_.size();
        } else {
          return equipsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public pb.xiugou.x1.protobuf.equip.Equip.PbEquip getEquips(int index) {
        if (equipsBuilder_ == null) {
          return equips_.get(index);
        } else {
          return equipsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder setEquips(
          int index, pb.xiugou.x1.protobuf.equip.Equip.PbEquip value) {
        if (equipsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureEquipsIsMutable();
          equips_.set(index, value);
          onChanged();
        } else {
          equipsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder setEquips(
          int index, pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder builderForValue) {
        if (equipsBuilder_ == null) {
          ensureEquipsIsMutable();
          equips_.set(index, builderForValue.build());
          onChanged();
        } else {
          equipsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder addEquips(pb.xiugou.x1.protobuf.equip.Equip.PbEquip value) {
        if (equipsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureEquipsIsMutable();
          equips_.add(value);
          onChanged();
        } else {
          equipsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder addEquips(
          int index, pb.xiugou.x1.protobuf.equip.Equip.PbEquip value) {
        if (equipsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureEquipsIsMutable();
          equips_.add(index, value);
          onChanged();
        } else {
          equipsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder addEquips(
          pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder builderForValue) {
        if (equipsBuilder_ == null) {
          ensureEquipsIsMutable();
          equips_.add(builderForValue.build());
          onChanged();
        } else {
          equipsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder addEquips(
          int index, pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder builderForValue) {
        if (equipsBuilder_ == null) {
          ensureEquipsIsMutable();
          equips_.add(index, builderForValue.build());
          onChanged();
        } else {
          equipsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder addAllEquips(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.equip.Equip.PbEquip> values) {
        if (equipsBuilder_ == null) {
          ensureEquipsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, equips_);
          onChanged();
        } else {
          equipsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder clearEquips() {
        if (equipsBuilder_ == null) {
          equips_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          equipsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public Builder removeEquips(int index) {
        if (equipsBuilder_ == null) {
          ensureEquipsIsMutable();
          equips_.remove(index);
          onChanged();
        } else {
          equipsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder getEquipsBuilder(
          int index) {
        return getEquipsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder getEquipsOrBuilder(
          int index) {
        if (equipsBuilder_ == null) {
          return equips_.get(index);  } else {
          return equipsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder> 
           getEquipsOrBuilderList() {
        if (equipsBuilder_ != null) {
          return equipsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(equips_);
        }
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder addEquipsBuilder() {
        return getEquipsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.equip.Equip.PbEquip.getDefaultInstance());
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder addEquipsBuilder(
          int index) {
        return getEquipsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.equip.Equip.PbEquip.getDefaultInstance());
      }
      /**
       * <pre>
       *装备
       * </pre>
       *
       * <code>repeated .pb.PbEquip equips = 2;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder> 
           getEquipsBuilderList() {
        return getEquipsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.equip.Equip.PbEquip, pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder, pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder> 
          getEquipsFieldBuilder() {
        if (equipsBuilder_ == null) {
          equipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.equip.Equip.PbEquip, pb.xiugou.x1.protobuf.equip.Equip.PbEquip.Builder, pb.xiugou.x1.protobuf.equip.Equip.PbEquipOrBuilder>(
                  equips_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          equips_ = null;
        }
        return equipsBuilder_;
      }

      private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> resources_ =
        java.util.Collections.emptyList();
      private void ensureResourcesIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          resources_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem>(resources_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> resourcesBuilder_;

      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> getResourcesList() {
        if (resourcesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(resources_);
        } else {
          return resourcesBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public int getResourcesCount() {
        if (resourcesBuilder_ == null) {
          return resources_.size();
        } else {
          return resourcesBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem getResources(int index) {
        if (resourcesBuilder_ == null) {
          return resources_.get(index);
        } else {
          return resourcesBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder setResources(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem value) {
        if (resourcesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResourcesIsMutable();
          resources_.set(index, value);
          onChanged();
        } else {
          resourcesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder setResources(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder builderForValue) {
        if (resourcesBuilder_ == null) {
          ensureResourcesIsMutable();
          resources_.set(index, builderForValue.build());
          onChanged();
        } else {
          resourcesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder addResources(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem value) {
        if (resourcesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResourcesIsMutable();
          resources_.add(value);
          onChanged();
        } else {
          resourcesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder addResources(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem value) {
        if (resourcesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResourcesIsMutable();
          resources_.add(index, value);
          onChanged();
        } else {
          resourcesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder addResources(
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder builderForValue) {
        if (resourcesBuilder_ == null) {
          ensureResourcesIsMutable();
          resources_.add(builderForValue.build());
          onChanged();
        } else {
          resourcesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder addResources(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder builderForValue) {
        if (resourcesBuilder_ == null) {
          ensureResourcesIsMutable();
          resources_.add(index, builderForValue.build());
          onChanged();
        } else {
          resourcesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder addAllResources(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem> values) {
        if (resourcesBuilder_ == null) {
          ensureResourcesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, resources_);
          onChanged();
        } else {
          resourcesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder clearResources() {
        if (resourcesBuilder_ == null) {
          resources_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          resourcesBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public Builder removeResources(int index) {
        if (resourcesBuilder_ == null) {
          ensureResourcesIsMutable();
          resources_.remove(index);
          onChanged();
        } else {
          resourcesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder getResourcesBuilder(
          int index) {
        return getResourcesFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder getResourcesOrBuilder(
          int index) {
        if (resourcesBuilder_ == null) {
          return resources_.get(index);  } else {
          return resourcesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
           getResourcesOrBuilderList() {
        if (resourcesBuilder_ != null) {
          return resourcesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(resources_);
        }
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder addResourcesBuilder() {
        return getResourcesFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.getDefaultInstance());
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder addResourcesBuilder(
          int index) {
        return getResourcesFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.getDefaultInstance());
      }
      /**
       * <pre>
       *数值资源类
       * </pre>
       *
       * <code>repeated .pb.PbItem resources = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder> 
           getResourcesBuilderList() {
        return getResourcesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder> 
          getResourcesFieldBuilder() {
        if (resourcesBuilder_ == null) {
          resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItem.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbItemOrBuilder>(
                  resources_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          resources_ = null;
        }
        return resourcesBuilder_;
      }
      @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:pb.BagInfoResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.BagInfoResponse)
    private static final pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse();
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.bag.Bag.BagInfoResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BagUseItemRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.BagUseItemRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *道具ID
     * </pre>
     *
     * <code>int32 item_id = 1;</code>
     * @return The itemId.
     */
    int getItemId();

    /**
     * <pre>
     *数量
     * </pre>
     *
     * <code>int64 num = 2;</code>
     * @return The num.
     */
    long getNum();

    /**
     * <pre>
     *选项
     * </pre>
     *
     * <code>int32 option = 3;</code>
     * @return The option.
     */
    int getOption();
  }
  /**
   * <pre>
   *背包中使用道具
   * </pre>
   *
   * Protobuf type {@code pb.BagUseItemRequest}
   */
  public  static final class BagUseItemRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.BagUseItemRequest)
      BagUseItemRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BagUseItemRequest.newBuilder() to construct.
    private BagUseItemRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BagUseItemRequest() {
    }

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

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

              num_ = input.readInt64();
              break;
            }
            case 24: {

              option_ = input.readInt32();
              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 pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.class, pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.BagUseItemRequest.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 500003;</code>
       */
      ID(500003),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 500003;</code>
       */
      public static final int ID_VALUE = 500003;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 500003: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.BagUseItemRequest.Proto)
    }

    public static final int ITEM_ID_FIELD_NUMBER = 1;
    private int itemId_;
    /**
     * <pre>
     *道具ID
     * </pre>
     *
     * <code>int32 item_id = 1;</code>
     * @return The itemId.
     */
    public int getItemId() {
      return itemId_;
    }

    public static final int NUM_FIELD_NUMBER = 2;
    private long num_;
    /**
     * <pre>
     *数量
     * </pre>
     *
     * <code>int64 num = 2;</code>
     * @return The num.
     */
    public long getNum() {
      return num_;
    }

    public static final int OPTION_FIELD_NUMBER = 3;
    private int option_;
    /**
     * <pre>
     *选项
     * </pre>
     *
     * <code>int32 option = 3;</code>
     * @return The option.
     */
    public int getOption() {
      return option_;
    }

    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.writeInt32(1, itemId_);
      }
      if (num_ != 0L) {
        output.writeInt64(2, num_);
      }
      if (option_ != 0) {
        output.writeInt32(3, option_);
      }
      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
          .computeInt32Size(1, itemId_);
      }
      if (num_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, num_);
      }
      if (option_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, option_);
      }
      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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest other = (pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest) obj;

      if (getItemId()
          != other.getItemId()) return false;
      if (getNum()
          != other.getNum()) return false;
      if (getOption()
          != other.getOption()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ITEM_ID_FIELD_NUMBER;
      hash = (53 * hash) + getItemId();
      hash = (37 * hash) + NUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNum());
      hash = (37 * hash) + OPTION_FIELD_NUMBER;
      hash = (53 * hash) + getOption();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest 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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest 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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest 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(pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest 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>
     *背包中使用道具
     * </pre>
     *
     * Protobuf type {@code pb.BagUseItemRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.BagUseItemRequest)
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.class, pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.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();
        itemId_ = 0;

        num_ = 0L;

        option_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemRequest_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest build() {
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest buildPartial() {
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest result = new pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest(this);
        result.itemId_ = itemId_;
        result.num_ = num_;
        result.option_ = option_;
        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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest) {
          return mergeFrom((pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest other) {
        if (other == pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest.getDefaultInstance()) return this;
        if (other.getItemId() != 0) {
          setItemId(other.getItemId());
        }
        if (other.getNum() != 0L) {
          setNum(other.getNum());
        }
        if (other.getOption() != 0) {
          setOption(other.getOption());
        }
        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 {
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int itemId_ ;
      /**
       * <pre>
       *道具ID
       * </pre>
       *
       * <code>int32 item_id = 1;</code>
       * @return The itemId.
       */
      public int getItemId() {
        return itemId_;
      }
      /**
       * <pre>
       *道具ID
       * </pre>
       *
       * <code>int32 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;
      }
      /**
       * <pre>
       *道具ID
       * </pre>
       *
       * <code>int32 item_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearItemId() {
        
        itemId_ = 0;
        onChanged();
        return this;
      }

      private long num_ ;
      /**
       * <pre>
       *数量
       * </pre>
       *
       * <code>int64 num = 2;</code>
       * @return The num.
       */
      public long getNum() {
        return num_;
      }
      /**
       * <pre>
       *数量
       * </pre>
       *
       * <code>int64 num = 2;</code>
       * @param value The num to set.
       * @return This builder for chaining.
       */
      public Builder setNum(long value) {
        
        num_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *数量
       * </pre>
       *
       * <code>int64 num = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearNum() {
        
        num_ = 0L;
        onChanged();
        return this;
      }

      private int option_ ;
      /**
       * <pre>
       *选项
       * </pre>
       *
       * <code>int32 option = 3;</code>
       * @return The option.
       */
      public int getOption() {
        return option_;
      }
      /**
       * <pre>
       *选项
       * </pre>
       *
       * <code>int32 option = 3;</code>
       * @param value The option to set.
       * @return This builder for chaining.
       */
      public Builder setOption(int value) {
        
        option_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *选项
       * </pre>
       *
       * <code>int32 option = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearOption() {
        
        option_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:pb.BagUseItemRequest)
    }

    // @@protoc_insertion_point(class_scope:pb.BagUseItemRequest)
    private static final pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest();
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BagUseItemResponse(
        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;
            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 pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.class, pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.BagUseItemResponse.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 500003;</code>
       */
      ID(500003),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 500003;</code>
       */
      public static final int ID_VALUE = 500003;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 500003: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.BagUseItemResponse.Proto)
    }

    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 {
      unknownFields.writeTo(output);
    }

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

      size = 0;
      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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse other = (pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse) obj;

      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 = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse 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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse 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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse 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(pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse 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 pb.BagUseItemResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.BagUseItemResponse)
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.class, pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.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();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_BagUseItemResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse build() {
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse buildPartial() {
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse result = new pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse(this);
        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 pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse other) {
        if (other == pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse.getDefaultInstance()) return this;
        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 {
        pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:pb.BagUseItemResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.BagUseItemResponse)
    private static final pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse();
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.bag.Bag.BagUseItemResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ThingChangeMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.ThingChangeMessage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> 
        getThingsList();
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing getThings(int index);
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    int getThingsCount();
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
        getThingsOrBuilderList();
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder getThingsOrBuilder(
        int index);

    /**
     * <pre>
     *展示方式，0不展示，1不展示，2弹窗展示，3飘字展示
     * </pre>
     *
     * <code>int32 show_type = 2;</code>
     * @return The showType.
     */
    int getShowType();
  }
  /**
   * <pre>
   *资源、物品变更推送
   * </pre>
   *
   * Protobuf type {@code pb.ThingChangeMessage}
   */
  public  static final class ThingChangeMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.ThingChangeMessage)
      ThingChangeMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ThingChangeMessage.newBuilder() to construct.
    private ThingChangeMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ThingChangeMessage() {
      things_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ThingChangeMessage(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                things_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing>();
                mutable_bitField0_ |= 0x00000001;
              }
              things_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.parser(), extensionRegistry));
              break;
            }
            case 16: {

              showType_ = input.readInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          things_ = java.util.Collections.unmodifiableList(things_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_ThingChangeMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_ThingChangeMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.class, pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.ThingChangeMessage.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 500002;</code>
       */
      ID(500002),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 500002;</code>
       */
      public static final int ID_VALUE = 500002;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 500002: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.ThingChangeMessage.Proto)
    }

    public static final int THINGS_FIELD_NUMBER = 1;
    private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> things_;
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> getThingsList() {
      return things_;
    }
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
        getThingsOrBuilderList() {
      return things_;
    }
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    public int getThingsCount() {
      return things_.size();
    }
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing getThings(int index) {
      return things_.get(index);
    }
    /**
     * <pre>
     *变更的物品列表
     * </pre>
     *
     * <code>repeated .pb.PbThing things = 1;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder getThingsOrBuilder(
        int index) {
      return things_.get(index);
    }

    public static final int SHOW_TYPE_FIELD_NUMBER = 2;
    private int showType_;
    /**
     * <pre>
     *展示方式，0不展示，1不展示，2弹窗展示，3飘字展示
     * </pre>
     *
     * <code>int32 show_type = 2;</code>
     * @return The showType.
     */
    public int getShowType() {
      return showType_;
    }

    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 {
      for (int i = 0; i < things_.size(); i++) {
        output.writeMessage(1, things_.get(i));
      }
      if (showType_ != 0) {
        output.writeInt32(2, showType_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < things_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, things_.get(i));
      }
      if (showType_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, showType_);
      }
      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 pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage other = (pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage) obj;

      if (!getThingsList()
          .equals(other.getThingsList())) return false;
      if (getShowType()
          != other.getShowType()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getThingsCount() > 0) {
        hash = (37 * hash) + THINGS_FIELD_NUMBER;
        hash = (53 * hash) + getThingsList().hashCode();
      }
      hash = (37 * hash) + SHOW_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getShowType();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage 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 pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage 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 pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage 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(pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage 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>
     *资源、物品变更推送
     * </pre>
     *
     * Protobuf type {@code pb.ThingChangeMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.ThingChangeMessage)
        pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_ThingChangeMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_ThingChangeMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.class, pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getThingsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (thingsBuilder_ == null) {
          things_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          thingsBuilder_.clear();
        }
        showType_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_ThingChangeMessage_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage build() {
        pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage buildPartial() {
        pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage result = new pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage(this);
        int from_bitField0_ = bitField0_;
        if (thingsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            things_ = java.util.Collections.unmodifiableList(things_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.things_ = things_;
        } else {
          result.things_ = thingsBuilder_.build();
        }
        result.showType_ = showType_;
        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 pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage) {
          return mergeFrom((pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage other) {
        if (other == pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage.getDefaultInstance()) return this;
        if (thingsBuilder_ == null) {
          if (!other.things_.isEmpty()) {
            if (things_.isEmpty()) {
              things_ = other.things_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureThingsIsMutable();
              things_.addAll(other.things_);
            }
            onChanged();
          }
        } else {
          if (!other.things_.isEmpty()) {
            if (thingsBuilder_.isEmpty()) {
              thingsBuilder_.dispose();
              thingsBuilder_ = null;
              things_ = other.things_;
              bitField0_ = (bitField0_ & ~0x00000001);
              thingsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getThingsFieldBuilder() : null;
            } else {
              thingsBuilder_.addAllMessages(other.things_);
            }
          }
        }
        if (other.getShowType() != 0) {
          setShowType(other.getShowType());
        }
        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 {
        pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> things_ =
        java.util.Collections.emptyList();
      private void ensureThingsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          things_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing>(things_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> thingsBuilder_;

      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> getThingsList() {
        if (thingsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(things_);
        } else {
          return thingsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public int getThingsCount() {
        if (thingsBuilder_ == null) {
          return things_.size();
        } else {
          return thingsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing getThings(int index) {
        if (thingsBuilder_ == null) {
          return things_.get(index);
        } else {
          return thingsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder setThings(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing value) {
        if (thingsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureThingsIsMutable();
          things_.set(index, value);
          onChanged();
        } else {
          thingsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder setThings(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder builderForValue) {
        if (thingsBuilder_ == null) {
          ensureThingsIsMutable();
          things_.set(index, builderForValue.build());
          onChanged();
        } else {
          thingsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder addThings(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing value) {
        if (thingsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureThingsIsMutable();
          things_.add(value);
          onChanged();
        } else {
          thingsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder addThings(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing value) {
        if (thingsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureThingsIsMutable();
          things_.add(index, value);
          onChanged();
        } else {
          thingsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder addThings(
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder builderForValue) {
        if (thingsBuilder_ == null) {
          ensureThingsIsMutable();
          things_.add(builderForValue.build());
          onChanged();
        } else {
          thingsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder addThings(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder builderForValue) {
        if (thingsBuilder_ == null) {
          ensureThingsIsMutable();
          things_.add(index, builderForValue.build());
          onChanged();
        } else {
          thingsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder addAllThings(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> values) {
        if (thingsBuilder_ == null) {
          ensureThingsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, things_);
          onChanged();
        } else {
          thingsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder clearThings() {
        if (thingsBuilder_ == null) {
          things_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          thingsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public Builder removeThings(int index) {
        if (thingsBuilder_ == null) {
          ensureThingsIsMutable();
          things_.remove(index);
          onChanged();
        } else {
          thingsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder getThingsBuilder(
          int index) {
        return getThingsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder getThingsOrBuilder(
          int index) {
        if (thingsBuilder_ == null) {
          return things_.get(index);  } else {
          return thingsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
           getThingsOrBuilderList() {
        if (thingsBuilder_ != null) {
          return thingsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(things_);
        }
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder addThingsBuilder() {
        return getThingsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.getDefaultInstance());
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder addThingsBuilder(
          int index) {
        return getThingsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.getDefaultInstance());
      }
      /**
       * <pre>
       *变更的物品列表
       * </pre>
       *
       * <code>repeated .pb.PbThing things = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder> 
           getThingsBuilderList() {
        return getThingsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
          getThingsFieldBuilder() {
        if (thingsBuilder_ == null) {
          thingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder>(
                  things_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          things_ = null;
        }
        return thingsBuilder_;
      }

      private int showType_ ;
      /**
       * <pre>
       *展示方式，0不展示，1不展示，2弹窗展示，3飘字展示
       * </pre>
       *
       * <code>int32 show_type = 2;</code>
       * @return The showType.
       */
      public int getShowType() {
        return showType_;
      }
      /**
       * <pre>
       *展示方式，0不展示，1不展示，2弹窗展示，3飘字展示
       * </pre>
       *
       * <code>int32 show_type = 2;</code>
       * @param value The showType to set.
       * @return This builder for chaining.
       */
      public Builder setShowType(int value) {
        
        showType_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *展示方式，0不展示，1不展示，2弹窗展示，3飘字展示
       * </pre>
       *
       * <code>int32 show_type = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearShowType() {
        
        showType_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:pb.ThingChangeMessage)
    }

    // @@protoc_insertion_point(class_scope:pb.ThingChangeMessage)
    private static final pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage();
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.bag.Bag.ThingChangeMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface QuickBuyingRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.QuickBuyingRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *将购买的道具ID
     * </pre>
     *
     * <code>int32 item = 1;</code>
     * @return The item.
     */
    int getItem();

    /**
     * <pre>
     *将购买的道具数量
     * </pre>
     *
     * <code>int64 num = 2;</code>
     * @return The num.
     */
    long getNum();
  }
  /**
   * <pre>
   *快捷购买
   * </pre>
   *
   * Protobuf type {@code pb.QuickBuyingRequest}
   */
  public  static final class QuickBuyingRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.QuickBuyingRequest)
      QuickBuyingRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use QuickBuyingRequest.newBuilder() to construct.
    private QuickBuyingRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private QuickBuyingRequest() {
    }

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

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

              item_ = input.readInt32();
              break;
            }
            case 16: {

              num_ = input.readInt64();
              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 pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.class, pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.QuickBuyingRequest.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 500004;</code>
       */
      ID(500004),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 500004;</code>
       */
      public static final int ID_VALUE = 500004;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 500004: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.QuickBuyingRequest.Proto)
    }

    public static final int ITEM_FIELD_NUMBER = 1;
    private int item_;
    /**
     * <pre>
     *将购买的道具ID
     * </pre>
     *
     * <code>int32 item = 1;</code>
     * @return The item.
     */
    public int getItem() {
      return item_;
    }

    public static final int NUM_FIELD_NUMBER = 2;
    private long num_;
    /**
     * <pre>
     *将购买的道具数量
     * </pre>
     *
     * <code>int64 num = 2;</code>
     * @return The num.
     */
    public long getNum() {
      return num_;
    }

    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 (item_ != 0) {
        output.writeInt32(1, item_);
      }
      if (num_ != 0L) {
        output.writeInt64(2, num_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (item_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, item_);
      }
      if (num_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, num_);
      }
      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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest other = (pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest) obj;

      if (getItem()
          != other.getItem()) return false;
      if (getNum()
          != other.getNum()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ITEM_FIELD_NUMBER;
      hash = (53 * hash) + getItem();
      hash = (37 * hash) + NUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNum());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest 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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest 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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest 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(pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest 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>
     *快捷购买
     * </pre>
     *
     * Protobuf type {@code pb.QuickBuyingRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.QuickBuyingRequest)
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.class, pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.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();
        item_ = 0;

        num_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingRequest_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest build() {
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest buildPartial() {
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest result = new pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest(this);
        result.item_ = item_;
        result.num_ = num_;
        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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest) {
          return mergeFrom((pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest other) {
        if (other == pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest.getDefaultInstance()) return this;
        if (other.getItem() != 0) {
          setItem(other.getItem());
        }
        if (other.getNum() != 0L) {
          setNum(other.getNum());
        }
        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 {
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int item_ ;
      /**
       * <pre>
       *将购买的道具ID
       * </pre>
       *
       * <code>int32 item = 1;</code>
       * @return The item.
       */
      public int getItem() {
        return item_;
      }
      /**
       * <pre>
       *将购买的道具ID
       * </pre>
       *
       * <code>int32 item = 1;</code>
       * @param value The item to set.
       * @return This builder for chaining.
       */
      public Builder setItem(int value) {
        
        item_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *将购买的道具ID
       * </pre>
       *
       * <code>int32 item = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearItem() {
        
        item_ = 0;
        onChanged();
        return this;
      }

      private long num_ ;
      /**
       * <pre>
       *将购买的道具数量
       * </pre>
       *
       * <code>int64 num = 2;</code>
       * @return The num.
       */
      public long getNum() {
        return num_;
      }
      /**
       * <pre>
       *将购买的道具数量
       * </pre>
       *
       * <code>int64 num = 2;</code>
       * @param value The num to set.
       * @return This builder for chaining.
       */
      public Builder setNum(long value) {
        
        num_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *将购买的道具数量
       * </pre>
       *
       * <code>int64 num = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearNum() {
        
        num_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:pb.QuickBuyingRequest)
    }

    // @@protoc_insertion_point(class_scope:pb.QuickBuyingRequest)
    private static final pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest();
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private QuickBuyingResponse(
        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;
            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 pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.class, pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.QuickBuyingResponse.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 500004;</code>
       */
      ID(500004),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 500004;</code>
       */
      public static final int ID_VALUE = 500004;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 500004: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.QuickBuyingResponse.Proto)
    }

    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 {
      unknownFields.writeTo(output);
    }

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

      size = 0;
      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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse other = (pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse) obj;

      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 = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse 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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse 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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse 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(pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse 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 pb.QuickBuyingResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.QuickBuyingResponse)
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.class, pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.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();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.internal_static_pb_QuickBuyingResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse build() {
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse buildPartial() {
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse result = new pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse(this);
        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 pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse other) {
        if (other == pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse.getDefaultInstance()) return this;
        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 {
        pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:pb.QuickBuyingResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.QuickBuyingResponse)
    private static final pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse();
    }

    public static pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.bag.Bag.QuickBuyingResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_BagInfoResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_BagInfoResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_BagUseItemRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_BagUseItemRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_BagUseItemResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_BagUseItemResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_ThingChangeMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_ThingChangeMessage_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_QuickBuyingRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_QuickBuyingRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_QuickBuyingResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_QuickBuyingResponse_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\tBag.proto\022\002pb\032\020MiniStruct.proto\032\013Equip" +
      ".proto\"\210\001\n\017BagInfoResponse\022\031\n\005grids\030\001 \003(" +
      "\0132\n.pb.PbItem\022\033\n\006equips\030\002 \003(\0132\013.pb.PbEqu" +
      "ip\022\035\n\tresources\030\003 \003(\0132\n.pb.PbItem\"\036\n\005Pro" +
      "to\022\013\n\007UNKNOWN\020\000\022\010\n\002ID\020\241\302\036\"a\n\021BagUseItemR" +
      "equest\022\017\n\007item_id\030\001 \001(\005\022\013\n\003num\030\002 \001(\003\022\016\n\006" +
      "option\030\003 \001(\005\"\036\n\005Proto\022\013\n\007UNKNOWN\020\000\022\010\n\002ID" +
      "\020\243\302\036\"4\n\022BagUseItemResponse\"\036\n\005Proto\022\013\n\007U" +
      "NKNOWN\020\000\022\010\n\002ID\020\243\302\036\"d\n\022ThingChangeMessage" +
      "\022\033\n\006things\030\001 \003(\0132\013.pb.PbThing\022\021\n\tshow_ty" +
      "pe\030\002 \001(\005\"\036\n\005Proto\022\013\n\007UNKNOWN\020\000\022\010\n\002ID\020\242\302\036" +
      "\"O\n\022QuickBuyingRequest\022\014\n\004item\030\001 \001(\005\022\013\n\003" +
      "num\030\002 \001(\003\"\036\n\005Proto\022\013\n\007UNKNOWN\020\000\022\010\n\002ID\020\244\302" +
      "\036\"5\n\023QuickBuyingResponse\"\036\n\005Proto\022\013\n\007UNK" +
      "NOWN\020\000\022\010\n\002ID\020\244\302\036B3\n\031pb.xiugou.x1.protobu" +
      "f.bag\252\002\025pb.xiugou.x1.protobufb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.getDescriptor(),
          pb.xiugou.x1.protobuf.equip.Equip.getDescriptor(),
        });
    internal_static_pb_BagInfoResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_BagInfoResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_BagInfoResponse_descriptor,
        new java.lang.String[] { "Grids", "Equips", "Resources", });
    internal_static_pb_BagUseItemRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_pb_BagUseItemRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_BagUseItemRequest_descriptor,
        new java.lang.String[] { "ItemId", "Num", "Option", });
    internal_static_pb_BagUseItemResponse_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_pb_BagUseItemResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_BagUseItemResponse_descriptor,
        new java.lang.String[] { });
    internal_static_pb_ThingChangeMessage_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_pb_ThingChangeMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_ThingChangeMessage_descriptor,
        new java.lang.String[] { "Things", "ShowType", });
    internal_static_pb_QuickBuyingRequest_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_pb_QuickBuyingRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_QuickBuyingRequest_descriptor,
        new java.lang.String[] { "Item", "Num", });
    internal_static_pb_QuickBuyingResponse_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_pb_QuickBuyingResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_QuickBuyingResponse_descriptor,
        new java.lang.String[] { });
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.getDescriptor();
    pb.xiugou.x1.protobuf.equip.Equip.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
