}
builder.setHostName((hostName));
}
@Override
public Resource getCapability() {
ResourceRequestProtoOrBuilder p = viaProto ? proto : builder;
if (this.capability != null) {
return this.capability;
}
if (!p.hasCapability()) {
return null;
}
this.capability = convertFromProtoFormat(p.getCapability());
return this.capability;
}