public static enum Options.CompressType extends Enum<Options.CompressType> implements com.google.protobuf.ProtocolMessageEnum
brpc.CompressType| Enum Constant and Description |
|---|
COMPRESS_TYPE_GZIP
COMPRESS_TYPE_GZIP = 2; |
COMPRESS_TYPE_LZ4
COMPRESS_TYPE_LZ4 = 4; |
COMPRESS_TYPE_NONE
COMPRESS_TYPE_NONE = 0; |
COMPRESS_TYPE_SNAPPY
COMPRESS_TYPE_SNAPPY = 1; |
COMPRESS_TYPE_ZLIB
COMPRESS_TYPE_ZLIB = 3; |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESS_TYPE_GZIP_VALUE
COMPRESS_TYPE_GZIP = 2; |
static int |
COMPRESS_TYPE_LZ4_VALUE
COMPRESS_TYPE_LZ4 = 4; |
static int |
COMPRESS_TYPE_NONE_VALUE
COMPRESS_TYPE_NONE = 0; |
static int |
COMPRESS_TYPE_SNAPPY_VALUE
COMPRESS_TYPE_SNAPPY = 1; |
static int |
COMPRESS_TYPE_ZLIB_VALUE
COMPRESS_TYPE_ZLIB = 3; |
| 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<Options.CompressType> |
internalGetValueMap() |
static Options.CompressType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Options.CompressType |
valueOf(int value) |
static Options.CompressType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Options.CompressType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Options.CompressType COMPRESS_TYPE_NONE
COMPRESS_TYPE_NONE = 0;public static final Options.CompressType COMPRESS_TYPE_SNAPPY
COMPRESS_TYPE_SNAPPY = 1;public static final Options.CompressType COMPRESS_TYPE_GZIP
COMPRESS_TYPE_GZIP = 2;public static final Options.CompressType COMPRESS_TYPE_ZLIB
COMPRESS_TYPE_ZLIB = 3;public static final Options.CompressType COMPRESS_TYPE_LZ4
COMPRESS_TYPE_LZ4 = 4;public static final int COMPRESS_TYPE_NONE_VALUE
COMPRESS_TYPE_NONE = 0;public static final int COMPRESS_TYPE_SNAPPY_VALUE
COMPRESS_TYPE_SNAPPY = 1;public static final int COMPRESS_TYPE_GZIP_VALUE
COMPRESS_TYPE_GZIP = 2;public static final int COMPRESS_TYPE_ZLIB_VALUE
COMPRESS_TYPE_ZLIB = 3;public static final int COMPRESS_TYPE_LZ4_VALUE
COMPRESS_TYPE_LZ4 = 4;public static Options.CompressType[] values()
for (Options.CompressType c : Options.CompressType.values()) System.out.println(c);
public static Options.CompressType 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 Options.CompressType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Options.CompressType> 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 Options.CompressType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Baidu, Inc.. All rights reserved.