Class ImmutableMavenProtocPlugin
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.ImmutableMavenProtocPlugin
- All Implemented Interfaces:
MavenArtifact
,ProtocPlugin
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableMavenProtocPlugin
extends 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
@Nullable String
int
getOrder()
@Nullable String
getType()
int
hashCode()
Computes a hash code from attributes:groupId
,artifactId
,version
,type
,classifier
,options
,order
,isSkip
,dependencyResolutionDepth
.boolean
isSkip()
toString()
Prints the immutable valueMavenProtocPlugin
with attribute values.
-
Method Details
-
getGroupId
- Returns:
- The value of the
groupId
attribute
-
getArtifactId
- Returns:
- The value of the
artifactId
attribute
-
getVersion
- Returns:
- The value of the
version
attribute
-
getType
- Returns:
- The value of the
type
attribute
-
getClassifier
- Returns:
- The value of the
classifier
attribute
-
getOptions
- Returns:
- The value of the
options
attribute
-
getOrder
public int getOrder()- Returns:
- The value of the
order
attribute
-
isSkip
public boolean isSkip()- Returns:
- The value of the
isSkip
attribute
-
getDependencyResolutionDepth
- Specified by:
getDependencyResolutionDepth
in interfaceMavenArtifact
- Overrides:
getDependencyResolutionDepth
in classMavenProtocPlugin
- Returns:
- The computed-at-construction value of the
dependencyResolutionDepth
attribute
-
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
.build();- Returns:
- A new ImmutableMavenProtocPlugin builder
-