@Override public ContainerId getContainerId() { ContainerResourceDecreaseProtoOrBuilder p = viaProto ? proto : builder; if (this.existingContainerId != null) { return this.existingContainerId; } if (p.hasContainerId()) { this.existingContainerId = convertFromProtoFormat(p.getContainerId()); } return this.existingContainerId; }
@Override public Resource getCapability() { ContainerResourceDecreaseProtoOrBuilder p = viaProto ? proto : builder; if (this.targetCapability != null) { return this.targetCapability; } if (p.hasCapability()) { this.targetCapability = convertFromProtoFormat(p.getCapability()); } return this.targetCapability; }