builder.setNumReservedContainers((num_reserved_containers));
}
@Override
public synchronized Resource getUsedResources() {
ApplicationResourceUsageReportProtoOrBuilder p = viaProto ? proto : builder;
if (this.usedResources != null) {
return this.usedResources;
}
if (!p.hasUsedResources()) {
return null;
}
this.usedResources = convertFromProtoFormat(p.getUsedResources());
return this.usedResources;
}