public enum Operator extends java.lang.Enum<Operator> implements com.google.protobuf.ProtocolMessageEnum
Operator that can be used to override the one set in the leaderboard.Protobuf enum
nakama.api.Operator
Enum Constant and Description |
---|
BEST
Override the leaderboard operator with BEST.
|
DECREMENT
Override the leaderboard operator with DECREMENT.
|
INCREMENT
Override the leaderboard operator with INCREMENT.
|
NO_OVERRIDE
Do not override the leaderboard operator.
|
SET
Override the leaderboard operator with SET.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BEST_VALUE
Override the leaderboard operator with BEST.
|
static int |
DECREMENT_VALUE
Override the leaderboard operator with DECREMENT.
|
static int |
INCREMENT_VALUE
Override the leaderboard operator with INCREMENT.
|
static int |
NO_OVERRIDE_VALUE
Do not override the leaderboard operator.
|
static int |
SET_VALUE
Override the leaderboard operator with SET.
|
Modifier and Type | Method and Description |
---|---|
static Operator |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Operator> |
internalGetValueMap() |
static Operator |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Operator |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator NO_OVERRIDE
Do not override the leaderboard operator.
NO_OVERRIDE = 0;
public static final Operator BEST
Override the leaderboard operator with BEST.
BEST = 1;
public static final Operator SET
Override the leaderboard operator with SET.
SET = 2;
public static final Operator INCREMENT
Override the leaderboard operator with INCREMENT.
INCREMENT = 3;
public static final Operator DECREMENT
Override the leaderboard operator with DECREMENT.
DECREMENT = 4;
public static final Operator UNRECOGNIZED
public static final int NO_OVERRIDE_VALUE
Do not override the leaderboard operator.
NO_OVERRIDE = 0;
public static final int BEST_VALUE
Override the leaderboard operator with BEST.
BEST = 1;
public static final int SET_VALUE
Override the leaderboard operator with SET.
SET = 2;
public static final int INCREMENT_VALUE
Override the leaderboard operator with INCREMENT.
INCREMENT = 3;
public static final int DECREMENT_VALUE
Override the leaderboard operator with DECREMENT.
DECREMENT = 4;
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Operator valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Operator forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Operator> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)