Package com.clickhouse.client.grpc.impl
Enum CompressionAlgorithm
- java.lang.Object
-
- java.lang.Enum<CompressionAlgorithm>
-
- com.clickhouse.client.grpc.impl.CompressionAlgorithm
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<CompressionAlgorithm>
public enum CompressionAlgorithm extends Enum<CompressionAlgorithm> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumclickhouse.grpc.CompressionAlgorithm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFLATEDEFLATE = 1;GZIPGZIP = 2;NO_COMPRESSIONNO_COMPRESSION = 0;STREAM_GZIPSTREAM_GZIP = 3;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDEFLATE_VALUEDEFLATE = 1;static intGZIP_VALUEGZIP = 2;static intNO_COMPRESSION_VALUENO_COMPRESSION = 0;static intSTREAM_GZIP_VALUESTREAM_GZIP = 3;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CompressionAlgorithmforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<CompressionAlgorithm>internalGetValueMap()static CompressionAlgorithmvalueOf(int value)Deprecated.static CompressionAlgorithmvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CompressionAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static CompressionAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_COMPRESSION
public static final CompressionAlgorithm NO_COMPRESSION
NO_COMPRESSION = 0;
-
DEFLATE
public static final CompressionAlgorithm DEFLATE
DEFLATE = 1;
-
GZIP
public static final CompressionAlgorithm GZIP
GZIP = 2;
-
STREAM_GZIP
public static final CompressionAlgorithm STREAM_GZIP
STREAM_GZIP = 3;
-
UNRECOGNIZED
public static final CompressionAlgorithm UNRECOGNIZED
-
-
Field Detail
-
NO_COMPRESSION_VALUE
public static final int NO_COMPRESSION_VALUE
NO_COMPRESSION = 0;- See Also:
- Constant Field Values
-
DEFLATE_VALUE
public static final int DEFLATE_VALUE
DEFLATE = 1;- See Also:
- Constant Field Values
-
GZIP_VALUE
public static final int GZIP_VALUE
GZIP = 2;- See Also:
- Constant Field Values
-
STREAM_GZIP_VALUE
public static final int STREAM_GZIP_VALUE
STREAM_GZIP = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CompressionAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompressionAlgorithm c : CompressionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionAlgorithm valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static CompressionAlgorithm valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static CompressionAlgorithm forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CompressionAlgorithm> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static CompressionAlgorithm valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-