Class CheckedExpr

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<CheckedExpr,CheckedExpr.Builder>
com.google.api.expr.v1alpha1.CheckedExpr
All Implemented Interfaces:
CheckedExprOrBuilder, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder

public final class CheckedExpr extends com.google.protobuf.GeneratedMessageLite<CheckedExpr,CheckedExpr.Builder> implements CheckedExprOrBuilder
 A CEL expression which has been successfully type checked.
 
Protobuf type google.api.expr.v1alpha1.CheckedExpr
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A CEL expression which has been successfully type checked.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    A map from expression ids to resolved references.
    boolean
    containsTypeMap(long key)
    A map from expression ids to types.
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    The checked expression.
    The expr version indicates the major / minor version number of the `expr` representation.
    com.google.protobuf.ByteString
    The expr version indicates the major / minor version number of the `expr` representation.
    Deprecated.
    int
    A map from expression ids to resolved references.
    A map from expression ids to resolved references.
    getReferenceMapOrDefault(long key, Reference defaultValue)
    A map from expression ids to resolved references.
    A map from expression ids to resolved references.
    The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
    Deprecated.
    int
    A map from expression ids to types.
    A map from expression ids to types.
    getTypeMapOrDefault(long key, Type defaultValue)
    A map from expression ids to types.
    A map from expression ids to types.
    boolean
    The checked expression.
    boolean
    The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<CheckedExpr>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    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

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • REFERENCE_MAP_FIELD_NUMBER

      public static final int REFERENCE_MAP_FIELD_NUMBER
      See Also:
    • TYPE_MAP_FIELD_NUMBER

      public static final int TYPE_MAP_FIELD_NUMBER
      See Also:
    • SOURCE_INFO_FIELD_NUMBER

      public static final int SOURCE_INFO_FIELD_NUMBER
      See Also:
    • EXPR_VERSION_FIELD_NUMBER

      public static final int EXPR_VERSION_FIELD_NUMBER
      See Also:
    • EXPR_FIELD_NUMBER

      public static final int EXPR_FIELD_NUMBER
      See Also:
  • Method Details

    • 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, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
      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, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
      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, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
      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, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
      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, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
      Specified by:
      getReferenceMapOrThrow in interface CheckedExprOrBuilder
    • 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, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
      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, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
      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, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
      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, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
      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, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
      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.
       
      .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];
      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.
       
      .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];
      Specified by:
      getSourceInfo in interface CheckedExprOrBuilder
      Returns:
      The sourceInfo.
    • 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 [json_name = "exprVersion"];
      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 [json_name = "exprVersion"];
      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.
       
      .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];
      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.
       
      .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];
      Specified by:
      getExpr in interface CheckedExprOrBuilder
      Returns:
      The expr.
    • 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
    • newBuilder

      public static CheckedExpr.Builder newBuilder()
    • newBuilder

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

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<CheckedExpr,CheckedExpr.Builder>
    • getDefaultInstance

      public static CheckedExpr getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CheckedExpr> parser()