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

package com.kfzs.duanduan.proto;

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

    /**
     * <code>int32 Id = 1;</code>
     */
    int getId();

    /**
     * <code>int32 VoucherType = 2;</code>
     */
    int getVoucherType();

    /**
     * <code>int32 Condition = 3;</code>
     */
    int getCondition();

    /**
     * <code>int32 Amount = 4;</code>
     */
    int getAmount();

    /**
     * <code>string GameName = 5;</code>
     */
    java.lang.String getGameName();
    /**
     * <code>string GameName = 5;</code>
     */
    com.google.protobuf.ByteString
        getGameNameBytes();

    /**
     * <code>int32 Sort = 6;</code>
     */
    int getSort();

    /**
     * <code>int32 EndTime = 7;</code>
     */
    int getEndTime();

    /**
     * <pre>
     *是否剩余
     * </pre>
     *
     * <code>bool IsRemain = 8;</code>
     */
    boolean getIsRemain();

    /**
     * <pre>
     *是否领取
     * </pre>
     *
     * <code>bool ReceiveStatus = 9;</code>
     */
    boolean getReceiveStatus();

    /**
     * <pre>
     *是否使用
     * </pre>
     *
     * <code>bool UsedStatus = 10;</code>
     */
    boolean getUsedStatus();

    /**
     * <pre>
     *领取时间
     * </pre>
     *
     * <code>int32 ReceivedTime = 11;</code>
     */
    int getReceivedTime();

    /**
     * <pre>
     *游戏图标
     * </pre>
     *
     * <code>string GameIcon = 12;</code>
     */
    java.lang.String getGameIcon();
    /**
     * <pre>
     *游戏图标
     * </pre>
     *
     * <code>string GameIcon = 12;</code>
     */
    com.google.protobuf.ByteString
        getGameIconBytes();
  }
  /**
   * Protobuf type {@code protobuf.Voucher}
   */
  public  static final class Voucher extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.Voucher)
      VoucherOrBuilder {
    // Use Voucher.newBuilder() to construct.
    private Voucher(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Voucher() {
      id_ = 0;
      voucherType_ = 0;
      condition_ = 0;
      amount_ = 0;
      gameName_ = "";
      sort_ = 0;
      endTime_ = 0;
      isRemain_ = false;
      receiveStatus_ = false;
      usedStatus_ = false;
      receivedTime_ = 0;
      gameIcon_ = "";
    }

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

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

              condition_ = input.readInt32();
              break;
            }
            case 32: {

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

              gameName_ = s;
              break;
            }
            case 48: {

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

              endTime_ = input.readInt32();
              break;
            }
            case 64: {

              isRemain_ = input.readBool();
              break;
            }
            case 72: {

              receiveStatus_ = input.readBool();
              break;
            }
            case 80: {

              usedStatus_ = input.readBool();
              break;
            }
            case 88: {

              receivedTime_ = input.readInt32();
              break;
            }
            case 98: {
              java.lang.String s = input.readStringRequireUtf8();

              gameIcon_ = s;
              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.VoucherOuterClass.internal_static_protobuf_Voucher_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.VoucherOuterClass.internal_static_protobuf_Voucher_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.class, com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.Builder.class);
    }

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

    public static final int VOUCHERTYPE_FIELD_NUMBER = 2;
    private int voucherType_;
    /**
     * <code>int32 VoucherType = 2;</code>
     */
    public int getVoucherType() {
      return voucherType_;
    }

    public static final int CONDITION_FIELD_NUMBER = 3;
    private int condition_;
    /**
     * <code>int32 Condition = 3;</code>
     */
    public int getCondition() {
      return condition_;
    }

    public static final int AMOUNT_FIELD_NUMBER = 4;
    private int amount_;
    /**
     * <code>int32 Amount = 4;</code>
     */
    public int getAmount() {
      return amount_;
    }

    public static final int GAMENAME_FIELD_NUMBER = 5;
    private volatile java.lang.Object gameName_;
    /**
     * <code>string GameName = 5;</code>
     */
    public java.lang.String getGameName() {
      java.lang.Object ref = gameName_;
      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();
        gameName_ = s;
        return s;
      }
    }
    /**
     * <code>string GameName = 5;</code>
     */
    public com.google.protobuf.ByteString
        getGameNameBytes() {
      java.lang.Object ref = gameName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        gameName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SORT_FIELD_NUMBER = 6;
    private int sort_;
    /**
     * <code>int32 Sort = 6;</code>
     */
    public int getSort() {
      return sort_;
    }

    public static final int ENDTIME_FIELD_NUMBER = 7;
    private int endTime_;
    /**
     * <code>int32 EndTime = 7;</code>
     */
    public int getEndTime() {
      return endTime_;
    }

    public static final int ISREMAIN_FIELD_NUMBER = 8;
    private boolean isRemain_;
    /**
     * <pre>
     *是否剩余
     * </pre>
     *
     * <code>bool IsRemain = 8;</code>
     */
    public boolean getIsRemain() {
      return isRemain_;
    }

    public static final int RECEIVESTATUS_FIELD_NUMBER = 9;
    private boolean receiveStatus_;
    /**
     * <pre>
     *是否领取
     * </pre>
     *
     * <code>bool ReceiveStatus = 9;</code>
     */
    public boolean getReceiveStatus() {
      return receiveStatus_;
    }

    public static final int USEDSTATUS_FIELD_NUMBER = 10;
    private boolean usedStatus_;
    /**
     * <pre>
     *是否使用
     * </pre>
     *
     * <code>bool UsedStatus = 10;</code>
     */
    public boolean getUsedStatus() {
      return usedStatus_;
    }

    public static final int RECEIVEDTIME_FIELD_NUMBER = 11;
    private int receivedTime_;
    /**
     * <pre>
     *领取时间
     * </pre>
     *
     * <code>int32 ReceivedTime = 11;</code>
     */
    public int getReceivedTime() {
      return receivedTime_;
    }

    public static final int GAMEICON_FIELD_NUMBER = 12;
    private volatile java.lang.Object gameIcon_;
    /**
     * <pre>
     *游戏图标
     * </pre>
     *
     * <code>string GameIcon = 12;</code>
     */
    public java.lang.String getGameIcon() {
      java.lang.Object ref = gameIcon_;
      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();
        gameIcon_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *游戏图标
     * </pre>
     *
     * <code>string GameIcon = 12;</code>
     */
    public com.google.protobuf.ByteString
        getGameIconBytes() {
      java.lang.Object ref = gameIcon_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        gameIcon_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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_ != 0) {
        output.writeInt32(1, id_);
      }
      if (voucherType_ != 0) {
        output.writeInt32(2, voucherType_);
      }
      if (condition_ != 0) {
        output.writeInt32(3, condition_);
      }
      if (amount_ != 0) {
        output.writeInt32(4, amount_);
      }
      if (!getGameNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gameName_);
      }
      if (sort_ != 0) {
        output.writeInt32(6, sort_);
      }
      if (endTime_ != 0) {
        output.writeInt32(7, endTime_);
      }
      if (isRemain_ != false) {
        output.writeBool(8, isRemain_);
      }
      if (receiveStatus_ != false) {
        output.writeBool(9, receiveStatus_);
      }
      if (usedStatus_ != false) {
        output.writeBool(10, usedStatus_);
      }
      if (receivedTime_ != 0) {
        output.writeInt32(11, receivedTime_);
      }
      if (!getGameIconBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gameIcon_);
      }
    }

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

      size = 0;
      if (id_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, id_);
      }
      if (voucherType_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, voucherType_);
      }
      if (condition_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, condition_);
      }
      if (amount_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, amount_);
      }
      if (!getGameNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gameName_);
      }
      if (sort_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(6, sort_);
      }
      if (endTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(7, endTime_);
      }
      if (isRemain_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(8, isRemain_);
      }
      if (receiveStatus_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(9, receiveStatus_);
      }
      if (usedStatus_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(10, usedStatus_);
      }
      if (receivedTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(11, receivedTime_);
      }
      if (!getGameIconBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gameIcon_);
      }
      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.VoucherOuterClass.Voucher)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.VoucherOuterClass.Voucher other = (com.kfzs.duanduan.proto.VoucherOuterClass.Voucher) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && (getVoucherType()
          == other.getVoucherType());
      result = result && (getCondition()
          == other.getCondition());
      result = result && (getAmount()
          == other.getAmount());
      result = result && getGameName()
          .equals(other.getGameName());
      result = result && (getSort()
          == other.getSort());
      result = result && (getEndTime()
          == other.getEndTime());
      result = result && (getIsRemain()
          == other.getIsRemain());
      result = result && (getReceiveStatus()
          == other.getReceiveStatus());
      result = result && (getUsedStatus()
          == other.getUsedStatus());
      result = result && (getReceivedTime()
          == other.getReceivedTime());
      result = result && getGameIcon()
          .equals(other.getGameIcon());
      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) + getId();
      hash = (37 * hash) + VOUCHERTYPE_FIELD_NUMBER;
      hash = (53 * hash) + getVoucherType();
      hash = (37 * hash) + CONDITION_FIELD_NUMBER;
      hash = (53 * hash) + getCondition();
      hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
      hash = (53 * hash) + getAmount();
      hash = (37 * hash) + GAMENAME_FIELD_NUMBER;
      hash = (53 * hash) + getGameName().hashCode();
      hash = (37 * hash) + SORT_FIELD_NUMBER;
      hash = (53 * hash) + getSort();
      hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
      hash = (53 * hash) + getEndTime();
      hash = (37 * hash) + ISREMAIN_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsRemain());
      hash = (37 * hash) + RECEIVESTATUS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getReceiveStatus());
      hash = (37 * hash) + USEDSTATUS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getUsedStatus());
      hash = (37 * hash) + RECEIVEDTIME_FIELD_NUMBER;
      hash = (53 * hash) + getReceivedTime();
      hash = (37 * hash) + GAMEICON_FIELD_NUMBER;
      hash = (53 * hash) + getGameIcon().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher 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.VoucherOuterClass.Voucher parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher 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.VoucherOuterClass.Voucher parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher 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.VoucherOuterClass.Voucher parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher 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.VoucherOuterClass.Voucher 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;
    }
    /**
     * Protobuf type {@code protobuf.Voucher}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:protobuf.Voucher)
        com.kfzs.duanduan.proto.VoucherOuterClass.VoucherOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.kfzs.duanduan.proto.VoucherOuterClass.internal_static_protobuf_Voucher_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.VoucherOuterClass.internal_static_protobuf_Voucher_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.class, com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.Builder.class);
      }

      // Construct using com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.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_ = 0;

        voucherType_ = 0;

        condition_ = 0;

        amount_ = 0;

        gameName_ = "";

        sort_ = 0;

        endTime_ = 0;

        isRemain_ = false;

        receiveStatus_ = false;

        usedStatus_ = false;

        receivedTime_ = 0;

        gameIcon_ = "";

        return this;
      }

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

      public com.kfzs.duanduan.proto.VoucherOuterClass.Voucher getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.getDefaultInstance();
      }

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

      public com.kfzs.duanduan.proto.VoucherOuterClass.Voucher buildPartial() {
        com.kfzs.duanduan.proto.VoucherOuterClass.Voucher result = new com.kfzs.duanduan.proto.VoucherOuterClass.Voucher(this);
        result.id_ = id_;
        result.voucherType_ = voucherType_;
        result.condition_ = condition_;
        result.amount_ = amount_;
        result.gameName_ = gameName_;
        result.sort_ = sort_;
        result.endTime_ = endTime_;
        result.isRemain_ = isRemain_;
        result.receiveStatus_ = receiveStatus_;
        result.usedStatus_ = usedStatus_;
        result.receivedTime_ = receivedTime_;
        result.gameIcon_ = gameIcon_;
        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.VoucherOuterClass.Voucher) {
          return mergeFrom((com.kfzs.duanduan.proto.VoucherOuterClass.Voucher)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.VoucherOuterClass.Voucher other) {
        if (other == com.kfzs.duanduan.proto.VoucherOuterClass.Voucher.getDefaultInstance()) return this;
        if (other.getId() != 0) {
          setId(other.getId());
        }
        if (other.getVoucherType() != 0) {
          setVoucherType(other.getVoucherType());
        }
        if (other.getCondition() != 0) {
          setCondition(other.getCondition());
        }
        if (other.getAmount() != 0) {
          setAmount(other.getAmount());
        }
        if (!other.getGameName().isEmpty()) {
          gameName_ = other.gameName_;
          onChanged();
        }
        if (other.getSort() != 0) {
          setSort(other.getSort());
        }
        if (other.getEndTime() != 0) {
          setEndTime(other.getEndTime());
        }
        if (other.getIsRemain() != false) {
          setIsRemain(other.getIsRemain());
        }
        if (other.getReceiveStatus() != false) {
          setReceiveStatus(other.getReceiveStatus());
        }
        if (other.getUsedStatus() != false) {
          setUsedStatus(other.getUsedStatus());
        }
        if (other.getReceivedTime() != 0) {
          setReceivedTime(other.getReceivedTime());
        }
        if (!other.getGameIcon().isEmpty()) {
          gameIcon_ = other.gameIcon_;
          onChanged();
        }
        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.VoucherOuterClass.Voucher parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.VoucherOuterClass.Voucher) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

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

      private int voucherType_ ;
      /**
       * <code>int32 VoucherType = 2;</code>
       */
      public int getVoucherType() {
        return voucherType_;
      }
      /**
       * <code>int32 VoucherType = 2;</code>
       */
      public Builder setVoucherType(int value) {
        
        voucherType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 VoucherType = 2;</code>
       */
      public Builder clearVoucherType() {
        
        voucherType_ = 0;
        onChanged();
        return this;
      }

      private int condition_ ;
      /**
       * <code>int32 Condition = 3;</code>
       */
      public int getCondition() {
        return condition_;
      }
      /**
       * <code>int32 Condition = 3;</code>
       */
      public Builder setCondition(int value) {
        
        condition_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 Condition = 3;</code>
       */
      public Builder clearCondition() {
        
        condition_ = 0;
        onChanged();
        return this;
      }

      private int amount_ ;
      /**
       * <code>int32 Amount = 4;</code>
       */
      public int getAmount() {
        return amount_;
      }
      /**
       * <code>int32 Amount = 4;</code>
       */
      public Builder setAmount(int value) {
        
        amount_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 Amount = 4;</code>
       */
      public Builder clearAmount() {
        
        amount_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object gameName_ = "";
      /**
       * <code>string GameName = 5;</code>
       */
      public java.lang.String getGameName() {
        java.lang.Object ref = gameName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          gameName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string GameName = 5;</code>
       */
      public com.google.protobuf.ByteString
          getGameNameBytes() {
        java.lang.Object ref = gameName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          gameName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string GameName = 5;</code>
       */
      public Builder setGameName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        gameName_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string GameName = 5;</code>
       */
      public Builder clearGameName() {
        
        gameName_ = getDefaultInstance().getGameName();
        onChanged();
        return this;
      }
      /**
       * <code>string GameName = 5;</code>
       */
      public Builder setGameNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        gameName_ = value;
        onChanged();
        return this;
      }

      private int sort_ ;
      /**
       * <code>int32 Sort = 6;</code>
       */
      public int getSort() {
        return sort_;
      }
      /**
       * <code>int32 Sort = 6;</code>
       */
      public Builder setSort(int value) {
        
        sort_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 Sort = 6;</code>
       */
      public Builder clearSort() {
        
        sort_ = 0;
        onChanged();
        return this;
      }

      private int endTime_ ;
      /**
       * <code>int32 EndTime = 7;</code>
       */
      public int getEndTime() {
        return endTime_;
      }
      /**
       * <code>int32 EndTime = 7;</code>
       */
      public Builder setEndTime(int value) {
        
        endTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 EndTime = 7;</code>
       */
      public Builder clearEndTime() {
        
        endTime_ = 0;
        onChanged();
        return this;
      }

      private boolean isRemain_ ;
      /**
       * <pre>
       *是否剩余
       * </pre>
       *
       * <code>bool IsRemain = 8;</code>
       */
      public boolean getIsRemain() {
        return isRemain_;
      }
      /**
       * <pre>
       *是否剩余
       * </pre>
       *
       * <code>bool IsRemain = 8;</code>
       */
      public Builder setIsRemain(boolean value) {
        
        isRemain_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *是否剩余
       * </pre>
       *
       * <code>bool IsRemain = 8;</code>
       */
      public Builder clearIsRemain() {
        
        isRemain_ = false;
        onChanged();
        return this;
      }

      private boolean receiveStatus_ ;
      /**
       * <pre>
       *是否领取
       * </pre>
       *
       * <code>bool ReceiveStatus = 9;</code>
       */
      public boolean getReceiveStatus() {
        return receiveStatus_;
      }
      /**
       * <pre>
       *是否领取
       * </pre>
       *
       * <code>bool ReceiveStatus = 9;</code>
       */
      public Builder setReceiveStatus(boolean value) {
        
        receiveStatus_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *是否领取
       * </pre>
       *
       * <code>bool ReceiveStatus = 9;</code>
       */
      public Builder clearReceiveStatus() {
        
        receiveStatus_ = false;
        onChanged();
        return this;
      }

      private boolean usedStatus_ ;
      /**
       * <pre>
       *是否使用
       * </pre>
       *
       * <code>bool UsedStatus = 10;</code>
       */
      public boolean getUsedStatus() {
        return usedStatus_;
      }
      /**
       * <pre>
       *是否使用
       * </pre>
       *
       * <code>bool UsedStatus = 10;</code>
       */
      public Builder setUsedStatus(boolean value) {
        
        usedStatus_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *是否使用
       * </pre>
       *
       * <code>bool UsedStatus = 10;</code>
       */
      public Builder clearUsedStatus() {
        
        usedStatus_ = false;
        onChanged();
        return this;
      }

      private int receivedTime_ ;
      /**
       * <pre>
       *领取时间
       * </pre>
       *
       * <code>int32 ReceivedTime = 11;</code>
       */
      public int getReceivedTime() {
        return receivedTime_;
      }
      /**
       * <pre>
       *领取时间
       * </pre>
       *
       * <code>int32 ReceivedTime = 11;</code>
       */
      public Builder setReceivedTime(int value) {
        
        receivedTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *领取时间
       * </pre>
       *
       * <code>int32 ReceivedTime = 11;</code>
       */
      public Builder clearReceivedTime() {
        
        receivedTime_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object gameIcon_ = "";
      /**
       * <pre>
       *游戏图标
       * </pre>
       *
       * <code>string GameIcon = 12;</code>
       */
      public java.lang.String getGameIcon() {
        java.lang.Object ref = gameIcon_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          gameIcon_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *游戏图标
       * </pre>
       *
       * <code>string GameIcon = 12;</code>
       */
      public com.google.protobuf.ByteString
          getGameIconBytes() {
        java.lang.Object ref = gameIcon_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          gameIcon_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *游戏图标
       * </pre>
       *
       * <code>string GameIcon = 12;</code>
       */
      public Builder setGameIcon(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        gameIcon_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *游戏图标
       * </pre>
       *
       * <code>string GameIcon = 12;</code>
       */
      public Builder clearGameIcon() {
        
        gameIcon_ = getDefaultInstance().getGameIcon();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *游戏图标
       * </pre>
       *
       * <code>string GameIcon = 12;</code>
       */
      public Builder setGameIconBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        gameIcon_ = value;
        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.Voucher)
    }

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

    public static com.kfzs.duanduan.proto.VoucherOuterClass.Voucher getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.kfzs.duanduan.proto.VoucherOuterClass.Voucher getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_Voucher_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_Voucher_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\rvoucher.proto\022\010protobuf\"\343\001\n\007Voucher\022\n\n" +
      "\002Id\030\001 \001(\005\022\023\n\013VoucherType\030\002 \001(\005\022\021\n\tCondit" +
      "ion\030\003 \001(\005\022\016\n\006Amount\030\004 \001(\005\022\020\n\010GameName\030\005 " +
      "\001(\t\022\014\n\004Sort\030\006 \001(\005\022\017\n\007EndTime\030\007 \001(\005\022\020\n\010Is" +
      "Remain\030\010 \001(\010\022\025\n\rReceiveStatus\030\t \001(\010\022\022\n\nU" +
      "sedStatus\030\n \001(\010\022\024\n\014ReceivedTime\030\013 \001(\005\022\020\n" +
      "\010GameIcon\030\014 \001(\tB\031\n\027com.kfzs.duanduan.pro" +
      "tob\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_Voucher_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_protobuf_Voucher_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_Voucher_descriptor,
        new java.lang.String[] { "Id", "VoucherType", "Condition", "Amount", "GameName", "Sort", "EndTime", "IsRemain", "ReceiveStatus", "UsedStatus", "ReceivedTime", "GameIcon", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
