main.java.com.streamlayer.common.AuthenticationStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/common/streamlayer_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.common;
/**
* Protobuf enum {@code streamlayer.common.AuthenticationStrategy}
*/
public enum AuthenticationStrategy
implements com.google.protobuf.Internal.EnumLite {
/**
* AUTHENTICATION_STRATEGY_INVALID = 0;
*/
AUTHENTICATION_STRATEGY_INVALID(0),
/**
*
* default
*
*
* AUTHENTICATION_STRATEGY_UNSET = 1;
*/
AUTHENTICATION_STRATEGY_UNSET(1),
/**
*
* will throw if request could not be authenticated
*
*
* AUTHENTICATION_STRATEGY_REQUIRED = 2;
*/
AUTHENTICATION_STRATEGY_REQUIRED(2),
/**
*
* will try to authenticate if token is provided and throw an error in case of failure
*
*
* AUTHENTICATION_STRATEGY_OPTIONAL = 3;
*/
AUTHENTICATION_STRATEGY_OPTIONAL(3),
UNRECOGNIZED(-1),
;
/**
* AUTHENTICATION_STRATEGY_INVALID = 0;
*/
public static final int AUTHENTICATION_STRATEGY_INVALID_VALUE = 0;
/**
*
* default
*
*
* AUTHENTICATION_STRATEGY_UNSET = 1;
*/
public static final int AUTHENTICATION_STRATEGY_UNSET_VALUE = 1;
/**
*
* will throw if request could not be authenticated
*
*
* AUTHENTICATION_STRATEGY_REQUIRED = 2;
*/
public static final int AUTHENTICATION_STRATEGY_REQUIRED_VALUE = 2;
/**
*
* will try to authenticate if token is provided and throw an error in case of failure
*
*
* AUTHENTICATION_STRATEGY_OPTIONAL = 3;
*/
public static final int AUTHENTICATION_STRATEGY_OPTIONAL_VALUE = 3;
@java.lang.Override
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AuthenticationStrategy valueOf(int value) {
return forNumber(value);
}
public static AuthenticationStrategy forNumber(int value) {
switch (value) {
case 0: return AUTHENTICATION_STRATEGY_INVALID;
case 1: return AUTHENTICATION_STRATEGY_UNSET;
case 2: return AUTHENTICATION_STRATEGY_REQUIRED;
case 3: return AUTHENTICATION_STRATEGY_OPTIONAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AuthenticationStrategy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public AuthenticationStrategy findValueByNumber(int number) {
return AuthenticationStrategy.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return AuthenticationStrategyVerifier.INSTANCE;
}
private static final class AuthenticationStrategyVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new AuthenticationStrategyVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return AuthenticationStrategy.forNumber(number) != null;
}
};
private final int value;
private AuthenticationStrategy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.common.AuthenticationStrategy)
}