grib/src/main/java/ucar/nc2/grib/collection/GribPartitionBuilder.java
private GribCollectionProto.PartitionVariable writePartitionVariableProto(int partno, int groupno, int varno, int nrecords, int ndups, int nmissing) {
    GribCollectionProto.PartitionVariable.Builder pb = GribCollectionProto.PartitionVariable.newBuilder();
    pb.setPartno(partno);
    pb.setGroupno(groupno);
    pb.setVarno(varno);
    pb.setNdups(ndups);
    pb.setNrecords(nrecords);
    pb.setMissing(nmissing);

    return pb.build();
  }
private GribCollectionProto.PartitionVariable writePartitionVariableProto(int partno, int groupno, int varno, int nrecords, int ndups, int nmissing) {
    GribCollectionProto.PartitionVariable.Builder pb = GribCollectionProto.PartitionVariable.newBuilder();
    pb.setPartno(partno);
    pb.setGroupno(groupno);
    pb.setVarno(varno);
    pb.setNdups(ndups);
    pb.setNrecords(nrecords);
    pb.setMissing(nmissing);

    return pb.build();
  }
/*
message PartitionVariable {
uint32 groupno = 1;
uint32 varno = 2;
uint32 flag = 3;
uint32 partno = 4;

optionally keep stats
uint32 ndups = 8;
uint32 nrecords = 9;
uint32 missing = 10;
}