return get(createAsync(metric));
}
@Override
public Future<Metric> createAsync(MetricInfo metric) {
CreateLogMetricRequest request = CreateLogMetricRequest.newBuilder()
<BUG>.setParent(MetricsServiceV2Client.formatParentName(getOptions().getProjectId()))
.setMetric(metric.toPb())</BUG>
.build();
return transform(rpc.create(request), Metric.fromPbFunction(this));
}

return get(createAsync(metric));
}
@Override
public Future<Metric> createAsync(MetricInfo metric) {
CreateLogMetricRequest request = CreateLogMetricRequest.newBuilder()
.setParent(ProjectName.create(getOptions().getProjectId()).toString())
.setMetric(metric.toPb())
.build();
return transform(rpc.create(request), Metric.fromPbFunction(this));
}
