// Generated by delombok at Tue Dec 16 19:35:15 UTC 2025
package net.md_5.bungee.protocol.packet;

import io.netty.buffer.ByteBuf;
import net.md_5.bungee.protocol.AbstractPacketHandler;
import net.md_5.bungee.protocol.DefinedPacket;

public class StatusResponse extends DefinedPacket {
    private String response;

    @Override
    public void read(ByteBuf buf) {
        response = readString(buf);
    }

    @Override
    public void write(ByteBuf buf) {
        writeString(response, buf);
    }

    @Override
    public void handle(AbstractPacketHandler handler) throws Exception {
        handler.handle(this);
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getResponse() {
        return this.response;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setResponse(final String response) {
        this.response = response;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "StatusResponse(response=" + this.getResponse() + ")";
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public StatusResponse() {
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public StatusResponse(final String response) {
        this.response = response;
    }

    @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 StatusResponse)) return false;
        final StatusResponse other = (StatusResponse) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$response = this.getResponse();
        final java.lang.Object other$response = other.getResponse();
        if (this$response == null ? other$response != null : !this$response.equals(other$response)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $response = this.getResponse();
        result = result * PRIME + ($response == null ? 43 : $response.hashCode());
        return result;
    }
}
