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

package com.kfzs.duanduan.proto;

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

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

    /**
     * <code>string TypeName = 2;</code>
     */
    java.lang.String getTypeName();
    /**
     * <code>string TypeName = 2;</code>
     */
    com.google.protobuf.ByteString
        getTypeNameBytes();

    /**
     * <code>string Icon = 3;</code>
     */
    java.lang.String getIcon();
    /**
     * <code>string Icon = 3;</code>
     */
    com.google.protobuf.ByteString
        getIconBytes();

    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    java.util.List<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType> 
        getSecondTypesList();
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    com.kfzs.duanduan.proto.GameTypeOuterClass.GameType getSecondTypes(int index);
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    int getSecondTypesCount();
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    java.util.List<? extends com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder> 
        getSecondTypesOrBuilderList();
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder getSecondTypesOrBuilder(
        int index);
  }
  /**
   * <pre>
   * option java_outer_classname = "Game_type";
   * </pre>
   *
   * Protobuf type {@code protobuf.GameType}
   */
  public  static final class GameType extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.GameType)
      GameTypeOrBuilder {
    // Use GameType.newBuilder() to construct.
    private GameType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private GameType() {
      id_ = 0;
      typeName_ = "";
      icon_ = "";
      secondTypes_ = java.util.Collections.emptyList();
    }

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

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

              icon_ = s;
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                secondTypes_ = new java.util.ArrayList<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType>();
                mutable_bitField0_ |= 0x00000008;
              }
              secondTypes_.add(
                  input.readMessage(com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.parser(), extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          secondTypes_ = java.util.Collections.unmodifiableList(secondTypes_);
        }
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.kfzs.duanduan.proto.GameTypeOuterClass.internal_static_protobuf_GameType_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.GameTypeOuterClass.internal_static_protobuf_GameType_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.class, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder.class);
    }

    private int bitField0_;
    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 TYPENAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object typeName_;
    /**
     * <code>string TypeName = 2;</code>
     */
    public java.lang.String getTypeName() {
      java.lang.Object ref = typeName_;
      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();
        typeName_ = s;
        return s;
      }
    }
    /**
     * <code>string TypeName = 2;</code>
     */
    public com.google.protobuf.ByteString
        getTypeNameBytes() {
      java.lang.Object ref = typeName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        typeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ICON_FIELD_NUMBER = 3;
    private volatile java.lang.Object icon_;
    /**
     * <code>string Icon = 3;</code>
     */
    public java.lang.String getIcon() {
      java.lang.Object ref = icon_;
      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();
        icon_ = s;
        return s;
      }
    }
    /**
     * <code>string Icon = 3;</code>
     */
    public com.google.protobuf.ByteString
        getIconBytes() {
      java.lang.Object ref = icon_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        icon_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SECONDTYPES_FIELD_NUMBER = 4;
    private java.util.List<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType> secondTypes_;
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    public java.util.List<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType> getSecondTypesList() {
      return secondTypes_;
    }
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    public java.util.List<? extends com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder> 
        getSecondTypesOrBuilderList() {
      return secondTypes_;
    }
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    public int getSecondTypesCount() {
      return secondTypes_.size();
    }
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType getSecondTypes(int index) {
      return secondTypes_.get(index);
    }
    /**
     * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
     */
    public com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder getSecondTypesOrBuilder(
        int index) {
      return secondTypes_.get(index);
    }

    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 (!getTypeNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeName_);
      }
      if (!getIconBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, icon_);
      }
      for (int i = 0; i < secondTypes_.size(); i++) {
        output.writeMessage(4, secondTypes_.get(i));
      }
    }

    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 (!getTypeNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeName_);
      }
      if (!getIconBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, icon_);
      }
      for (int i = 0; i < secondTypes_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, secondTypes_.get(i));
      }
      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.GameTypeOuterClass.GameType)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.GameTypeOuterClass.GameType other = (com.kfzs.duanduan.proto.GameTypeOuterClass.GameType) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && getTypeName()
          .equals(other.getTypeName());
      result = result && getIcon()
          .equals(other.getIcon());
      result = result && getSecondTypesList()
          .equals(other.getSecondTypesList());
      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) + TYPENAME_FIELD_NUMBER;
      hash = (53 * hash) + getTypeName().hashCode();
      hash = (37 * hash) + ICON_FIELD_NUMBER;
      hash = (53 * hash) + getIcon().hashCode();
      if (getSecondTypesCount() > 0) {
        hash = (37 * hash) + SECONDTYPES_FIELD_NUMBER;
        hash = (53 * hash) + getSecondTypesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.GameTypeOuterClass.internal_static_protobuf_GameType_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.class, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder.class);
      }

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

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

        typeName_ = "";

        icon_ = "";

        if (secondTypesBuilder_ == null) {
          secondTypes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          secondTypesBuilder_.clear();
        }
        return this;
      }

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

      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.getDefaultInstance();
      }

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

      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType buildPartial() {
        com.kfzs.duanduan.proto.GameTypeOuterClass.GameType result = new com.kfzs.duanduan.proto.GameTypeOuterClass.GameType(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.id_ = id_;
        result.typeName_ = typeName_;
        result.icon_ = icon_;
        if (secondTypesBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008)) {
            secondTypes_ = java.util.Collections.unmodifiableList(secondTypes_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.secondTypes_ = secondTypes_;
        } else {
          result.secondTypes_ = secondTypesBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        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.GameTypeOuterClass.GameType) {
          return mergeFrom((com.kfzs.duanduan.proto.GameTypeOuterClass.GameType)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.GameTypeOuterClass.GameType other) {
        if (other == com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.getDefaultInstance()) return this;
        if (other.getId() != 0) {
          setId(other.getId());
        }
        if (!other.getTypeName().isEmpty()) {
          typeName_ = other.typeName_;
          onChanged();
        }
        if (!other.getIcon().isEmpty()) {
          icon_ = other.icon_;
          onChanged();
        }
        if (secondTypesBuilder_ == null) {
          if (!other.secondTypes_.isEmpty()) {
            if (secondTypes_.isEmpty()) {
              secondTypes_ = other.secondTypes_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureSecondTypesIsMutable();
              secondTypes_.addAll(other.secondTypes_);
            }
            onChanged();
          }
        } else {
          if (!other.secondTypes_.isEmpty()) {
            if (secondTypesBuilder_.isEmpty()) {
              secondTypesBuilder_.dispose();
              secondTypesBuilder_ = null;
              secondTypes_ = other.secondTypes_;
              bitField0_ = (bitField0_ & ~0x00000008);
              secondTypesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSecondTypesFieldBuilder() : null;
            } else {
              secondTypesBuilder_.addAllMessages(other.secondTypes_);
            }
          }
        }
        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.GameTypeOuterClass.GameType parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.GameTypeOuterClass.GameType) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      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 typeName_ = "";
      /**
       * <code>string TypeName = 2;</code>
       */
      public java.lang.String getTypeName() {
        java.lang.Object ref = typeName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          typeName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string TypeName = 2;</code>
       */
      public com.google.protobuf.ByteString
          getTypeNameBytes() {
        java.lang.Object ref = typeName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          typeName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string TypeName = 2;</code>
       */
      public Builder setTypeName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        typeName_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string TypeName = 2;</code>
       */
      public Builder clearTypeName() {
        
        typeName_ = getDefaultInstance().getTypeName();
        onChanged();
        return this;
      }
      /**
       * <code>string TypeName = 2;</code>
       */
      public Builder setTypeNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        typeName_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object icon_ = "";
      /**
       * <code>string Icon = 3;</code>
       */
      public java.lang.String getIcon() {
        java.lang.Object ref = icon_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          icon_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string Icon = 3;</code>
       */
      public com.google.protobuf.ByteString
          getIconBytes() {
        java.lang.Object ref = icon_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          icon_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string Icon = 3;</code>
       */
      public Builder setIcon(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        icon_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Icon = 3;</code>
       */
      public Builder clearIcon() {
        
        icon_ = getDefaultInstance().getIcon();
        onChanged();
        return this;
      }
      /**
       * <code>string Icon = 3;</code>
       */
      public Builder setIconBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        icon_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType> secondTypes_ =
        java.util.Collections.emptyList();
      private void ensureSecondTypesIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          secondTypes_ = new java.util.ArrayList<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType>(secondTypes_);
          bitField0_ |= 0x00000008;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.kfzs.duanduan.proto.GameTypeOuterClass.GameType, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder, com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder> secondTypesBuilder_;

      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public java.util.List<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType> getSecondTypesList() {
        if (secondTypesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(secondTypes_);
        } else {
          return secondTypesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public int getSecondTypesCount() {
        if (secondTypesBuilder_ == null) {
          return secondTypes_.size();
        } else {
          return secondTypesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType getSecondTypes(int index) {
        if (secondTypesBuilder_ == null) {
          return secondTypes_.get(index);
        } else {
          return secondTypesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder setSecondTypes(
          int index, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType value) {
        if (secondTypesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSecondTypesIsMutable();
          secondTypes_.set(index, value);
          onChanged();
        } else {
          secondTypesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder setSecondTypes(
          int index, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder builderForValue) {
        if (secondTypesBuilder_ == null) {
          ensureSecondTypesIsMutable();
          secondTypes_.set(index, builderForValue.build());
          onChanged();
        } else {
          secondTypesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder addSecondTypes(com.kfzs.duanduan.proto.GameTypeOuterClass.GameType value) {
        if (secondTypesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSecondTypesIsMutable();
          secondTypes_.add(value);
          onChanged();
        } else {
          secondTypesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder addSecondTypes(
          int index, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType value) {
        if (secondTypesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSecondTypesIsMutable();
          secondTypes_.add(index, value);
          onChanged();
        } else {
          secondTypesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder addSecondTypes(
          com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder builderForValue) {
        if (secondTypesBuilder_ == null) {
          ensureSecondTypesIsMutable();
          secondTypes_.add(builderForValue.build());
          onChanged();
        } else {
          secondTypesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder addSecondTypes(
          int index, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder builderForValue) {
        if (secondTypesBuilder_ == null) {
          ensureSecondTypesIsMutable();
          secondTypes_.add(index, builderForValue.build());
          onChanged();
        } else {
          secondTypesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder addAllSecondTypes(
          java.lang.Iterable<? extends com.kfzs.duanduan.proto.GameTypeOuterClass.GameType> values) {
        if (secondTypesBuilder_ == null) {
          ensureSecondTypesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, secondTypes_);
          onChanged();
        } else {
          secondTypesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder clearSecondTypes() {
        if (secondTypesBuilder_ == null) {
          secondTypes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          secondTypesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public Builder removeSecondTypes(int index) {
        if (secondTypesBuilder_ == null) {
          ensureSecondTypesIsMutable();
          secondTypes_.remove(index);
          onChanged();
        } else {
          secondTypesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder getSecondTypesBuilder(
          int index) {
        return getSecondTypesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder getSecondTypesOrBuilder(
          int index) {
        if (secondTypesBuilder_ == null) {
          return secondTypes_.get(index);  } else {
          return secondTypesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public java.util.List<? extends com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder> 
           getSecondTypesOrBuilderList() {
        if (secondTypesBuilder_ != null) {
          return secondTypesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(secondTypes_);
        }
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder addSecondTypesBuilder() {
        return getSecondTypesFieldBuilder().addBuilder(
            com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.getDefaultInstance());
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder addSecondTypesBuilder(
          int index) {
        return getSecondTypesFieldBuilder().addBuilder(
            index, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.getDefaultInstance());
      }
      /**
       * <code>repeated .protobuf.GameType SecondTypes = 4;</code>
       */
      public java.util.List<com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder> 
           getSecondTypesBuilderList() {
        return getSecondTypesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.kfzs.duanduan.proto.GameTypeOuterClass.GameType, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder, com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder> 
          getSecondTypesFieldBuilder() {
        if (secondTypesBuilder_ == null) {
          secondTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.kfzs.duanduan.proto.GameTypeOuterClass.GameType, com.kfzs.duanduan.proto.GameTypeOuterClass.GameType.Builder, com.kfzs.duanduan.proto.GameTypeOuterClass.GameTypeOrBuilder>(
                  secondTypes_,
                  ((bitField0_ & 0x00000008) == 0x00000008),
                  getParentForChildren(),
                  isClean());
          secondTypes_ = null;
        }
        return secondTypesBuilder_;
      }
      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.GameType)
    }

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

    public static com.kfzs.duanduan.proto.GameTypeOuterClass.GameType getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.kfzs.duanduan.proto.GameTypeOuterClass.GameType getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_GameType_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_GameType_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_type.proto\022\010protobuf\"_\n\010GameType\022" +
      "\n\n\002id\030\001 \001(\005\022\020\n\010TypeName\030\002 \001(\t\022\014\n\004Icon\030\003 " +
      "\001(\t\022\'\n\013SecondTypes\030\004 \003(\0132\022.protobuf.Game" +
      "TypeB\031\n\027com.kfzs.duanduan.protob\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_protobuf_GameType_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_protobuf_GameType_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_GameType_descriptor,
        new java.lang.String[] { "Id", "TypeName", "Icon", "SecondTypes", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
