Package dev.cel.expr
Interface Expr.CreateStruct.EntryOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Expr.CreateStruct.Entry
,Expr.CreateStruct.Entry.Builder
- Enclosing class:
Expr.CreateStruct
public static interface Expr.CreateStruct.EntryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe field key for a message creator statement.com.google.protobuf.ByteString
The field key for a message creator statement.long
getId()
Required.The key expression for a map creation statement.The key expression for a map creation statement.boolean
Whether the key-value pair is optional.getValue()
Required.Required.boolean
The field key for a message creator statement.boolean
The key expression for a map creation statement.boolean
hasValue()
Required.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
long getId()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.
int64 id = 1;
- Returns:
- The id.
-
hasFieldKey
boolean hasFieldKey()The field key for a message creator statement.
string field_key = 2;
- Returns:
- Whether the fieldKey field is set.
-
getFieldKey
String getFieldKey()The field key for a message creator statement.
string field_key = 2;
- Returns:
- The fieldKey.
-
getFieldKeyBytes
com.google.protobuf.ByteString getFieldKeyBytes()The field key for a message creator statement.
string field_key = 2;
- Returns:
- The bytes for fieldKey.
-
hasMapKey
boolean hasMapKey()The key expression for a map creation statement.
.cel.expr.Expr map_key = 3;
- Returns:
- Whether the mapKey field is set.
-
getMapKey
Expr getMapKey()The key expression for a map creation statement.
.cel.expr.Expr map_key = 3;
- Returns:
- The mapKey.
-
getMapKeyOrBuilder
ExprOrBuilder getMapKeyOrBuilder()The key expression for a map creation statement.
.cel.expr.Expr map_key = 3;
-
hasValue
boolean hasValue()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.
.cel.expr.Expr value = 4;
- Returns:
- Whether the value field is set.
-
getValue
Expr getValue()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.
.cel.expr.Expr value = 4;
- Returns:
- The value.
-
getValueOrBuilder
ExprOrBuilder getValueOrBuilder()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.
.cel.expr.Expr value = 4;
-
getOptionalEntry
boolean getOptionalEntry()Whether the key-value pair is optional.
bool optional_entry = 5;
- Returns:
- The optionalEntry.
-
getKeyKindCase
Expr.CreateStruct.Entry.KeyKindCase getKeyKindCase()
-