Package dev.cel.common.ast
Class CelExpr.CelCreateStruct
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.CelCreateStruct
-
- Enclosing class:
- CelExpr
@Immutable public abstract static class CelExpr.CelCreateStruct extends java.lang.ObjectA map or message creation expression.Maps are constructed as `{'key_name': 'value'}`. Message construction is similar, but prefixed with a type name and composed of field ids: `types.MyType{field_id: 'value'}`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelExpr.CelCreateStruct.BuilderBuilder for CelCreateStruct.static classCelExpr.CelCreateStruct.EntryRepresents an entry of the struct
-
Constructor Summary
Constructors Constructor Description CelCreateStruct()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.google.common.collect.ImmutableList<CelExpr.CelCreateStruct.Entry>entries()The entries in the creation expression.abstract java.lang.StringmessageName()The type name of the message to be created, empty when creating map literals.static CelExpr.CelCreateStruct.BuildernewBuilder()CelExpr.CelCreateStruct.BuildertoBuilder()
-
-
-
Method Detail
-
messageName
public abstract java.lang.String messageName()
The type name of the message to be created, empty when creating map literals.
-
entries
public abstract com.google.common.collect.ImmutableList<CelExpr.CelCreateStruct.Entry> entries()
The entries in the creation expression.
-
toBuilder
public CelExpr.CelCreateStruct.Builder toBuilder()
-
newBuilder
public static CelExpr.CelCreateStruct.Builder newBuilder()
-
-