public org.bwapi.proxy.messages.GameMessages.UpgradeTypeOrBuilder getUpgradesOrBuilder(
          int index) {
        if (upgradesBuilder_ == null) {
          return upgrades_.get(index);  } else {
          return upgradesBuilder_.getMessageOrBuilder(index);
        }
      }