Package dev.cel.common.ast
Class CelExpr.CelCreateMap.Entry
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.CelCreateMap.Entry
-
- Enclosing class:
- CelExpr.CelCreateMap
@Immutable public abstract static class CelExpr.CelCreateMap.Entry extends java.lang.Object
Represents an entry of the map
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CelExpr.CelCreateMap.Entry.Builder
Builder for CelCreateMap.Entry.
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
id()
Required.abstract CelExpr
key()
Required.static CelExpr.CelCreateMap.Entry.Builder
newBuilder()
abstract boolean
optionalEntry()
Whether the key-value pair is optional.abstract CelExpr.CelCreateMap.Entry.Builder
toBuilder()
abstract CelExpr
value()
Required.
-
-
-
Method Detail
-
id
public abstract long id()
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
-
key
public abstract CelExpr key()
Required. The key.
-
value
public abstract CelExpr value()
Required. The value assigned to the key.If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
-
optionalEntry
public abstract boolean optionalEntry()
Whether the key-value pair is optional.
-
toBuilder
public abstract CelExpr.CelCreateMap.Entry.Builder toBuilder()
-
newBuilder
public static CelExpr.CelCreateMap.Entry.Builder newBuilder()
-
-