package com.bytedance.sdk.component.YFl;

import android.text.TextUtils;
/* loaded from: classes2.dex */
public class rkt {
    public final String AlY;
    public final String DSW;
    public final String Sg;
    public final int YFl;
    public final String qsH;
    public final String tN;
    public final String vc;
    public final String wN;

    public static YFl YFl() {
        return new YFl();
    }

    public static rkt YFl(String str, int i) {
        return new rkt(str, i);
    }

    private rkt(String str, int i) {
        this.Sg = null;
        this.tN = null;
        this.AlY = null;
        this.wN = null;
        this.vc = str;
        this.DSW = null;
        this.YFl = i;
        this.qsH = null;
    }

    private rkt(YFl yFl) {
        this.Sg = yFl.YFl;
        this.tN = yFl.Sg;
        this.AlY = yFl.tN;
        this.wN = yFl.AlY;
        this.vc = yFl.wN;
        this.DSW = yFl.vc;
        this.YFl = 1;
        this.qsH = yFl.DSW;
    }

    public static boolean YFl(rkt rktVar) {
        return rktVar == null || rktVar.YFl != 1 || TextUtils.isEmpty(rktVar.AlY) || TextUtils.isEmpty(rktVar.wN);
    }

    public String toString() {
        return "methodName: " + this.AlY + ", params: " + this.wN + ", callbackId: " + this.vc + ", type: " + this.tN + ", version: " + this.Sg + ", ";
    }

    /* loaded from: classes2.dex */
    public static final class YFl {
        private String AlY;
        private String DSW;
        private String Sg;
        private String YFl;
        private String tN;
        private String vc;
        private String wN;

        public YFl AlY(String str) {
            this.AlY = str;
            return this;
        }

        public YFl DSW(String str) {
            this.DSW = str;
            return this;
        }

        public YFl Sg(String str) {
            this.Sg = str;
            return this;
        }

        public YFl YFl(String str) {
            this.YFl = str;
            return this;
        }

        public YFl tN(String str) {
            this.tN = str;
            return this;
        }

        public YFl vc(String str) {
            this.vc = str;
            return this;
        }

        public YFl wN(String str) {
            this.wN = str;
            return this;
        }

        private YFl() {
        }

        public rkt YFl() {
            return new rkt(this);
        }
    }
}
