// 
// Decompiled by Procyon v0.6.0
// 

package com.google.crypto.tink.proto;

import com.google.protobuf.RuntimeVersion;
import com.google.protobuf.Descriptors;
import com.google.protobuf.Internal;
import com.google.protobuf.ProtocolMessageEnum;

public enum JwtRsaSsaPssAlgorithm implements ProtocolMessageEnum
{
    PS_UNKNOWN(0), 
    PS256(1), 
    PS384(2), 
    PS512(3), 
    UNRECOGNIZED(-1);
    
    public static final int PS_UNKNOWN_VALUE = 0;
    public static final int PS256_VALUE = 1;
    public static final int PS384_VALUE = 2;
    public static final int PS512_VALUE = 3;
    private static final Internal.EnumLiteMap<JwtRsaSsaPssAlgorithm> internalValueMap;
    private static final JwtRsaSsaPssAlgorithm[] VALUES;
    private final int value;
    
    @Override
    public final int getNumber() {
        if (this == JwtRsaSsaPssAlgorithm.UNRECOGNIZED) {
            throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
        }
        return this.value;
    }
    
    @Deprecated
    public static JwtRsaSsaPssAlgorithm valueOf(final int value) {
        return forNumber(value);
    }
    
    public static JwtRsaSsaPssAlgorithm forNumber(final int value) {
        switch (value) {
            case 0: {
                return JwtRsaSsaPssAlgorithm.PS_UNKNOWN;
            }
            case 1: {
                return JwtRsaSsaPssAlgorithm.PS256;
            }
            case 2: {
                return JwtRsaSsaPssAlgorithm.PS384;
            }
            case 3: {
                return JwtRsaSsaPssAlgorithm.PS512;
            }
            default: {
                return null;
            }
        }
    }
    
    public static Internal.EnumLiteMap<JwtRsaSsaPssAlgorithm> internalGetValueMap() {
        return JwtRsaSsaPssAlgorithm.internalValueMap;
    }
    
    @Override
    public final Descriptors.EnumValueDescriptor getValueDescriptor() {
        if (this == JwtRsaSsaPssAlgorithm.UNRECOGNIZED) {
            throw new IllegalStateException("Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(this.ordinal());
    }
    
    @Override
    public final Descriptors.EnumDescriptor getDescriptorForType() {
        return getDescriptor();
    }
    
    public static Descriptors.EnumDescriptor getDescriptor() {
        return JwtRsaSsaPss.getDescriptor().getEnumTypes().get(0);
    }
    
    public static JwtRsaSsaPssAlgorithm valueOf(final Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
            throw new IllegalArgumentException("EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
            return JwtRsaSsaPssAlgorithm.UNRECOGNIZED;
        }
        return JwtRsaSsaPssAlgorithm.VALUES[desc.getIndex()];
    }
    
    private JwtRsaSsaPssAlgorithm(final int value) {
        this.value = value;
    }
    
    static {
        RuntimeVersion.validateProtobufGencodeVersion(RuntimeVersion.RuntimeDomain.PUBLIC, 4, 32, 1, "", JwtRsaSsaPssAlgorithm.class.getName());
        internalValueMap = new Internal.EnumLiteMap<JwtRsaSsaPssAlgorithm>() {
            @Override
            public JwtRsaSsaPssAlgorithm findValueByNumber(final int number) {
                return JwtRsaSsaPssAlgorithm.forNumber(number);
            }
        };
        VALUES = values();
    }
}
