public Builder setMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (mineralsBuilder_ == null) {
          ensureMineralsIsMutable();
          minerals_.set(index, builderForValue.build());
          onChanged();
        } else {
          mineralsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }