Class ImmutableLanguageProtocTarget

java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.targets.ImmutableLanguageProtocTarget
All Implemented Interfaces:
LanguageProtocTarget, ProtocTarget, Comparable<ProtocTarget>

@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().

  • Field Details

    • order

      private final int order
    • language

      private final Language language
    • outputPath

      private final Path outputPath
    • isLite

      private final boolean isLite
  • Constructor Details

  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface ProtocTarget
      Returns:
      The value of the order attribute
    • getLanguage

      public Language getLanguage()
      Specified by:
      getLanguage in interface LanguageProtocTarget
      Returns:
      The value of the language attribute
    • getOutputPath

      public Path getOutputPath()
      Specified by:
      getOutputPath in interface LanguageProtocTarget
      Returns:
      The value of the outputPath attribute
    • isLite

      public boolean isLite()
      Specified by:
      isLite in interface LanguageProtocTarget
      Returns:
      The value of the isLite attribute
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableLanguageProtocTarget that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • equalTo

      private boolean equalTo(int synthetic, ImmutableLanguageProtocTarget another)
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: order, language, outputPath, isLite.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value LanguageProtocTarget with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • builder

      public static ImmutableLanguageProtocTarget.Builder builder()
      Creates a builder for ImmutableLanguageProtocTarget.
       ImmutableLanguageProtocTarget.builder()
          .order(int) // optional order
          .language(io.github.ascopes.protobufmavenplugin.generation.Language | null) // nullable language
          .outputPath(java.nio.file.Path | null) // nullable outputPath
          .isLite(boolean) // required isLite
          .build();
       
      Returns:
      A new ImmutableLanguageProtocTarget builder