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

it.auties.whatsapp.model.companion.CompanionHashStateBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.companion;

public class CompanionHashStateBuilder {
    private it.auties.whatsapp.model.sync.PatchType type;
    private long version;
    private byte[] hash;
    private java.util.Map indexValueMap;

    public CompanionHashStateBuilder() {
        type = null;
        version = 0l;
        hash = null;
        indexValueMap = it.auties.protobuf.builtin.ProtobufMapMixin.newMap();
    }

    public CompanionHashStateBuilder type(it.auties.whatsapp.model.sync.PatchType type) {
        this.type = type;
        return this;
    }

    public CompanionHashStateBuilder version(long version) {
        this.version = version;
        return this;
    }

    public CompanionHashStateBuilder hash(byte[] hash) {
        this.hash = hash;
        return this;
    }

    public CompanionHashStateBuilder indexValueMap(java.util.Map indexValueMap) {
        this.indexValueMap = indexValueMap;
        return this;
    }

    public it.auties.whatsapp.model.companion.CompanionHashState build() {
        return new it.auties.whatsapp.model.companion.CompanionHashState(type, version, hash, indexValueMap);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy