// Generated by delombok at Fri Oct 24 23:16:37 UTC 2025
package net.md_5.bungee.api.chat.player;

import java.util.UUID;
import lombok.NonNull;

public class Profile {
    /**
     * The name of the profile. Can be null.
     */
    private String name;
    /**
     * The UUID of the profile. Can be null.
     */
    private UUID uuid;
    /**
     * The properties of the profile. Can be null.
     */
    private Property[] properties;

    public Profile(@NonNull String name) {
        this(name, null, null);
        if (name == null) {
            throw new java.lang.NullPointerException("name is marked non-null but is null");
        }
    }

    public Profile(@NonNull UUID uuid) {
        this(null, uuid, null);
        if (uuid == null) {
            throw new java.lang.NullPointerException("uuid is marked non-null but is null");
        }
    }

    public Profile(@NonNull Property[] properties) {
        this(null, null, properties);
        if (properties == null) {
            throw new java.lang.NullPointerException("properties is marked non-null but is null");
        }
    }

    /**
     * The name of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getName() {
        return this.name;
    }

    /**
     * The UUID of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public UUID getUuid() {
        return this.uuid;
    }

    /**
     * The properties of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Property[] getProperties() {
        return this.properties;
    }

    /**
     * The name of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setName(final String name) {
        this.name = name;
    }

    /**
     * The UUID of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setUuid(final UUID uuid) {
        this.uuid = uuid;
    }

    /**
     * The properties of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setProperties(final Property[] properties) {
        this.properties = properties;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof Profile)) return false;
        final Profile other = (Profile) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$name = this.getName();
        final java.lang.Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final java.lang.Object this$uuid = this.getUuid();
        final java.lang.Object other$uuid = other.getUuid();
        if (this$uuid == null ? other$uuid != null : !this$uuid.equals(other$uuid)) return false;
        if (!java.util.Arrays.deepEquals(this.getProperties(), other.getProperties())) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof Profile;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final java.lang.Object $uuid = this.getUuid();
        result = result * PRIME + ($uuid == null ? 43 : $uuid.hashCode());
        result = result * PRIME + java.util.Arrays.deepHashCode(this.getProperties());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "Profile(name=" + this.getName() + ", uuid=" + this.getUuid() + ", properties=" + java.util.Arrays.deepToString(this.getProperties()) + ")";
    }

    /**
     * Creates a new {@code Profile} instance.
     *
     * @param name The name of the profile. Can be null.
     * @param uuid The UUID of the profile. Can be null.
     * @param properties The properties of the profile. Can be null.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Profile(final String name, final UUID uuid, final Property[] properties) {
        this.name = name;
        this.uuid = uuid;
        this.properties = properties;
    }
}
