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

package com.kfzs.duanduan.proto;

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

    /**
     * <code>int64 Id = 1;</code>
     */
    long getId();

    /**
     * <pre>
     * 得到礼包的人
     * </pre>
     *
     * <code>int64 UserId = 3;</code>
     */
    long getUserId();

    /**
     * <pre>
     * 游戏
     * </pre>
     *
     * <code>int64 GameId = 4;</code>
     */
    long getGameId();

    /**
     * <pre>
     * 礼包码
     * </pre>
     *
     * <code>string Code = 5;</code>
     */
    java.lang.String getCode();
    /**
     * <pre>
     * 礼包码
     * </pre>
     *
     * <code>string Code = 5;</code>
     */
    com.google.protobuf.ByteString
        getCodeBytes();

    /**
     * <pre>
     * </pre>
     *
     * <code>int32 Type = 6;</code>
     */
    int getType();

    /**
     * <pre>
     * 礼包码生效开始时间
     * </pre>
     *
     * <code>int64 StartTime = 7;</code>
     */
    long getStartTime();

    /**
     * <pre>
     * 礼包码结束时间
     * </pre>
     *
     * <code>int64 EndTime = 8;</code>
     */
    long getEndTime();

    /**
     * <pre>
     * 记录产生时间
     * </pre>
     *
     * <code>int64 CreatedTime = 9;</code>
     */
    long getCreatedTime();

    /**
     * <code>int64 SendTime = 10;</code>
     */
    long getSendTime();

    /**
     * <code>int32 UserStatus = 11;</code>
     */
    int getUserStatus();
  }
  /**
   * <pre>
   * 礼包码
   * </pre>
   *
   * Protobuf type {@code protobuf.Gift}
   */
  public  static final class Gift extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.Gift)
      GiftOrBuilder {
    // Use Gift.newBuilder() to construct.
    private Gift(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Gift() {
      id_ = 0L;
      userId_ = 0L;
      gameId_ = 0L;
      code_ = "";
      type_ = 0;
      startTime_ = 0L;
      endTime_ = 0L;
      createdTime_ = 0L;
      sendTime_ = 0L;
      userStatus_ = 0;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private Gift(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 8: {

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

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

              gameId_ = input.readInt64();
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();

              code_ = s;
              break;
            }
            case 48: {

              type_ = input.readInt32();
              break;
            }
            case 56: {

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

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

              createdTime_ = input.readInt64();
              break;
            }
            case 80: {

              sendTime_ = input.readInt64();
              break;
            }
            case 88: {

              userStatus_ = input.readInt32();
              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 {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.kfzs.duanduan.proto.GiftOuterClass.internal_static_protobuf_Gift_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.GiftOuterClass.internal_static_protobuf_Gift_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.GiftOuterClass.Gift.class, com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private long id_;
    /**
     * <code>int64 Id = 1;</code>
     */
    public long getId() {
      return id_;
    }

    public static final int USERID_FIELD_NUMBER = 3;
    private long userId_;
    /**
     * <pre>
     * 得到礼包的人
     * </pre>
     *
     * <code>int64 UserId = 3;</code>
     */
    public long getUserId() {
      return userId_;
    }

    public static final int GAMEID_FIELD_NUMBER = 4;
    private long gameId_;
    /**
     * <pre>
     * 游戏
     * </pre>
     *
     * <code>int64 GameId = 4;</code>
     */
    public long getGameId() {
      return gameId_;
    }

    public static final int CODE_FIELD_NUMBER = 5;
    private volatile java.lang.Object code_;
    /**
     * <pre>
     * 礼包码
     * </pre>
     *
     * <code>string Code = 5;</code>
     */
    public java.lang.String getCode() {
      java.lang.Object ref = code_;
      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();
        code_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 礼包码
     * </pre>
     *
     * <code>string Code = 5;</code>
     */
    public com.google.protobuf.ByteString
        getCodeBytes() {
      java.lang.Object ref = code_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        code_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPE_FIELD_NUMBER = 6;
    private int type_;
    /**
     * <pre>
     * </pre>
     *
     * <code>int32 Type = 6;</code>
     */
    public int getType() {
      return type_;
    }

    public static final int STARTTIME_FIELD_NUMBER = 7;
    private long startTime_;
    /**
     * <pre>
     * 礼包码生效开始时间
     * </pre>
     *
     * <code>int64 StartTime = 7;</code>
     */
    public long getStartTime() {
      return startTime_;
    }

    public static final int ENDTIME_FIELD_NUMBER = 8;
    private long endTime_;
    /**
     * <pre>
     * 礼包码结束时间
     * </pre>
     *
     * <code>int64 EndTime = 8;</code>
     */
    public long getEndTime() {
      return endTime_;
    }

    public static final int CREATEDTIME_FIELD_NUMBER = 9;
    private long createdTime_;
    /**
     * <pre>
     * 记录产生时间
     * </pre>
     *
     * <code>int64 CreatedTime = 9;</code>
     */
    public long getCreatedTime() {
      return createdTime_;
    }

    public static final int SENDTIME_FIELD_NUMBER = 10;
    private long sendTime_;
    /**
     * <code>int64 SendTime = 10;</code>
     */
    public long getSendTime() {
      return sendTime_;
    }

    public static final int USERSTATUS_FIELD_NUMBER = 11;
    private int userStatus_;
    /**
     * <code>int32 UserStatus = 11;</code>
     */
    public int getUserStatus() {
      return userStatus_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (id_ != 0L) {
        output.writeInt64(1, id_);
      }
      if (userId_ != 0L) {
        output.writeInt64(3, userId_);
      }
      if (gameId_ != 0L) {
        output.writeInt64(4, gameId_);
      }
      if (!getCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_);
      }
      if (type_ != 0) {
        output.writeInt32(6, type_);
      }
      if (startTime_ != 0L) {
        output.writeInt64(7, startTime_);
      }
      if (endTime_ != 0L) {
        output.writeInt64(8, endTime_);
      }
      if (createdTime_ != 0L) {
        output.writeInt64(9, createdTime_);
      }
      if (sendTime_ != 0L) {
        output.writeInt64(10, sendTime_);
      }
      if (userStatus_ != 0) {
        output.writeInt32(11, userStatus_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (id_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, id_);
      }
      if (userId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, userId_);
      }
      if (gameId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, gameId_);
      }
      if (!getCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_);
      }
      if (type_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(6, type_);
      }
      if (startTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, startTime_);
      }
      if (endTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(8, endTime_);
      }
      if (createdTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(9, createdTime_);
      }
      if (sendTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(10, sendTime_);
      }
      if (userStatus_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(11, userStatus_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.kfzs.duanduan.proto.GiftOuterClass.Gift)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.GiftOuterClass.Gift other = (com.kfzs.duanduan.proto.GiftOuterClass.Gift) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && (getUserId()
          == other.getUserId());
      result = result && (getGameId()
          == other.getGameId());
      result = result && getCode()
          .equals(other.getCode());
      result = result && (getType()
          == other.getType());
      result = result && (getStartTime()
          == other.getStartTime());
      result = result && (getEndTime()
          == other.getEndTime());
      result = result && (getCreatedTime()
          == other.getCreatedTime());
      result = result && (getSendTime()
          == other.getSendTime());
      result = result && (getUserStatus()
          == other.getUserStatus());
      return result;
    }

    @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) + com.google.protobuf.Internal.hashLong(
          getId());
      hash = (37 * hash) + USERID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getUserId());
      hash = (37 * hash) + GAMEID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getGameId());
      hash = (37 * hash) + CODE_FIELD_NUMBER;
      hash = (53 * hash) + getCode().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType();
      hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStartTime());
      hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEndTime());
      hash = (37 * hash) + CREATEDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCreatedTime());
      hash = (37 * hash) + SENDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getSendTime());
      hash = (37 * hash) + USERSTATUS_FIELD_NUMBER;
      hash = (53 * hash) + getUserStatus();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.kfzs.duanduan.proto.GiftOuterClass.Gift prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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 protobuf.Gift}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:protobuf.Gift)
        com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.kfzs.duanduan.proto.GiftOuterClass.internal_static_protobuf_Gift_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.GiftOuterClass.internal_static_protobuf_Gift_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.GiftOuterClass.Gift.class, com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder.class);
      }

      // Construct using com.kfzs.duanduan.proto.GiftOuterClass.Gift.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        id_ = 0L;

        userId_ = 0L;

        gameId_ = 0L;

        code_ = "";

        type_ = 0;

        startTime_ = 0L;

        endTime_ = 0L;

        createdTime_ = 0L;

        sendTime_ = 0L;

        userStatus_ = 0;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.kfzs.duanduan.proto.GiftOuterClass.internal_static_protobuf_Gift_descriptor;
      }

      public com.kfzs.duanduan.proto.GiftOuterClass.Gift getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.GiftOuterClass.Gift.getDefaultInstance();
      }

      public com.kfzs.duanduan.proto.GiftOuterClass.Gift build() {
        com.kfzs.duanduan.proto.GiftOuterClass.Gift result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.kfzs.duanduan.proto.GiftOuterClass.Gift buildPartial() {
        com.kfzs.duanduan.proto.GiftOuterClass.Gift result = new com.kfzs.duanduan.proto.GiftOuterClass.Gift(this);
        result.id_ = id_;
        result.userId_ = userId_;
        result.gameId_ = gameId_;
        result.code_ = code_;
        result.type_ = type_;
        result.startTime_ = startTime_;
        result.endTime_ = endTime_;
        result.createdTime_ = createdTime_;
        result.sendTime_ = sendTime_;
        result.userStatus_ = userStatus_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.kfzs.duanduan.proto.GiftOuterClass.Gift) {
          return mergeFrom((com.kfzs.duanduan.proto.GiftOuterClass.Gift)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.GiftOuterClass.Gift other) {
        if (other == com.kfzs.duanduan.proto.GiftOuterClass.Gift.getDefaultInstance()) return this;
        if (other.getId() != 0L) {
          setId(other.getId());
        }
        if (other.getUserId() != 0L) {
          setUserId(other.getUserId());
        }
        if (other.getGameId() != 0L) {
          setGameId(other.getGameId());
        }
        if (!other.getCode().isEmpty()) {
          code_ = other.code_;
          onChanged();
        }
        if (other.getType() != 0) {
          setType(other.getType());
        }
        if (other.getStartTime() != 0L) {
          setStartTime(other.getStartTime());
        }
        if (other.getEndTime() != 0L) {
          setEndTime(other.getEndTime());
        }
        if (other.getCreatedTime() != 0L) {
          setCreatedTime(other.getCreatedTime());
        }
        if (other.getSendTime() != 0L) {
          setSendTime(other.getSendTime());
        }
        if (other.getUserStatus() != 0) {
          setUserStatus(other.getUserStatus());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.kfzs.duanduan.proto.GiftOuterClass.Gift parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.GiftOuterClass.Gift) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long id_ ;
      /**
       * <code>int64 Id = 1;</code>
       */
      public long getId() {
        return id_;
      }
      /**
       * <code>int64 Id = 1;</code>
       */
      public Builder setId(long value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 Id = 1;</code>
       */
      public Builder clearId() {
        
        id_ = 0L;
        onChanged();
        return this;
      }

      private long userId_ ;
      /**
       * <pre>
       * 得到礼包的人
       * </pre>
       *
       * <code>int64 UserId = 3;</code>
       */
      public long getUserId() {
        return userId_;
      }
      /**
       * <pre>
       * 得到礼包的人
       * </pre>
       *
       * <code>int64 UserId = 3;</code>
       */
      public Builder setUserId(long value) {
        
        userId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 得到礼包的人
       * </pre>
       *
       * <code>int64 UserId = 3;</code>
       */
      public Builder clearUserId() {
        
        userId_ = 0L;
        onChanged();
        return this;
      }

      private long gameId_ ;
      /**
       * <pre>
       * 游戏
       * </pre>
       *
       * <code>int64 GameId = 4;</code>
       */
      public long getGameId() {
        return gameId_;
      }
      /**
       * <pre>
       * 游戏
       * </pre>
       *
       * <code>int64 GameId = 4;</code>
       */
      public Builder setGameId(long value) {
        
        gameId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 游戏
       * </pre>
       *
       * <code>int64 GameId = 4;</code>
       */
      public Builder clearGameId() {
        
        gameId_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object code_ = "";
      /**
       * <pre>
       * 礼包码
       * </pre>
       *
       * <code>string Code = 5;</code>
       */
      public java.lang.String getCode() {
        java.lang.Object ref = code_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          code_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * 礼包码
       * </pre>
       *
       * <code>string Code = 5;</code>
       */
      public com.google.protobuf.ByteString
          getCodeBytes() {
        java.lang.Object ref = code_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          code_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 礼包码
       * </pre>
       *
       * <code>string Code = 5;</code>
       */
      public Builder setCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        code_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 礼包码
       * </pre>
       *
       * <code>string Code = 5;</code>
       */
      public Builder clearCode() {
        
        code_ = getDefaultInstance().getCode();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 礼包码
       * </pre>
       *
       * <code>string Code = 5;</code>
       */
      public Builder setCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        code_ = value;
        onChanged();
        return this;
      }

      private int type_ ;
      /**
       * <pre>
       * </pre>
       *
       * <code>int32 Type = 6;</code>
       */
      public int getType() {
        return type_;
      }
      /**
       * <pre>
       * </pre>
       *
       * <code>int32 Type = 6;</code>
       */
      public Builder setType(int value) {
        
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * </pre>
       *
       * <code>int32 Type = 6;</code>
       */
      public Builder clearType() {
        
        type_ = 0;
        onChanged();
        return this;
      }

      private long startTime_ ;
      /**
       * <pre>
       * 礼包码生效开始时间
       * </pre>
       *
       * <code>int64 StartTime = 7;</code>
       */
      public long getStartTime() {
        return startTime_;
      }
      /**
       * <pre>
       * 礼包码生效开始时间
       * </pre>
       *
       * <code>int64 StartTime = 7;</code>
       */
      public Builder setStartTime(long value) {
        
        startTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 礼包码生效开始时间
       * </pre>
       *
       * <code>int64 StartTime = 7;</code>
       */
      public Builder clearStartTime() {
        
        startTime_ = 0L;
        onChanged();
        return this;
      }

      private long endTime_ ;
      /**
       * <pre>
       * 礼包码结束时间
       * </pre>
       *
       * <code>int64 EndTime = 8;</code>
       */
      public long getEndTime() {
        return endTime_;
      }
      /**
       * <pre>
       * 礼包码结束时间
       * </pre>
       *
       * <code>int64 EndTime = 8;</code>
       */
      public Builder setEndTime(long value) {
        
        endTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 礼包码结束时间
       * </pre>
       *
       * <code>int64 EndTime = 8;</code>
       */
      public Builder clearEndTime() {
        
        endTime_ = 0L;
        onChanged();
        return this;
      }

      private long createdTime_ ;
      /**
       * <pre>
       * 记录产生时间
       * </pre>
       *
       * <code>int64 CreatedTime = 9;</code>
       */
      public long getCreatedTime() {
        return createdTime_;
      }
      /**
       * <pre>
       * 记录产生时间
       * </pre>
       *
       * <code>int64 CreatedTime = 9;</code>
       */
      public Builder setCreatedTime(long value) {
        
        createdTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 记录产生时间
       * </pre>
       *
       * <code>int64 CreatedTime = 9;</code>
       */
      public Builder clearCreatedTime() {
        
        createdTime_ = 0L;
        onChanged();
        return this;
      }

      private long sendTime_ ;
      /**
       * <code>int64 SendTime = 10;</code>
       */
      public long getSendTime() {
        return sendTime_;
      }
      /**
       * <code>int64 SendTime = 10;</code>
       */
      public Builder setSendTime(long value) {
        
        sendTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 SendTime = 10;</code>
       */
      public Builder clearSendTime() {
        
        sendTime_ = 0L;
        onChanged();
        return this;
      }

      private int userStatus_ ;
      /**
       * <code>int32 UserStatus = 11;</code>
       */
      public int getUserStatus() {
        return userStatus_;
      }
      /**
       * <code>int32 UserStatus = 11;</code>
       */
      public Builder setUserStatus(int value) {
        
        userStatus_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 UserStatus = 11;</code>
       */
      public Builder clearUserStatus() {
        
        userStatus_ = 0;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:protobuf.Gift)
    }

    // @@protoc_insertion_point(class_scope:protobuf.Gift)
    private static final com.kfzs.duanduan.proto.GiftOuterClass.Gift DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.kfzs.duanduan.proto.GiftOuterClass.Gift();
    }

    public static com.kfzs.duanduan.proto.GiftOuterClass.Gift getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.kfzs.duanduan.proto.GiftOuterClass.Gift getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_Gift_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_Gift_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\ngift.proto\022\010protobuf\"\255\001\n\004Gift\022\n\n\002Id\030\001 " +
      "\001(\003\022\016\n\006UserId\030\003 \001(\003\022\016\n\006GameId\030\004 \001(\003\022\014\n\004C" +
      "ode\030\005 \001(\t\022\014\n\004Type\030\006 \001(\005\022\021\n\tStartTime\030\007 \001" +
      "(\003\022\017\n\007EndTime\030\010 \001(\003\022\023\n\013CreatedTime\030\t \001(\003" +
      "\022\020\n\010SendTime\030\n \001(\003\022\022\n\nUserStatus\030\013 \001(\005B\031" +
      "\n\027com.kfzs.duanduan.protob\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_protobuf_Gift_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_protobuf_Gift_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_Gift_descriptor,
        new java.lang.String[] { "Id", "UserId", "GameId", "Code", "Type", "StartTime", "EndTime", "CreatedTime", "SendTime", "UserStatus", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
