@Override public void fromProtoStream(InputStream inputStream) throws IOException { AMStartedProto proto = AMStartedProto.parseDelimitedFrom(inputStream); fromProto(proto); }
public AMStartedProto toProto() { return AMStartedProto.newBuilder() .setApplicationAttemptId(this.applicationAttemptId.toString()) .setStartTime(startTime) .build(); }
public void fromProto(AMStartedProto proto) { this.applicationAttemptId = ConverterUtils.toApplicationAttemptId(proto.getApplicationAttemptId()); this.startTime = proto.getStartTime(); }