Class ImmutableMavenProtocPlugin
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.ImmutableMavenProtocPlugin
- All Implemented Interfaces:
MavenArtifact
,MavenProtocPlugin
,ProtocPlugin
@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()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableMavenProtocPlugin
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableMavenProtocPlugin
.boolean
This instance is equal to all instances ofImmutableMavenProtocPlugin
that have equal attribute values.@Nullable String
@Nullable DependencyResolutionDepth
The dependency resolution depth.Get the command line arguments to pass to the JVM.Get the arguments to pass to the JVM to configure it.@Nullable String
The main class entrypoint to use if the plugin is not an assembled JAR.@Nullable String
int
getOrder()
@Nullable String
getType()
int
hashCode()
Computes a hash code from attributes:groupId
,artifactId
,version
,type
,classifier
,options
,order
,isSkip
,jvmArgs
,dependencyResolutionDepth
,jvmConfigArgs
,mainClass
.boolean
isSkip()
toString()
Prints the immutable valueMavenProtocPlugin
with attribute values.
-
Method Details
-
getGroupId
- Specified by:
getGroupId
in interfaceMavenArtifact
- Returns:
- The value of the
groupId
attribute
-
getArtifactId
- Specified by:
getArtifactId
in interfaceMavenArtifact
- Returns:
- The value of the
artifactId
attribute
-
getVersion
- Specified by:
getVersion
in interfaceMavenArtifact
- Returns:
- The value of the
version
attribute
-
getType
- Specified by:
getType
in interfaceMavenArtifact
- Returns:
- The value of the
type
attribute
-
getClassifier
- Specified by:
getClassifier
in interfaceMavenArtifact
- Returns:
- The value of the
classifier
attribute
-
getOptions
- Specified by:
getOptions
in interfaceProtocPlugin
- Returns:
- The value of the
options
attribute
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceProtocPlugin
- Returns:
- The value of the
order
attribute
-
isSkip
public boolean isSkip()- Specified by:
isSkip
in interfaceProtocPlugin
- Returns:
- The value of the
isSkip
attribute
-
getJvmArgs
Get the command line arguments to pass to the JVM.This defaults to an empty list.
- Specified by:
getJvmArgs
in interfaceMavenProtocPlugin
- Returns:
- the list of command line arguments to pass to the JVM.
- Since:
- 2.6.0
-
getDependencyResolutionDepth
The dependency resolution depth.This cannot be changed for this type of plugin.
- Specified by:
getDependencyResolutionDepth
in interfaceMavenArtifact
- Specified by:
getDependencyResolutionDepth
in interfaceMavenProtocPlugin
- Returns:
null
, always.
-
getJvmConfigArgs
Get the arguments to pass to the JVM to configure it.Users can use this to control concerns such as heap memory controls, GC and JIT settings, and specifying additional JVM options.
- Specified by:
getJvmConfigArgs
in interfaceMavenProtocPlugin
- Returns:
- the list of command line arguments to pass to the JVM.
- Since:
- 2.6.0
-
getMainClass
The main class entrypoint to use if the plugin is not an assembled JAR.Ignored in all other cases.
- Specified by:
getMainClass
in interfaceMavenProtocPlugin
- Returns:
- the main class name.
- Since:
- 2.5.0
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableMavenProtocPlugin
.ImmutableMavenProtocPlugin.builder() .groupId(String | null) // nullable
groupId
.artifactId(String | null) // nullableartifactId
.version(String | null) // nullableversion
.type(@org.jspecify.annotations.Nullable String | null) // nullabletype
.classifier(@org.jspecify.annotations.Nullable String | null) // nullableclassifier
.options(@org.jspecify.annotations.Nullable String | null) // nullableoptions
.order(int) // optionalorder
.isSkip(boolean) // optionalisSkip
.jvmArgs(@org.jspecify.annotations.Nullable List<String> | null) // nullablejvmArgs
.jvmConfigArgs(@org.jspecify.annotations.Nullable List<String> | null) // nullablejvmConfigArgs
.mainClass(@org.jspecify.annotations.Nullable String | null) // nullablemainClass
.build();- Returns:
- A new ImmutableMavenProtocPlugin builder
-