main.java.com.streamlayer.inplay.common.MarketStatus 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.MarketStatus}
*/
public enum MarketStatus
implements com.google.protobuf.Internal.EnumLite {
/**
* MARKET_STATUS_OPEN = 0;
*/
MARKET_STATUS_OPEN(0),
/**
* MARKET_STATUS_SUSPENDED = 1;
*/
MARKET_STATUS_SUSPENDED(1),
/**
* MARKET_STATUS_CLOSED = 2;
*/
MARKET_STATUS_CLOSED(2),
UNRECOGNIZED(-1),
;
/**
* MARKET_STATUS_OPEN = 0;
*/
public static final int MARKET_STATUS_OPEN_VALUE = 0;
/**
* MARKET_STATUS_SUSPENDED = 1;
*/
public static final int MARKET_STATUS_SUSPENDED_VALUE = 1;
/**
* MARKET_STATUS_CLOSED = 2;
*/
public static final int MARKET_STATUS_CLOSED_VALUE = 2;
@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 MarketStatus valueOf(int value) {
return forNumber(value);
}
public static MarketStatus forNumber(int value) {
switch (value) {
case 0: return MARKET_STATUS_OPEN;
case 1: return MARKET_STATUS_SUSPENDED;
case 2: return MARKET_STATUS_CLOSED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MarketStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public MarketStatus findValueByNumber(int number) {
return MarketStatus.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return MarketStatusVerifier.INSTANCE;
}
private static final class MarketStatusVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new MarketStatusVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return MarketStatus.forNumber(number) != null;
}
};
private final int value;
private MarketStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.inplay.common.MarketStatus)
}