package com.ss.android.ugc.aweme.publish.core.upload;

import X.M12;
import X.MPH;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.Objects;

public final class SmartSliceModel {
    public static final MPH Companion = new MPH((byte) 0);
    @c(LIZ = "base_number")
    public final int baseNumber;
    @c(LIZ = "max_slice_size")
    public final int maxSliceSize;
    @c(LIZ = "min_slice_size")
    public final int minSliceSize;
    @c(LIZ = "nearest_upper")
    public final boolean nearestUpper;
    @c(LIZ = "package_url")
    public final String packageUrl;
    @c(LIZ = "scene")
    public final String scene;
    @c(LIZ = "type")
    public final int type;

    static {
        Covode.recordClassIndex(101132);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_publish_core_upload_SmartSliceModel_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ SmartSliceModel copy$default(SmartSliceModel smartSliceModel, String str, int i, String str2, boolean z, int i2, int i3, int i4, int i5, Object obj) {
        if ((i5 & 1) != 0) {
            str = smartSliceModel.scene;
        }
        if ((i5 & 2) != 0) {
            i = smartSliceModel.type;
        }
        if ((i5 & 4) != 0) {
            str2 = smartSliceModel.packageUrl;
        }
        if ((i5 & 8) != 0) {
            z = smartSliceModel.nearestUpper;
        }
        if ((i5 & 16) != 0) {
            i2 = smartSliceModel.minSliceSize;
        }
        if ((i5 & 32) != 0) {
            i3 = smartSliceModel.maxSliceSize;
        }
        if ((i5 & 64) != 0) {
            i4 = smartSliceModel.baseNumber;
        }
        return smartSliceModel.copy(str, i, str2, z, i2, i3, i4);
    }

    private Object[] getObjects() {
        return new Object[]{this.scene, Integer.valueOf(this.type), this.packageUrl, Boolean.valueOf(this.nearestUpper), Integer.valueOf(this.minSliceSize), Integer.valueOf(this.maxSliceSize), Integer.valueOf(this.baseNumber)};
    }

    public final SmartSliceModel copy(String str, int i, String str2, boolean z, int i2, int i3, int i4) {
        String str3 = str;
        String str4 = str2;
        M12.LIZ(str3, str4);
        return new SmartSliceModel(str3, i, str4, z, i2, i3, i4);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof SmartSliceModel)) {
            return false;
        }
        return M12.LIZ(((SmartSliceModel) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("SmartSliceModel:%s,%s,%s,%s,%s,%s,%s", getObjects());
    }

    public final int getBaseNumber() {
        return this.baseNumber;
    }

    public final int getMaxSliceSize() {
        return this.maxSliceSize;
    }

    public final int getMinSliceSize() {
        return this.minSliceSize;
    }

    public final boolean getNearestUpper() {
        return this.nearestUpper;
    }

    public final String getPackageUrl() {
        return this.packageUrl;
    }

    public final String getScene() {
        return this.scene;
    }

    public final int getType() {
        return this.type;
    }

    public final int getValidMaxSliceSize() {
        int i = this.maxSliceSize;
        if (i <= 0) {
            return 4096;
        }
        return i;
    }

    public final int getValidMinSliceSize() {
        int i = this.minSliceSize;
        if (i <= 0) {
            return 256;
        }
        return i;
    }

    public final int getValidTimesBaseNumber() {
        int i = this.baseNumber;
        if (i <= 0) {
            return 16;
        }
        return i;
    }

    public SmartSliceModel(String str, int i, String str2, boolean z, int i2, int i3, int i4) {
        M12.LIZ(str, str2);
        this.scene = str;
        this.type = i;
        this.packageUrl = str2;
        this.nearestUpper = z;
        this.minSliceSize = i2;
        this.maxSliceSize = i3;
        this.baseNumber = i4;
    }
}
