public static enum SofaRpcProto.SofaCompressType extends Enum<SofaRpcProto.SofaCompressType> implements com.google.protobuf.ProtocolMessageEnum
brpc.policy.SofaCompressType| 枚举常量和说明 |
|---|
SOFA_COMPRESS_TYPE_GZIP
SOFA_COMPRESS_TYPE_GZIP = 1; |
SOFA_COMPRESS_TYPE_LZ4
SOFA_COMPRESS_TYPE_LZ4 = 4; |
SOFA_COMPRESS_TYPE_NONE
SOFA_COMPRESS_TYPE_NONE = 0; |
SOFA_COMPRESS_TYPE_SNAPPY
SOFA_COMPRESS_TYPE_SNAPPY = 3; |
SOFA_COMPRESS_TYPE_ZLIB
SOFA_COMPRESS_TYPE_ZLIB = 2; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
SOFA_COMPRESS_TYPE_GZIP_VALUE
SOFA_COMPRESS_TYPE_GZIP = 1; |
static int |
SOFA_COMPRESS_TYPE_LZ4_VALUE
SOFA_COMPRESS_TYPE_LZ4 = 4; |
static int |
SOFA_COMPRESS_TYPE_NONE_VALUE
SOFA_COMPRESS_TYPE_NONE = 0; |
static int |
SOFA_COMPRESS_TYPE_SNAPPY_VALUE
SOFA_COMPRESS_TYPE_SNAPPY = 3; |
static int |
SOFA_COMPRESS_TYPE_ZLIB_VALUE
SOFA_COMPRESS_TYPE_ZLIB = 2; |
| 限定符和类型 | 方法和说明 |
|---|---|
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.SofaCompressType> |
internalGetValueMap() |
static SofaRpcProto.SofaCompressType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SofaRpcProto.SofaCompressType |
valueOf(int value) |
static SofaRpcProto.SofaCompressType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SofaRpcProto.SofaCompressType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SofaRpcProto.SofaCompressType SOFA_COMPRESS_TYPE_NONE
SOFA_COMPRESS_TYPE_NONE = 0;public static final SofaRpcProto.SofaCompressType SOFA_COMPRESS_TYPE_GZIP
SOFA_COMPRESS_TYPE_GZIP = 1;public static final SofaRpcProto.SofaCompressType SOFA_COMPRESS_TYPE_ZLIB
SOFA_COMPRESS_TYPE_ZLIB = 2;public static final SofaRpcProto.SofaCompressType SOFA_COMPRESS_TYPE_SNAPPY
SOFA_COMPRESS_TYPE_SNAPPY = 3;public static final SofaRpcProto.SofaCompressType SOFA_COMPRESS_TYPE_LZ4
SOFA_COMPRESS_TYPE_LZ4 = 4;public static final int SOFA_COMPRESS_TYPE_NONE_VALUE
SOFA_COMPRESS_TYPE_NONE = 0;public static final int SOFA_COMPRESS_TYPE_GZIP_VALUE
SOFA_COMPRESS_TYPE_GZIP = 1;public static final int SOFA_COMPRESS_TYPE_ZLIB_VALUE
SOFA_COMPRESS_TYPE_ZLIB = 2;public static final int SOFA_COMPRESS_TYPE_SNAPPY_VALUE
SOFA_COMPRESS_TYPE_SNAPPY = 3;public static final int SOFA_COMPRESS_TYPE_LZ4_VALUE
SOFA_COMPRESS_TYPE_LZ4 = 4;public static SofaRpcProto.SofaCompressType[] values()
for (SofaRpcProto.SofaCompressType c : SofaRpcProto.SofaCompressType.values()) System.out.println(c);
public static SofaRpcProto.SofaCompressType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static SofaRpcProto.SofaCompressType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<SofaRpcProto.SofaCompressType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static SofaRpcProto.SofaCompressType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Baidu, Inc.. All rights reserved.