Package dev.cel.expr
Enum Type.PrimitiveType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Type.PrimitiveType>
- Enclosing class:
Type
public static enum Type.PrimitiveType
extends Enum<Type.PrimitiveType>
implements com.google.protobuf.ProtocolMessageEnum
CEL primitive types.Protobuf enum
cel.expr.Type.PrimitiveType
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean type.Bytes type.Double type.Int64 type.Unspecified type.String type.Uint64 type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Boolean type.static final int
Bytes type.static final int
Double type.static final int
Int64 type.private static final com.google.protobuf.Internal.EnumLiteMap
<Type.PrimitiveType> static final int
Unspecified type.static final int
String type.static final int
Uint64 type.private final int
private static final Type.PrimitiveType[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Type.PrimitiveType
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<Type.PrimitiveType> static Type.PrimitiveType
valueOf
(int value) Deprecated.static Type.PrimitiveType
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Type.PrimitiveType
Returns the enum constant of this type with the specified name.static Type.PrimitiveType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRIMITIVE_TYPE_UNSPECIFIED
Unspecified type.
PRIMITIVE_TYPE_UNSPECIFIED = 0;
-
BOOL
Boolean type.
BOOL = 1;
-
INT64
Int64 type. 32-bit integer values are widened to int64.
INT64 = 2;
-
UINT64
Uint64 type. 32-bit unsigned integer values are widened to uint64.
UINT64 = 3;
-
DOUBLE
Double type. 32-bit float values are widened to double values.
DOUBLE = 4;
-
STRING
String type.
STRING = 5;
-
BYTES
Bytes type.
BYTES = 6;
-
UNRECOGNIZED
-
-
Field Details
-
PRIMITIVE_TYPE_UNSPECIFIED_VALUE
public static final int PRIMITIVE_TYPE_UNSPECIFIED_VALUEUnspecified type.
PRIMITIVE_TYPE_UNSPECIFIED = 0;
- See Also:
-
BOOL_VALUE
public static final int BOOL_VALUEBoolean type.
BOOL = 1;
- See Also:
-
INT64_VALUE
public static final int INT64_VALUEInt64 type. 32-bit integer values are widened to int64.
INT64 = 2;
- See Also:
-
UINT64_VALUE
public static final int UINT64_VALUEUint64 type. 32-bit unsigned integer values are widened to uint64.
UINT64 = 3;
- See Also:
-
DOUBLE_VALUE
public static final int DOUBLE_VALUEDouble type. 32-bit float values are widened to double values.
DOUBLE = 4;
- See Also:
-
STRING_VALUE
public static final int STRING_VALUEString type.
STRING = 5;
- See Also:
-
BYTES_VALUE
public static final int BYTES_VALUEBytes type.
BYTES = 6;
- See Also:
-
internalValueMap
-
VALUES
-
value
private final int value
-
-
Constructor Details
-
PrimitiveType
private PrimitiveType(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-