Class ImmutableLanguageProtocTarget
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.targets.ImmutableLanguageProtocTarget
- All Implemented Interfaces:
LanguageProtocTarget, ProtocTarget, Comparable<ProtocTarget>
@Generated(from="LanguageProtocTarget",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableLanguageProtocTarget
extends Object
implements LanguageProtocTarget
Immutable implementation of
LanguageProtocTarget.
Use the builder to create immutable instances:
ImmutableLanguageProtocTarget.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableLanguageProtocTarget. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableLanguageProtocTarget.booleanThis instance is equal to all instances ofImmutableLanguageProtocTargetthat have equal attribute values.@Nullable LanguageintgetOrder()@Nullable PathinthashCode()Computes a hash code from attributes:order,language,outputPath,lite.booleanisLite()toString()Prints the immutable valueLanguageProtocTargetwith attribute values.Methods inherited from interface ProtocTarget
compareTo
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceProtocTarget- Returns:
- The value of the
orderattribute
-
getLanguage
- Specified by:
getLanguagein interfaceLanguageProtocTarget- Returns:
- The value of the
languageattribute
-
getOutputPath
- Specified by:
getOutputPathin interfaceLanguageProtocTarget- Returns:
- The value of the
outputPathattribute
-
isLite
public boolean isLite()- Specified by:
isLitein interfaceLanguageProtocTarget- Returns:
- The value of the
liteattribute
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableLanguageProtocTarget.ImmutableLanguageProtocTarget.builder() .order(int) // optional
order.language(io.github.ascopes.protobufmavenplugin.generation.Language | null) // nullablelanguage.outputPath(java.nio.file.Path | null) // nullableoutputPath.lite(boolean) // requiredlite.build();- Returns:
- A new ImmutableLanguageProtocTarget builder
-