public Factory setUserAgent(@Nullable String userAgent) {
      this.userAgent = userAgent;
      return this;
    }
Sets the value of {@code User-Agent} in headers for registry requests.

@param userAgent user agent string
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/registry/RegistryClient.java