/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

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

package tech.ordinaryroad.live.chat.client.kuaishou.protobuf;

public final class WebRedPackInfoOuterClass {
  private WebRedPackInfoOuterClass() {}
  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 WebRedPackInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:WebRedPackInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string id = 1;</code>
     * @return The id.
     */
    java.lang.String getId();
    /**
     * <code>string id = 1;</code>
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * <code>.SimpleUserInfo author = 2;</code>
     * @return Whether the author field is set.
     */
    boolean hasAuthor();
    /**
     * <code>.SimpleUserInfo author = 2;</code>
     * @return The author.
     */
    tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getAuthor();
    /**
     * <code>.SimpleUserInfo author = 2;</code>
     */
    tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getAuthorOrBuilder();

    /**
     * <code>uint64 balance = 3;</code>
     * @return The balance.
     */
    long getBalance();

    /**
     * <code>uint64 openTime = 4;</code>
     * @return The openTime.
     */
    long getOpenTime();

    /**
     * <code>uint64 currentTime = 5;</code>
     * @return The currentTime.
     */
    long getCurrentTime();

    /**
     * <code>string grabToken = 6;</code>
     * @return The grabToken.
     */
    java.lang.String getGrabToken();
    /**
     * <code>string grabToken = 6;</code>
     * @return The bytes for grabToken.
     */
    com.google.protobuf.ByteString
        getGrabTokenBytes();

    /**
     * <code>bool needSendRequest = 7;</code>
     * @return The needSendRequest.
     */
    boolean getNeedSendRequest();

    /**
     * <code>uint64 requestDelayMillis = 8;</code>
     * @return The requestDelayMillis.
     */
    long getRequestDelayMillis();

    /**
     * <code>uint64 luckiestDelayMillis = 9;</code>
     * @return The luckiestDelayMillis.
     */
    long getLuckiestDelayMillis();

    /**
     * <code>.WebRedPackCoverType coverType = 10;</code>
     * @return The enum numeric value on the wire for coverType.
     */
    int getCoverTypeValue();
    /**
     * <code>.WebRedPackCoverType coverType = 10;</code>
     * @return The coverType.
     */
    tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType getCoverType();
  }
  /**
   * Protobuf type {@code WebRedPackInfo}
   */
  public static final class WebRedPackInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:WebRedPackInfo)
      WebRedPackInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use WebRedPackInfo.newBuilder() to construct.
    private WebRedPackInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private WebRedPackInfo() {
      id_ = "";
      grabToken_ = "";
      coverType_ = 0;
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object id_ = "";
    /**
     * <code>string id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        id_ = s;
        return s;
      }
    }
    /**
     * <code>string id = 1;</code>
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int AUTHOR_FIELD_NUMBER = 2;
    private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo author_;
    /**
     * <code>.SimpleUserInfo author = 2;</code>
     * @return Whether the author field is set.
     */
    @java.lang.Override
    public boolean hasAuthor() {
      return author_ != null;
    }
    /**
     * <code>.SimpleUserInfo author = 2;</code>
     * @return The author.
     */
    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getAuthor() {
      return author_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_;
    }
    /**
     * <code>.SimpleUserInfo author = 2;</code>
     */
    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getAuthorOrBuilder() {
      return author_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_;
    }

    public static final int BALANCE_FIELD_NUMBER = 3;
    private long balance_ = 0L;
    /**
     * <code>uint64 balance = 3;</code>
     * @return The balance.
     */
    @java.lang.Override
    public long getBalance() {
      return balance_;
    }

    public static final int OPENTIME_FIELD_NUMBER = 4;
    private long openTime_ = 0L;
    /**
     * <code>uint64 openTime = 4;</code>
     * @return The openTime.
     */
    @java.lang.Override
    public long getOpenTime() {
      return openTime_;
    }

    public static final int CURRENTTIME_FIELD_NUMBER = 5;
    private long currentTime_ = 0L;
    /**
     * <code>uint64 currentTime = 5;</code>
     * @return The currentTime.
     */
    @java.lang.Override
    public long getCurrentTime() {
      return currentTime_;
    }

    public static final int GRABTOKEN_FIELD_NUMBER = 6;
    @SuppressWarnings("serial")
    private volatile java.lang.Object grabToken_ = "";
    /**
     * <code>string grabToken = 6;</code>
     * @return The grabToken.
     */
    @java.lang.Override
    public java.lang.String getGrabToken() {
      java.lang.Object ref = grabToken_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        grabToken_ = s;
        return s;
      }
    }
    /**
     * <code>string grabToken = 6;</code>
     * @return The bytes for grabToken.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getGrabTokenBytes() {
      java.lang.Object ref = grabToken_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        grabToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int NEEDSENDREQUEST_FIELD_NUMBER = 7;
    private boolean needSendRequest_ = false;
    /**
     * <code>bool needSendRequest = 7;</code>
     * @return The needSendRequest.
     */
    @java.lang.Override
    public boolean getNeedSendRequest() {
      return needSendRequest_;
    }

    public static final int REQUESTDELAYMILLIS_FIELD_NUMBER = 8;
    private long requestDelayMillis_ = 0L;
    /**
     * <code>uint64 requestDelayMillis = 8;</code>
     * @return The requestDelayMillis.
     */
    @java.lang.Override
    public long getRequestDelayMillis() {
      return requestDelayMillis_;
    }

    public static final int LUCKIESTDELAYMILLIS_FIELD_NUMBER = 9;
    private long luckiestDelayMillis_ = 0L;
    /**
     * <code>uint64 luckiestDelayMillis = 9;</code>
     * @return The luckiestDelayMillis.
     */
    @java.lang.Override
    public long getLuckiestDelayMillis() {
      return luckiestDelayMillis_;
    }

    public static final int COVERTYPE_FIELD_NUMBER = 10;
    private int coverType_ = 0;
    /**
     * <code>.WebRedPackCoverType coverType = 10;</code>
     * @return The enum numeric value on the wire for coverType.
     */
    @java.lang.Override public int getCoverTypeValue() {
      return coverType_;
    }
    /**
     * <code>.WebRedPackCoverType coverType = 10;</code>
     * @return The coverType.
     */
    @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType getCoverType() {
      tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.forNumber(coverType_);
      return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNRECOGNIZED : result;
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      if (author_ != null) {
        output.writeMessage(2, getAuthor());
      }
      if (balance_ != 0L) {
        output.writeUInt64(3, balance_);
      }
      if (openTime_ != 0L) {
        output.writeUInt64(4, openTime_);
      }
      if (currentTime_ != 0L) {
        output.writeUInt64(5, currentTime_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grabToken_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, grabToken_);
      }
      if (needSendRequest_ != false) {
        output.writeBool(7, needSendRequest_);
      }
      if (requestDelayMillis_ != 0L) {
        output.writeUInt64(8, requestDelayMillis_);
      }
      if (luckiestDelayMillis_ != 0L) {
        output.writeUInt64(9, luckiestDelayMillis_);
      }
      if (coverType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNKNOWN_COVER_TYPE.getNumber()) {
        output.writeEnum(10, coverType_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
      }
      if (author_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getAuthor());
      }
      if (balance_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(3, balance_);
      }
      if (openTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(4, openTime_);
      }
      if (currentTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(5, currentTime_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grabToken_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, grabToken_);
      }
      if (needSendRequest_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, needSendRequest_);
      }
      if (requestDelayMillis_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(8, requestDelayMillis_);
      }
      if (luckiestDelayMillis_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(9, luckiestDelayMillis_);
      }
      if (coverType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNKNOWN_COVER_TYPE.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(10, coverType_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo)) {
        return super.equals(obj);
      }
      tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo) obj;

      if (!getId()
          .equals(other.getId())) return false;
      if (hasAuthor() != other.hasAuthor()) return false;
      if (hasAuthor()) {
        if (!getAuthor()
            .equals(other.getAuthor())) return false;
      }
      if (getBalance()
          != other.getBalance()) return false;
      if (getOpenTime()
          != other.getOpenTime()) return false;
      if (getCurrentTime()
          != other.getCurrentTime()) return false;
      if (!getGrabToken()
          .equals(other.getGrabToken())) return false;
      if (getNeedSendRequest()
          != other.getNeedSendRequest()) return false;
      if (getRequestDelayMillis()
          != other.getRequestDelayMillis()) return false;
      if (getLuckiestDelayMillis()
          != other.getLuckiestDelayMillis()) return false;
      if (coverType_ != other.coverType_) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      if (hasAuthor()) {
        hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
        hash = (53 * hash) + getAuthor().hashCode();
      }
      hash = (37 * hash) + BALANCE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBalance());
      hash = (37 * hash) + OPENTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getOpenTime());
      hash = (37 * hash) + CURRENTTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCurrentTime());
      hash = (37 * hash) + GRABTOKEN_FIELD_NUMBER;
      hash = (53 * hash) + getGrabToken().hashCode();
      hash = (37 * hash) + NEEDSENDREQUEST_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getNeedSendRequest());
      hash = (37 * hash) + REQUESTDELAYMILLIS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getRequestDelayMillis());
      hash = (37 * hash) + LUCKIESTDELAYMILLIS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getLuckiestDelayMillis());
      hash = (37 * hash) + COVERTYPE_FIELD_NUMBER;
      hash = (53 * hash) + coverType_;
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo 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 tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo 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 tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo 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(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code WebRedPackInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:WebRedPackInfo)
        tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder.class);
      }

      // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        id_ = "";
        author_ = null;
        if (authorBuilder_ != null) {
          authorBuilder_.dispose();
          authorBuilder_ = null;
        }
        balance_ = 0L;
        openTime_ = 0L;
        currentTime_ = 0L;
        grabToken_ = "";
        needSendRequest_ = false;
        requestDelayMillis_ = 0L;
        luckiestDelayMillis_ = 0L;
        coverType_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_descriptor;
      }

      @java.lang.Override
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getDefaultInstanceForType() {
        return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.getDefaultInstance();
      }

      @java.lang.Override
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo build() {
        tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo buildPartial() {
        tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.id_ = id_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.author_ = authorBuilder_ == null
              ? author_
              : authorBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.balance_ = balance_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.openTime_ = openTime_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.currentTime_ = currentTime_;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.grabToken_ = grabToken_;
        }
        if (((from_bitField0_ & 0x00000040) != 0)) {
          result.needSendRequest_ = needSendRequest_;
        }
        if (((from_bitField0_ & 0x00000080) != 0)) {
          result.requestDelayMillis_ = requestDelayMillis_;
        }
        if (((from_bitField0_ & 0x00000100) != 0)) {
          result.luckiestDelayMillis_ = luckiestDelayMillis_;
        }
        if (((from_bitField0_ & 0x00000200) != 0)) {
          result.coverType_ = coverType_;
        }
      }

      @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 tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo) {
          return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo other) {
        if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasAuthor()) {
          mergeAuthor(other.getAuthor());
        }
        if (other.getBalance() != 0L) {
          setBalance(other.getBalance());
        }
        if (other.getOpenTime() != 0L) {
          setOpenTime(other.getOpenTime());
        }
        if (other.getCurrentTime() != 0L) {
          setCurrentTime(other.getCurrentTime());
        }
        if (!other.getGrabToken().isEmpty()) {
          grabToken_ = other.grabToken_;
          bitField0_ |= 0x00000020;
          onChanged();
        }
        if (other.getNeedSendRequest() != false) {
          setNeedSendRequest(other.getNeedSendRequest());
        }
        if (other.getRequestDelayMillis() != 0L) {
          setRequestDelayMillis(other.getRequestDelayMillis());
        }
        if (other.getLuckiestDelayMillis() != 0L) {
          setLuckiestDelayMillis(other.getLuckiestDelayMillis());
        }
        if (other.coverType_ != 0) {
          setCoverTypeValue(other.getCoverTypeValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                id_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getAuthorFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 24: {
                balance_ = input.readUInt64();
                bitField0_ |= 0x00000004;
                break;
              } // case 24
              case 32: {
                openTime_ = input.readUInt64();
                bitField0_ |= 0x00000008;
                break;
              } // case 32
              case 40: {
                currentTime_ = input.readUInt64();
                bitField0_ |= 0x00000010;
                break;
              } // case 40
              case 50: {
                grabToken_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
              case 56: {
                needSendRequest_ = input.readBool();
                bitField0_ |= 0x00000040;
                break;
              } // case 56
              case 64: {
                requestDelayMillis_ = input.readUInt64();
                bitField0_ |= 0x00000080;
                break;
              } // case 64
              case 72: {
                luckiestDelayMillis_ = input.readUInt64();
                bitField0_ |= 0x00000100;
                break;
              } // case 72
              case 80: {
                coverType_ = input.readEnum();
                bitField0_ |= 0x00000200;
                break;
              } // case 80
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object id_ = "";
      /**
       * <code>string id = 1;</code>
       * @return The id.
       */
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          id_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string id = 1;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        id_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>string id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        id_ = getDefaultInstance().getId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>string id = 1;</code>
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        id_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo author_;
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> authorBuilder_;
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       * @return Whether the author field is set.
       */
      public boolean hasAuthor() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       * @return The author.
       */
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getAuthor() {
        if (authorBuilder_ == null) {
          return author_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_;
        } else {
          return authorBuilder_.getMessage();
        }
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      public Builder setAuthor(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) {
        if (authorBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          author_ = value;
        } else {
          authorBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      public Builder setAuthor(
          tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) {
        if (authorBuilder_ == null) {
          author_ = builderForValue.build();
        } else {
          authorBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      public Builder mergeAuthor(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) {
        if (authorBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            author_ != null &&
            author_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) {
            getAuthorBuilder().mergeFrom(value);
          } else {
            author_ = value;
          }
        } else {
          authorBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      public Builder clearAuthor() {
        bitField0_ = (bitField0_ & ~0x00000002);
        author_ = null;
        if (authorBuilder_ != null) {
          authorBuilder_.dispose();
          authorBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getAuthorBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getAuthorFieldBuilder().getBuilder();
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getAuthorOrBuilder() {
        if (authorBuilder_ != null) {
          return authorBuilder_.getMessageOrBuilder();
        } else {
          return author_ == null ?
              tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_;
        }
      }
      /**
       * <code>.SimpleUserInfo author = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> 
          getAuthorFieldBuilder() {
        if (authorBuilder_ == null) {
          authorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>(
                  getAuthor(),
                  getParentForChildren(),
                  isClean());
          author_ = null;
        }
        return authorBuilder_;
      }

      private long balance_ ;
      /**
       * <code>uint64 balance = 3;</code>
       * @return The balance.
       */
      @java.lang.Override
      public long getBalance() {
        return balance_;
      }
      /**
       * <code>uint64 balance = 3;</code>
       * @param value The balance to set.
       * @return This builder for chaining.
       */
      public Builder setBalance(long value) {

        balance_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 balance = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearBalance() {
        bitField0_ = (bitField0_ & ~0x00000004);
        balance_ = 0L;
        onChanged();
        return this;
      }

      private long openTime_ ;
      /**
       * <code>uint64 openTime = 4;</code>
       * @return The openTime.
       */
      @java.lang.Override
      public long getOpenTime() {
        return openTime_;
      }
      /**
       * <code>uint64 openTime = 4;</code>
       * @param value The openTime to set.
       * @return This builder for chaining.
       */
      public Builder setOpenTime(long value) {

        openTime_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 openTime = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearOpenTime() {
        bitField0_ = (bitField0_ & ~0x00000008);
        openTime_ = 0L;
        onChanged();
        return this;
      }

      private long currentTime_ ;
      /**
       * <code>uint64 currentTime = 5;</code>
       * @return The currentTime.
       */
      @java.lang.Override
      public long getCurrentTime() {
        return currentTime_;
      }
      /**
       * <code>uint64 currentTime = 5;</code>
       * @param value The currentTime to set.
       * @return This builder for chaining.
       */
      public Builder setCurrentTime(long value) {

        currentTime_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 currentTime = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurrentTime() {
        bitField0_ = (bitField0_ & ~0x00000010);
        currentTime_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object grabToken_ = "";
      /**
       * <code>string grabToken = 6;</code>
       * @return The grabToken.
       */
      public java.lang.String getGrabToken() {
        java.lang.Object ref = grabToken_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          grabToken_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string grabToken = 6;</code>
       * @return The bytes for grabToken.
       */
      public com.google.protobuf.ByteString
          getGrabTokenBytes() {
        java.lang.Object ref = grabToken_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          grabToken_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string grabToken = 6;</code>
       * @param value The grabToken to set.
       * @return This builder for chaining.
       */
      public Builder setGrabToken(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        grabToken_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       * <code>string grabToken = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearGrabToken() {
        grabToken_ = getDefaultInstance().getGrabToken();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
        return this;
      }
      /**
       * <code>string grabToken = 6;</code>
       * @param value The bytes for grabToken to set.
       * @return This builder for chaining.
       */
      public Builder setGrabTokenBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        grabToken_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }

      private boolean needSendRequest_ ;
      /**
       * <code>bool needSendRequest = 7;</code>
       * @return The needSendRequest.
       */
      @java.lang.Override
      public boolean getNeedSendRequest() {
        return needSendRequest_;
      }
      /**
       * <code>bool needSendRequest = 7;</code>
       * @param value The needSendRequest to set.
       * @return This builder for chaining.
       */
      public Builder setNeedSendRequest(boolean value) {

        needSendRequest_ = value;
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       * <code>bool needSendRequest = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearNeedSendRequest() {
        bitField0_ = (bitField0_ & ~0x00000040);
        needSendRequest_ = false;
        onChanged();
        return this;
      }

      private long requestDelayMillis_ ;
      /**
       * <code>uint64 requestDelayMillis = 8;</code>
       * @return The requestDelayMillis.
       */
      @java.lang.Override
      public long getRequestDelayMillis() {
        return requestDelayMillis_;
      }
      /**
       * <code>uint64 requestDelayMillis = 8;</code>
       * @param value The requestDelayMillis to set.
       * @return This builder for chaining.
       */
      public Builder setRequestDelayMillis(long value) {

        requestDelayMillis_ = value;
        bitField0_ |= 0x00000080;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 requestDelayMillis = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearRequestDelayMillis() {
        bitField0_ = (bitField0_ & ~0x00000080);
        requestDelayMillis_ = 0L;
        onChanged();
        return this;
      }

      private long luckiestDelayMillis_ ;
      /**
       * <code>uint64 luckiestDelayMillis = 9;</code>
       * @return The luckiestDelayMillis.
       */
      @java.lang.Override
      public long getLuckiestDelayMillis() {
        return luckiestDelayMillis_;
      }
      /**
       * <code>uint64 luckiestDelayMillis = 9;</code>
       * @param value The luckiestDelayMillis to set.
       * @return This builder for chaining.
       */
      public Builder setLuckiestDelayMillis(long value) {

        luckiestDelayMillis_ = value;
        bitField0_ |= 0x00000100;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 luckiestDelayMillis = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearLuckiestDelayMillis() {
        bitField0_ = (bitField0_ & ~0x00000100);
        luckiestDelayMillis_ = 0L;
        onChanged();
        return this;
      }

      private int coverType_ = 0;
      /**
       * <code>.WebRedPackCoverType coverType = 10;</code>
       * @return The enum numeric value on the wire for coverType.
       */
      @java.lang.Override public int getCoverTypeValue() {
        return coverType_;
      }
      /**
       * <code>.WebRedPackCoverType coverType = 10;</code>
       * @param value The enum numeric value on the wire for coverType to set.
       * @return This builder for chaining.
       */
      public Builder setCoverTypeValue(int value) {
        coverType_ = value;
        bitField0_ |= 0x00000200;
        onChanged();
        return this;
      }
      /**
       * <code>.WebRedPackCoverType coverType = 10;</code>
       * @return The coverType.
       */
      @java.lang.Override
      public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType getCoverType() {
        tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.forNumber(coverType_);
        return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNRECOGNIZED : result;
      }
      /**
       * <code>.WebRedPackCoverType coverType = 10;</code>
       * @param value The coverType to set.
       * @return This builder for chaining.
       */
      public Builder setCoverType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000200;
        coverType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.WebRedPackCoverType coverType = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearCoverType() {
        bitField0_ = (bitField0_ & ~0x00000200);
        coverType_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:WebRedPackInfo)
    }

    // @@protoc_insertion_point(class_scope:WebRedPackInfo)
    private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo();
    }

    public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_WebRedPackInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_WebRedPackInfo_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\024WebRedPackInfo.proto\032\024SimpleUserInfo.p" +
      "roto\032\031WebRedPackCoverType.proto\"\203\002\n\016WebR" +
      "edPackInfo\022\n\n\002id\030\001 \001(\t\022\037\n\006author\030\002 \001(\0132\017" +
      ".SimpleUserInfo\022\017\n\007balance\030\003 \001(\004\022\020\n\010open" +
      "Time\030\004 \001(\004\022\023\n\013currentTime\030\005 \001(\004\022\021\n\tgrabT" +
      "oken\030\006 \001(\t\022\027\n\017needSendRequest\030\007 \001(\010\022\032\n\022r" +
      "equestDelayMillis\030\010 \001(\004\022\033\n\023luckiestDelay" +
      "Millis\030\t \001(\004\022\'\n\tcoverType\030\n \001(\0162\024.WebRed" +
      "PackCoverTypeB6\n4tech.ordinaryroad.live." +
      "chat.client.kuaishou.protobufb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(),
          tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.getDescriptor(),
        });
    internal_static_WebRedPackInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_WebRedPackInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_WebRedPackInfo_descriptor,
        new java.lang.String[] { "Id", "Author", "Balance", "OpenTime", "CurrentTime", "GrabToken", "NeedSendRequest", "RequestDelayMillis", "LuckiestDelayMillis", "CoverType", });
    tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor();
    tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
