Class ImmutableGenerationRequest
java.lang.Object
io.github.ascopes.protobufmavenplugin.generation.ImmutableGenerationRequest
- All Implemented Interfaces:
GenerationRequest
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableGenerationRequest
extends Object
implements GenerationRequest
Immutable implementation of
GenerationRequest
.
Use the builder to create immutable instances:
ImmutableGenerationRequest.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableGenerationRequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableGenerationRequest
.boolean
This instance is equal to all instances ofImmutableGenerationRequest
that have equal attribute values.Collection
<? extends MavenProtocPlugin> Collection
<? extends PathProtocPlugin> Collection
<? extends UrlProtocPlugin> Collection
<? extends MavenDependency> Collection
<? extends MavenProtocPlugin> Collection
<? extends MavenDependency> int
hashCode()
Computes a hash code from attributes:binaryMavenPlugins
,binaryPathPlugins
,binaryUrlPlugins
,dependencyResolutionDepth
,dependencyScopes
,enabledLanguages
,excludes
,importDependencies
,importPaths
,includes
,jvmMavenPlugins
,outputDirectory
,protocVersion
,sourceDependencies
,sourceRoots
,sourceRootRegistrar
,isEmbedSourcesInClassOutputs
,isFailOnInvalidDependencies
,isFailOnMissingSources
,isFailOnMissingTargets
,isFatalWarnings
,isIgnoreProjectDependencies
,isIncrementalCompilationEnabled
,isLiteEnabled
,isRegisterAsCompilationRoot
.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
toString()
Prints the immutable valueGenerationRequest
with attribute values.
-
Method Details
-
getBinaryMavenPlugins
- Specified by:
getBinaryMavenPlugins
in interfaceGenerationRequest
- Returns:
- The value of the
binaryMavenPlugins
attribute
-
getBinaryPathPlugins
- Specified by:
getBinaryPathPlugins
in interfaceGenerationRequest
- Returns:
- The value of the
binaryPathPlugins
attribute
-
getBinaryUrlPlugins
- Specified by:
getBinaryUrlPlugins
in interfaceGenerationRequest
- Returns:
- The value of the
binaryUrlPlugins
attribute
-
getDependencyResolutionDepth
- Specified by:
getDependencyResolutionDepth
in interfaceGenerationRequest
- Returns:
- The value of the
dependencyResolutionDepth
attribute
-
getDependencyScopes
- Specified by:
getDependencyScopes
in interfaceGenerationRequest
- Returns:
- The value of the
dependencyScopes
attribute
-
getEnabledLanguages
- Specified by:
getEnabledLanguages
in interfaceGenerationRequest
- Returns:
- The value of the
enabledLanguages
attribute
-
getExcludes
- Specified by:
getExcludes
in interfaceGenerationRequest
- Returns:
- The value of the
excludes
attribute
-
getImportDependencies
- Specified by:
getImportDependencies
in interfaceGenerationRequest
- Returns:
- The value of the
importDependencies
attribute
-
getImportPaths
- Specified by:
getImportPaths
in interfaceGenerationRequest
- Returns:
- The value of the
importPaths
attribute
-
getIncludes
- Specified by:
getIncludes
in interfaceGenerationRequest
- Returns:
- The value of the
includes
attribute
-
getJvmMavenPlugins
- Specified by:
getJvmMavenPlugins
in interfaceGenerationRequest
- Returns:
- The value of the
jvmMavenPlugins
attribute
-
getOutputDirectory
- Specified by:
getOutputDirectory
in interfaceGenerationRequest
- Returns:
- The value of the
outputDirectory
attribute
-
getProtocVersion
- Specified by:
getProtocVersion
in interfaceGenerationRequest
- Returns:
- The value of the
protocVersion
attribute
-
getSourceDependencies
- Specified by:
getSourceDependencies
in interfaceGenerationRequest
- Returns:
- The value of the
sourceDependencies
attribute
-
getSourceRoots
- Specified by:
getSourceRoots
in interfaceGenerationRequest
- Returns:
- The value of the
sourceRoots
attribute
-
getSourceRootRegistrar
- Specified by:
getSourceRootRegistrar
in interfaceGenerationRequest
- Returns:
- The value of the
sourceRootRegistrar
attribute
-
isEmbedSourcesInClassOutputs
public boolean isEmbedSourcesInClassOutputs()- Specified by:
isEmbedSourcesInClassOutputs
in interfaceGenerationRequest
- Returns:
- The value of the
isEmbedSourcesInClassOutputs
attribute
-
isFailOnInvalidDependencies
public boolean isFailOnInvalidDependencies()- Specified by:
isFailOnInvalidDependencies
in interfaceGenerationRequest
- Returns:
- The value of the
isFailOnInvalidDependencies
attribute
-
isFailOnMissingSources
public boolean isFailOnMissingSources()- Specified by:
isFailOnMissingSources
in interfaceGenerationRequest
- Returns:
- The value of the
isFailOnMissingSources
attribute
-
isFailOnMissingTargets
public boolean isFailOnMissingTargets()- Specified by:
isFailOnMissingTargets
in interfaceGenerationRequest
- Returns:
- The value of the
isFailOnMissingTargets
attribute
-
isFatalWarnings
public boolean isFatalWarnings()- Specified by:
isFatalWarnings
in interfaceGenerationRequest
- Returns:
- The value of the
isFatalWarnings
attribute
-
isIgnoreProjectDependencies
public boolean isIgnoreProjectDependencies()- Specified by:
isIgnoreProjectDependencies
in interfaceGenerationRequest
- Returns:
- The value of the
isIgnoreProjectDependencies
attribute
-
isIncrementalCompilationEnabled
public boolean isIncrementalCompilationEnabled()- Specified by:
isIncrementalCompilationEnabled
in interfaceGenerationRequest
- Returns:
- The value of the
isIncrementalCompilationEnabled
attribute
-
isLiteEnabled
public boolean isLiteEnabled()- Specified by:
isLiteEnabled
in interfaceGenerationRequest
- Returns:
- The value of the
isLiteEnabled
attribute
-
isRegisterAsCompilationRoot
public boolean isRegisterAsCompilationRoot()- Specified by:
isRegisterAsCompilationRoot
in interfaceGenerationRequest
- Returns:
- The value of the
isRegisterAsCompilationRoot
attribute
-
equals
-
hashCode
public int hashCode()Computes a hash code from attributes:binaryMavenPlugins
,binaryPathPlugins
,binaryUrlPlugins
,dependencyResolutionDepth
,dependencyScopes
,enabledLanguages
,excludes
,importDependencies
,importPaths
,includes
,jvmMavenPlugins
,outputDirectory
,protocVersion
,sourceDependencies
,sourceRoots
,sourceRootRegistrar
,isEmbedSourcesInClassOutputs
,isFailOnInvalidDependencies
,isFailOnMissingSources
,isFailOnMissingTargets
,isFatalWarnings
,isIgnoreProjectDependencies
,isIncrementalCompilationEnabled
,isLiteEnabled
,isRegisterAsCompilationRoot
. -
toString
-
builder
Creates a builder forImmutableGenerationRequest
.ImmutableGenerationRequest.builder() .binaryMavenPlugins(Collection<? extends io.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugin> | null) // nullable
binaryMavenPlugins
.binaryPathPlugins(Collection<? extends io.github.ascopes.protobufmavenplugin.plugins.PathProtocPlugin> | null) // nullablebinaryPathPlugins
.binaryUrlPlugins(Collection<? extends io.github.ascopes.protobufmavenplugin.plugins.UrlProtocPlugin> | null) // nullablebinaryUrlPlugins
.dependencyResolutionDepth(io.github.ascopes.protobufmavenplugin.dependencies.DependencyResolutionDepth | null) // nullabledependencyResolutionDepth
.addDependencyScopes|addAllDependencyScopes(String) //dependencyScopes
elements .enabledLanguages(Collection<io.github.ascopes.protobufmavenplugin.generation.Language> | null) // nullableenabledLanguages
.addExcludes|addAllExcludes(String) //excludes
elements .importDependencies(Collection<? extends io.github.ascopes.protobufmavenplugin.dependencies.MavenDependency> | null) // nullableimportDependencies
.importPaths(Collection<java.nio.file.Path> | null) // nullableimportPaths
.addIncludes|addAllIncludes(String) //includes
elements .jvmMavenPlugins(Collection<? extends io.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugin> | null) // nullablejvmMavenPlugins
.outputDirectory(java.nio.file.Path | null) // nullableoutputDirectory
.protocVersion(String | null) // nullableprotocVersion
.sourceDependencies(Collection<? extends io.github.ascopes.protobufmavenplugin.dependencies.MavenDependency> | null) // nullablesourceDependencies
.sourceRoots(Collection<java.nio.file.Path> | null) // nullablesourceRoots
.sourceRootRegistrar(io.github.ascopes.protobufmavenplugin.generation.SourceRootRegistrar | null) // nullablesourceRootRegistrar
.isEmbedSourcesInClassOutputs(boolean) // requiredisEmbedSourcesInClassOutputs
.isFailOnInvalidDependencies(boolean) // requiredisFailOnInvalidDependencies
.isFailOnMissingSources(boolean) // requiredisFailOnMissingSources
.isFailOnMissingTargets(boolean) // requiredisFailOnMissingTargets
.isFatalWarnings(boolean) // requiredisFatalWarnings
.isIgnoreProjectDependencies(boolean) // requiredisIgnoreProjectDependencies
.isIncrementalCompilationEnabled(boolean) // requiredisIncrementalCompilationEnabled
.isLiteEnabled(boolean) // requiredisLiteEnabled
.isRegisterAsCompilationRoot(boolean) // requiredisRegisterAsCompilationRoot
.build();- Returns:
- A new ImmutableGenerationRequest builder
-