main.java.com.streamlayer.interactive.common.QuestionStatus 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/interactive/interactive.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.interactive.common;
/**
* Protobuf enum {@code streamlayer.interactive.QuestionStatus}
*/
public enum QuestionStatus
implements com.google.protobuf.Internal.EnumLite {
/**
* QUESTION_STATUS_UNSET = 0;
*/
QUESTION_STATUS_UNSET(0),
/**
* QUESTION_STATUS_NOT_SCHEDULED = 1;
*/
QUESTION_STATUS_NOT_SCHEDULED(1),
/**
* QUESTION_STATUS_SCHEDULED = 2;
*/
QUESTION_STATUS_SCHEDULED(2),
/**
* QUESTION_STATUS_ACTIVE = 3;
*/
QUESTION_STATUS_ACTIVE(3),
/**
* QUESTION_STATUS_RESOLVED = 4;
*/
QUESTION_STATUS_RESOLVED(4),
UNRECOGNIZED(-1),
;
/**
* QUESTION_STATUS_UNSET = 0;
*/
public static final int QUESTION_STATUS_UNSET_VALUE = 0;
/**
* QUESTION_STATUS_NOT_SCHEDULED = 1;
*/
public static final int QUESTION_STATUS_NOT_SCHEDULED_VALUE = 1;
/**
* QUESTION_STATUS_SCHEDULED = 2;
*/
public static final int QUESTION_STATUS_SCHEDULED_VALUE = 2;
/**
* QUESTION_STATUS_ACTIVE = 3;
*/
public static final int QUESTION_STATUS_ACTIVE_VALUE = 3;
/**
* QUESTION_STATUS_RESOLVED = 4;
*/
public static final int QUESTION_STATUS_RESOLVED_VALUE = 4;
@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 QuestionStatus valueOf(int value) {
return forNumber(value);
}
public static QuestionStatus forNumber(int value) {
switch (value) {
case 0: return QUESTION_STATUS_UNSET;
case 1: return QUESTION_STATUS_NOT_SCHEDULED;
case 2: return QUESTION_STATUS_SCHEDULED;
case 3: return QUESTION_STATUS_ACTIVE;
case 4: return QUESTION_STATUS_RESOLVED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
QuestionStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public QuestionStatus findValueByNumber(int number) {
return QuestionStatus.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return QuestionStatusVerifier.INSTANCE;
}
private static final class QuestionStatusVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new QuestionStatusVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return QuestionStatus.forNumber(number) != null;
}
};
private final int value;
private QuestionStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.interactive.QuestionStatus)
}