Class CheckedExpr.Builder

  • All Implemented Interfaces:
    CheckedExprOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    CheckedExpr

    public static final class CheckedExpr.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
    implements CheckedExprOrBuilder
     A CEL expression which has been successfully type checked.
     
    Protobuf type google.api.expr.v1alpha1.CheckedExpr
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • clear

        public CheckedExpr.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • getDefaultInstanceForType

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

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

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

        public CheckedExpr.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • setField

        public CheckedExpr.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • clearField

        public CheckedExpr.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • clearOneof

        public CheckedExpr.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • setRepeatedField

        public CheckedExpr.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • addRepeatedField

        public CheckedExpr.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • mergeFrom

        public CheckedExpr.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckedExpr.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • mergeFrom

        public CheckedExpr.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckedExpr.Builder>
        Throws:
        java.io.IOException
      • 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
      • removeReferenceMap

        public CheckedExpr.Builder removeReferenceMap​(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;
      • getMutableReferenceMap

        @Deprecated
        public java.util.Map<java.lang.Long,​Reference> getMutableReferenceMap()
        Deprecated.
        Use alternate mutation accessors instead.
      • putReferenceMap

        public CheckedExpr.Builder putReferenceMap​(long key,
                                                   Reference value)
         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;
      • putAllReferenceMap

        public CheckedExpr.Builder putAllReferenceMap​(java.util.Map<java.lang.Long,​Reference> values)
         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;
      • 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
      • removeTypeMap

        public CheckedExpr.Builder removeTypeMap​(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;
      • getMutableTypeMap

        @Deprecated
        public java.util.Map<java.lang.Long,​Type> getMutableTypeMap()
        Deprecated.
        Use alternate mutation accessors instead.
      • putTypeMap

        public CheckedExpr.Builder putTypeMap​(long key,
                                              Type value)
         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;
      • putAllTypeMap

        public CheckedExpr.Builder putAllTypeMap​(java.util.Map<java.lang.Long,​Type> values)
         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;
      • 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.
      • setSourceInfo

        public CheckedExpr.Builder setSourceInfo​(SourceInfo value)
         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;
      • setSourceInfo

        public CheckedExpr.Builder setSourceInfo​(SourceInfo.Builder builderForValue)
         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;
      • mergeSourceInfo

        public CheckedExpr.Builder mergeSourceInfo​(SourceInfo value)
         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;
      • clearSourceInfo

        public CheckedExpr.Builder clearSourceInfo()
         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;
      • getSourceInfoBuilder

        public SourceInfo.Builder getSourceInfoBuilder()
         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;
      • 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
      • 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.
      • setExpr

        public CheckedExpr.Builder setExpr​(Expr value)
         The checked expression. Semantically equivalent to the parsed `expr`, but
         may have structural differences.
         
        .google.api.expr.v1alpha1.Expr expr = 4;
      • setExpr

        public CheckedExpr.Builder setExpr​(Expr.Builder builderForValue)
         The checked expression. Semantically equivalent to the parsed `expr`, but
         may have structural differences.
         
        .google.api.expr.v1alpha1.Expr expr = 4;
      • mergeExpr

        public CheckedExpr.Builder mergeExpr​(Expr value)
         The checked expression. Semantically equivalent to the parsed `expr`, but
         may have structural differences.
         
        .google.api.expr.v1alpha1.Expr expr = 4;
      • clearExpr

        public CheckedExpr.Builder clearExpr()
         The checked expression. Semantically equivalent to the parsed `expr`, but
         may have structural differences.
         
        .google.api.expr.v1alpha1.Expr expr = 4;
      • getExprBuilder

        public Expr.Builder getExprBuilder()
         The checked expression. Semantically equivalent to the parsed `expr`, but
         may have structural differences.
         
        .google.api.expr.v1alpha1.Expr expr = 4;
      • 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
      • setUnknownFields

        public final CheckedExpr.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>
      • mergeUnknownFields

        public final CheckedExpr.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckedExpr.Builder>