package d2;

import androidx.annotation.Nullable;
import androidx.media3.common.MediaMetadata;
import androidx.media3.common.Metadata;
import com.google.common.base.h;
import defpackage.e;

/* JADX INFO: loaded from: classes.dex */
public abstract class b implements Metadata.Entry {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f24938a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f24939b;

    public b(String str, String str2) {
        this.f24938a = h.r(str);
        this.f24939b = str2;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        b bVar = (b) obj;
        return this.f24938a.equals(bVar.f24938a) && this.f24939b.equals(bVar.f24939b);
    }

    public final int hashCode() {
        return this.f24939b.hashCode() + e.b(this.f24938a, 527, 31);
    }

    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    @Override // androidx.media3.common.Metadata.Entry
    public final void populateMediaMetadata(MediaMetadata.Builder builder) {
        String str = this.f24938a;
        str.getClass();
        byte b10 = -1;
        switch (str.hashCode()) {
            case -1935137620:
                if (str.equals("TOTALTRACKS")) {
                    b10 = 0;
                }
                break;
            case -215998278:
                if (str.equals("TOTALDISCS")) {
                    b10 = 1;
                }
                break;
            case -113312716:
                if (str.equals("TRACKNUMBER")) {
                    b10 = 2;
                }
                break;
            case 62359119:
                if (str.equals("ALBUM")) {
                    b10 = 3;
                }
                break;
            case 67703139:
                if (str.equals("GENRE")) {
                    b10 = 4;
                }
                break;
            case 79833656:
                if (str.equals("TITLE")) {
                    b10 = 5;
                }
                break;
            case 428414940:
                if (str.equals("DESCRIPTION")) {
                    b10 = 6;
                }
                break;
            case 993300766:
                if (str.equals("DISCNUMBER")) {
                    b10 = 7;
                }
                break;
            case 1746739798:
                if (str.equals("ALBUMARTIST")) {
                    b10 = 8;
                }
                break;
            case 1939198791:
                if (str.equals("ARTIST")) {
                    b10 = 9;
                }
                break;
        }
        String str2 = this.f24939b;
        switch (b10) {
            case 0:
                Integer numJ = com.google.common.primitives.a.j(str2);
                if (numJ != null) {
                    builder.setTotalTrackCount(numJ);
                }
                break;
            case 1:
                Integer numJ2 = com.google.common.primitives.a.j(str2);
                if (numJ2 != null) {
                    builder.setTotalDiscCount(numJ2);
                }
                break;
            case 2:
                Integer numJ3 = com.google.common.primitives.a.j(str2);
                if (numJ3 != null) {
                    builder.setTrackNumber(numJ3);
                }
                break;
            case 3:
                builder.setAlbumTitle(str2);
                break;
            case 4:
                builder.setGenre(str2);
                break;
            case 5:
                builder.setTitle(str2);
                break;
            case 6:
                builder.setDescription(str2);
                break;
            case 7:
                Integer numJ4 = com.google.common.primitives.a.j(str2);
                if (numJ4 != null) {
                    builder.setDiscNumber(numJ4);
                }
                break;
            case 8:
                builder.setAlbumArtist(str2);
                break;
            case 9:
                builder.setArtist(str2);
                break;
        }
    }

    public final String toString() {
        return "VC: " + this.f24938a + "=" + this.f24939b;
    }
}
