Class ImmutablePathProtocPlugin

java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.distributions.PathProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.distributions.ImmutablePathProtocPlugin
All Implemented Interfaces:
ProtocPlugin

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

Use the builder to create immutable instances: ImmutablePathProtocPlugin.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
    • getName

      public @Nullable String getName()
      Specified by:
      getName in class PathProtocPlugin
      Returns:
      The value of the name attribute
    • getDigest

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutablePathProtocPlugin 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, name, digest, optional.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • builder

      public static ImmutablePathProtocPlugin.Builder builder()
      Creates a builder for ImmutablePathProtocPlugin.
      ImmutablePathProtocPlugin.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
         .name(String | null) // nullable name
         .digest(io.github.ascopes.protobufmavenplugin.digests.Digest | null) // nullable digest
         .optional(boolean) // optional optional
         .build();
      
      Returns:
      A new ImmutablePathProtocPlugin builder