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.Object
A message creation expression.Messages are constructed 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 class
CelExpr.CelCreateStruct.Builder
Builder for CelCreateStruct.static class
CelExpr.CelCreateStruct.Entry
Represents 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.String
messageName()
The type name of the message to be created, empty when creating map literals.static CelExpr.CelCreateStruct.Builder
newBuilder()
CelExpr.CelCreateStruct.Builder
toBuilder()
-
-
-
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()
-
-