public Optional<String> getTag() {
    return Optional.ofNullable(tag);
  }
Gets the tag portion of the {@link ImageReference}.

@return the optional tag
jib-core/src/main/java/com/google/cloud/tools/jib/api/ImageReference.java