Package io.trino.orc.proto
Enum OrcProto.EncryptionAlgorithm
- java.lang.Object
-
- java.lang.Enum<OrcProto.EncryptionAlgorithm>
-
- io.trino.orc.proto.OrcProto.EncryptionAlgorithm
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OrcProto.EncryptionAlgorithm>
- Enclosing class:
- OrcProto
public static enum OrcProto.EncryptionAlgorithm extends Enum<OrcProto.EncryptionAlgorithm> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumorc.proto.EncryptionAlgorithm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES_CTR_128AES_CTR_128 = 1;AES_CTR_256AES_CTR_256 = 2;UNKNOWN_ENCRYPTIONused for detecting future algorithms
-
Field Summary
Fields Modifier and Type Field Description static intAES_CTR_128_VALUEAES_CTR_128 = 1;static intAES_CTR_256_VALUEAES_CTR_256 = 2;static intUNKNOWN_ENCRYPTION_VALUEused for detecting future algorithms
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OrcProto.EncryptionAlgorithmforNumber(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<OrcProto.EncryptionAlgorithm>internalGetValueMap()static OrcProto.EncryptionAlgorithmvalueOf(int value)Deprecated.static OrcProto.EncryptionAlgorithmvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OrcProto.EncryptionAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static OrcProto.EncryptionAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_ENCRYPTION
public static final OrcProto.EncryptionAlgorithm UNKNOWN_ENCRYPTION
used for detecting future algorithms
UNKNOWN_ENCRYPTION = 0;
-
AES_CTR_128
public static final OrcProto.EncryptionAlgorithm AES_CTR_128
AES_CTR_128 = 1;
-
AES_CTR_256
public static final OrcProto.EncryptionAlgorithm AES_CTR_256
AES_CTR_256 = 2;
-
-
Field Detail
-
UNKNOWN_ENCRYPTION_VALUE
public static final int UNKNOWN_ENCRYPTION_VALUE
used for detecting future algorithms
UNKNOWN_ENCRYPTION = 0;- See Also:
- Constant Field Values
-
AES_CTR_128_VALUE
public static final int AES_CTR_128_VALUE
AES_CTR_128 = 1;- See Also:
- Constant Field Values
-
AES_CTR_256_VALUE
public static final int AES_CTR_256_VALUE
AES_CTR_256 = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OrcProto.EncryptionAlgorithm[] 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 (OrcProto.EncryptionAlgorithm c : OrcProto.EncryptionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrcProto.EncryptionAlgorithm 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 OrcProto.EncryptionAlgorithm 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 OrcProto.EncryptionAlgorithm 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<OrcProto.EncryptionAlgorithm> 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 OrcProto.EncryptionAlgorithm 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
-
-