Package dev.cel.expr
Class CheckedExpr
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- dev.cel.expr.CheckedExpr
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CheckedExprOrBuilder,java.io.Serializable
public final class CheckedExpr extends com.google.protobuf.GeneratedMessage implements CheckedExprOrBuilder
A CEL expression which has been successfully type checked.
Protobuf typecel.expr.CheckedExpr- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckedExpr.BuilderA CEL expression which has been successfully type checked.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEXPR_FIELD_NUMBERstatic intEXPR_VERSION_FIELD_NUMBERstatic intREFERENCE_MAP_FIELD_NUMBERstatic intSOURCE_INFO_FIELD_NUMBERstatic intTYPE_MAP_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsReferenceMap(long key)A map from expression ids to resolved references.booleancontainsTypeMap(long key)A map from expression ids to types.booleanequals(java.lang.Object obj)static CheckedExprgetDefaultInstance()CheckedExprgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ExprgetExpr()The checked expression.ExprOrBuildergetExprOrBuilder()The checked expression.java.lang.StringgetExprVersion()The expr version indicates the major / minor version number of the `expr` representation.com.google.protobuf.ByteStringgetExprVersionBytes()The expr version indicates the major / minor version number of the `expr` representation.com.google.protobuf.Parser<CheckedExpr>getParserForType()java.util.Map<java.lang.Long,Reference>getReferenceMap()Deprecated.intgetReferenceMapCount()A map from expression ids to resolved references.java.util.Map<java.lang.Long,Reference>getReferenceMapMap()A map from expression ids to resolved references.ReferencegetReferenceMapOrDefault(long key, Reference defaultValue)A map from expression ids to resolved references.ReferencegetReferenceMapOrThrow(long key)A map from expression ids to resolved references.intgetSerializedSize()SourceInfogetSourceInfo()The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.SourceInfoOrBuildergetSourceInfoOrBuilder()The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.java.util.Map<java.lang.Long,Type>getTypeMap()Deprecated.intgetTypeMapCount()A map from expression ids to types.java.util.Map<java.lang.Long,Type>getTypeMapMap()A map from expression ids to types.TypegetTypeMapOrDefault(long key, Type defaultValue)A map from expression ids to types.TypegetTypeMapOrThrow(long key)A map from expression ids to types.booleanhasExpr()The checked expression.inthashCode()booleanhasSourceInfo()The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static CheckedExpr.BuildernewBuilder()static CheckedExpr.BuildernewBuilder(CheckedExpr prototype)CheckedExpr.BuildernewBuilderForType()protected CheckedExpr.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static CheckedExprparseDelimitedFrom(java.io.InputStream input)static CheckedExprparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CheckedExprparseFrom(byte[] data)static CheckedExprparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CheckedExprparseFrom(com.google.protobuf.ByteString data)static CheckedExprparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CheckedExprparseFrom(com.google.protobuf.CodedInputStream input)static CheckedExprparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CheckedExprparseFrom(java.io.InputStream input)static CheckedExprparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CheckedExprparseFrom(java.nio.ByteBuffer data)static CheckedExprparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CheckedExpr>parser()CheckedExpr.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REFERENCE_MAP_FIELD_NUMBER
public static final int REFERENCE_MAP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_MAP_FIELD_NUMBER
public static final int TYPE_MAP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_INFO_FIELD_NUMBER
public static final int SOURCE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPR_VERSION_FIELD_NUMBER
public static final int EXPR_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPR_FIELD_NUMBER
public static final int EXPR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getReferenceMapCount
public int getReferenceMapCount()
Description copied from interface:CheckedExprOrBuilderA map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;- Specified by:
getReferenceMapCountin interfaceCheckedExprOrBuilder
-
containsReferenceMap
public boolean containsReferenceMap(long key)
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;- Specified by:
containsReferenceMapin interfaceCheckedExprOrBuilder
-
getReferenceMap
@Deprecated public java.util.Map<java.lang.Long,Reference> getReferenceMap()
Deprecated.UsegetReferenceMapMap()instead.- Specified by:
getReferenceMapin interfaceCheckedExprOrBuilder
-
getReferenceMapMap
public java.util.Map<java.lang.Long,Reference> getReferenceMapMap()
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;- Specified by:
getReferenceMapMapin interfaceCheckedExprOrBuilder
-
getReferenceMapOrDefault
public Reference getReferenceMapOrDefault(long key, Reference defaultValue)
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;- Specified by:
getReferenceMapOrDefaultin interfaceCheckedExprOrBuilder
-
getReferenceMapOrThrow
public Reference getReferenceMapOrThrow(long key)
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;- Specified by:
getReferenceMapOrThrowin interfaceCheckedExprOrBuilder
-
getTypeMapCount
public int getTypeMapCount()
Description copied from interface:CheckedExprOrBuilderA map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;- Specified by:
getTypeMapCountin interfaceCheckedExprOrBuilder
-
containsTypeMap
public boolean containsTypeMap(long key)
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;- Specified by:
containsTypeMapin interfaceCheckedExprOrBuilder
-
getTypeMap
@Deprecated public java.util.Map<java.lang.Long,Type> getTypeMap()
Deprecated.UsegetTypeMapMap()instead.- Specified by:
getTypeMapin interfaceCheckedExprOrBuilder
-
getTypeMapMap
public java.util.Map<java.lang.Long,Type> getTypeMapMap()
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;- Specified by:
getTypeMapMapin interfaceCheckedExprOrBuilder
-
getTypeMapOrDefault
public Type getTypeMapOrDefault(long key, Type defaultValue)
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;- Specified by:
getTypeMapOrDefaultin interfaceCheckedExprOrBuilder
-
getTypeMapOrThrow
public Type getTypeMapOrThrow(long key)
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;- Specified by:
getTypeMapOrThrowin interfaceCheckedExprOrBuilder
-
hasSourceInfo
public boolean hasSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.cel.expr.SourceInfo source_info = 5;- Specified by:
hasSourceInfoin interfaceCheckedExprOrBuilder- Returns:
- Whether the sourceInfo field is set.
-
getSourceInfo
public SourceInfo getSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.cel.expr.SourceInfo source_info = 5;- Specified by:
getSourceInfoin interfaceCheckedExprOrBuilder- Returns:
- The sourceInfo.
-
getSourceInfoOrBuilder
public SourceInfoOrBuilder getSourceInfoOrBuilder()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.cel.expr.SourceInfo source_info = 5;- Specified by:
getSourceInfoOrBuilderin interfaceCheckedExprOrBuilder
-
getExprVersion
public java.lang.String getExprVersion()
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6;- Specified by:
getExprVersionin interfaceCheckedExprOrBuilder- Returns:
- The exprVersion.
-
getExprVersionBytes
public com.google.protobuf.ByteString getExprVersionBytes()
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6;- Specified by:
getExprVersionBytesin interfaceCheckedExprOrBuilder- Returns:
- The bytes for exprVersion.
-
hasExpr
public boolean hasExpr()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.cel.expr.Expr expr = 4;- Specified by:
hasExprin interfaceCheckedExprOrBuilder- Returns:
- Whether the expr field is set.
-
getExpr
public Expr getExpr()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.cel.expr.Expr expr = 4;- Specified by:
getExprin interfaceCheckedExprOrBuilder- Returns:
- The expr.
-
getExprOrBuilder
public ExprOrBuilder getExprOrBuilder()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.cel.expr.Expr expr = 4;- Specified by:
getExprOrBuilderin interfaceCheckedExprOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CheckedExpr parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckedExpr parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckedExpr parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckedExpr parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckedExpr parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckedExpr parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CheckedExpr parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CheckedExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CheckedExpr parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CheckedExpr parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CheckedExpr parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public CheckedExpr.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CheckedExpr.Builder newBuilder()
-
newBuilder
public static CheckedExpr.Builder newBuilder(CheckedExpr prototype)
-
toBuilder
public CheckedExpr.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CheckedExpr.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static CheckedExpr getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CheckedExpr> parser()
-
getParserForType
public com.google.protobuf.Parser<CheckedExpr> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public CheckedExpr getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-