class ImageReference {

  public boolean isScratch() {
    return "".equals(registry)
        && "scratch".equals(repository)
        && Strings.isNullOrEmpty(tag)
        && Strings.isNullOrEmpty(digest);
  }

  private  ImageReference(
      String registry, String repository, @Nullable String tag, @Nullable String digest);

}