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

it.auties.whatsapp.model.button.misc.ButtonOpaqueDataBuilder Maven / Gradle / Ivy

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

public class ButtonOpaqueDataBuilder {
    private java.util.Optional body;
    private java.util.Optional caption;
    private double longitude;
    private double latitude;
    private int paymentAmount1000;
    private java.util.Optional paymentNote;
    private java.util.Optional canonicalUrl;
    private java.util.Optional matchedText;
    private java.util.Optional title;
    private java.util.Optional description;
    private boolean isLive;
    private java.util.Optional futureProofBuffer;
    private java.util.Optional clientUrl;
    private java.util.Optional loc;
    private java.util.Optional pollName;
    private java.util.List pollOptions;
    private int pollSelectableOptionsCount;
    private java.util.Optional messageSecret;
    private java.util.Optional originalSelfAuthor;
    private long senderTimestampMs;
    private java.util.Optional pollUpdateParentKey;
    private java.util.Optional encPollVote;
    private java.util.Optional encReactionTargetMessageKey;
    private java.util.Optional encReactionEncPayload;
    private java.util.Optional encReactionEncIv;

    public ButtonOpaqueDataBuilder() {
        body = java.util.Optional.empty();
        caption = java.util.Optional.empty();
        longitude = 0d;
        latitude = 0d;
        paymentAmount1000 = 0;
        paymentNote = java.util.Optional.empty();
        canonicalUrl = java.util.Optional.empty();
        matchedText = java.util.Optional.empty();
        title = java.util.Optional.empty();
        description = java.util.Optional.empty();
        isLive = false;
        futureProofBuffer = java.util.Optional.empty();
        clientUrl = java.util.Optional.empty();
        loc = java.util.Optional.empty();
        pollName = java.util.Optional.empty();
        pollOptions = new java.util.ArrayList();
        pollSelectableOptionsCount = 0;
        messageSecret = java.util.Optional.empty();
        originalSelfAuthor = java.util.Optional.empty();
        senderTimestampMs = 0l;
        pollUpdateParentKey = java.util.Optional.empty();
        encPollVote = java.util.Optional.empty();
        encReactionTargetMessageKey = java.util.Optional.empty();
        encReactionEncPayload = java.util.Optional.empty();
        encReactionEncIv = java.util.Optional.empty();
    }

    public ButtonOpaqueDataBuilder body(java.util.Optional body) {
        this.body = body;
        return this;
    }
    public ButtonOpaqueDataBuilder body(java.lang.String body) {
        this.body = java.util.Optional.ofNullable(body);
        return this;
    }
    public ButtonOpaqueDataBuilder caption(java.util.Optional caption) {
        this.caption = caption;
        return this;
    }
    public ButtonOpaqueDataBuilder caption(java.lang.String caption) {
        this.caption = java.util.Optional.ofNullable(caption);
        return this;
    }
    public ButtonOpaqueDataBuilder longitude(double longitude) {
        this.longitude = longitude;
        return this;
    }
    public ButtonOpaqueDataBuilder latitude(double latitude) {
        this.latitude = latitude;
        return this;
    }
    public ButtonOpaqueDataBuilder paymentAmount1000(int paymentAmount1000) {
        this.paymentAmount1000 = paymentAmount1000;
        return this;
    }
    public ButtonOpaqueDataBuilder paymentNote(java.util.Optional paymentNote) {
        this.paymentNote = paymentNote;
        return this;
    }
    public ButtonOpaqueDataBuilder paymentNote(java.lang.String paymentNote) {
        this.paymentNote = java.util.Optional.ofNullable(paymentNote);
        return this;
    }
    public ButtonOpaqueDataBuilder canonicalUrl(java.util.Optional canonicalUrl) {
        this.canonicalUrl = canonicalUrl;
        return this;
    }
    public ButtonOpaqueDataBuilder canonicalUrl(java.lang.String canonicalUrl) {
        this.canonicalUrl = java.util.Optional.ofNullable(canonicalUrl);
        return this;
    }
    public ButtonOpaqueDataBuilder matchedText(java.util.Optional matchedText) {
        this.matchedText = matchedText;
        return this;
    }
    public ButtonOpaqueDataBuilder matchedText(java.lang.String matchedText) {
        this.matchedText = java.util.Optional.ofNullable(matchedText);
        return this;
    }
    public ButtonOpaqueDataBuilder title(java.util.Optional title) {
        this.title = title;
        return this;
    }
    public ButtonOpaqueDataBuilder title(java.lang.String title) {
        this.title = java.util.Optional.ofNullable(title);
        return this;
    }
    public ButtonOpaqueDataBuilder description(java.util.Optional description) {
        this.description = description;
        return this;
    }
    public ButtonOpaqueDataBuilder description(java.lang.String description) {
        this.description = java.util.Optional.ofNullable(description);
        return this;
    }
    public ButtonOpaqueDataBuilder isLive(boolean isLive) {
        this.isLive = isLive;
        return this;
    }
    public ButtonOpaqueDataBuilder futureProofBuffer(java.util.Optional futureProofBuffer) {
        this.futureProofBuffer = futureProofBuffer;
        return this;
    }
    public ButtonOpaqueDataBuilder futureProofBuffer(byte[] futureProofBuffer) {
        this.futureProofBuffer = java.util.Optional.ofNullable(futureProofBuffer);
        return this;
    }
    public ButtonOpaqueDataBuilder clientUrl(java.util.Optional clientUrl) {
        this.clientUrl = clientUrl;
        return this;
    }
    public ButtonOpaqueDataBuilder clientUrl(java.lang.String clientUrl) {
        this.clientUrl = java.util.Optional.ofNullable(clientUrl);
        return this;
    }
    public ButtonOpaqueDataBuilder loc(java.util.Optional loc) {
        this.loc = loc;
        return this;
    }
    public ButtonOpaqueDataBuilder loc(java.lang.String loc) {
        this.loc = java.util.Optional.ofNullable(loc);
        return this;
    }
    public ButtonOpaqueDataBuilder pollName(java.util.Optional pollName) {
        this.pollName = pollName;
        return this;
    }
    public ButtonOpaqueDataBuilder pollName(java.lang.String pollName) {
        this.pollName = java.util.Optional.ofNullable(pollName);
        return this;
    }
    public ButtonOpaqueDataBuilder pollOptions(java.util.List pollOptions) {
        this.pollOptions = pollOptions;
        return this;
    }
    public ButtonOpaqueDataBuilder pollSelectableOptionsCount(int pollSelectableOptionsCount) {
        this.pollSelectableOptionsCount = pollSelectableOptionsCount;
        return this;
    }
    public ButtonOpaqueDataBuilder messageSecret(java.util.Optional messageSecret) {
        this.messageSecret = messageSecret;
        return this;
    }
    public ButtonOpaqueDataBuilder messageSecret(byte[] messageSecret) {
        this.messageSecret = java.util.Optional.ofNullable(messageSecret);
        return this;
    }
    public ButtonOpaqueDataBuilder originalSelfAuthor(java.util.Optional originalSelfAuthor) {
        this.originalSelfAuthor = originalSelfAuthor;
        return this;
    }
    public ButtonOpaqueDataBuilder originalSelfAuthor(java.lang.String originalSelfAuthor) {
        this.originalSelfAuthor = java.util.Optional.ofNullable(originalSelfAuthor);
        return this;
    }
    public ButtonOpaqueDataBuilder senderTimestampMs(long senderTimestampMs) {
        this.senderTimestampMs = senderTimestampMs;
        return this;
    }
    public ButtonOpaqueDataBuilder pollUpdateParentKey(java.util.Optional pollUpdateParentKey) {
        this.pollUpdateParentKey = pollUpdateParentKey;
        return this;
    }
    public ButtonOpaqueDataBuilder pollUpdateParentKey(java.lang.String pollUpdateParentKey) {
        this.pollUpdateParentKey = java.util.Optional.ofNullable(pollUpdateParentKey);
        return this;
    }
    public ButtonOpaqueDataBuilder encPollVote(java.util.Optional encPollVote) {
        this.encPollVote = encPollVote;
        return this;
    }
    public ButtonOpaqueDataBuilder encPollVote(it.auties.whatsapp.model.poll.PollUpdateEncryptedMetadata encPollVote) {
        this.encPollVote = java.util.Optional.ofNullable(encPollVote);
        return this;
    }
    public ButtonOpaqueDataBuilder encReactionTargetMessageKey(java.util.Optional encReactionTargetMessageKey) {
        this.encReactionTargetMessageKey = encReactionTargetMessageKey;
        return this;
    }
    public ButtonOpaqueDataBuilder encReactionTargetMessageKey(java.lang.String encReactionTargetMessageKey) {
        this.encReactionTargetMessageKey = java.util.Optional.ofNullable(encReactionTargetMessageKey);
        return this;
    }
    public ButtonOpaqueDataBuilder encReactionEncPayload(java.util.Optional encReactionEncPayload) {
        this.encReactionEncPayload = encReactionEncPayload;
        return this;
    }
    public ButtonOpaqueDataBuilder encReactionEncPayload(byte[] encReactionEncPayload) {
        this.encReactionEncPayload = java.util.Optional.ofNullable(encReactionEncPayload);
        return this;
    }
    public ButtonOpaqueDataBuilder encReactionEncIv(java.util.Optional encReactionEncIv) {
        this.encReactionEncIv = encReactionEncIv;
        return this;
    }
    public ButtonOpaqueDataBuilder encReactionEncIv(byte[] encReactionEncIv) {
        this.encReactionEncIv = java.util.Optional.ofNullable(encReactionEncIv);
        return this;
    }

    public it.auties.whatsapp.model.button.misc.ButtonOpaqueData build() {
        return new it.auties.whatsapp.model.button.misc.ButtonOpaqueData(body, caption, longitude, latitude, paymentAmount1000, paymentNote, canonicalUrl, matchedText, title, description, isLive, futureProofBuffer, clientUrl, loc, pollName, pollOptions, pollSelectableOptionsCount, messageSecret, originalSelfAuthor, senderTimestampMs, pollUpdateParentKey, encPollVote, encReactionTargetMessageKey, encReactionEncPayload, encReactionEncIv);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy