public org.bwapi.proxy.messages.GameMessages.WeaponTypeData getWeapons(int index) {
        if (weaponsBuilder_ == null) {
          return weapons_.get(index);
        } else {
          return weaponsBuilder_.getMessage(index);
        }
      }