@Test @Ignore // ignore cause ApplicationIdPBImpl is immutable public void testApplicationAttemptIdPBImpl() throws Exception { validatePBImplRecord(ApplicationAttemptIdPBImpl.class, ApplicationAttemptIdProto.class); }
private ApplicationAttemptIdPBImpl convertFromProtoFormat( ApplicationAttemptIdProto p) { return new ApplicationAttemptIdPBImpl(p); }
private ApplicationAttemptIdProto convertToProtoFormat(ApplicationAttemptId t) { return ((ApplicationAttemptIdPBImpl) t).getProto(); }
private ApplicationAttemptIdPBImpl convertFromProtoFormat( ApplicationAttemptIdProto applicationAttemptId) { return new ApplicationAttemptIdPBImpl(applicationAttemptId); }
private ApplicationAttemptIdProto convertToProtoFormat( ApplicationAttemptId t) { return ((ApplicationAttemptIdPBImpl)t).getProto(); }
public ApplicationAttemptIdPBImpl() { builder = ApplicationAttemptIdProto.newBuilder(); }
public ApplicationAttemptIdPBImpl(ApplicationAttemptIdProto proto) { this.proto = proto; this.applicationId = convertFromProtoFormat(proto.getApplicationId()); }
public ApplicationAttemptIdProto getProto() { return proto; }
private ApplicationAttemptIdProto convertToProtoFormat( ApplicationAttemptId applicationAttemptId) { return ((ApplicationAttemptIdPBImpl) applicationAttemptId).getProto(); }