public static enum SofaRpcProto.SofaRpcMeta.Type extends Enum<SofaRpcProto.SofaRpcMeta.Type> implements com.google.protobuf.ProtocolMessageEnum
brpc.policy.SofaRpcMeta.Type
Message type.
| Enum Constant and Description |
|---|
REQUEST
REQUEST = 0; |
RESPONSE
RESPONSE = 1; |
| Modifier and Type | Field and Description |
|---|---|
static int |
REQUEST_VALUE
REQUEST = 0; |
static int |
RESPONSE_VALUE
RESPONSE = 1; |
| 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<SofaRpcProto.SofaRpcMeta.Type> |
internalGetValueMap() |
static SofaRpcProto.SofaRpcMeta.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SofaRpcProto.SofaRpcMeta.Type |
valueOf(int value) |
static SofaRpcProto.SofaRpcMeta.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SofaRpcProto.SofaRpcMeta.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SofaRpcProto.SofaRpcMeta.Type REQUEST
REQUEST = 0;public static final SofaRpcProto.SofaRpcMeta.Type RESPONSE
RESPONSE = 1;public static final int REQUEST_VALUE
REQUEST = 0;public static final int RESPONSE_VALUE
RESPONSE = 1;public static SofaRpcProto.SofaRpcMeta.Type[] values()
for (SofaRpcProto.SofaRpcMeta.Type c : SofaRpcProto.SofaRpcMeta.Type.values()) System.out.println(c);
public static SofaRpcProto.SofaRpcMeta.Type 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 SofaRpcProto.SofaRpcMeta.Type valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<SofaRpcProto.SofaRpcMeta.Type> 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 SofaRpcProto.SofaRpcMeta.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Baidu, Inc.. All rights reserved.