docs: public HyperParameterAlgorithmSpecification withMetricDefinitions(MetricDefinition... metricDefinitions) {
          if (this.metricDefinitions == null) {
              setMetricDefinitions(new java.util.ArrayList<MetricDefinition>(metricDefinitions.length));
          }
          for (MetricDefinition ele : metricDefinitions) {
              this.metricDefinitions.add(ele);
          }
          return this;
      }