Class CheckedExpr

  • All Implemented Interfaces:
    CheckedExprOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class CheckedExpr
    extends com.google.protobuf.GeneratedMessage
    implements CheckedExprOrBuilder
     A CEL expression which has been successfully type checked.
     
    Protobuf type google.api.expr.v1alpha1.CheckedExpr
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CheckedExpr.Builder
      A CEL expression which has been successfully type checked.
      private static class  CheckedExpr.ReferenceMapDefaultEntryHolder  
      private static class  CheckedExpr.TypeMapDefaultEntryHolder  
      • 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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

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

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

      Constructors 
      Modifier Constructor Description
      private CheckedExpr()  
      private CheckedExpr​(com.google.protobuf.GeneratedMessage.Builder<?> builder)  
    • Field Detail

      • bitField0_

        private int bitField0_
      • REFERENCE_MAP_FIELD_NUMBER

        public static final int REFERENCE_MAP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • referenceMap_

        private com.google.protobuf.MapField<java.lang.Long,​Reference> referenceMap_
      • typeMap_

        private com.google.protobuf.MapField<java.lang.Long,​Type> typeMap_
      • 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
      • exprVersion_

        private volatile java.lang.Object exprVersion_
      • 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 Detail

      • CheckedExpr

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

        private CheckedExpr()
    • Method Detail

      • 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<java.lang.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, .google.api.expr.v1alpha1.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, .google.api.expr.v1alpha1.Reference> reference_map = 2;
        Specified by:
        containsReferenceMap in interface CheckedExprOrBuilder
      • 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, .google.api.expr.v1alpha1.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, .google.api.expr.v1alpha1.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, .google.api.expr.v1alpha1.Reference> reference_map = 2;
        Specified by:
        getReferenceMapOrThrow in interface CheckedExprOrBuilder
      • internalGetTypeMap

        private com.google.protobuf.MapField<java.lang.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, .google.api.expr.v1alpha1.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, .google.api.expr.v1alpha1.Type> type_map = 3;
        Specified by:
        containsTypeMap in interface CheckedExprOrBuilder
      • 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, .google.api.expr.v1alpha1.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, .google.api.expr.v1alpha1.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, .google.api.expr.v1alpha1.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.
         
        .google.api.expr.v1alpha1.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.
         
        .google.api.expr.v1alpha1.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.
         
        .google.api.expr.v1alpha1.SourceInfo source_info = 5;
        Specified by:
        getSourceInfoOrBuilder in interface CheckedExprOrBuilder
      • 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:
        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.
         
        .google.api.expr.v1alpha1.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.
         
        .google.api.expr.v1alpha1.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.
         
        .google.api.expr.v1alpha1.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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.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​(java.lang.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​(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:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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