Class ImmutableResolvedProtocPlugin

java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.ImmutableResolvedProtocPlugin
All Implemented Interfaces:
ResolvedProtocPlugin

@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableResolvedProtocPlugin extends Object implements ResolvedProtocPlugin
Immutable implementation of ResolvedProtocPlugin.

Use the builder to create immutable instances: ImmutableResolvedProtocPlugin.builder().

  • Method Details

    • getPath

      public Path getPath()
      Specified by:
      getPath in interface ResolvedProtocPlugin
      Returns:
      The value of the path attribute
    • getId

      public String getId()
      Specified by:
      getId in interface ResolvedProtocPlugin
      Returns:
      The value of the id attribute
    • getOptions

      public Optional<String> getOptions()
      Specified by:
      getOptions in interface ResolvedProtocPlugin
      Returns:
      The value of the options attribute
    • getOrder

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

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

      public int hashCode()
      Computes a hash code from attributes: path, id, options, order.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableResolvedProtocPlugin.Builder builder()
      Creates a builder for ImmutableResolvedProtocPlugin.
       ImmutableResolvedProtocPlugin.builder()
          .path(java.nio.file.Path | null) // nullable path
          .id(String | null) // nullable id
          .options(String) // optional options
          .order(int) // required order
          .build();
       
      Returns:
      A new ImmutableResolvedProtocPlugin builder