@Override Image toPb() { Image.RawDisk rawDiskPb = new Image.RawDisk(); rawDiskPb.setSource(source); rawDiskPb.setSha1Checksum(sha1); if (containerType != null) { rawDiskPb.setContainerType(containerType.name()); } Image imagePb = super.toPb(); return imagePb.setRawDisk(rawDiskPb); }
@Override Image toPb() { Image.RawDisk rawDiskPb = new Image.RawDisk(); rawDiskPb.setSource(source); rawDiskPb.setSha1Checksum(sha1); if (containerType != null) { rawDiskPb.setContainerType(containerType.name()); } Image imagePb = super.toPb(); return imagePb.setRawDisk(rawDiskPb); }