Class ImmutableMavenProtocPlugin

java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.ImmutableMavenProtocPlugin
All Implemented Interfaces:
MavenArtifact, MavenProtocPlugin, ProtocPlugin

@Generated(from="MavenProtocPlugin", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableMavenProtocPlugin extends Object implements MavenProtocPlugin
Immutable implementation of MavenProtocPlugin.

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

  • Method Details

    • getGroupId

      public @Nullable String getGroupId()
      Specified by:
      getGroupId in interface MavenArtifact
      Returns:
      The value of the groupId attribute
    • getArtifactId

      public @Nullable String getArtifactId()
      Specified by:
      getArtifactId in interface MavenArtifact
      Returns:
      The value of the artifactId attribute
    • getType

      public @Nullable String getType()
      Specified by:
      getType in interface MavenArtifact
      Returns:
      The value of the type attribute
    • getClassifier

      public @Nullable String getClassifier()
      Specified by:
      getClassifier in interface MavenArtifact
      Returns:
      The value of the classifier attribute
    • getOptions

      public @Nullable String getOptions()
      Specified by:
      getOptions in interface ProtocPlugin
      Returns:
      The value of the options attribute
    • getOutputDirectory

      public @Nullable Path getOutputDirectory()
      Specified by:
      getOutputDirectory in interface ProtocPlugin
      Returns:
      The value of the outputDirectory attribute
    • isRegisterAsCompilationRoot

      public @Nullable Boolean isRegisterAsCompilationRoot()
      Specified by:
      isRegisterAsCompilationRoot in interface ProtocPlugin
      Returns:
      The value of the registerAsCompilationRoot attribute
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface ProtocPlugin
      Returns:
      The value of the order attribute
    • isSkip

      public boolean isSkip()
      Specified by:
      isSkip in interface ProtocPlugin
      Returns:
      The value of the skip attribute
    • getVersion

      public @NonNull @Nullable String getVersion()
      Specified by:
      getVersion in interface MavenArtifact
      Specified by:
      getVersion in interface MavenProtocPlugin
      Returns:
      The value of the version attribute
    • getJvmArgs

      public @Nullable List<String> getJvmArgs()
      Specified by:
      getJvmArgs in interface MavenProtocPlugin
      Returns:
      The value of the jvmArgs attribute
    • getJvmConfigArgs

      public @Nullable List<String> getJvmConfigArgs()
      Specified by:
      getJvmConfigArgs in interface MavenProtocPlugin
      Returns:
      The value of the jvmConfigArgs attribute
    • getMainClass

      public @Nullable String getMainClass()
      Specified by:
      getMainClass in interface MavenProtocPlugin
      Returns:
      The value of the mainClass attribute
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableMavenProtocPlugin 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: groupId, artifactId, type, classifier, options, outputDirectory, registerAsCompilationRoot, order, skip, version, jvmArgs, jvmConfigArgs, mainClass.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value MavenProtocPlugin with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • builder

      public static ImmutableMavenProtocPlugin.Builder builder()
      Creates a builder for ImmutableMavenProtocPlugin.
      ImmutableMavenProtocPlugin.builder()
         .groupId(String | null) // nullable groupId
         .artifactId(String | null) // nullable artifactId
         .type(String | null) // nullable type
         .classifier(String | null) // nullable classifier
         .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
         .version(String | null) // nullable version
         .jvmArgs(List<String> | null) // nullable jvmArgs
         .jvmConfigArgs(List<String> | null) // nullable jvmConfigArgs
         .mainClass(String | null) // nullable mainClass
         .build();
      
      Returns:
      A new ImmutableMavenProtocPlugin builder