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

package pb.xiugou.x1.protobuf.promotion;

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

    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl> 
        getPromotionControlsList();
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getPromotionControls(int index);
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    int getPromotionControlsCount();
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> 
        getPromotionControlsOrBuilderList();
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder getPromotionControlsOrBuilder(
        int index);
  }
  /**
   * <pre>
   *活动控制数据
   * </pre>
   *
   * Protobuf type {@code pb.PromotionInfoResponse}
   */
  public  static final class PromotionInfoResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PromotionInfoResponse)
      PromotionInfoResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PromotionInfoResponse.newBuilder() to construct.
    private PromotionInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PromotionInfoResponse() {
      promotionControls_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PromotionInfoResponse(
        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)) {
                promotionControls_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl>();
                mutable_bitField0_ |= 0x00000001;
              }
              promotionControls_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.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)) {
          promotionControls_ = java.util.Collections.unmodifiableList(promotionControls_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.class, pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.Builder.class);
    }

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

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


      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 2100001: 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.promotion.Promotion.PromotionInfoResponse.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.PromotionInfoResponse.Proto)
    }

    public static final int PROMOTION_CONTROLS_FIELD_NUMBER = 1;
    private java.util.List<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl> promotionControls_;
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl> getPromotionControlsList() {
      return promotionControls_;
    }
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> 
        getPromotionControlsOrBuilderList() {
      return promotionControls_;
    }
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    public int getPromotionControlsCount() {
      return promotionControls_.size();
    }
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getPromotionControls(int index) {
      return promotionControls_.get(index);
    }
    /**
     * <pre>
     *活动控制数据
     * </pre>
     *
     * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
     */
    public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder getPromotionControlsOrBuilder(
        int index) {
      return promotionControls_.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 < promotionControls_.size(); i++) {
        output.writeMessage(1, promotionControls_.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 < promotionControls_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, promotionControls_.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.promotion.Promotion.PromotionInfoResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse other = (pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse) obj;

      if (!getPromotionControlsList()
          .equals(other.getPromotionControlsList())) 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 (getPromotionControlsCount() > 0) {
        hash = (37 * hash) + PROMOTION_CONTROLS_FIELD_NUMBER;
        hash = (53 * hash) + getPromotionControlsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.class, pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse buildPartial() {
        pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse result = new pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse(this);
        int from_bitField0_ = bitField0_;
        if (promotionControlsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            promotionControls_ = java.util.Collections.unmodifiableList(promotionControls_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.promotionControls_ = promotionControls_;
        } else {
          result.promotionControls_ = promotionControlsBuilder_.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.promotion.Promotion.PromotionInfoResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse other) {
        if (other == pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse.getDefaultInstance()) return this;
        if (promotionControlsBuilder_ == null) {
          if (!other.promotionControls_.isEmpty()) {
            if (promotionControls_.isEmpty()) {
              promotionControls_ = other.promotionControls_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensurePromotionControlsIsMutable();
              promotionControls_.addAll(other.promotionControls_);
            }
            onChanged();
          }
        } else {
          if (!other.promotionControls_.isEmpty()) {
            if (promotionControlsBuilder_.isEmpty()) {
              promotionControlsBuilder_.dispose();
              promotionControlsBuilder_ = null;
              promotionControls_ = other.promotionControls_;
              bitField0_ = (bitField0_ & ~0x00000001);
              promotionControlsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPromotionControlsFieldBuilder() : null;
            } else {
              promotionControlsBuilder_.addAllMessages(other.promotionControls_);
            }
          }
        }
        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.promotion.Promotion.PromotionInfoResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl> promotionControls_ =
        java.util.Collections.emptyList();
      private void ensurePromotionControlsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          promotionControls_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl>(promotionControls_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> promotionControlsBuilder_;

      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl> getPromotionControlsList() {
        if (promotionControlsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(promotionControls_);
        } else {
          return promotionControlsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public int getPromotionControlsCount() {
        if (promotionControlsBuilder_ == null) {
          return promotionControls_.size();
        } else {
          return promotionControlsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getPromotionControls(int index) {
        if (promotionControlsBuilder_ == null) {
          return promotionControls_.get(index);
        } else {
          return promotionControlsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder setPromotionControls(
          int index, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl value) {
        if (promotionControlsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePromotionControlsIsMutable();
          promotionControls_.set(index, value);
          onChanged();
        } else {
          promotionControlsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder setPromotionControls(
          int index, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder builderForValue) {
        if (promotionControlsBuilder_ == null) {
          ensurePromotionControlsIsMutable();
          promotionControls_.set(index, builderForValue.build());
          onChanged();
        } else {
          promotionControlsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder addPromotionControls(pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl value) {
        if (promotionControlsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePromotionControlsIsMutable();
          promotionControls_.add(value);
          onChanged();
        } else {
          promotionControlsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder addPromotionControls(
          int index, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl value) {
        if (promotionControlsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePromotionControlsIsMutable();
          promotionControls_.add(index, value);
          onChanged();
        } else {
          promotionControlsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder addPromotionControls(
          pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder builderForValue) {
        if (promotionControlsBuilder_ == null) {
          ensurePromotionControlsIsMutable();
          promotionControls_.add(builderForValue.build());
          onChanged();
        } else {
          promotionControlsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder addPromotionControls(
          int index, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder builderForValue) {
        if (promotionControlsBuilder_ == null) {
          ensurePromotionControlsIsMutable();
          promotionControls_.add(index, builderForValue.build());
          onChanged();
        } else {
          promotionControlsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder addAllPromotionControls(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl> values) {
        if (promotionControlsBuilder_ == null) {
          ensurePromotionControlsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, promotionControls_);
          onChanged();
        } else {
          promotionControlsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder clearPromotionControls() {
        if (promotionControlsBuilder_ == null) {
          promotionControls_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          promotionControlsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public Builder removePromotionControls(int index) {
        if (promotionControlsBuilder_ == null) {
          ensurePromotionControlsIsMutable();
          promotionControls_.remove(index);
          onChanged();
        } else {
          promotionControlsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder getPromotionControlsBuilder(
          int index) {
        return getPromotionControlsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder getPromotionControlsOrBuilder(
          int index) {
        if (promotionControlsBuilder_ == null) {
          return promotionControls_.get(index);  } else {
          return promotionControlsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> 
           getPromotionControlsOrBuilderList() {
        if (promotionControlsBuilder_ != null) {
          return promotionControlsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(promotionControls_);
        }
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder addPromotionControlsBuilder() {
        return getPromotionControlsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance());
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder addPromotionControlsBuilder(
          int index) {
        return getPromotionControlsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance());
      }
      /**
       * <pre>
       *活动控制数据
       * </pre>
       *
       * <code>repeated .pb.PbPromotionControl promotion_controls = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder> 
           getPromotionControlsBuilderList() {
        return getPromotionControlsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> 
          getPromotionControlsFieldBuilder() {
        if (promotionControlsBuilder_ == null) {
          promotionControlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder>(
                  promotionControls_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          promotionControls_ = null;
        }
        return promotionControlsBuilder_;
      }
      @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.PromotionInfoResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.PromotionInfoResponse)
    private static final pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse();
    }

    public static pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <code>.pb.PbPromotionControl promotion_control = 1;</code>
     * @return Whether the promotionControl field is set.
     */
    boolean hasPromotionControl();
    /**
     * <code>.pb.PbPromotionControl promotion_control = 1;</code>
     * @return The promotionControl.
     */
    pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getPromotionControl();
    /**
     * <code>.pb.PbPromotionControl promotion_control = 1;</code>
     */
    pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder getPromotionControlOrBuilder();
  }
  /**
   * <pre>
   *活动变更推送
   * </pre>
   *
   * Protobuf type {@code pb.PromotionInfoMessage}
   */
  public  static final class PromotionInfoMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PromotionInfoMessage)
      PromotionInfoMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PromotionInfoMessage.newBuilder() to construct.
    private PromotionInfoMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PromotionInfoMessage() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PromotionInfoMessage(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder subBuilder = null;
              if (promotionControl_ != null) {
                subBuilder = promotionControl_.toBuilder();
              }
              promotionControl_ = input.readMessage(pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(promotionControl_);
                promotionControl_ = subBuilder.buildPartial();
              }

              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.promotion.Promotion.internal_static_pb_PromotionInfoMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.class, pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.Builder.class);
    }

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

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


      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 2100002: 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.promotion.Promotion.PromotionInfoMessage.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.PromotionInfoMessage.Proto)
    }

    public static final int PROMOTION_CONTROL_FIELD_NUMBER = 1;
    private pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl promotionControl_;
    /**
     * <code>.pb.PbPromotionControl promotion_control = 1;</code>
     * @return Whether the promotionControl field is set.
     */
    public boolean hasPromotionControl() {
      return promotionControl_ != null;
    }
    /**
     * <code>.pb.PbPromotionControl promotion_control = 1;</code>
     * @return The promotionControl.
     */
    public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getPromotionControl() {
      return promotionControl_ == null ? pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance() : promotionControl_;
    }
    /**
     * <code>.pb.PbPromotionControl promotion_control = 1;</code>
     */
    public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder getPromotionControlOrBuilder() {
      return getPromotionControl();
    }

    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 (promotionControl_ != null) {
        output.writeMessage(1, getPromotionControl());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (promotionControl_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPromotionControl());
      }
      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.promotion.Promotion.PromotionInfoMessage)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage other = (pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage) obj;

      if (hasPromotionControl() != other.hasPromotionControl()) return false;
      if (hasPromotionControl()) {
        if (!getPromotionControl()
            .equals(other.getPromotionControl())) 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 (hasPromotionControl()) {
        hash = (37 * hash) + PROMOTION_CONTROL_FIELD_NUMBER;
        hash = (53 * hash) + getPromotionControl().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.class, pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.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();
        if (promotionControlBuilder_ == null) {
          promotionControl_ = null;
        } else {
          promotionControl_ = null;
          promotionControlBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionInfoMessage_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage buildPartial() {
        pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage result = new pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage(this);
        if (promotionControlBuilder_ == null) {
          result.promotionControl_ = promotionControl_;
        } else {
          result.promotionControl_ = promotionControlBuilder_.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.promotion.Promotion.PromotionInfoMessage) {
          return mergeFrom((pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage other) {
        if (other == pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage.getDefaultInstance()) return this;
        if (other.hasPromotionControl()) {
          mergePromotionControl(other.getPromotionControl());
        }
        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.promotion.Promotion.PromotionInfoMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl promotionControl_;
      private com.google.protobuf.SingleFieldBuilderV3<
          pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> promotionControlBuilder_;
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       * @return Whether the promotionControl field is set.
       */
      public boolean hasPromotionControl() {
        return promotionControlBuilder_ != null || promotionControl_ != null;
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       * @return The promotionControl.
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getPromotionControl() {
        if (promotionControlBuilder_ == null) {
          return promotionControl_ == null ? pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance() : promotionControl_;
        } else {
          return promotionControlBuilder_.getMessage();
        }
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      public Builder setPromotionControl(pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl value) {
        if (promotionControlBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          promotionControl_ = value;
          onChanged();
        } else {
          promotionControlBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      public Builder setPromotionControl(
          pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder builderForValue) {
        if (promotionControlBuilder_ == null) {
          promotionControl_ = builderForValue.build();
          onChanged();
        } else {
          promotionControlBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      public Builder mergePromotionControl(pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl value) {
        if (promotionControlBuilder_ == null) {
          if (promotionControl_ != null) {
            promotionControl_ =
              pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.newBuilder(promotionControl_).mergeFrom(value).buildPartial();
          } else {
            promotionControl_ = value;
          }
          onChanged();
        } else {
          promotionControlBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      public Builder clearPromotionControl() {
        if (promotionControlBuilder_ == null) {
          promotionControl_ = null;
          onChanged();
        } else {
          promotionControl_ = null;
          promotionControlBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder getPromotionControlBuilder() {
        
        onChanged();
        return getPromotionControlFieldBuilder().getBuilder();
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder getPromotionControlOrBuilder() {
        if (promotionControlBuilder_ != null) {
          return promotionControlBuilder_.getMessageOrBuilder();
        } else {
          return promotionControl_ == null ?
              pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance() : promotionControl_;
        }
      }
      /**
       * <code>.pb.PbPromotionControl promotion_control = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder> 
          getPromotionControlFieldBuilder() {
        if (promotionControlBuilder_ == null) {
          promotionControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder>(
                  getPromotionControl(),
                  getParentForChildren(),
                  isClean());
          promotionControl_ = null;
        }
        return promotionControlBuilder_;
      }
      @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.PromotionInfoMessage)
    }

    // @@protoc_insertion_point(class_scope:pb.PromotionInfoMessage)
    private static final pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage();
    }

    public static pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionInfoMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *活动类型ID
     * </pre>
     *
     * <code>int32 type_id = 1;</code>
     * @return The typeId.
     */
    int getTypeId();

    /**
     * <pre>
     *是否显示红点
     * </pre>
     *
     * <code>bool red_point = 2;</code>
     * @return The redPoint.
     */
    boolean getRedPoint();
  }
  /**
   * <pre>
   *活动红点推送
   * </pre>
   *
   * Protobuf type {@code pb.PromotionRedPointMessage}
   */
  public  static final class PromotionRedPointMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PromotionRedPointMessage)
      PromotionRedPointMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PromotionRedPointMessage.newBuilder() to construct.
    private PromotionRedPointMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PromotionRedPointMessage() {
    }

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

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

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

              redPoint_ = input.readBool();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionRedPointMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionRedPointMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.class, pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.Builder.class);
    }

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

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


      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 2100003: 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.promotion.Promotion.PromotionRedPointMessage.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.PromotionRedPointMessage.Proto)
    }

    public static final int TYPE_ID_FIELD_NUMBER = 1;
    private int typeId_;
    /**
     * <pre>
     *活动类型ID
     * </pre>
     *
     * <code>int32 type_id = 1;</code>
     * @return The typeId.
     */
    public int getTypeId() {
      return typeId_;
    }

    public static final int RED_POINT_FIELD_NUMBER = 2;
    private boolean redPoint_;
    /**
     * <pre>
     *是否显示红点
     * </pre>
     *
     * <code>bool red_point = 2;</code>
     * @return The redPoint.
     */
    public boolean getRedPoint() {
      return redPoint_;
    }

    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 (typeId_ != 0) {
        output.writeInt32(1, typeId_);
      }
      if (redPoint_ != false) {
        output.writeBool(2, redPoint_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (typeId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, typeId_);
      }
      if (redPoint_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(2, redPoint_);
      }
      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.promotion.Promotion.PromotionRedPointMessage)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage other = (pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage) obj;

      if (getTypeId()
          != other.getTypeId()) return false;
      if (getRedPoint()
          != other.getRedPoint()) 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) + TYPE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTypeId();
      hash = (37 * hash) + RED_POINT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getRedPoint());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionRedPointMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.class, pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.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();
        typeId_ = 0;

        redPoint_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PromotionRedPointMessage_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.getDefaultInstance();
      }

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

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

      public Builder mergeFrom(pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage other) {
        if (other == pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage.getDefaultInstance()) return this;
        if (other.getTypeId() != 0) {
          setTypeId(other.getTypeId());
        }
        if (other.getRedPoint() != false) {
          setRedPoint(other.getRedPoint());
        }
        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.promotion.Promotion.PromotionRedPointMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int typeId_ ;
      /**
       * <pre>
       *活动类型ID
       * </pre>
       *
       * <code>int32 type_id = 1;</code>
       * @return The typeId.
       */
      public int getTypeId() {
        return typeId_;
      }
      /**
       * <pre>
       *活动类型ID
       * </pre>
       *
       * <code>int32 type_id = 1;</code>
       * @param value The typeId to set.
       * @return This builder for chaining.
       */
      public Builder setTypeId(int value) {
        
        typeId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *活动类型ID
       * </pre>
       *
       * <code>int32 type_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearTypeId() {
        
        typeId_ = 0;
        onChanged();
        return this;
      }

      private boolean redPoint_ ;
      /**
       * <pre>
       *是否显示红点
       * </pre>
       *
       * <code>bool red_point = 2;</code>
       * @return The redPoint.
       */
      public boolean getRedPoint() {
        return redPoint_;
      }
      /**
       * <pre>
       *是否显示红点
       * </pre>
       *
       * <code>bool red_point = 2;</code>
       * @param value The redPoint to set.
       * @return This builder for chaining.
       */
      public Builder setRedPoint(boolean value) {
        
        redPoint_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *是否显示红点
       * </pre>
       *
       * <code>bool red_point = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearRedPoint() {
        
        redPoint_ = false;
        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.PromotionRedPointMessage)
    }

    // @@protoc_insertion_point(class_scope:pb.PromotionRedPointMessage)
    private static final pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage();
    }

    public static pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.promotion.Promotion.PromotionRedPointMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *活动类型ID
     * </pre>
     *
     * <code>int32 type_id = 1;</code>
     * @return The typeId.
     */
    int getTypeId();

    /**
     * <pre>
     *活动所在阶段，0空闲，1进行阶段，2沉寂阶段，3结束
     * </pre>
     *
     * <code>int32 stage = 2;</code>
     * @return The stage.
     */
    int getStage();

    /**
     * <pre>
     *活动开始时间
     * </pre>
     *
     * <code>int64 start_time = 3;</code>
     * @return The startTime.
     */
    long getStartTime();

    /**
     * <pre>
     *活动沉寂时间
     * </pre>
     *
     * <code>int64 still_time = 4;</code>
     * @return The stillTime.
     */
    long getStillTime();

    /**
     * <pre>
     *活动结束时间
     * </pre>
     *
     * <code>int64 end_time = 5;</code>
     * @return The endTime.
     */
    long getEndTime();

    /**
     * <pre>
     *是否显示红点
     * </pre>
     *
     * <code>bool red_point = 6;</code>
     * @return The redPoint.
     */
    boolean getRedPoint();
  }
  /**
   * <pre>
   *开始时间-&gt;沉寂时间-&gt;结束时间
   *存在一些活动，在开始时间与沉寂时间期间会进行数据记录，比如记录任务进度的增长或获取活动积分，
   *在沉寂时间与活动结束时间期间，活动将不在记录数据变化，如不在记录任务进度增加或产出活动积分，但可以在此时间段内消耗资源（比如活动积分）进行商品购买
   * </pre>
   *
   * Protobuf type {@code pb.PbPromotionControl}
   */
  public  static final class PbPromotionControl extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbPromotionControl)
      PbPromotionControlOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbPromotionControl.newBuilder() to construct.
    private PbPromotionControl(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbPromotionControl() {
    }

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

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

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

              stage_ = input.readInt32();
              break;
            }
            case 24: {

              startTime_ = input.readInt64();
              break;
            }
            case 32: {

              stillTime_ = input.readInt64();
              break;
            }
            case 40: {

              endTime_ = input.readInt64();
              break;
            }
            case 48: {

              redPoint_ = input.readBool();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PbPromotionControl_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PbPromotionControl_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.class, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder.class);
    }

    public static final int TYPE_ID_FIELD_NUMBER = 1;
    private int typeId_;
    /**
     * <pre>
     *活动类型ID
     * </pre>
     *
     * <code>int32 type_id = 1;</code>
     * @return The typeId.
     */
    public int getTypeId() {
      return typeId_;
    }

    public static final int STAGE_FIELD_NUMBER = 2;
    private int stage_;
    /**
     * <pre>
     *活动所在阶段，0空闲，1进行阶段，2沉寂阶段，3结束
     * </pre>
     *
     * <code>int32 stage = 2;</code>
     * @return The stage.
     */
    public int getStage() {
      return stage_;
    }

    public static final int START_TIME_FIELD_NUMBER = 3;
    private long startTime_;
    /**
     * <pre>
     *活动开始时间
     * </pre>
     *
     * <code>int64 start_time = 3;</code>
     * @return The startTime.
     */
    public long getStartTime() {
      return startTime_;
    }

    public static final int STILL_TIME_FIELD_NUMBER = 4;
    private long stillTime_;
    /**
     * <pre>
     *活动沉寂时间
     * </pre>
     *
     * <code>int64 still_time = 4;</code>
     * @return The stillTime.
     */
    public long getStillTime() {
      return stillTime_;
    }

    public static final int END_TIME_FIELD_NUMBER = 5;
    private long endTime_;
    /**
     * <pre>
     *活动结束时间
     * </pre>
     *
     * <code>int64 end_time = 5;</code>
     * @return The endTime.
     */
    public long getEndTime() {
      return endTime_;
    }

    public static final int RED_POINT_FIELD_NUMBER = 6;
    private boolean redPoint_;
    /**
     * <pre>
     *是否显示红点
     * </pre>
     *
     * <code>bool red_point = 6;</code>
     * @return The redPoint.
     */
    public boolean getRedPoint() {
      return redPoint_;
    }

    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 (typeId_ != 0) {
        output.writeInt32(1, typeId_);
      }
      if (stage_ != 0) {
        output.writeInt32(2, stage_);
      }
      if (startTime_ != 0L) {
        output.writeInt64(3, startTime_);
      }
      if (stillTime_ != 0L) {
        output.writeInt64(4, stillTime_);
      }
      if (endTime_ != 0L) {
        output.writeInt64(5, endTime_);
      }
      if (redPoint_ != false) {
        output.writeBool(6, redPoint_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (typeId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, typeId_);
      }
      if (stage_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, stage_);
      }
      if (startTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, startTime_);
      }
      if (stillTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, stillTime_);
      }
      if (endTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, endTime_);
      }
      if (redPoint_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, redPoint_);
      }
      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.promotion.Promotion.PbPromotionControl)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl other = (pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl) obj;

      if (getTypeId()
          != other.getTypeId()) return false;
      if (getStage()
          != other.getStage()) return false;
      if (getStartTime()
          != other.getStartTime()) return false;
      if (getStillTime()
          != other.getStillTime()) return false;
      if (getEndTime()
          != other.getEndTime()) return false;
      if (getRedPoint()
          != other.getRedPoint()) 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) + TYPE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTypeId();
      hash = (37 * hash) + STAGE_FIELD_NUMBER;
      hash = (53 * hash) + getStage();
      hash = (37 * hash) + START_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStartTime());
      hash = (37 * hash) + STILL_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStillTime());
      hash = (37 * hash) + END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEndTime());
      hash = (37 * hash) + RED_POINT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getRedPoint());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl 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.promotion.Promotion.PbPromotionControl parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl 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.promotion.Promotion.PbPromotionControl parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl 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.promotion.Promotion.PbPromotionControl parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl 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.promotion.Promotion.PbPromotionControl parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl 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.promotion.Promotion.PbPromotionControl 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>
     *开始时间-&gt;沉寂时间-&gt;结束时间
     *存在一些活动，在开始时间与沉寂时间期间会进行数据记录，比如记录任务进度的增长或获取活动积分，
     *在沉寂时间与活动结束时间期间，活动将不在记录数据变化，如不在记录任务进度增加或产出活动积分，但可以在此时间段内消耗资源（比如活动积分）进行商品购买
     * </pre>
     *
     * Protobuf type {@code pb.PbPromotionControl}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.PbPromotionControl)
        pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControlOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PbPromotionControl_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PbPromotionControl_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.class, pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.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();
        typeId_ = 0;

        stage_ = 0;

        startTime_ = 0L;

        stillTime_ = 0L;

        endTime_ = 0L;

        redPoint_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.internal_static_pb_PbPromotionControl_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl buildPartial() {
        pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl result = new pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl(this);
        result.typeId_ = typeId_;
        result.stage_ = stage_;
        result.startTime_ = startTime_;
        result.stillTime_ = stillTime_;
        result.endTime_ = endTime_;
        result.redPoint_ = redPoint_;
        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.promotion.Promotion.PbPromotionControl) {
          return mergeFrom((pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl other) {
        if (other == pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl.getDefaultInstance()) return this;
        if (other.getTypeId() != 0) {
          setTypeId(other.getTypeId());
        }
        if (other.getStage() != 0) {
          setStage(other.getStage());
        }
        if (other.getStartTime() != 0L) {
          setStartTime(other.getStartTime());
        }
        if (other.getStillTime() != 0L) {
          setStillTime(other.getStillTime());
        }
        if (other.getEndTime() != 0L) {
          setEndTime(other.getEndTime());
        }
        if (other.getRedPoint() != false) {
          setRedPoint(other.getRedPoint());
        }
        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.promotion.Promotion.PbPromotionControl parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int typeId_ ;
      /**
       * <pre>
       *活动类型ID
       * </pre>
       *
       * <code>int32 type_id = 1;</code>
       * @return The typeId.
       */
      public int getTypeId() {
        return typeId_;
      }
      /**
       * <pre>
       *活动类型ID
       * </pre>
       *
       * <code>int32 type_id = 1;</code>
       * @param value The typeId to set.
       * @return This builder for chaining.
       */
      public Builder setTypeId(int value) {
        
        typeId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *活动类型ID
       * </pre>
       *
       * <code>int32 type_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearTypeId() {
        
        typeId_ = 0;
        onChanged();
        return this;
      }

      private int stage_ ;
      /**
       * <pre>
       *活动所在阶段，0空闲，1进行阶段，2沉寂阶段，3结束
       * </pre>
       *
       * <code>int32 stage = 2;</code>
       * @return The stage.
       */
      public int getStage() {
        return stage_;
      }
      /**
       * <pre>
       *活动所在阶段，0空闲，1进行阶段，2沉寂阶段，3结束
       * </pre>
       *
       * <code>int32 stage = 2;</code>
       * @param value The stage to set.
       * @return This builder for chaining.
       */
      public Builder setStage(int value) {
        
        stage_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *活动所在阶段，0空闲，1进行阶段，2沉寂阶段，3结束
       * </pre>
       *
       * <code>int32 stage = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearStage() {
        
        stage_ = 0;
        onChanged();
        return this;
      }

      private long startTime_ ;
      /**
       * <pre>
       *活动开始时间
       * </pre>
       *
       * <code>int64 start_time = 3;</code>
       * @return The startTime.
       */
      public long getStartTime() {
        return startTime_;
      }
      /**
       * <pre>
       *活动开始时间
       * </pre>
       *
       * <code>int64 start_time = 3;</code>
       * @param value The startTime to set.
       * @return This builder for chaining.
       */
      public Builder setStartTime(long value) {
        
        startTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *活动开始时间
       * </pre>
       *
       * <code>int64 start_time = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearStartTime() {
        
        startTime_ = 0L;
        onChanged();
        return this;
      }

      private long stillTime_ ;
      /**
       * <pre>
       *活动沉寂时间
       * </pre>
       *
       * <code>int64 still_time = 4;</code>
       * @return The stillTime.
       */
      public long getStillTime() {
        return stillTime_;
      }
      /**
       * <pre>
       *活动沉寂时间
       * </pre>
       *
       * <code>int64 still_time = 4;</code>
       * @param value The stillTime to set.
       * @return This builder for chaining.
       */
      public Builder setStillTime(long value) {
        
        stillTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *活动沉寂时间
       * </pre>
       *
       * <code>int64 still_time = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearStillTime() {
        
        stillTime_ = 0L;
        onChanged();
        return this;
      }

      private long endTime_ ;
      /**
       * <pre>
       *活动结束时间
       * </pre>
       *
       * <code>int64 end_time = 5;</code>
       * @return The endTime.
       */
      public long getEndTime() {
        return endTime_;
      }
      /**
       * <pre>
       *活动结束时间
       * </pre>
       *
       * <code>int64 end_time = 5;</code>
       * @param value The endTime to set.
       * @return This builder for chaining.
       */
      public Builder setEndTime(long value) {
        
        endTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *活动结束时间
       * </pre>
       *
       * <code>int64 end_time = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearEndTime() {
        
        endTime_ = 0L;
        onChanged();
        return this;
      }

      private boolean redPoint_ ;
      /**
       * <pre>
       *是否显示红点
       * </pre>
       *
       * <code>bool red_point = 6;</code>
       * @return The redPoint.
       */
      public boolean getRedPoint() {
        return redPoint_;
      }
      /**
       * <pre>
       *是否显示红点
       * </pre>
       *
       * <code>bool red_point = 6;</code>
       * @param value The redPoint to set.
       * @return This builder for chaining.
       */
      public Builder setRedPoint(boolean value) {
        
        redPoint_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *是否显示红点
       * </pre>
       *
       * <code>bool red_point = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearRedPoint() {
        
        redPoint_ = false;
        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.PbPromotionControl)
    }

    // @@protoc_insertion_point(class_scope:pb.PbPromotionControl)
    private static final pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl();
    }

    public static pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.promotion.Promotion.PbPromotionControl getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PromotionInfoResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PromotionInfoResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PromotionInfoMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PromotionInfoMessage_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PromotionRedPointMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PromotionRedPointMessage_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbPromotionControl_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbPromotionControl_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\017Promotion.proto\022\002pb\"l\n\025PromotionInfoRe" +
      "sponse\0222\n\022promotion_controls\030\001 \003(\0132\026.pb." +
      "PbPromotionControl\"\037\n\005Proto\022\013\n\007UNKNOWN\020\000" +
      "\022\t\n\002ID\020\241\226\200\001\"j\n\024PromotionInfoMessage\0221\n\021p" +
      "romotion_control\030\001 \001(\0132\026.pb.PbPromotionC" +
      "ontrol\"\037\n\005Proto\022\013\n\007UNKNOWN\020\000\022\t\n\002ID\020\242\226\200\001\"" +
      "_\n\030PromotionRedPointMessage\022\017\n\007type_id\030\001" +
      " \001(\005\022\021\n\tred_point\030\002 \001(\010\"\037\n\005Proto\022\013\n\007UNKN" +
      "OWN\020\000\022\t\n\002ID\020\243\226\200\001\"\201\001\n\022PbPromotionControl\022" +
      "\017\n\007type_id\030\001 \001(\005\022\r\n\005stage\030\002 \001(\005\022\022\n\nstart" +
      "_time\030\003 \001(\003\022\022\n\nstill_time\030\004 \001(\003\022\020\n\010end_t" +
      "ime\030\005 \001(\003\022\021\n\tred_point\030\006 \001(\010B9\n\037pb.xiugo" +
      "u.x1.protobuf.promotion\252\002\025pb.xiugou.x1.p" +
      "rotobufb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_pb_PromotionInfoResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_PromotionInfoResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PromotionInfoResponse_descriptor,
        new java.lang.String[] { "PromotionControls", });
    internal_static_pb_PromotionInfoMessage_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_pb_PromotionInfoMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PromotionInfoMessage_descriptor,
        new java.lang.String[] { "PromotionControl", });
    internal_static_pb_PromotionRedPointMessage_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_pb_PromotionRedPointMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PromotionRedPointMessage_descriptor,
        new java.lang.String[] { "TypeId", "RedPoint", });
    internal_static_pb_PbPromotionControl_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_pb_PbPromotionControl_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbPromotionControl_descriptor,
        new java.lang.String[] { "TypeId", "Stage", "StartTime", "StillTime", "EndTime", "RedPoint", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
