Class PathProtocDistributionBean

java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.distributions.PathProtocDistribution
io.github.ascopes.protobufmavenplugin.protoc.distributions.PathProtocDistributionBean
All Implemented Interfaces:
ProtocDistribution

@Generated(from="PathProtocDistribution", generator="Modifiables") @Generated({"Modifiables.generator","PathProtocDistribution"}) public class PathProtocDistributionBean extends PathProtocDistribution
A modifiable implementation of the PathProtocDistribution type.

Use the constructor to create new modifiable instances. You may even extend this class to add some convenience methods, however most of the methods in this class are final to preserve safety and predictable invariants.

PathProtocDistributionBean is not thread-safe

See Also:
  • Constructor Details

    • PathProtocDistributionBean

      public PathProtocDistributionBean()
  • Method Details

    • getName

      public String getName()
      Get the name.

      Defaults to "protoc" if unset.

      Overrides:
      getName in class PathProtocDistribution
      Returns:
      the name.
    • clear

      public void clear()
      Clears the object by setting all attributes to their initial values.
    • from

      Fill this modifiable instance with attribute values from the provided PathProtocDistribution instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this for use in a chained invocation
    • from

      Fill this modifiable instance with attribute values from the provided PathProtocDistribution instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this for use in a chained invocation
    • setName

      public void setName(String name)
      Assigns a value to the name attribute.

      If not set, this attribute will have a default value returned by the initializer of name.

      Parameters:
      name - The value for name
    • nameIsSet

      public final boolean nameIsSet()
      Returns true if the default attribute name is set.
      Returns:
      true if set
    • unsetName

      public final void unsetName()
      Reset an attribute to its initial value.
    • isInitialized

      public final boolean isInitialized()
      Returns true if all required attributes are set, indicating that the object is initialized.
      Returns:
      true if set
    • toImmutable

      public final ImmutablePathProtocDistribution toImmutable()
      Returns:
      An immutable instance of PathProtocDistribution
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of PathProtocDistributionBean 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: name.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Generates a string representation of this PathProtocDistribution. If uninitialized, some attribute values may appear as question marks.
      Overrides:
      toString in class Object
      Returns:
      A string representation