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, Serializable

public final class CheckedExpr extends com.google.protobuf.GeneratedMessage implements CheckedExprOrBuilder
 A CEL expression which has been successfully type checked.
 
Protobuf type cel.expr.CheckedExpr
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • REFERENCE_MAP_FIELD_NUMBER

      public static final int REFERENCE_MAP_FIELD_NUMBER
      See Also:
    • referenceMap_

      private com.google.protobuf.MapField<Long,Reference> referenceMap_
    • TYPE_MAP_FIELD_NUMBER

      public static final int TYPE_MAP_FIELD_NUMBER
      See Also:
    • typeMap_

      private com.google.protobuf.MapField<Long,Type> typeMap_
    • SOURCE_INFO_FIELD_NUMBER

      public static final int SOURCE_INFO_FIELD_NUMBER
      See Also:
    • sourceInfo_

      private SourceInfo sourceInfo_
    • EXPR_VERSION_FIELD_NUMBER

      public static final int EXPR_VERSION_FIELD_NUMBER
      See Also:
    • exprVersion_

      private volatile Object exprVersion_
    • EXPR_FIELD_NUMBER

      public static final int EXPR_FIELD_NUMBER
      See Also:
    • expr_

      private Expr expr_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final CheckedExpr DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<CheckedExpr> PARSER
  • Constructor Details

    • CheckedExpr

      private CheckedExpr(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • CheckedExpr

      private CheckedExpr()
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • internalGetReferenceMap

      private com.google.protobuf.MapField<Long,Reference> internalGetReferenceMap()
    • getReferenceMapCount

      public int getReferenceMapCount()
      Description copied from interface: CheckedExprOrBuilder
       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:
      getReferenceMapCount in interface CheckedExprOrBuilder
    • 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:
      containsReferenceMap in interface CheckedExprOrBuilder
    • getReferenceMap

      @Deprecated public Map<Long,Reference> getReferenceMap()
      Deprecated.
      Specified by:
      getReferenceMap in interface CheckedExprOrBuilder
    • getReferenceMapMap

      public Map<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:
      getReferenceMapMap in interface CheckedExprOrBuilder
    • 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:
      getReferenceMapOrDefault in interface CheckedExprOrBuilder
    • 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:
      getReferenceMapOrThrow in interface CheckedExprOrBuilder
    • internalGetTypeMap

      private com.google.protobuf.MapField<Long,Type> internalGetTypeMap()
    • getTypeMapCount

      public int getTypeMapCount()
      Description copied from interface: CheckedExprOrBuilder
       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:
      getTypeMapCount in interface CheckedExprOrBuilder
    • 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:
      containsTypeMap in interface CheckedExprOrBuilder
    • getTypeMap

      @Deprecated public Map<Long,Type> getTypeMap()
      Deprecated.
      Use getTypeMapMap() instead.
      Specified by:
      getTypeMap in interface CheckedExprOrBuilder
    • getTypeMapMap

      public Map<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:
      getTypeMapMap in interface CheckedExprOrBuilder
    • 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:
      getTypeMapOrDefault in interface CheckedExprOrBuilder
    • 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:
      getTypeMapOrThrow in interface CheckedExprOrBuilder
    • 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:
      hasSourceInfo in interface CheckedExprOrBuilder
      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:
      getSourceInfo in interface CheckedExprOrBuilder
      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:
      getSourceInfoOrBuilder in interface CheckedExprOrBuilder
    • getExprVersion

      public 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:
      getExprVersion in interface CheckedExprOrBuilder
      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:
      getExprVersionBytes in interface CheckedExprOrBuilder
      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:
      hasExpr in interface CheckedExprOrBuilder
      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:
      getExpr in interface CheckedExprOrBuilder
      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:
      getExprOrBuilder in interface CheckedExprOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CheckedExpr parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CheckedExpr parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CheckedExpr parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CheckedExpr parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CheckedExpr parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CheckedExpr parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CheckedExpr parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CheckedExpr.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CheckedExpr.Builder newBuilder()
    • newBuilder

      public static CheckedExpr.Builder newBuilder(CheckedExpr prototype)
    • toBuilder

      public CheckedExpr.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CheckedExpr.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CheckedExpr getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder