private YarnClusterMetricsPBImpl convertFromProtoFormat(YarnClusterMetricsProto p) { return new YarnClusterMetricsPBImpl(p); }
private YarnClusterMetricsProto convertToProtoFormat(YarnClusterMetrics t) { return ((YarnClusterMetricsPBImpl)t).getProto(); }
public YarnClusterMetricsPBImpl() { builder = YarnClusterMetricsProto.newBuilder(); }
public YarnClusterMetricsPBImpl(YarnClusterMetricsProto proto) { this.proto = proto; viaProto = true; }
public YarnClusterMetricsProto getProto() { proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = YarnClusterMetricsProto.newBuilder(proto); } viaProto = false; }
@Test public void testYarnClusterMetricsPBImpl() throws Exception { validatePBImplRecord(YarnClusterMetricsPBImpl.class, YarnClusterMetricsProto.class); }