main.java.com.streamlayer.sports.baseball.PitcherStatus 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/sports/baseball/baseball.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.baseball;
/**
* Protobuf enum {@code streamlayer.sports.baseball.PitcherStatus}
*/
public enum PitcherStatus
implements com.google.protobuf.Internal.EnumLite {
/**
* PITCHER_STATUS_UNSET = 0;
*/
PITCHER_STATUS_UNSET(0),
/**
* PITCHER_STATUS_WIN = 1;
*/
PITCHER_STATUS_WIN(1),
/**
* PITCHER_STATUS_LOSS = 2;
*/
PITCHER_STATUS_LOSS(2),
UNRECOGNIZED(-1),
;
/**
* PITCHER_STATUS_UNSET = 0;
*/
public static final int PITCHER_STATUS_UNSET_VALUE = 0;
/**
* PITCHER_STATUS_WIN = 1;
*/
public static final int PITCHER_STATUS_WIN_VALUE = 1;
/**
* PITCHER_STATUS_LOSS = 2;
*/
public static final int PITCHER_STATUS_LOSS_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 PitcherStatus valueOf(int value) {
return forNumber(value);
}
public static PitcherStatus forNumber(int value) {
switch (value) {
case 0: return PITCHER_STATUS_UNSET;
case 1: return PITCHER_STATUS_WIN;
case 2: return PITCHER_STATUS_LOSS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PitcherStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public PitcherStatus findValueByNumber(int number) {
return PitcherStatus.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return PitcherStatusVerifier.INSTANCE;
}
private static final class PitcherStatusVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new PitcherStatusVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return PitcherStatus.forNumber(number) != null;
}
};
private final int value;
private PitcherStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.sports.baseball.PitcherStatus)
}