@Override public Resource getCapability() { ReservationRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.capability != null) { return this.capability; } if (!p.hasCapability()) { return null; } this.capability = convertFromProtoFormat(p.getCapability()); return this.capability; }
@Override public int getConcurrency() { ReservationRequestProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasConcurrency()) { return 1; } return (p.getConcurrency()); }
@Override public long getDuration() { ReservationRequestProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasDuration()) { return 0; } return (p.getDuration()); }
@Override public int getNumContainers() { ReservationRequestProtoOrBuilder p = viaProto ? proto : builder; return (p.getNumContainers()); }