Class ImmutableProtocInvocation
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.ImmutableProtocInvocation
- All Implemented Interfaces:
ProtocInvocation
@Generated(from="ProtocInvocation",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableProtocInvocation
extends Object
implements ProtocInvocation
Immutable implementation of
ProtocInvocation.
Use the builder to create immutable instances:
ImmutableProtocInvocation.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProtocInvocation. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProtocInvocation.booleanThis instance is equal to all instances ofImmutableProtocInvocationthat have equal attribute values.@Nullable Path@Nullable Path@Nullable SortedSet<ProtocTarget> inthashCode()Computes a hash code from attributes:protocPath,fatalWarnings,arguments,environmentVariables,importPaths,inputDescriptorFiles,descriptorSourceFiles,sourcePaths,targets,sanctionedExecutablePath.booleantoString()Prints the immutable valueProtocInvocationwith attribute values.
-
Method Details
-
getProtocPath
- Specified by:
getProtocPathin interfaceProtocInvocation- Returns:
- The value of the
protocPathattribute
-
isFatalWarnings
public boolean isFatalWarnings()- Specified by:
isFatalWarningsin interfaceProtocInvocation- Returns:
- The value of the
fatalWarningsattribute
-
getArguments
- Specified by:
getArgumentsin interfaceProtocInvocation- Returns:
- The value of the
argumentsattribute
-
getEnvironmentVariables
- Specified by:
getEnvironmentVariablesin interfaceProtocInvocation- Returns:
- The value of the
environmentVariablesattribute
-
getImportPaths
- Specified by:
getImportPathsin interfaceProtocInvocation- Returns:
- The value of the
importPathsattribute
-
getInputDescriptorFiles
- Specified by:
getInputDescriptorFilesin interfaceProtocInvocation- Returns:
- The value of the
inputDescriptorFilesattribute
-
getDescriptorSourceFiles
- Specified by:
getDescriptorSourceFilesin interfaceProtocInvocation- Returns:
- The value of the
descriptorSourceFilesattribute
-
getSourcePaths
- Specified by:
getSourcePathsin interfaceProtocInvocation- Returns:
- The value of the
sourcePathsattribute
-
getTargets
- Specified by:
getTargetsin interfaceProtocInvocation- Returns:
- The value of the
targetsattribute
-
getSanctionedExecutablePath
- Specified by:
getSanctionedExecutablePathin interfaceProtocInvocation- Returns:
- The value of the
sanctionedExecutablePathattribute
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableProtocInvocation.ImmutableProtocInvocation.builder() .protocPath(java.nio.file.Path | null) // nullable
protocPath.fatalWarnings(boolean) // requiredfatalWarnings.addArguments|addAllArguments(String) //argumentselements .putEnvironmentVariables|putAllEnvironmentVariables(String => String) //environmentVariablesmappings .addImportPaths|addAllImportPaths(java.nio.file.Path) //importPathselements .addInputDescriptorFiles|addAllInputDescriptorFiles(java.nio.file.Path) //inputDescriptorFileselements .addDescriptorSourceFiles|addAllDescriptorSourceFiles(String) //descriptorSourceFileselements .addSourcePaths|addAllSourcePaths(java.nio.file.Path) //sourcePathselements .targets(SortedSet<io.github.ascopes.protobufmavenplugin.protoc.targets.ProtocTarget> | null) // nullabletargets.sanctionedExecutablePath(java.nio.file.Path | null) // nullablesanctionedExecutablePath.build();- Returns:
- A new ImmutableProtocInvocation builder
-