main.java.com.streamlayer.sdkSettings.common.PresetRuleKey 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/sdkSettings/sdkSettings.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.common;
/**
* Protobuf enum {@code streamlayer.sdkSettings.PresetRuleKey}
*/
public enum PresetRuleKey
implements com.google.protobuf.Internal.EnumLite {
/**
* PRESET_RULE_KEY_UNSET = 0;
*/
PRESET_RULE_KEY_UNSET(0),
/**
* PRESET_RULE_KEY_SPORT = 1;
*/
PRESET_RULE_KEY_SPORT(1),
/**
* PRESET_RULE_KEY_LEAGUE = 2;
*/
PRESET_RULE_KEY_LEAGUE(2),
/**
* PRESET_RULE_KEY_TEAMS = 3;
*/
PRESET_RULE_KEY_TEAMS(3),
UNRECOGNIZED(-1),
;
/**
* PRESET_RULE_KEY_UNSET = 0;
*/
public static final int PRESET_RULE_KEY_UNSET_VALUE = 0;
/**
* PRESET_RULE_KEY_SPORT = 1;
*/
public static final int PRESET_RULE_KEY_SPORT_VALUE = 1;
/**
* PRESET_RULE_KEY_LEAGUE = 2;
*/
public static final int PRESET_RULE_KEY_LEAGUE_VALUE = 2;
/**
* PRESET_RULE_KEY_TEAMS = 3;
*/
public static final int PRESET_RULE_KEY_TEAMS_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 PresetRuleKey valueOf(int value) {
return forNumber(value);
}
public static PresetRuleKey forNumber(int value) {
switch (value) {
case 0: return PRESET_RULE_KEY_UNSET;
case 1: return PRESET_RULE_KEY_SPORT;
case 2: return PRESET_RULE_KEY_LEAGUE;
case 3: return PRESET_RULE_KEY_TEAMS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PresetRuleKey> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public PresetRuleKey findValueByNumber(int number) {
return PresetRuleKey.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return PresetRuleKeyVerifier.INSTANCE;
}
private static final class PresetRuleKeyVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new PresetRuleKeyVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return PresetRuleKey.forNumber(number) != null;
}
};
private final int value;
private PresetRuleKey(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.sdkSettings.PresetRuleKey)
}