main.java.com.streamlayer.users.UserNotificationPreference 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/users/users_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.users;
/**
* Protobuf enum {@code streamlayer.users.UserNotificationPreference}
*/
public enum UserNotificationPreference
implements com.google.protobuf.Internal.EnumLite {
/**
* USER_NOTIFICATION_PREFERENCE_UNSET = 0;
*/
USER_NOTIFICATION_PREFERENCE_UNSET(0),
/**
* USER_NOTIFICATION_PREFERENCE_ALL_EVENTS = 1;
*/
USER_NOTIFICATION_PREFERENCE_ALL_EVENTS(1),
/**
* USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY = 2;
*/
USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY(2),
/**
* USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS = 3;
*/
USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS(3),
UNRECOGNIZED(-1),
;
/**
* USER_NOTIFICATION_PREFERENCE_UNSET = 0;
*/
public static final int USER_NOTIFICATION_PREFERENCE_UNSET_VALUE = 0;
/**
* USER_NOTIFICATION_PREFERENCE_ALL_EVENTS = 1;
*/
public static final int USER_NOTIFICATION_PREFERENCE_ALL_EVENTS_VALUE = 1;
/**
* USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY = 2;
*/
public static final int USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY_VALUE = 2;
/**
* USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS = 3;
*/
public static final int USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS_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 UserNotificationPreference valueOf(int value) {
return forNumber(value);
}
public static UserNotificationPreference forNumber(int value) {
switch (value) {
case 0: return USER_NOTIFICATION_PREFERENCE_UNSET;
case 1: return USER_NOTIFICATION_PREFERENCE_ALL_EVENTS;
case 2: return USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY;
case 3: return USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UserNotificationPreference> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public UserNotificationPreference findValueByNumber(int number) {
return UserNotificationPreference.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return UserNotificationPreferenceVerifier.INSTANCE;
}
private static final class UserNotificationPreferenceVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new UserNotificationPreferenceVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return UserNotificationPreference.forNumber(number) != null;
}
};
private final int value;
private UserNotificationPreference(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:streamlayer.users.UserNotificationPreference)
}