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

package com.kfzs.duanduan.proto;

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

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

    /**
     * <pre>
     * 名称
     * </pre>
     *
     * <code>string Name = 2;</code>
     */
    java.lang.String getName();
    /**
     * <pre>
     * 名称
     * </pre>
     *
     * <code>string Name = 2;</code>
     */
    com.google.protobuf.ByteString
        getNameBytes();

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

    /**
     * <pre>
     * 预约开始时间
     * </pre>
     *
     * <code>int64 StartTime = 4;</code>
     */
    long getStartTime();

    /**
     * <pre>
     * 预约终止时间
     * </pre>
     *
     * <code>int64 EndTime = 5;</code>
     */
    long getEndTime();

    /**
     * <pre>
     * h5地址
     * </pre>
     *
     * <code>string Url = 6;</code>
     */
    java.lang.String getUrl();
    /**
     * <pre>
     * h5地址
     * </pre>
     *
     * <code>string Url = 6;</code>
     */
    com.google.protobuf.ByteString
        getUrlBytes();

    /**
     * <pre>
     * 是否不显示
     * </pre>
     *
     * <code>int32 IsDeleted = 7;</code>
     */
    int getIsDeleted();

    /**
     * <pre>
     * 可否预下载 1:能 2:不能
     * </pre>
     *
     * <code>int32 IsCanDown = 8;</code>
     */
    int getIsCanDown();

    /**
     * <pre>
     * 自己是否预约
     * </pre>
     *
     * <code>bool Booked = 9;</code>
     */
    boolean getBooked();

    /**
     * <pre>
     * 预约人数
     * </pre>
     *
     * <code>int64 Count = 10;</code>
     */
    long getCount();

    /**
     * <code>.protobuf.Game Game = 11;</code>
     */
    boolean hasGame();
    /**
     * <code>.protobuf.Game Game = 11;</code>
     */
    com.kfzs.duanduan.proto.GameOuterClass.Game getGame();
    /**
     * <code>.protobuf.Game Game = 11;</code>
     */
    com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder();

    /**
     * <code>string giftContent = 12;</code>
     */
    java.lang.String getGiftContent();
    /**
     * <code>string giftContent = 12;</code>
     */
    com.google.protobuf.ByteString
        getGiftContentBytes();
  }
  /**
   * <pre>
   * 预约表
   * </pre>
   *
   * Protobuf type {@code protobuf.GameBook}
   */
  public  static final class GameBook extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.GameBook)
      GameBookOrBuilder {
    // Use GameBook.newBuilder() to construct.
    private GameBook(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private GameBook() {
      id_ = 0;
      name_ = "";
      gameId_ = 0L;
      startTime_ = 0L;
      endTime_ = 0L;
      url_ = "";
      isDeleted_ = 0;
      isCanDown_ = 0;
      booked_ = false;
      count_ = 0L;
      giftContent_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private GameBook(
        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 18: {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
            case 24: {

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

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

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

              url_ = s;
              break;
            }
            case 56: {

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

              isCanDown_ = input.readInt32();
              break;
            }
            case 72: {

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

              count_ = input.readInt64();
              break;
            }
            case 90: {
              com.kfzs.duanduan.proto.GameOuterClass.Game.Builder subBuilder = null;
              if (game_ != null) {
                subBuilder = game_.toBuilder();
              }
              game_ = input.readMessage(com.kfzs.duanduan.proto.GameOuterClass.Game.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(game_);
                game_ = subBuilder.buildPartial();
              }

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

              giftContent_ = 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.GameBookOuterClass.internal_static_protobuf_GameBook_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.GameBookOuterClass.internal_static_protobuf_GameBook_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.class, com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.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 NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     * <pre>
     * 名称
     * </pre>
     *
     * <code>string Name = 2;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 名称
     * </pre>
     *
     * <code>string Name = 2;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

    public static final int STARTTIME_FIELD_NUMBER = 4;
    private long startTime_;
    /**
     * <pre>
     * 预约开始时间
     * </pre>
     *
     * <code>int64 StartTime = 4;</code>
     */
    public long getStartTime() {
      return startTime_;
    }

    public static final int ENDTIME_FIELD_NUMBER = 5;
    private long endTime_;
    /**
     * <pre>
     * 预约终止时间
     * </pre>
     *
     * <code>int64 EndTime = 5;</code>
     */
    public long getEndTime() {
      return endTime_;
    }

    public static final int URL_FIELD_NUMBER = 6;
    private volatile java.lang.Object url_;
    /**
     * <pre>
     * h5地址
     * </pre>
     *
     * <code>string Url = 6;</code>
     */
    public java.lang.String getUrl() {
      java.lang.Object ref = url_;
      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();
        url_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * h5地址
     * </pre>
     *
     * <code>string Url = 6;</code>
     */
    public com.google.protobuf.ByteString
        getUrlBytes() {
      java.lang.Object ref = url_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        url_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ISDELETED_FIELD_NUMBER = 7;
    private int isDeleted_;
    /**
     * <pre>
     * 是否不显示
     * </pre>
     *
     * <code>int32 IsDeleted = 7;</code>
     */
    public int getIsDeleted() {
      return isDeleted_;
    }

    public static final int ISCANDOWN_FIELD_NUMBER = 8;
    private int isCanDown_;
    /**
     * <pre>
     * 可否预下载 1:能 2:不能
     * </pre>
     *
     * <code>int32 IsCanDown = 8;</code>
     */
    public int getIsCanDown() {
      return isCanDown_;
    }

    public static final int BOOKED_FIELD_NUMBER = 9;
    private boolean booked_;
    /**
     * <pre>
     * 自己是否预约
     * </pre>
     *
     * <code>bool Booked = 9;</code>
     */
    public boolean getBooked() {
      return booked_;
    }

    public static final int COUNT_FIELD_NUMBER = 10;
    private long count_;
    /**
     * <pre>
     * 预约人数
     * </pre>
     *
     * <code>int64 Count = 10;</code>
     */
    public long getCount() {
      return count_;
    }

    public static final int GAME_FIELD_NUMBER = 11;
    private com.kfzs.duanduan.proto.GameOuterClass.Game game_;
    /**
     * <code>.protobuf.Game Game = 11;</code>
     */
    public boolean hasGame() {
      return game_ != null;
    }
    /**
     * <code>.protobuf.Game Game = 11;</code>
     */
    public com.kfzs.duanduan.proto.GameOuterClass.Game getGame() {
      return game_ == null ? com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
    }
    /**
     * <code>.protobuf.Game Game = 11;</code>
     */
    public com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder() {
      return getGame();
    }

    public static final int GIFTCONTENT_FIELD_NUMBER = 12;
    private volatile java.lang.Object giftContent_;
    /**
     * <code>string giftContent = 12;</code>
     */
    public java.lang.String getGiftContent() {
      java.lang.Object ref = giftContent_;
      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();
        giftContent_ = s;
        return s;
      }
    }
    /**
     * <code>string giftContent = 12;</code>
     */
    public com.google.protobuf.ByteString
        getGiftContentBytes() {
      java.lang.Object ref = giftContent_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        giftContent_ = 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 (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (gameId_ != 0L) {
        output.writeInt64(3, gameId_);
      }
      if (startTime_ != 0L) {
        output.writeInt64(4, startTime_);
      }
      if (endTime_ != 0L) {
        output.writeInt64(5, endTime_);
      }
      if (!getUrlBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, url_);
      }
      if (isDeleted_ != 0) {
        output.writeInt32(7, isDeleted_);
      }
      if (isCanDown_ != 0) {
        output.writeInt32(8, isCanDown_);
      }
      if (booked_ != false) {
        output.writeBool(9, booked_);
      }
      if (count_ != 0L) {
        output.writeInt64(10, count_);
      }
      if (game_ != null) {
        output.writeMessage(11, getGame());
      }
      if (!getGiftContentBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 12, giftContent_);
      }
    }

    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 (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (gameId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, gameId_);
      }
      if (startTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, startTime_);
      }
      if (endTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, endTime_);
      }
      if (!getUrlBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, url_);
      }
      if (isDeleted_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(7, isDeleted_);
      }
      if (isCanDown_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(8, isCanDown_);
      }
      if (booked_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(9, booked_);
      }
      if (count_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(10, count_);
      }
      if (game_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(11, getGame());
      }
      if (!getGiftContentBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, giftContent_);
      }
      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.GameBookOuterClass.GameBook)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.GameBookOuterClass.GameBook other = (com.kfzs.duanduan.proto.GameBookOuterClass.GameBook) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && getName()
          .equals(other.getName());
      result = result && (getGameId()
          == other.getGameId());
      result = result && (getStartTime()
          == other.getStartTime());
      result = result && (getEndTime()
          == other.getEndTime());
      result = result && getUrl()
          .equals(other.getUrl());
      result = result && (getIsDeleted()
          == other.getIsDeleted());
      result = result && (getIsCanDown()
          == other.getIsCanDown());
      result = result && (getBooked()
          == other.getBooked());
      result = result && (getCount()
          == other.getCount());
      result = result && (hasGame() == other.hasGame());
      if (hasGame()) {
        result = result && getGame()
            .equals(other.getGame());
      }
      result = result && getGiftContent()
          .equals(other.getGiftContent());
      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) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + GAMEID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getGameId());
      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) + URL_FIELD_NUMBER;
      hash = (53 * hash) + getUrl().hashCode();
      hash = (37 * hash) + ISDELETED_FIELD_NUMBER;
      hash = (53 * hash) + getIsDeleted();
      hash = (37 * hash) + ISCANDOWN_FIELD_NUMBER;
      hash = (53 * hash) + getIsCanDown();
      hash = (37 * hash) + BOOKED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getBooked());
      hash = (37 * hash) + COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCount());
      if (hasGame()) {
        hash = (37 * hash) + GAME_FIELD_NUMBER;
        hash = (53 * hash) + getGame().hashCode();
      }
      hash = (37 * hash) + GIFTCONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getGiftContent().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.GameBookOuterClass.internal_static_protobuf_GameBook_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.class, com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder.class);
      }

      // Construct using com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.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;

        name_ = "";

        gameId_ = 0L;

        startTime_ = 0L;

        endTime_ = 0L;

        url_ = "";

        isDeleted_ = 0;

        isCanDown_ = 0;

        booked_ = false;

        count_ = 0L;

        if (gameBuilder_ == null) {
          game_ = null;
        } else {
          game_ = null;
          gameBuilder_ = null;
        }
        giftContent_ = "";

        return this;
      }

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

      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBook getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.getDefaultInstance();
      }

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

      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBook buildPartial() {
        com.kfzs.duanduan.proto.GameBookOuterClass.GameBook result = new com.kfzs.duanduan.proto.GameBookOuterClass.GameBook(this);
        result.id_ = id_;
        result.name_ = name_;
        result.gameId_ = gameId_;
        result.startTime_ = startTime_;
        result.endTime_ = endTime_;
        result.url_ = url_;
        result.isDeleted_ = isDeleted_;
        result.isCanDown_ = isCanDown_;
        result.booked_ = booked_;
        result.count_ = count_;
        if (gameBuilder_ == null) {
          result.game_ = game_;
        } else {
          result.game_ = gameBuilder_.build();
        }
        result.giftContent_ = giftContent_;
        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.GameBookOuterClass.GameBook) {
          return mergeFrom((com.kfzs.duanduan.proto.GameBookOuterClass.GameBook)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.GameBookOuterClass.GameBook other) {
        if (other == com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.getDefaultInstance()) return this;
        if (other.getId() != 0) {
          setId(other.getId());
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (other.getGameId() != 0L) {
          setGameId(other.getGameId());
        }
        if (other.getStartTime() != 0L) {
          setStartTime(other.getStartTime());
        }
        if (other.getEndTime() != 0L) {
          setEndTime(other.getEndTime());
        }
        if (!other.getUrl().isEmpty()) {
          url_ = other.url_;
          onChanged();
        }
        if (other.getIsDeleted() != 0) {
          setIsDeleted(other.getIsDeleted());
        }
        if (other.getIsCanDown() != 0) {
          setIsCanDown(other.getIsCanDown());
        }
        if (other.getBooked() != false) {
          setBooked(other.getBooked());
        }
        if (other.getCount() != 0L) {
          setCount(other.getCount());
        }
        if (other.hasGame()) {
          mergeGame(other.getGame());
        }
        if (!other.getGiftContent().isEmpty()) {
          giftContent_ = other.giftContent_;
          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.GameBookOuterClass.GameBook parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.GameBookOuterClass.GameBook) 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 java.lang.Object name_ = "";
      /**
       * <pre>
       * 名称
       * </pre>
       *
       * <code>string Name = 2;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * 名称
       * </pre>
       *
       * <code>string Name = 2;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 名称
       * </pre>
       *
       * <code>string Name = 2;</code>
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 名称
       * </pre>
       *
       * <code>string Name = 2;</code>
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 名称
       * </pre>
       *
       * <code>string Name = 2;</code>
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

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

      private long startTime_ ;
      /**
       * <pre>
       * 预约开始时间
       * </pre>
       *
       * <code>int64 StartTime = 4;</code>
       */
      public long getStartTime() {
        return startTime_;
      }
      /**
       * <pre>
       * 预约开始时间
       * </pre>
       *
       * <code>int64 StartTime = 4;</code>
       */
      public Builder setStartTime(long value) {
        
        startTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 预约开始时间
       * </pre>
       *
       * <code>int64 StartTime = 4;</code>
       */
      public Builder clearStartTime() {
        
        startTime_ = 0L;
        onChanged();
        return this;
      }

      private long endTime_ ;
      /**
       * <pre>
       * 预约终止时间
       * </pre>
       *
       * <code>int64 EndTime = 5;</code>
       */
      public long getEndTime() {
        return endTime_;
      }
      /**
       * <pre>
       * 预约终止时间
       * </pre>
       *
       * <code>int64 EndTime = 5;</code>
       */
      public Builder setEndTime(long value) {
        
        endTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 预约终止时间
       * </pre>
       *
       * <code>int64 EndTime = 5;</code>
       */
      public Builder clearEndTime() {
        
        endTime_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object url_ = "";
      /**
       * <pre>
       * h5地址
       * </pre>
       *
       * <code>string Url = 6;</code>
       */
      public java.lang.String getUrl() {
        java.lang.Object ref = url_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          url_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * h5地址
       * </pre>
       *
       * <code>string Url = 6;</code>
       */
      public com.google.protobuf.ByteString
          getUrlBytes() {
        java.lang.Object ref = url_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          url_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * h5地址
       * </pre>
       *
       * <code>string Url = 6;</code>
       */
      public Builder setUrl(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        url_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * h5地址
       * </pre>
       *
       * <code>string Url = 6;</code>
       */
      public Builder clearUrl() {
        
        url_ = getDefaultInstance().getUrl();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * h5地址
       * </pre>
       *
       * <code>string Url = 6;</code>
       */
      public Builder setUrlBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        url_ = value;
        onChanged();
        return this;
      }

      private int isDeleted_ ;
      /**
       * <pre>
       * 是否不显示
       * </pre>
       *
       * <code>int32 IsDeleted = 7;</code>
       */
      public int getIsDeleted() {
        return isDeleted_;
      }
      /**
       * <pre>
       * 是否不显示
       * </pre>
       *
       * <code>int32 IsDeleted = 7;</code>
       */
      public Builder setIsDeleted(int value) {
        
        isDeleted_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 是否不显示
       * </pre>
       *
       * <code>int32 IsDeleted = 7;</code>
       */
      public Builder clearIsDeleted() {
        
        isDeleted_ = 0;
        onChanged();
        return this;
      }

      private int isCanDown_ ;
      /**
       * <pre>
       * 可否预下载 1:能 2:不能
       * </pre>
       *
       * <code>int32 IsCanDown = 8;</code>
       */
      public int getIsCanDown() {
        return isCanDown_;
      }
      /**
       * <pre>
       * 可否预下载 1:能 2:不能
       * </pre>
       *
       * <code>int32 IsCanDown = 8;</code>
       */
      public Builder setIsCanDown(int value) {
        
        isCanDown_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 可否预下载 1:能 2:不能
       * </pre>
       *
       * <code>int32 IsCanDown = 8;</code>
       */
      public Builder clearIsCanDown() {
        
        isCanDown_ = 0;
        onChanged();
        return this;
      }

      private boolean booked_ ;
      /**
       * <pre>
       * 自己是否预约
       * </pre>
       *
       * <code>bool Booked = 9;</code>
       */
      public boolean getBooked() {
        return booked_;
      }
      /**
       * <pre>
       * 自己是否预约
       * </pre>
       *
       * <code>bool Booked = 9;</code>
       */
      public Builder setBooked(boolean value) {
        
        booked_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 自己是否预约
       * </pre>
       *
       * <code>bool Booked = 9;</code>
       */
      public Builder clearBooked() {
        
        booked_ = false;
        onChanged();
        return this;
      }

      private long count_ ;
      /**
       * <pre>
       * 预约人数
       * </pre>
       *
       * <code>int64 Count = 10;</code>
       */
      public long getCount() {
        return count_;
      }
      /**
       * <pre>
       * 预约人数
       * </pre>
       *
       * <code>int64 Count = 10;</code>
       */
      public Builder setCount(long value) {
        
        count_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 预约人数
       * </pre>
       *
       * <code>int64 Count = 10;</code>
       */
      public Builder clearCount() {
        
        count_ = 0L;
        onChanged();
        return this;
      }

      private com.kfzs.duanduan.proto.GameOuterClass.Game game_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder> gameBuilder_;
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public boolean hasGame() {
        return gameBuilder_ != null || game_ != null;
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.Game getGame() {
        if (gameBuilder_ == null) {
          return game_ == null ? com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
        } else {
          return gameBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public Builder setGame(com.kfzs.duanduan.proto.GameOuterClass.Game value) {
        if (gameBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          game_ = value;
          onChanged();
        } else {
          gameBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public Builder setGame(
          com.kfzs.duanduan.proto.GameOuterClass.Game.Builder builderForValue) {
        if (gameBuilder_ == null) {
          game_ = builderForValue.build();
          onChanged();
        } else {
          gameBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public Builder mergeGame(com.kfzs.duanduan.proto.GameOuterClass.Game value) {
        if (gameBuilder_ == null) {
          if (game_ != null) {
            game_ =
              com.kfzs.duanduan.proto.GameOuterClass.Game.newBuilder(game_).mergeFrom(value).buildPartial();
          } else {
            game_ = value;
          }
          onChanged();
        } else {
          gameBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public Builder clearGame() {
        if (gameBuilder_ == null) {
          game_ = null;
          onChanged();
        } else {
          game_ = null;
          gameBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.Game.Builder getGameBuilder() {
        
        onChanged();
        return getGameFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder() {
        if (gameBuilder_ != null) {
          return gameBuilder_.getMessageOrBuilder();
        } else {
          return game_ == null ?
              com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
        }
      }
      /**
       * <code>.protobuf.Game Game = 11;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder> 
          getGameFieldBuilder() {
        if (gameBuilder_ == null) {
          gameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder>(
                  getGame(),
                  getParentForChildren(),
                  isClean());
          game_ = null;
        }
        return gameBuilder_;
      }

      private java.lang.Object giftContent_ = "";
      /**
       * <code>string giftContent = 12;</code>
       */
      public java.lang.String getGiftContent() {
        java.lang.Object ref = giftContent_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          giftContent_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string giftContent = 12;</code>
       */
      public com.google.protobuf.ByteString
          getGiftContentBytes() {
        java.lang.Object ref = giftContent_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          giftContent_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string giftContent = 12;</code>
       */
      public Builder setGiftContent(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        giftContent_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string giftContent = 12;</code>
       */
      public Builder clearGiftContent() {
        
        giftContent_ = getDefaultInstance().getGiftContent();
        onChanged();
        return this;
      }
      /**
       * <code>string giftContent = 12;</code>
       */
      public Builder setGiftContentBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        giftContent_ = 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.GameBook)
    }

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

    public static com.kfzs.duanduan.proto.GameBookOuterClass.GameBook getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.kfzs.duanduan.proto.GameBookOuterClass.GameBook getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GameBookedOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protobuf.GameBooked)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * <code>int64 UserId = 2;</code>
     */
    long getUserId();

    /**
     * <code>int64 GameBookId = 3;</code>
     */
    long getGameBookId();

    /**
     * <code>int64 GameId = 11;</code>
     */
    long getGameId();

    /**
     * <code>int64 GiftId = 14;</code>
     */
    long getGiftId();

    /**
     * <code>string Phone = 4;</code>
     */
    java.lang.String getPhone();
    /**
     * <code>string Phone = 4;</code>
     */
    com.google.protobuf.ByteString
        getPhoneBytes();

    /**
     * <code>string Qq = 5;</code>
     */
    java.lang.String getQq();
    /**
     * <code>string Qq = 5;</code>
     */
    com.google.protobuf.ByteString
        getQqBytes();

    /**
     * <code>string WeChat = 6;</code>
     */
    java.lang.String getWeChat();
    /**
     * <code>string WeChat = 6;</code>
     */
    com.google.protobuf.ByteString
        getWeChatBytes();

    /**
     * <code>string Code = 7;</code>
     */
    java.lang.String getCode();
    /**
     * <code>string Code = 7;</code>
     */
    com.google.protobuf.ByteString
        getCodeBytes();

    /**
     * <code>string Extend = 8;</code>
     */
    java.lang.String getExtend();
    /**
     * <code>string Extend = 8;</code>
     */
    com.google.protobuf.ByteString
        getExtendBytes();

    /**
     * <code>int32 From = 16;</code>
     */
    int getFrom();

    /**
     * <code>int64 UpdatedTime = 9;</code>
     */
    long getUpdatedTime();

    /**
     * <code>int64 CreatedTime = 10;</code>
     */
    long getCreatedTime();

    /**
     * <code>.protobuf.Game Game = 12;</code>
     */
    boolean hasGame();
    /**
     * <code>.protobuf.Game Game = 12;</code>
     */
    com.kfzs.duanduan.proto.GameOuterClass.Game getGame();
    /**
     * <code>.protobuf.Game Game = 12;</code>
     */
    com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder();

    /**
     * <code>.protobuf.GameBook GameBook = 13;</code>
     */
    boolean hasGameBook();
    /**
     * <code>.protobuf.GameBook GameBook = 13;</code>
     */
    com.kfzs.duanduan.proto.GameBookOuterClass.GameBook getGameBook();
    /**
     * <code>.protobuf.GameBook GameBook = 13;</code>
     */
    com.kfzs.duanduan.proto.GameBookOuterClass.GameBookOrBuilder getGameBookOrBuilder();

    /**
     * <code>.protobuf.Gift Gift = 15;</code>
     */
    boolean hasGift();
    /**
     * <code>.protobuf.Gift Gift = 15;</code>
     */
    com.kfzs.duanduan.proto.GiftOuterClass.Gift getGift();
    /**
     * <code>.protobuf.Gift Gift = 15;</code>
     */
    com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder getGiftOrBuilder();
  }
  /**
   * Protobuf type {@code protobuf.GameBooked}
   */
  public  static final class GameBooked extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.GameBooked)
      GameBookedOrBuilder {
    // Use GameBooked.newBuilder() to construct.
    private GameBooked(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private GameBooked() {
      id_ = 0;
      userId_ = 0L;
      gameBookId_ = 0L;
      gameId_ = 0L;
      giftId_ = 0L;
      phone_ = "";
      qq_ = "";
      weChat_ = "";
      code_ = "";
      extend_ = "";
      from_ = 0;
      updatedTime_ = 0L;
      createdTime_ = 0L;
    }

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

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

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

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

              qq_ = s;
              break;
            }
            case 50: {
              java.lang.String s = input.readStringRequireUtf8();

              weChat_ = s;
              break;
            }
            case 58: {
              java.lang.String s = input.readStringRequireUtf8();

              code_ = s;
              break;
            }
            case 66: {
              java.lang.String s = input.readStringRequireUtf8();

              extend_ = s;
              break;
            }
            case 72: {

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

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

              gameId_ = input.readInt64();
              break;
            }
            case 98: {
              com.kfzs.duanduan.proto.GameOuterClass.Game.Builder subBuilder = null;
              if (game_ != null) {
                subBuilder = game_.toBuilder();
              }
              game_ = input.readMessage(com.kfzs.duanduan.proto.GameOuterClass.Game.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(game_);
                game_ = subBuilder.buildPartial();
              }

              break;
            }
            case 106: {
              com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder subBuilder = null;
              if (gameBook_ != null) {
                subBuilder = gameBook_.toBuilder();
              }
              gameBook_ = input.readMessage(com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(gameBook_);
                gameBook_ = subBuilder.buildPartial();
              }

              break;
            }
            case 112: {

              giftId_ = input.readInt64();
              break;
            }
            case 122: {
              com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder subBuilder = null;
              if (gift_ != null) {
                subBuilder = gift_.toBuilder();
              }
              gift_ = input.readMessage(com.kfzs.duanduan.proto.GiftOuterClass.Gift.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(gift_);
                gift_ = subBuilder.buildPartial();
              }

              break;
            }
            case 128: {

              from_ = 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.GameBookOuterClass.internal_static_protobuf_GameBooked_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.GameBookOuterClass.internal_static_protobuf_GameBooked_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.class, com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.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 USERID_FIELD_NUMBER = 2;
    private long userId_;
    /**
     * <code>int64 UserId = 2;</code>
     */
    public long getUserId() {
      return userId_;
    }

    public static final int GAMEBOOKID_FIELD_NUMBER = 3;
    private long gameBookId_;
    /**
     * <code>int64 GameBookId = 3;</code>
     */
    public long getGameBookId() {
      return gameBookId_;
    }

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

    public static final int GIFTID_FIELD_NUMBER = 14;
    private long giftId_;
    /**
     * <code>int64 GiftId = 14;</code>
     */
    public long getGiftId() {
      return giftId_;
    }

    public static final int PHONE_FIELD_NUMBER = 4;
    private volatile java.lang.Object phone_;
    /**
     * <code>string Phone = 4;</code>
     */
    public java.lang.String getPhone() {
      java.lang.Object ref = phone_;
      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();
        phone_ = s;
        return s;
      }
    }
    /**
     * <code>string Phone = 4;</code>
     */
    public com.google.protobuf.ByteString
        getPhoneBytes() {
      java.lang.Object ref = phone_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        phone_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

    public static final int WECHAT_FIELD_NUMBER = 6;
    private volatile java.lang.Object weChat_;
    /**
     * <code>string WeChat = 6;</code>
     */
    public java.lang.String getWeChat() {
      java.lang.Object ref = weChat_;
      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();
        weChat_ = s;
        return s;
      }
    }
    /**
     * <code>string WeChat = 6;</code>
     */
    public com.google.protobuf.ByteString
        getWeChatBytes() {
      java.lang.Object ref = weChat_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        weChat_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CODE_FIELD_NUMBER = 7;
    private volatile java.lang.Object code_;
    /**
     * <code>string Code = 7;</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;
      }
    }
    /**
     * <code>string Code = 7;</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 EXTEND_FIELD_NUMBER = 8;
    private volatile java.lang.Object extend_;
    /**
     * <code>string Extend = 8;</code>
     */
    public java.lang.String getExtend() {
      java.lang.Object ref = extend_;
      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();
        extend_ = s;
        return s;
      }
    }
    /**
     * <code>string Extend = 8;</code>
     */
    public com.google.protobuf.ByteString
        getExtendBytes() {
      java.lang.Object ref = extend_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        extend_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FROM_FIELD_NUMBER = 16;
    private int from_;
    /**
     * <code>int32 From = 16;</code>
     */
    public int getFrom() {
      return from_;
    }

    public static final int UPDATEDTIME_FIELD_NUMBER = 9;
    private long updatedTime_;
    /**
     * <code>int64 UpdatedTime = 9;</code>
     */
    public long getUpdatedTime() {
      return updatedTime_;
    }

    public static final int CREATEDTIME_FIELD_NUMBER = 10;
    private long createdTime_;
    /**
     * <code>int64 CreatedTime = 10;</code>
     */
    public long getCreatedTime() {
      return createdTime_;
    }

    public static final int GAME_FIELD_NUMBER = 12;
    private com.kfzs.duanduan.proto.GameOuterClass.Game game_;
    /**
     * <code>.protobuf.Game Game = 12;</code>
     */
    public boolean hasGame() {
      return game_ != null;
    }
    /**
     * <code>.protobuf.Game Game = 12;</code>
     */
    public com.kfzs.duanduan.proto.GameOuterClass.Game getGame() {
      return game_ == null ? com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
    }
    /**
     * <code>.protobuf.Game Game = 12;</code>
     */
    public com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder() {
      return getGame();
    }

    public static final int GAMEBOOK_FIELD_NUMBER = 13;
    private com.kfzs.duanduan.proto.GameBookOuterClass.GameBook gameBook_;
    /**
     * <code>.protobuf.GameBook GameBook = 13;</code>
     */
    public boolean hasGameBook() {
      return gameBook_ != null;
    }
    /**
     * <code>.protobuf.GameBook GameBook = 13;</code>
     */
    public com.kfzs.duanduan.proto.GameBookOuterClass.GameBook getGameBook() {
      return gameBook_ == null ? com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.getDefaultInstance() : gameBook_;
    }
    /**
     * <code>.protobuf.GameBook GameBook = 13;</code>
     */
    public com.kfzs.duanduan.proto.GameBookOuterClass.GameBookOrBuilder getGameBookOrBuilder() {
      return getGameBook();
    }

    public static final int GIFT_FIELD_NUMBER = 15;
    private com.kfzs.duanduan.proto.GiftOuterClass.Gift gift_;
    /**
     * <code>.protobuf.Gift Gift = 15;</code>
     */
    public boolean hasGift() {
      return gift_ != null;
    }
    /**
     * <code>.protobuf.Gift Gift = 15;</code>
     */
    public com.kfzs.duanduan.proto.GiftOuterClass.Gift getGift() {
      return gift_ == null ? com.kfzs.duanduan.proto.GiftOuterClass.Gift.getDefaultInstance() : gift_;
    }
    /**
     * <code>.protobuf.Gift Gift = 15;</code>
     */
    public com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder getGiftOrBuilder() {
      return getGift();
    }

    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 (userId_ != 0L) {
        output.writeInt64(2, userId_);
      }
      if (gameBookId_ != 0L) {
        output.writeInt64(3, gameBookId_);
      }
      if (!getPhoneBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phone_);
      }
      if (!getQqBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, qq_);
      }
      if (!getWeChatBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, weChat_);
      }
      if (!getCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, code_);
      }
      if (!getExtendBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 8, extend_);
      }
      if (updatedTime_ != 0L) {
        output.writeInt64(9, updatedTime_);
      }
      if (createdTime_ != 0L) {
        output.writeInt64(10, createdTime_);
      }
      if (gameId_ != 0L) {
        output.writeInt64(11, gameId_);
      }
      if (game_ != null) {
        output.writeMessage(12, getGame());
      }
      if (gameBook_ != null) {
        output.writeMessage(13, getGameBook());
      }
      if (giftId_ != 0L) {
        output.writeInt64(14, giftId_);
      }
      if (gift_ != null) {
        output.writeMessage(15, getGift());
      }
      if (from_ != 0) {
        output.writeInt32(16, from_);
      }
    }

    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 (userId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, userId_);
      }
      if (gameBookId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, gameBookId_);
      }
      if (!getPhoneBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phone_);
      }
      if (!getQqBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, qq_);
      }
      if (!getWeChatBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, weChat_);
      }
      if (!getCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, code_);
      }
      if (!getExtendBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, extend_);
      }
      if (updatedTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(9, updatedTime_);
      }
      if (createdTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(10, createdTime_);
      }
      if (gameId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(11, gameId_);
      }
      if (game_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(12, getGame());
      }
      if (gameBook_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(13, getGameBook());
      }
      if (giftId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(14, giftId_);
      }
      if (gift_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(15, getGift());
      }
      if (from_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(16, from_);
      }
      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.GameBookOuterClass.GameBooked)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked other = (com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && (getUserId()
          == other.getUserId());
      result = result && (getGameBookId()
          == other.getGameBookId());
      result = result && (getGameId()
          == other.getGameId());
      result = result && (getGiftId()
          == other.getGiftId());
      result = result && getPhone()
          .equals(other.getPhone());
      result = result && getQq()
          .equals(other.getQq());
      result = result && getWeChat()
          .equals(other.getWeChat());
      result = result && getCode()
          .equals(other.getCode());
      result = result && getExtend()
          .equals(other.getExtend());
      result = result && (getFrom()
          == other.getFrom());
      result = result && (getUpdatedTime()
          == other.getUpdatedTime());
      result = result && (getCreatedTime()
          == other.getCreatedTime());
      result = result && (hasGame() == other.hasGame());
      if (hasGame()) {
        result = result && getGame()
            .equals(other.getGame());
      }
      result = result && (hasGameBook() == other.hasGameBook());
      if (hasGameBook()) {
        result = result && getGameBook()
            .equals(other.getGameBook());
      }
      result = result && (hasGift() == other.hasGift());
      if (hasGift()) {
        result = result && getGift()
            .equals(other.getGift());
      }
      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) + USERID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getUserId());
      hash = (37 * hash) + GAMEBOOKID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getGameBookId());
      hash = (37 * hash) + GAMEID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getGameId());
      hash = (37 * hash) + GIFTID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getGiftId());
      hash = (37 * hash) + PHONE_FIELD_NUMBER;
      hash = (53 * hash) + getPhone().hashCode();
      hash = (37 * hash) + QQ_FIELD_NUMBER;
      hash = (53 * hash) + getQq().hashCode();
      hash = (37 * hash) + WECHAT_FIELD_NUMBER;
      hash = (53 * hash) + getWeChat().hashCode();
      hash = (37 * hash) + CODE_FIELD_NUMBER;
      hash = (53 * hash) + getCode().hashCode();
      hash = (37 * hash) + EXTEND_FIELD_NUMBER;
      hash = (53 * hash) + getExtend().hashCode();
      hash = (37 * hash) + FROM_FIELD_NUMBER;
      hash = (53 * hash) + getFrom();
      hash = (37 * hash) + UPDATEDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getUpdatedTime());
      hash = (37 * hash) + CREATEDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCreatedTime());
      if (hasGame()) {
        hash = (37 * hash) + GAME_FIELD_NUMBER;
        hash = (53 * hash) + getGame().hashCode();
      }
      if (hasGameBook()) {
        hash = (37 * hash) + GAMEBOOK_FIELD_NUMBER;
        hash = (53 * hash) + getGameBook().hashCode();
      }
      if (hasGift()) {
        hash = (37 * hash) + GIFT_FIELD_NUMBER;
        hash = (53 * hash) + getGift().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.GameBookOuterClass.internal_static_protobuf_GameBooked_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.class, com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.Builder.class);
      }

      // Construct using com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.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;

        userId_ = 0L;

        gameBookId_ = 0L;

        gameId_ = 0L;

        giftId_ = 0L;

        phone_ = "";

        qq_ = "";

        weChat_ = "";

        code_ = "";

        extend_ = "";

        from_ = 0;

        updatedTime_ = 0L;

        createdTime_ = 0L;

        if (gameBuilder_ == null) {
          game_ = null;
        } else {
          game_ = null;
          gameBuilder_ = null;
        }
        if (gameBookBuilder_ == null) {
          gameBook_ = null;
        } else {
          gameBook_ = null;
          gameBookBuilder_ = null;
        }
        if (giftBuilder_ == null) {
          gift_ = null;
        } else {
          gift_ = null;
          giftBuilder_ = null;
        }
        return this;
      }

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

      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.getDefaultInstance();
      }

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

      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked buildPartial() {
        com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked result = new com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked(this);
        result.id_ = id_;
        result.userId_ = userId_;
        result.gameBookId_ = gameBookId_;
        result.gameId_ = gameId_;
        result.giftId_ = giftId_;
        result.phone_ = phone_;
        result.qq_ = qq_;
        result.weChat_ = weChat_;
        result.code_ = code_;
        result.extend_ = extend_;
        result.from_ = from_;
        result.updatedTime_ = updatedTime_;
        result.createdTime_ = createdTime_;
        if (gameBuilder_ == null) {
          result.game_ = game_;
        } else {
          result.game_ = gameBuilder_.build();
        }
        if (gameBookBuilder_ == null) {
          result.gameBook_ = gameBook_;
        } else {
          result.gameBook_ = gameBookBuilder_.build();
        }
        if (giftBuilder_ == null) {
          result.gift_ = gift_;
        } else {
          result.gift_ = giftBuilder_.build();
        }
        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.GameBookOuterClass.GameBooked) {
          return mergeFrom((com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked other) {
        if (other == com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked.getDefaultInstance()) return this;
        if (other.getId() != 0) {
          setId(other.getId());
        }
        if (other.getUserId() != 0L) {
          setUserId(other.getUserId());
        }
        if (other.getGameBookId() != 0L) {
          setGameBookId(other.getGameBookId());
        }
        if (other.getGameId() != 0L) {
          setGameId(other.getGameId());
        }
        if (other.getGiftId() != 0L) {
          setGiftId(other.getGiftId());
        }
        if (!other.getPhone().isEmpty()) {
          phone_ = other.phone_;
          onChanged();
        }
        if (!other.getQq().isEmpty()) {
          qq_ = other.qq_;
          onChanged();
        }
        if (!other.getWeChat().isEmpty()) {
          weChat_ = other.weChat_;
          onChanged();
        }
        if (!other.getCode().isEmpty()) {
          code_ = other.code_;
          onChanged();
        }
        if (!other.getExtend().isEmpty()) {
          extend_ = other.extend_;
          onChanged();
        }
        if (other.getFrom() != 0) {
          setFrom(other.getFrom());
        }
        if (other.getUpdatedTime() != 0L) {
          setUpdatedTime(other.getUpdatedTime());
        }
        if (other.getCreatedTime() != 0L) {
          setCreatedTime(other.getCreatedTime());
        }
        if (other.hasGame()) {
          mergeGame(other.getGame());
        }
        if (other.hasGameBook()) {
          mergeGameBook(other.getGameBook());
        }
        if (other.hasGift()) {
          mergeGift(other.getGift());
        }
        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.GameBookOuterClass.GameBooked parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked) 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 long userId_ ;
      /**
       * <code>int64 UserId = 2;</code>
       */
      public long getUserId() {
        return userId_;
      }
      /**
       * <code>int64 UserId = 2;</code>
       */
      public Builder setUserId(long value) {
        
        userId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 UserId = 2;</code>
       */
      public Builder clearUserId() {
        
        userId_ = 0L;
        onChanged();
        return this;
      }

      private long gameBookId_ ;
      /**
       * <code>int64 GameBookId = 3;</code>
       */
      public long getGameBookId() {
        return gameBookId_;
      }
      /**
       * <code>int64 GameBookId = 3;</code>
       */
      public Builder setGameBookId(long value) {
        
        gameBookId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 GameBookId = 3;</code>
       */
      public Builder clearGameBookId() {
        
        gameBookId_ = 0L;
        onChanged();
        return this;
      }

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

      private long giftId_ ;
      /**
       * <code>int64 GiftId = 14;</code>
       */
      public long getGiftId() {
        return giftId_;
      }
      /**
       * <code>int64 GiftId = 14;</code>
       */
      public Builder setGiftId(long value) {
        
        giftId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 GiftId = 14;</code>
       */
      public Builder clearGiftId() {
        
        giftId_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object phone_ = "";
      /**
       * <code>string Phone = 4;</code>
       */
      public java.lang.String getPhone() {
        java.lang.Object ref = phone_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          phone_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string Phone = 4;</code>
       */
      public com.google.protobuf.ByteString
          getPhoneBytes() {
        java.lang.Object ref = phone_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          phone_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string Phone = 4;</code>
       */
      public Builder setPhone(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        phone_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Phone = 4;</code>
       */
      public Builder clearPhone() {
        
        phone_ = getDefaultInstance().getPhone();
        onChanged();
        return this;
      }
      /**
       * <code>string Phone = 4;</code>
       */
      public Builder setPhoneBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        phone_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object qq_ = "";
      /**
       * <code>string Qq = 5;</code>
       */
      public java.lang.String getQq() {
        java.lang.Object ref = qq_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          qq_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string Qq = 5;</code>
       */
      public com.google.protobuf.ByteString
          getQqBytes() {
        java.lang.Object ref = qq_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          qq_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string Qq = 5;</code>
       */
      public Builder setQq(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        qq_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Qq = 5;</code>
       */
      public Builder clearQq() {
        
        qq_ = getDefaultInstance().getQq();
        onChanged();
        return this;
      }
      /**
       * <code>string Qq = 5;</code>
       */
      public Builder setQqBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        qq_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object weChat_ = "";
      /**
       * <code>string WeChat = 6;</code>
       */
      public java.lang.String getWeChat() {
        java.lang.Object ref = weChat_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          weChat_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string WeChat = 6;</code>
       */
      public com.google.protobuf.ByteString
          getWeChatBytes() {
        java.lang.Object ref = weChat_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          weChat_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string WeChat = 6;</code>
       */
      public Builder setWeChat(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        weChat_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string WeChat = 6;</code>
       */
      public Builder clearWeChat() {
        
        weChat_ = getDefaultInstance().getWeChat();
        onChanged();
        return this;
      }
      /**
       * <code>string WeChat = 6;</code>
       */
      public Builder setWeChatBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        weChat_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object code_ = "";
      /**
       * <code>string Code = 7;</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;
        }
      }
      /**
       * <code>string Code = 7;</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;
        }
      }
      /**
       * <code>string Code = 7;</code>
       */
      public Builder setCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        code_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Code = 7;</code>
       */
      public Builder clearCode() {
        
        code_ = getDefaultInstance().getCode();
        onChanged();
        return this;
      }
      /**
       * <code>string Code = 7;</code>
       */
      public Builder setCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        code_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object extend_ = "";
      /**
       * <code>string Extend = 8;</code>
       */
      public java.lang.String getExtend() {
        java.lang.Object ref = extend_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          extend_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string Extend = 8;</code>
       */
      public com.google.protobuf.ByteString
          getExtendBytes() {
        java.lang.Object ref = extend_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          extend_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string Extend = 8;</code>
       */
      public Builder setExtend(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        extend_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Extend = 8;</code>
       */
      public Builder clearExtend() {
        
        extend_ = getDefaultInstance().getExtend();
        onChanged();
        return this;
      }
      /**
       * <code>string Extend = 8;</code>
       */
      public Builder setExtendBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        extend_ = value;
        onChanged();
        return this;
      }

      private int from_ ;
      /**
       * <code>int32 From = 16;</code>
       */
      public int getFrom() {
        return from_;
      }
      /**
       * <code>int32 From = 16;</code>
       */
      public Builder setFrom(int value) {
        
        from_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 From = 16;</code>
       */
      public Builder clearFrom() {
        
        from_ = 0;
        onChanged();
        return this;
      }

      private long updatedTime_ ;
      /**
       * <code>int64 UpdatedTime = 9;</code>
       */
      public long getUpdatedTime() {
        return updatedTime_;
      }
      /**
       * <code>int64 UpdatedTime = 9;</code>
       */
      public Builder setUpdatedTime(long value) {
        
        updatedTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 UpdatedTime = 9;</code>
       */
      public Builder clearUpdatedTime() {
        
        updatedTime_ = 0L;
        onChanged();
        return this;
      }

      private long createdTime_ ;
      /**
       * <code>int64 CreatedTime = 10;</code>
       */
      public long getCreatedTime() {
        return createdTime_;
      }
      /**
       * <code>int64 CreatedTime = 10;</code>
       */
      public Builder setCreatedTime(long value) {
        
        createdTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 CreatedTime = 10;</code>
       */
      public Builder clearCreatedTime() {
        
        createdTime_ = 0L;
        onChanged();
        return this;
      }

      private com.kfzs.duanduan.proto.GameOuterClass.Game game_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder> gameBuilder_;
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public boolean hasGame() {
        return gameBuilder_ != null || game_ != null;
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.Game getGame() {
        if (gameBuilder_ == null) {
          return game_ == null ? com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
        } else {
          return gameBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public Builder setGame(com.kfzs.duanduan.proto.GameOuterClass.Game value) {
        if (gameBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          game_ = value;
          onChanged();
        } else {
          gameBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public Builder setGame(
          com.kfzs.duanduan.proto.GameOuterClass.Game.Builder builderForValue) {
        if (gameBuilder_ == null) {
          game_ = builderForValue.build();
          onChanged();
        } else {
          gameBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public Builder mergeGame(com.kfzs.duanduan.proto.GameOuterClass.Game value) {
        if (gameBuilder_ == null) {
          if (game_ != null) {
            game_ =
              com.kfzs.duanduan.proto.GameOuterClass.Game.newBuilder(game_).mergeFrom(value).buildPartial();
          } else {
            game_ = value;
          }
          onChanged();
        } else {
          gameBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public Builder clearGame() {
        if (gameBuilder_ == null) {
          game_ = null;
          onChanged();
        } else {
          game_ = null;
          gameBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.Game.Builder getGameBuilder() {
        
        onChanged();
        return getGameFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder() {
        if (gameBuilder_ != null) {
          return gameBuilder_.getMessageOrBuilder();
        } else {
          return game_ == null ?
              com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
        }
      }
      /**
       * <code>.protobuf.Game Game = 12;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder> 
          getGameFieldBuilder() {
        if (gameBuilder_ == null) {
          gameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder>(
                  getGame(),
                  getParentForChildren(),
                  isClean());
          game_ = null;
        }
        return gameBuilder_;
      }

      private com.kfzs.duanduan.proto.GameBookOuterClass.GameBook gameBook_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameBookOuterClass.GameBook, com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder, com.kfzs.duanduan.proto.GameBookOuterClass.GameBookOrBuilder> gameBookBuilder_;
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public boolean hasGameBook() {
        return gameBookBuilder_ != null || gameBook_ != null;
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBook getGameBook() {
        if (gameBookBuilder_ == null) {
          return gameBook_ == null ? com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.getDefaultInstance() : gameBook_;
        } else {
          return gameBookBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public Builder setGameBook(com.kfzs.duanduan.proto.GameBookOuterClass.GameBook value) {
        if (gameBookBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          gameBook_ = value;
          onChanged();
        } else {
          gameBookBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public Builder setGameBook(
          com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder builderForValue) {
        if (gameBookBuilder_ == null) {
          gameBook_ = builderForValue.build();
          onChanged();
        } else {
          gameBookBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public Builder mergeGameBook(com.kfzs.duanduan.proto.GameBookOuterClass.GameBook value) {
        if (gameBookBuilder_ == null) {
          if (gameBook_ != null) {
            gameBook_ =
              com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.newBuilder(gameBook_).mergeFrom(value).buildPartial();
          } else {
            gameBook_ = value;
          }
          onChanged();
        } else {
          gameBookBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public Builder clearGameBook() {
        if (gameBookBuilder_ == null) {
          gameBook_ = null;
          onChanged();
        } else {
          gameBook_ = null;
          gameBookBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder getGameBookBuilder() {
        
        onChanged();
        return getGameBookFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      public com.kfzs.duanduan.proto.GameBookOuterClass.GameBookOrBuilder getGameBookOrBuilder() {
        if (gameBookBuilder_ != null) {
          return gameBookBuilder_.getMessageOrBuilder();
        } else {
          return gameBook_ == null ?
              com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.getDefaultInstance() : gameBook_;
        }
      }
      /**
       * <code>.protobuf.GameBook GameBook = 13;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameBookOuterClass.GameBook, com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder, com.kfzs.duanduan.proto.GameBookOuterClass.GameBookOrBuilder> 
          getGameBookFieldBuilder() {
        if (gameBookBuilder_ == null) {
          gameBookBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.GameBookOuterClass.GameBook, com.kfzs.duanduan.proto.GameBookOuterClass.GameBook.Builder, com.kfzs.duanduan.proto.GameBookOuterClass.GameBookOrBuilder>(
                  getGameBook(),
                  getParentForChildren(),
                  isClean());
          gameBook_ = null;
        }
        return gameBookBuilder_;
      }

      private com.kfzs.duanduan.proto.GiftOuterClass.Gift gift_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GiftOuterClass.Gift, com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder, com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder> giftBuilder_;
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public boolean hasGift() {
        return giftBuilder_ != null || gift_ != null;
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public com.kfzs.duanduan.proto.GiftOuterClass.Gift getGift() {
        if (giftBuilder_ == null) {
          return gift_ == null ? com.kfzs.duanduan.proto.GiftOuterClass.Gift.getDefaultInstance() : gift_;
        } else {
          return giftBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public Builder setGift(com.kfzs.duanduan.proto.GiftOuterClass.Gift value) {
        if (giftBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          gift_ = value;
          onChanged();
        } else {
          giftBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public Builder setGift(
          com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder builderForValue) {
        if (giftBuilder_ == null) {
          gift_ = builderForValue.build();
          onChanged();
        } else {
          giftBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public Builder mergeGift(com.kfzs.duanduan.proto.GiftOuterClass.Gift value) {
        if (giftBuilder_ == null) {
          if (gift_ != null) {
            gift_ =
              com.kfzs.duanduan.proto.GiftOuterClass.Gift.newBuilder(gift_).mergeFrom(value).buildPartial();
          } else {
            gift_ = value;
          }
          onChanged();
        } else {
          giftBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public Builder clearGift() {
        if (giftBuilder_ == null) {
          gift_ = null;
          onChanged();
        } else {
          gift_ = null;
          giftBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder getGiftBuilder() {
        
        onChanged();
        return getGiftFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      public com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder getGiftOrBuilder() {
        if (giftBuilder_ != null) {
          return giftBuilder_.getMessageOrBuilder();
        } else {
          return gift_ == null ?
              com.kfzs.duanduan.proto.GiftOuterClass.Gift.getDefaultInstance() : gift_;
        }
      }
      /**
       * <code>.protobuf.Gift Gift = 15;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GiftOuterClass.Gift, com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder, com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder> 
          getGiftFieldBuilder() {
        if (giftBuilder_ == null) {
          giftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.GiftOuterClass.Gift, com.kfzs.duanduan.proto.GiftOuterClass.Gift.Builder, com.kfzs.duanduan.proto.GiftOuterClass.GiftOrBuilder>(
                  getGift(),
                  getParentForChildren(),
                  isClean());
          gift_ = null;
        }
        return giftBuilder_;
      }
      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.GameBooked)
    }

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

    public static com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.kfzs.duanduan.proto.GameBookOuterClass.GameBooked getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_GameBook_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_GameBook_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_GameBooked_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_GameBooked_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\017game_book.proto\022\010protobuf\032\ngame.proto\032" +
      "\ngift.proto\"\335\001\n\010GameBook\022\n\n\002Id\030\001 \001(\005\022\014\n\004" +
      "Name\030\002 \001(\t\022\016\n\006GameId\030\003 \001(\003\022\021\n\tStartTime\030" +
      "\004 \001(\003\022\017\n\007EndTime\030\005 \001(\003\022\013\n\003Url\030\006 \001(\t\022\021\n\tI" +
      "sDeleted\030\007 \001(\005\022\021\n\tIsCanDown\030\010 \001(\005\022\016\n\006Boo" +
      "ked\030\t \001(\010\022\r\n\005Count\030\n \001(\003\022\034\n\004Game\030\013 \001(\0132\016" +
      ".protobuf.Game\022\023\n\013giftContent\030\014 \001(\t\"\277\002\n\n" +
      "GameBooked\022\n\n\002Id\030\001 \001(\005\022\016\n\006UserId\030\002 \001(\003\022\022" +
      "\n\nGameBookId\030\003 \001(\003\022\016\n\006GameId\030\013 \001(\003\022\016\n\006Gi" +
      "ftId\030\016 \001(\003\022\r\n\005Phone\030\004 \001(\t\022\n\n\002Qq\030\005 \001(\t\022\016\n",
      "\006WeChat\030\006 \001(\t\022\014\n\004Code\030\007 \001(\t\022\016\n\006Extend\030\010 " +
      "\001(\t\022\014\n\004From\030\020 \001(\005\022\023\n\013UpdatedTime\030\t \001(\003\022\023" +
      "\n\013CreatedTime\030\n \001(\003\022\034\n\004Game\030\014 \001(\0132\016.prot" +
      "obuf.Game\022$\n\010GameBook\030\r \001(\0132\022.protobuf.G" +
      "ameBook\022\034\n\004Gift\030\017 \001(\0132\016.protobuf.GiftB\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[] {
          com.kfzs.duanduan.proto.GameOuterClass.getDescriptor(),
          com.kfzs.duanduan.proto.GiftOuterClass.getDescriptor(),
        }, assigner);
    internal_static_protobuf_GameBook_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_protobuf_GameBook_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_GameBook_descriptor,
        new java.lang.String[] { "Id", "Name", "GameId", "StartTime", "EndTime", "Url", "IsDeleted", "IsCanDown", "Booked", "Count", "Game", "GiftContent", });
    internal_static_protobuf_GameBooked_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_protobuf_GameBooked_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_GameBooked_descriptor,
        new java.lang.String[] { "Id", "UserId", "GameBookId", "GameId", "GiftId", "Phone", "Qq", "WeChat", "Code", "Extend", "From", "UpdatedTime", "CreatedTime", "Game", "GameBook", "Gift", });
    com.kfzs.duanduan.proto.GameOuterClass.getDescriptor();
    com.kfzs.duanduan.proto.GiftOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
