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

package com.xinqihd.sns.gameserver.proto;

public final class XinqiBseRoomUnlock {
  private XinqiBseRoomUnlock() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface BseRoomUnlockOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // repeated int32 roomTypeId = 1;
    java.util.List<java.lang.Integer> getRoomTypeIdList();
    int getRoomTypeIdCount();
    int getRoomTypeId(int index);
  }
  public static final class BseRoomUnlock extends
      com.google.protobuf.GeneratedMessage
      implements BseRoomUnlockOrBuilder {
    // Use BseRoomUnlock.newBuilder() to construct.
    private BseRoomUnlock(Builder builder) {
      super(builder);
    }
    private BseRoomUnlock(boolean noInit) {}
    
    private static final BseRoomUnlock defaultInstance;
    public static BseRoomUnlock getDefaultInstance() {
      return defaultInstance;
    }
    
    public BseRoomUnlock getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_fieldAccessorTable;
    }
    
    // repeated int32 roomTypeId = 1;
    public static final int ROOMTYPEID_FIELD_NUMBER = 1;
    private java.util.List<java.lang.Integer> roomTypeId_;
    public java.util.List<java.lang.Integer>
        getRoomTypeIdList() {
      return roomTypeId_;
    }
    public int getRoomTypeIdCount() {
      return roomTypeId_.size();
    }
    public int getRoomTypeId(int index) {
      return roomTypeId_.get(index);
    }
    
    private void initFields() {
      roomTypeId_ = java.util.Collections.emptyList();;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      memoizedIsInitialized = 1;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < roomTypeId_.size(); i++) {
        output.writeInt32(1, roomTypeId_.get(i));
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < roomTypeId_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(roomTypeId_.get(i));
        }
        size += dataSize;
        size += 1 * getRoomTypeIdList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }
    
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlockOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_fieldAccessorTable;
      }
      
      // Construct using com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        roomTypeId_ = java.util.Collections.emptyList();;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock.getDescriptor();
      }
      
      public com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock getDefaultInstanceForType() {
        return com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock.getDefaultInstance();
      }
      
      public com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock build() {
        com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock buildPartial() {
        com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock result = new com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          roomTypeId_ = java.util.Collections.unmodifiableList(roomTypeId_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.roomTypeId_ = roomTypeId_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock) {
          return mergeFrom((com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock other) {
        if (other == com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock.getDefaultInstance()) return this;
        if (!other.roomTypeId_.isEmpty()) {
          if (roomTypeId_.isEmpty()) {
            roomTypeId_ = other.roomTypeId_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureRoomTypeIdIsMutable();
            roomTypeId_.addAll(other.roomTypeId_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              onChanged();
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              }
              break;
            }
            case 8: {
              ensureRoomTypeIdIsMutable();
              roomTypeId_.add(input.readInt32());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              while (input.getBytesUntilLimit() > 0) {
                addRoomTypeId(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // repeated int32 roomTypeId = 1;
      private java.util.List<java.lang.Integer> roomTypeId_ = java.util.Collections.emptyList();;
      private void ensureRoomTypeIdIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          roomTypeId_ = new java.util.ArrayList<java.lang.Integer>(roomTypeId_);
          bitField0_ |= 0x00000001;
         }
      }
      public java.util.List<java.lang.Integer>
          getRoomTypeIdList() {
        return java.util.Collections.unmodifiableList(roomTypeId_);
      }
      public int getRoomTypeIdCount() {
        return roomTypeId_.size();
      }
      public int getRoomTypeId(int index) {
        return roomTypeId_.get(index);
      }
      public Builder setRoomTypeId(
          int index, int value) {
        ensureRoomTypeIdIsMutable();
        roomTypeId_.set(index, value);
        onChanged();
        return this;
      }
      public Builder addRoomTypeId(int value) {
        ensureRoomTypeIdIsMutable();
        roomTypeId_.add(value);
        onChanged();
        return this;
      }
      public Builder addAllRoomTypeId(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureRoomTypeIdIsMutable();
        super.addAll(values, roomTypeId_);
        onChanged();
        return this;
      }
      public Builder clearRoomTypeId() {
        roomTypeId_ = java.util.Collections.emptyList();;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:com.xinqihd.sns.gameserver.proto.BseRoomUnlock)
    }
    
    static {
      defaultInstance = new BseRoomUnlock(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:com.xinqihd.sns.gameserver.proto.BseRoomUnlock)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_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\023BseRoomUnlock.proto\022 com.xinqihd.sns.g" +
      "ameserver.proto\"#\n\rBseRoomUnlock\022\022\n\nroom" +
      "TypeId\030\001 \003(\005B\024B\022XinqiBseRoomUnlock"
    };
    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;
          internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_com_xinqihd_sns_gameserver_proto_BseRoomUnlock_descriptor,
              new java.lang.String[] { "RoomTypeId", },
              com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock.class,
              com.xinqihd.sns.gameserver.proto.XinqiBseRoomUnlock.BseRoomUnlock.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }
  
  // @@protoc_insertion_point(outer_class_scope)
}
