public static enum StreamingRpcProto.FrameType extends Enum<StreamingRpcProto.FrameType> implements com.google.protobuf.ProtocolMessageEnum
brpc.FrameType| Enum Constant and Description |
|---|
FRAME_TYPE_CLOSE
FRAME_TYPE_CLOSE = 2; |
FRAME_TYPE_DATA
FRAME_TYPE_DATA = 3; |
FRAME_TYPE_FEEDBACK
FRAME_TYPE_FEEDBACK = 4; |
FRAME_TYPE_RST
FRAME_TYPE_RST = 1; |
FRAME_TYPE_UNKNOWN
FRAME_TYPE_UNKNOWN = 0; |
| Modifier and Type | Field and Description |
|---|---|
static int |
FRAME_TYPE_CLOSE_VALUE
FRAME_TYPE_CLOSE = 2; |
static int |
FRAME_TYPE_DATA_VALUE
FRAME_TYPE_DATA = 3; |
static int |
FRAME_TYPE_FEEDBACK_VALUE
FRAME_TYPE_FEEDBACK = 4; |
static int |
FRAME_TYPE_RST_VALUE
FRAME_TYPE_RST = 1; |
static int |
FRAME_TYPE_UNKNOWN_VALUE
FRAME_TYPE_UNKNOWN = 0; |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<StreamingRpcProto.FrameType> |
internalGetValueMap() |
static StreamingRpcProto.FrameType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static StreamingRpcProto.FrameType |
valueOf(int value) |
static StreamingRpcProto.FrameType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamingRpcProto.FrameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamingRpcProto.FrameType FRAME_TYPE_UNKNOWN
FRAME_TYPE_UNKNOWN = 0;public static final StreamingRpcProto.FrameType FRAME_TYPE_RST
FRAME_TYPE_RST = 1;public static final StreamingRpcProto.FrameType FRAME_TYPE_CLOSE
FRAME_TYPE_CLOSE = 2;public static final StreamingRpcProto.FrameType FRAME_TYPE_DATA
FRAME_TYPE_DATA = 3;public static final StreamingRpcProto.FrameType FRAME_TYPE_FEEDBACK
FRAME_TYPE_FEEDBACK = 4;public static final int FRAME_TYPE_UNKNOWN_VALUE
FRAME_TYPE_UNKNOWN = 0;public static final int FRAME_TYPE_RST_VALUE
FRAME_TYPE_RST = 1;public static final int FRAME_TYPE_CLOSE_VALUE
FRAME_TYPE_CLOSE = 2;public static final int FRAME_TYPE_DATA_VALUE
FRAME_TYPE_DATA = 3;public static final int FRAME_TYPE_FEEDBACK_VALUE
FRAME_TYPE_FEEDBACK = 4;public static StreamingRpcProto.FrameType[] values()
for (StreamingRpcProto.FrameType c : StreamingRpcProto.FrameType.values()) System.out.println(c);
public static StreamingRpcProto.FrameType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnumpublic static StreamingRpcProto.FrameType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<StreamingRpcProto.FrameType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static StreamingRpcProto.FrameType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Baidu, Inc.. All rights reserved.