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
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final Path
private final SortedSet
<ProtocTarget> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableProtocInvocation
.private static <T> List
<T> createSafeList
(Iterable<? extends T> iterable, boolean checkNulls, boolean skipNulls) private static <T> List
<T> createUnmodifiableList
(boolean clone, List<T> list) boolean
This instance is equal to all instances ofImmutableProtocInvocation
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableProtocInvocation another) int
hashCode()
Computes a hash code from attributes:protocPath
,isFatalWarnings
,importPaths
,inputDescriptorFiles
,descriptorSourceFiles
,sourcePaths
,targets
.boolean
toString()
Prints the immutable valueProtocInvocation
with attribute values.
-
Field Details
-
protocPath
-
isFatalWarnings
private final boolean isFatalWarnings -
importPaths
-
inputDescriptorFiles
-
descriptorSourceFiles
-
sourcePaths
-
targets
-
-
Constructor Details
-
ImmutableProtocInvocation
-
-
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
isFatalWarnings
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
-
equalTo
-
hashCode
-
toString
-
builder
Creates a builder forImmutableProtocInvocation
.ImmutableProtocInvocation.builder() .protocPath(java.nio.file.Path | null) // nullable
protocPath
.isFatalWarnings(boolean) // requiredisFatalWarnings
.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
-
createSafeList
-
createUnmodifiableList
-