Class ImmutableProtocInvocation
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.ImmutableProtocInvocation
- All Implemented Interfaces:
ProtocInvocation
@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 class
Builds instances of typeImmutableProtocInvocation
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableProtocInvocation
.boolean
This instance is equal to all instances ofImmutableProtocInvocation
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:protocPath
,fatalWarnings
,importPaths
,inputDescriptorFiles
,descriptorSourceFiles
,sourcePaths
,targets
.boolean
toString()
Prints the immutable valueProtocInvocation
with attribute values.
-
Method Details
-
getProtocPath
- Specified by:
getProtocPath
in interfaceProtocInvocation
- Returns:
- The value of the
protocPath
attribute
-
isFatalWarnings
public boolean isFatalWarnings()- Specified by:
isFatalWarnings
in interfaceProtocInvocation
- Returns:
- The value of the
fatalWarnings
attribute
-
getImportPaths
- Specified by:
getImportPaths
in interfaceProtocInvocation
- Returns:
- The value of the
importPaths
attribute
-
getInputDescriptorFiles
- Specified by:
getInputDescriptorFiles
in interfaceProtocInvocation
- Returns:
- The value of the
inputDescriptorFiles
attribute
-
getDescriptorSourceFiles
- Specified by:
getDescriptorSourceFiles
in interfaceProtocInvocation
- Returns:
- The value of the
descriptorSourceFiles
attribute
-
getSourcePaths
- Specified by:
getSourcePaths
in interfaceProtocInvocation
- Returns:
- The value of the
sourcePaths
attribute
-
getTargets
- Specified by:
getTargets
in interfaceProtocInvocation
- Returns:
- The value of the
targets
attribute
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableProtocInvocation
.ImmutableProtocInvocation.builder() .protocPath(java.nio.file.Path | null) // nullable
protocPath
.fatalWarnings(boolean) // requiredfatalWarnings
.addImportPaths|addAllImportPaths(java.nio.file.Path) //importPaths
elements .addInputDescriptorFiles|addAllInputDescriptorFiles(java.nio.file.Path) //inputDescriptorFiles
elements .addDescriptorSourceFiles|addAllDescriptorSourceFiles(String) //descriptorSourceFiles
elements .addSourcePaths|addAllSourcePaths(java.nio.file.Path) //sourcePaths
elements .targets(SortedSet<io.github.ascopes.protobufmavenplugin.protoc.targets.ProtocTarget> | null) // nullabletargets
.build();- Returns:
- A new ImmutableProtocInvocation builder
-