/*
* MIT License
*
* Copyright (c) 2023 OrdinaryRoad
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WebCommentFeedShowType.proto
package tech.ordinaryroad.live.chat.client.kuaishou.protobuf;
public final class WebCommentFeedShowTypeOuterClass {
private WebCommentFeedShowTypeOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code WebCommentFeedShowType}
*/
public enum WebCommentFeedShowType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FEED_SHOW_UNKNOWN = 0;
*/
FEED_SHOW_UNKNOWN(0),
/**
* FEED_SHOW_NORMAL = 1;
*/
FEED_SHOW_NORMAL(1),
/**
* FEED_HIDDEN = 2;
*/
FEED_HIDDEN(2),
UNRECOGNIZED(-1),
;
/**
* FEED_SHOW_UNKNOWN = 0;
*/
public static final int FEED_SHOW_UNKNOWN_VALUE = 0;
/**
* FEED_SHOW_NORMAL = 1;
*/
public static final int FEED_SHOW_NORMAL_VALUE = 1;
/**
* FEED_HIDDEN = 2;
*/
public static final int FEED_HIDDEN_VALUE = 2;
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 numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static WebCommentFeedShowType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static WebCommentFeedShowType forNumber(int value) {
switch (value) {
case 0: return FEED_SHOW_UNKNOWN;
case 1: return FEED_SHOW_NORMAL;
case 2: return FEED_HIDDEN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
WebCommentFeedShowType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public WebCommentFeedShowType findValueByNumber(int number) {
return WebCommentFeedShowType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final WebCommentFeedShowType[] VALUES = values();
public static WebCommentFeedShowType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private WebCommentFeedShowType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:WebCommentFeedShowType)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034WebCommentFeedShowType.proto*V\n\026WebCom" +
"mentFeedShowType\022\025\n\021FEED_SHOW_UNKNOWN\020\000\022" +
"\024\n\020FEED_SHOW_NORMAL\020\001\022\017\n\013FEED_HIDDEN\020\002B6" +
"\n4tech.ordinaryroad.live.chat.client.kua" +
"ishou.protobufb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
}
// @@protoc_insertion_point(outer_class_scope)
}