@Override
  public List<String> getDigestsForPlatform(String architecture, String os) {
    return getManifests().stream()
        .filter(
            manifest ->
                manifest.platform != null
                    && os.equals(manifest.platform.os)
                    && architecture.equals(manifest.platform.architecture))
        .map(ManifestDescriptorTemplate::getDigest)
        .collect(Collectors.toList());
  }
Adds a manifest.

@param manifest a manifest descriptor
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/V22ManifestListTemplate.java