public org.bwapi.proxy.messages.GameMessages.WeaponTypeDataOrBuilder getWeaponsOrBuilder(
          int index) {
        if (weaponsBuilder_ == null) {
          return weapons_.get(index);  } else {
          return weaponsBuilder_.getMessageOrBuilder(index);
        }
      }