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

package com.caliverse.admin.domain.RabbitMq.message;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_ShopPacketInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_ShopPacketInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.class, com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.Builder.class);
  }

  public static final int SHOPITEMLIST_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List<com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo> shopItemList_;
  /**
   * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo> getShopItemListList() {
    return shopItemList_;
  }
  /**
   * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder> 
      getShopItemListOrBuilderList() {
    return shopItemList_;
  }
  /**
   * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
   */
  @java.lang.Override
  public int getShopItemListCount() {
    return shopItemList_.size();
  }
  /**
   * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo getShopItemList(int index) {
    return shopItemList_.get(index);
  }
  /**
   * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder getShopItemListOrBuilder(
      int index) {
    return shopItemList_.get(index);
  }

  public static final int LEFTTIMEASSECOND_FIELD_NUMBER = 2;
  private int leftTimeAsSecond_ = 0;
  /**
   * <code>int32 LeftTimeAsSecond = 2;</code>
   * @return The leftTimeAsSecond.
   */
  @java.lang.Override
  public int getLeftTimeAsSecond() {
    return leftTimeAsSecond_;
  }

  public static final int MAXRENEWALCOUNT_FIELD_NUMBER = 3;
  private int maxRenewalCount_ = 0;
  /**
   * <code>int32 maxRenewalCount = 3;</code>
   * @return The maxRenewalCount.
   */
  @java.lang.Override
  public int getMaxRenewalCount() {
    return maxRenewalCount_;
  }

  public static final int CURRENTRENEWALCOUNT_FIELD_NUMBER = 4;
  private int currentRenewalCount_ = 0;
  /**
   * <code>int32 currentRenewalCount = 4;</code>
   * @return The currentRenewalCount.
   */
  @java.lang.Override
  public int getCurrentRenewalCount() {
    return currentRenewalCount_;
  }

  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 < shopItemList_.size(); i++) {
      output.writeMessage(1, shopItemList_.get(i));
    }
    if (leftTimeAsSecond_ != 0) {
      output.writeInt32(2, leftTimeAsSecond_);
    }
    if (maxRenewalCount_ != 0) {
      output.writeInt32(3, maxRenewalCount_);
    }
    if (currentRenewalCount_ != 0) {
      output.writeInt32(4, currentRenewalCount_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < shopItemList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, shopItemList_.get(i));
    }
    if (leftTimeAsSecond_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, leftTimeAsSecond_);
    }
    if (maxRenewalCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, maxRenewalCount_);
    }
    if (currentRenewalCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, currentRenewalCount_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo other = (com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo) obj;

    if (!getShopItemListList()
        .equals(other.getShopItemListList())) return false;
    if (getLeftTimeAsSecond()
        != other.getLeftTimeAsSecond()) return false;
    if (getMaxRenewalCount()
        != other.getMaxRenewalCount()) return false;
    if (getCurrentRenewalCount()
        != other.getCurrentRenewalCount()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getShopItemListCount() > 0) {
      hash = (37 * hash) + SHOPITEMLIST_FIELD_NUMBER;
      hash = (53 * hash) + getShopItemListList().hashCode();
    }
    hash = (37 * hash) + LEFTTIMEASSECOND_FIELD_NUMBER;
    hash = (53 * hash) + getLeftTimeAsSecond();
    hash = (37 * hash) + MAXRENEWALCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getMaxRenewalCount();
    hash = (37 * hash) + CURRENTRENEWALCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getCurrentRenewalCount();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo 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 com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo 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 com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo 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(com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo 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 ShopPacketInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ShopPacketInfo)
      com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_ShopPacketInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_ShopPacketInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.class, com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.Builder.class);
    }

    // Construct using com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (shopItemListBuilder_ == null) {
        shopItemList_ = java.util.Collections.emptyList();
      } else {
        shopItemList_ = null;
        shopItemListBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      leftTimeAsSecond_ = 0;
      maxRenewalCount_ = 0;
      currentRenewalCount_ = 0;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_ShopPacketInfo_descriptor;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo getDefaultInstanceForType() {
      return com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.getDefaultInstance();
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo build() {
      com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo buildPartial() {
      com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo result = new com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo result) {
      if (shopItemListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          shopItemList_ = java.util.Collections.unmodifiableList(shopItemList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.shopItemList_ = shopItemList_;
      } else {
        result.shopItemList_ = shopItemListBuilder_.build();
      }
    }

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.leftTimeAsSecond_ = leftTimeAsSecond_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.maxRenewalCount_ = maxRenewalCount_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.currentRenewalCount_ = currentRenewalCount_;
      }
    }

    @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 com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo) {
        return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo.getDefaultInstance()) return this;
      if (shopItemListBuilder_ == null) {
        if (!other.shopItemList_.isEmpty()) {
          if (shopItemList_.isEmpty()) {
            shopItemList_ = other.shopItemList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureShopItemListIsMutable();
            shopItemList_.addAll(other.shopItemList_);
          }
          onChanged();
        }
      } else {
        if (!other.shopItemList_.isEmpty()) {
          if (shopItemListBuilder_.isEmpty()) {
            shopItemListBuilder_.dispose();
            shopItemListBuilder_ = null;
            shopItemList_ = other.shopItemList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            shopItemListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getShopItemListFieldBuilder() : null;
          } else {
            shopItemListBuilder_.addAllMessages(other.shopItemList_);
          }
        }
      }
      if (other.getLeftTimeAsSecond() != 0) {
        setLeftTimeAsSecond(other.getLeftTimeAsSecond());
      }
      if (other.getMaxRenewalCount() != 0) {
        setMaxRenewalCount(other.getMaxRenewalCount());
      }
      if (other.getCurrentRenewalCount() != 0) {
        setCurrentRenewalCount(other.getCurrentRenewalCount());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo m =
                  input.readMessage(
                      com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.parser(),
                      extensionRegistry);
              if (shopItemListBuilder_ == null) {
                ensureShopItemListIsMutable();
                shopItemList_.add(m);
              } else {
                shopItemListBuilder_.addMessage(m);
              }
              break;
            } // case 10
            case 16: {
              leftTimeAsSecond_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              maxRenewalCount_ = input.readInt32();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              currentRenewalCount_ = input.readInt32();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.util.List<com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo> shopItemList_ =
      java.util.Collections.emptyList();
    private void ensureShopItemListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        shopItemList_ = new java.util.ArrayList<com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo>(shopItemList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder> shopItemListBuilder_;

    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo> getShopItemListList() {
      if (shopItemListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(shopItemList_);
      } else {
        return shopItemListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public int getShopItemListCount() {
      if (shopItemListBuilder_ == null) {
        return shopItemList_.size();
      } else {
        return shopItemListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo getShopItemList(int index) {
      if (shopItemListBuilder_ == null) {
        return shopItemList_.get(index);
      } else {
        return shopItemListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder setShopItemList(
        int index, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo value) {
      if (shopItemListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureShopItemListIsMutable();
        shopItemList_.set(index, value);
        onChanged();
      } else {
        shopItemListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder setShopItemList(
        int index, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder builderForValue) {
      if (shopItemListBuilder_ == null) {
        ensureShopItemListIsMutable();
        shopItemList_.set(index, builderForValue.build());
        onChanged();
      } else {
        shopItemListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder addShopItemList(com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo value) {
      if (shopItemListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureShopItemListIsMutable();
        shopItemList_.add(value);
        onChanged();
      } else {
        shopItemListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder addShopItemList(
        int index, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo value) {
      if (shopItemListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureShopItemListIsMutable();
        shopItemList_.add(index, value);
        onChanged();
      } else {
        shopItemListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder addShopItemList(
        com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder builderForValue) {
      if (shopItemListBuilder_ == null) {
        ensureShopItemListIsMutable();
        shopItemList_.add(builderForValue.build());
        onChanged();
      } else {
        shopItemListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder addShopItemList(
        int index, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder builderForValue) {
      if (shopItemListBuilder_ == null) {
        ensureShopItemListIsMutable();
        shopItemList_.add(index, builderForValue.build());
        onChanged();
      } else {
        shopItemListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder addAllShopItemList(
        java.lang.Iterable<? extends com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo> values) {
      if (shopItemListBuilder_ == null) {
        ensureShopItemListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, shopItemList_);
        onChanged();
      } else {
        shopItemListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder clearShopItemList() {
      if (shopItemListBuilder_ == null) {
        shopItemList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        shopItemListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public Builder removeShopItemList(int index) {
      if (shopItemListBuilder_ == null) {
        ensureShopItemListIsMutable();
        shopItemList_.remove(index);
        onChanged();
      } else {
        shopItemListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder getShopItemListBuilder(
        int index) {
      return getShopItemListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder getShopItemListOrBuilder(
        int index) {
      if (shopItemListBuilder_ == null) {
        return shopItemList_.get(index);  } else {
        return shopItemListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder> 
         getShopItemListOrBuilderList() {
      if (shopItemListBuilder_ != null) {
        return shopItemListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(shopItemList_);
      }
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder addShopItemListBuilder() {
      return getShopItemListFieldBuilder().addBuilder(
          com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder addShopItemListBuilder(
        int index) {
      return getShopItemListFieldBuilder().addBuilder(
          index, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .ShopItemInfo ShopItemList = 1;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder> 
         getShopItemListBuilderList() {
      return getShopItemListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder> 
        getShopItemListFieldBuilder() {
      if (shopItemListBuilder_ == null) {
        shopItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.ShopItemInfoOrBuilder>(
                shopItemList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        shopItemList_ = null;
      }
      return shopItemListBuilder_;
    }

    private int leftTimeAsSecond_ ;
    /**
     * <code>int32 LeftTimeAsSecond = 2;</code>
     * @return The leftTimeAsSecond.
     */
    @java.lang.Override
    public int getLeftTimeAsSecond() {
      return leftTimeAsSecond_;
    }
    /**
     * <code>int32 LeftTimeAsSecond = 2;</code>
     * @param value The leftTimeAsSecond to set.
     * @return This builder for chaining.
     */
    public Builder setLeftTimeAsSecond(int value) {
      
      leftTimeAsSecond_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>int32 LeftTimeAsSecond = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearLeftTimeAsSecond() {
      bitField0_ = (bitField0_ & ~0x00000002);
      leftTimeAsSecond_ = 0;
      onChanged();
      return this;
    }

    private int maxRenewalCount_ ;
    /**
     * <code>int32 maxRenewalCount = 3;</code>
     * @return The maxRenewalCount.
     */
    @java.lang.Override
    public int getMaxRenewalCount() {
      return maxRenewalCount_;
    }
    /**
     * <code>int32 maxRenewalCount = 3;</code>
     * @param value The maxRenewalCount to set.
     * @return This builder for chaining.
     */
    public Builder setMaxRenewalCount(int value) {
      
      maxRenewalCount_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>int32 maxRenewalCount = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearMaxRenewalCount() {
      bitField0_ = (bitField0_ & ~0x00000004);
      maxRenewalCount_ = 0;
      onChanged();
      return this;
    }

    private int currentRenewalCount_ ;
    /**
     * <code>int32 currentRenewalCount = 4;</code>
     * @return The currentRenewalCount.
     */
    @java.lang.Override
    public int getCurrentRenewalCount() {
      return currentRenewalCount_;
    }
    /**
     * <code>int32 currentRenewalCount = 4;</code>
     * @param value The currentRenewalCount to set.
     * @return This builder for chaining.
     */
    public Builder setCurrentRenewalCount(int value) {
      
      currentRenewalCount_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>int32 currentRenewalCount = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearCurrentRenewalCount() {
      bitField0_ = (bitField0_ & ~0x00000008);
      currentRenewalCount_ = 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:ShopPacketInfo)
  }

  // @@protoc_insertion_point(class_scope:ShopPacketInfo)
  private static final com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo();
  }

  public static com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ShopPacketInfo>
      PARSER = new com.google.protobuf.AbstractParser<ShopPacketInfo>() {
    @java.lang.Override
    public ShopPacketInfo parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ShopPacketInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

