private GribCollectionProto.Dataset writeDatasetProto(PartitionCollectionMutable pc, GribCollectionMutable.Dataset ds) throws IOException {
    """
	/*
	message Dataset {
	required Type type = 1;
	repeated Group groups = 2;
	}
    """
    GribCollectionProto.Dataset.Builder b = GribCollectionProto.Dataset.newBuilder();

    GribCollectionProto.Dataset.Type type = GribCollectionProto.Dataset.Type.valueOf(ds.gctype.toString());
    b.setType(type);

    for (GribCollectionMutable.GroupGC group : ds.groups)
      b.addGroups(writeGroupProto(pc, group));

    return b.build();
  }
private GribCollectionProto.Dataset writeDatasetProto(PartitionCollectionMutable pc, GribCollectionMutable.Dataset ds) throws IOException {
    GribCollectionProto.Dataset.Builder b = GribCollectionProto.Dataset.newBuilder();

    GribCollectionProto.Dataset.Type type = GribCollectionProto.Dataset.Type.valueOf(ds.gctype.toString());
    b.setType(type);

    for (GribCollectionMutable.GroupGC group : ds.groups)
      b.addGroups(writeGroupProto(pc, group));

    return b.build();
  }
private GribCollectionProto . Dataset writeDatasetProto ( PartitionCollectionMutable pc , GribCollectionMutable . Dataset ds ) throws IOException { GribCollectionProto . Dataset . Builder b = GribCollectionProto . Dataset . newBuilder ( ) ; GribCollectionProto . Dataset . Type type = GribCollectionProto . Dataset . Type . valueOf ( ds . gctype . toString ( ) ) ; b . setType ( type ) ; for ( GribCollectionMutable . GroupGC group : ds . groups ) b . addGroups ( writeGroupProto ( pc , group ) ) ; return b . build ( ) ; }
/*
message Dataset {
required Type type = 1;
repeated Group groups = 2;
}
/ * message Dataset { required Type type = 1 ; repeated Group groups = 2 ; }