All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.whatsapp.model.button.base.ButtonRowOpaqueDataBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.button.base;

public class ButtonRowOpaqueDataBuilder {
    private java.util.Optional currentMessage;
    private java.util.Optional quotedMessage;

    public ButtonRowOpaqueDataBuilder() {
        currentMessage = it.auties.protobuf.builtin.ProtobufOptionalMixin.newOptional();
        quotedMessage = it.auties.protobuf.builtin.ProtobufOptionalMixin.newOptional();
    }

    public ButtonRowOpaqueDataBuilder currentMessage(it.auties.whatsapp.model.button.base.ButtonOpaqueData currentMessage) {
        this.currentMessage = it.auties.protobuf.builtin.ProtobufOptionalMixin.ofOptional(currentMessage);
        return this;
    }

    public ButtonRowOpaqueDataBuilder quotedMessage(it.auties.whatsapp.model.button.base.ButtonOpaqueData quotedMessage) {
        this.quotedMessage = it.auties.protobuf.builtin.ProtobufOptionalMixin.ofOptional(quotedMessage);
        return this;
    }

    public it.auties.whatsapp.model.button.base.ButtonRowOpaqueData build() {
        return new it.auties.whatsapp.model.button.base.ButtonRowOpaqueData(currentMessage, quotedMessage);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy