main.java.com.streamlayer.inplay.common.GameStatus 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/inplay/common/inplay.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.inplay.common;
/**
* Protobuf enum {@code streamlayer.inplay.common.GameStatus}
*/
public enum GameStatus
implements com.google.protobuf.Internal.EnumLite {
/**
* GAME_STATUS_UNSET = 0;
*/
GAME_STATUS_UNSET(0),
/**
* GAME_STATUS_NOT_STARTED = 1;
*/
GAME_STATUS_NOT_STARTED(1),
/**
* GAME_STATUS_STARTED = 2;
*/
GAME_STATUS_STARTED(2),
/**
* GAME_STATUS_FINISHED = 3;
*/
GAME_STATUS_FINISHED(3),
UNRECOGNIZED(-1),
;
/**
* GAME_STATUS_UNSET = 0;
*/
public static final int GAME_STATUS_UNSET_VALUE = 0;
/**
* GAME_STATUS_NOT_STARTED = 1;
*/
public static final int GAME_STATUS_NOT_STARTED_VALUE = 1;
/**
* GAME_STATUS_STARTED = 2;
*/
public static final int GAME_STATUS_STARTED_VALUE = 2;
/**
* GAME_STATUS_FINISHED = 3;
*/
public static final int GAME_STATUS_FINISHED_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 GameStatus valueOf(int value) {
return forNumber(value);
}
public static GameStatus forNumber(int value) {
switch (value) {
case 0: return GAME_STATUS_UNSET;
case 1: return GAME_STATUS_NOT_STARTED;
case 2: return GAME_STATUS_STARTED;
case 3: return GAME_STATUS_FINISHED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GameStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public GameStatus findValueByNumber(int number) {
return GameStatus.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return GameStatusVerifier.INSTANCE;
}
private static final class GameStatusVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new GameStatusVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return GameStatus.forNumber(number) != null;
}
};
private final int value;
private GameStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.inplay.common.GameStatus)
}