Package dev.cel.common.ast
Class CelExpr.CelCreateStruct.Entry
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.CelCreateStruct.Entry
-
- Enclosing class:
- CelExpr.CelCreateStruct
@Immutable public abstract static class CelExpr.CelCreateStruct.Entry extends java.lang.ObjectRepresents an entry of the struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelExpr.CelCreateStruct.Entry.BuilderBuilder for CelCreateStruct.Entry.static classCelExpr.CelCreateStruct.Entry.KeyKindEntry key kind.
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longid()Required.abstract CelExpr.CelCreateStruct.Entry.KeyKindkeyKind()Entry key kind.static CelExpr.CelCreateStruct.Entry.BuildernewBuilder()abstract booleanoptionalEntry()Whether the key-value pair is optional.abstract CelExpr.CelCreateStruct.Entry.BuildertoBuilder()abstract CelExprvalue()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.
-
keyKind
public abstract CelExpr.CelCreateStruct.Entry.KeyKind keyKind()
Entry key kind.
-
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.CelCreateStruct.Entry.Builder toBuilder()
-
newBuilder
public static CelExpr.CelCreateStruct.Entry.Builder newBuilder()
-
-