package com.ss.android.ugc.effectmanager.effect.model;

import X.2HN;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.effectmanager.effect.model.template.ProviderEffectTemplate$StickerBeanTemplate;
import java.io.Serializable;

public final class ProviderEffect$StickerBean extends ProviderEffectTemplate$StickerBeanTemplate implements Serializable {
    public final transient com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean;

    static {
        Covode.recordClassIndex(125399);
    }

    public ProviderEffect$StickerBean() {
        this((com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean) null, 1, (2HN) null);
    }

    public final com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean getKStickerBean() {
        return this.kStickerBean;
    }

    public final String getHeight() {
        String height;
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 == null || (height = kStickerBean2.getHeight()) == null) {
            return super.getHeight();
        }
        return height;
    }

    public final String getSize() {
        String size;
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 == null || (size = kStickerBean2.getSize()) == null) {
            return super.getSize();
        }
        return size;
    }

    public final String getUrl() {
        String url;
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 == null || (url = kStickerBean2.getUrl()) == null) {
            return super.getUrl();
        }
        return url;
    }

    public final String getWidth() {
        String width;
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 == null || (width = kStickerBean2.getWidth()) == null) {
            return super.getWidth();
        }
        return width;
    }

    public final void setHeight(String str) {
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 != null) {
            kStickerBean2.setHeight(str);
        }
        super.setHeight(str);
    }

    public final void setSize(String str) {
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 != null) {
            kStickerBean2.setSize(str);
        }
        super.setSize(str);
    }

    public final void setUrl(String str) {
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 != null) {
            kStickerBean2.setUrl(str);
        }
        super.setUrl(str);
    }

    public final void setWidth(String str) {
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 != null) {
            kStickerBean2.setWidth(str);
        }
        super.setWidth(str);
    }

    public ProviderEffect$StickerBean(com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean providerEffect$StickerBean) {
        super(providerEffect$StickerBean);
        this.kStickerBean = providerEffect$StickerBean;
        com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean kStickerBean2 = getKStickerBean();
        if (kStickerBean2 != null) {
            String height = kStickerBean2.getHeight();
            if (height != null) {
                super.setHeight(height);
            }
            String size = kStickerBean2.getSize();
            if (size != null) {
                super.setSize(size);
            }
            String url = kStickerBean2.getUrl();
            if (url != null) {
                super.setUrl(url);
            }
            String width = kStickerBean2.getWidth();
            if (width != null) {
                super.setWidth(width);
            }
        }
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ ProviderEffect$StickerBean(com.ss.ugc.effectplatform.model.ProviderEffect$StickerBean providerEffect$StickerBean, int i, 2HN r4) {
        this((i & 1) != 0 ? null : providerEffect$StickerBean);
    }
}
