Пример #1
0
 public com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto build() {
   com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Пример #2
0
 private com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto buildParsed()
     throws com.google.protobuf.InvalidProtocolBufferException {
   com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result).asInvalidProtocolBufferException();
   }
   return result;
 }
Пример #3
0
 public Builder mergeFrom(com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto other) {
   if (other == com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto.getDefaultInstance())
     return this;
   if (other.hasDungeonID()) {
     setDungeonID(other.getDungeonID());
   }
   if (other.hasLevelReq()) {
     setLevelReq(other.getLevelReq());
   }
   if (!other.rooms_.isEmpty()) {
     if (rooms_.isEmpty()) {
       rooms_ = other.rooms_;
       bitField0_ = (bitField0_ & ~0x00000004);
     } else {
       ensureRoomsIsMutable();
       rooms_.addAll(other.rooms_);
     }
     onChanged();
   }
   if (other.hasName()) {
     setName(other.getName());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Пример #4
0
 public com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto buildPartial() {
   com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto result =
       new com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
     to_bitField0_ |= 0x00000001;
   }
   result.dungeonID_ = dungeonID_;
   if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
     to_bitField0_ |= 0x00000002;
   }
   result.levelReq_ = levelReq_;
   if (((bitField0_ & 0x00000004) == 0x00000004)) {
     rooms_ = java.util.Collections.unmodifiableList(rooms_);
     bitField0_ = (bitField0_ & ~0x00000004);
   }
   result.rooms_ = rooms_;
   if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
     to_bitField0_ |= 0x00000004;
   }
   result.name_ = name_;
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
Пример #5
0
 public com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto getDefaultInstanceForType() {
   return com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto.getDefaultInstance();
 }
Пример #6
0
 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
   return com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto.getDescriptor();
 }