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 class
Builds instances of typeImmutableLanguageProtocTarget
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableLanguageProtocTarget
.boolean
This instance is equal to all instances ofImmutableLanguageProtocTarget
that have equal attribute values.@Nullable Language
int
getOrder()
@Nullable Path
int
hashCode()
Computes a hash code from attributes:order
,language
,outputPath
,lite
.boolean
isLite()
toString()
Prints the immutable valueLanguageProtocTarget
with attribute values.Methods inherited from interface ProtocTarget
compareTo
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceProtocTarget
- Returns:
- The value of the
order
attribute
-
getLanguage
- Specified by:
getLanguage
in interfaceLanguageProtocTarget
- Returns:
- The value of the
language
attribute
-
getOutputPath
- Specified by:
getOutputPath
in interfaceLanguageProtocTarget
- Returns:
- The value of the
outputPath
attribute
-
isLite
public boolean isLite()- Specified by:
isLite
in interfaceLanguageProtocTarget
- Returns:
- The value of the
lite
attribute
-
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
-