Class ImmutableUriProtocPlugin

java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.distributions.UriProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.distributions.ImmutableUriProtocPlugin
All Implemented Interfaces:
ProtocPlugin

@Generated(from="UriProtocPlugin", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableUriProtocPlugin extends UriProtocPlugin
Immutable implementation of UriProtocPlugin.

Use the builder to create immutable instances: ImmutableUriProtocPlugin.builder().

  • Method Details

    • getOptions

      public @Nullable String getOptions()
      Returns:
      The value of the options attribute
    • getOutputDirectory

      public @Nullable Path getOutputDirectory()
      Returns:
      The value of the outputDirectory attribute
    • isRegisterAsCompilationRoot

      public @Nullable Boolean isRegisterAsCompilationRoot()
      Returns:
      The value of the registerAsCompilationRoot attribute
    • getOrder

      public int getOrder()
      Returns:
      The value of the order attribute
    • isSkip

      public boolean isSkip()
      Returns:
      The value of the skip attribute
    • getUrl

      public @Nullable URI getUrl()
      Specified by:
      getUrl in class UriProtocPlugin
      Returns:
      The value of the url attribute
    • getDigest

      public @Nullable Digest getDigest()
      Specified by:
      getDigest in class UriProtocPlugin
      Returns:
      The value of the digest attribute
    • isOptional

      public boolean isOptional()
      Specified by:
      isOptional in class UriProtocPlugin
      Returns:
      The value of the optional attribute
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableUriProtocPlugin that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: options, outputDirectory, registerAsCompilationRoot, order, skip, url, digest, optional.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • builder

      public static ImmutableUriProtocPlugin.Builder builder()
      Creates a builder for ImmutableUriProtocPlugin.
      ImmutableUriProtocPlugin.builder()
         .options(String | null) // nullable options
         .outputDirectory(java.nio.file.Path | null) // nullable outputDirectory
         .registerAsCompilationRoot(Boolean | null) // nullable registerAsCompilationRoot
         .order(int) // optional order
         .skip(boolean) // optional skip
         .url(java.net.URI | null) // nullable url
         .digest(io.github.ascopes.protobufmavenplugin.digests.Digest | null) // nullable digest
         .optional(boolean) // optional optional
         .build();
      
      Returns:
      A new ImmutableUriProtocPlugin builder