public static BlockReportContextProto convert(BlockReportContext context) { return BlockReportContextProto.newBuilder(). setTotalRpcs(context.getTotalRpcs()). setCurRpc(context.getCurRpc()). setId(context.getReportId()). build(); }
public static BlockReportContextProto convert(BlockReportContext context) { return BlockReportContextProto.newBuilder(). setTotalRpcs(context.getTotalRpcs()). setCurRpc(context.getCurRpc()). setId(context.getReportId()). setLeaseId(context.getLeaseId()). build(); }
public static BlockReportContext convert(BlockReportContextProto proto) { return new BlockReportContext(proto.getTotalRpcs(), proto.getCurRpc(), proto.getId()); }
public static BlockReportContext convert(BlockReportContextProto proto) { return new BlockReportContext(proto.getTotalRpcs(), proto.getCurRpc(), proto.getId(), proto.getLeaseId()); }