package com.snapchat.kit.sdk.core.metrics.model;

import com.bytedance.covode.number.Covode;
import com.squareup.wire.EnumAdapter;
import com.squareup.wire.ProtoAdapter;
import com.squareup.wire.WireEnum;

public enum StoryKitMediaType implements WireEnum {
    STORY_KIT_MEDIA_TYPE_NONE(0),
    STORY_KIT_MEDIA_TYPE_VIDEO(1),
    STORY_KIT_MEDIA_TYPE_IMAGE(2);
    
    public static final ProtoAdapter<StoryKitMediaType> ADAPTER = null;
    public final int value;

    public final int getValue() {
        return this.value;
    }

    public static final class ProtoAdapter_StoryKitMediaType extends EnumAdapter<StoryKitMediaType> {
        static {
            Covode.recordClassIndex(47575);
        }

        public ProtoAdapter_StoryKitMediaType() {
            super(StoryKitMediaType.class);
        }

        public final StoryKitMediaType fromValue(int i) {
            return StoryKitMediaType.fromValue(i);
        }
    }

    /* access modifiers changed from: public */
    static {
        ADAPTER = new ProtoAdapter_StoryKitMediaType();
    }

    public static StoryKitMediaType fromValue(int i) {
        if (i == 0) {
            return STORY_KIT_MEDIA_TYPE_NONE;
        }
        if (i == 1) {
            return STORY_KIT_MEDIA_TYPE_VIDEO;
        }
        if (i != 2) {
            return null;
        }
        return STORY_KIT_MEDIA_TYPE_IMAGE;
    }

    /* access modifiers changed from: public */
    StoryKitMediaType(int i) {
        this.value = i;
    }
}
