@Override public void fromProtoStream(InputStream inputStream) throws IOException { DAGCommitStartedProto proto = DAGCommitStartedProto.parseDelimitedFrom(inputStream); if (proto == null) { throw new IOException("No data found in stream"); } fromProto(proto); }
public void fromProto(DAGCommitStartedProto proto) { this.dagID = TezDAGID.fromString(proto.getDagId()); }
public DAGCommitStartedProto toProto() { return DAGCommitStartedProto.newBuilder().setDagId(dagID.toString()).build(); }