@Test public void testApplicationSubmissionContextPBImpl() throws Exception { validatePBImplRecord(ApplicationSubmissionContextPBImpl.class, ApplicationSubmissionContextProto.class); ApplicationSubmissionContext ctx = ApplicationSubmissionContext.newInstance(null, null, null, null, null, false, false, 0, Resources.none(), null, false, null, null); Assert.assertNotNull(ctx.getResource()); }
private ApplicationSubmissionContextPBImpl convertFromProtoFormat(ApplicationSubmissionContextProto p) { return new ApplicationSubmissionContextPBImpl(p); }
private ApplicationSubmissionContextProto convertToProtoFormat(ApplicationSubmissionContext t) { return ((ApplicationSubmissionContextPBImpl)t).getProto(); }
public ApplicationSubmissionContextPBImpl() { builder = ApplicationSubmissionContextProto.newBuilder(); }
public ApplicationSubmissionContextPBImpl( ApplicationSubmissionContextProto proto) { this.proto = proto; viaProto = true; }
public ApplicationSubmissionContextProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = ApplicationSubmissionContextProto.newBuilder(proto); } viaProto = false; }