Package dev.cel.expr
Interface DeclOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Decl
,Decl.Builder
public interface DeclOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionFunction declaration.Function declaration.getIdent()
Identifier declaration.Identifier declaration.getName()
The fully qualified name of the declaration.com.google.protobuf.ByteString
The fully qualified name of the declaration.boolean
Function declaration.boolean
hasIdent()
Identifier declaration.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
-
getName
String getName()The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `cel.expr.Decl`. Declarations used as [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][cel.expr.Expr].
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `cel.expr.Decl`. Declarations used as [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][cel.expr.Expr].
string name = 1;
- Returns:
- The bytes for name.
-
hasIdent
boolean hasIdent()Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
- Returns:
- Whether the ident field is set.
-
getIdent
Decl.IdentDecl getIdent()Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
- Returns:
- The ident.
-
getIdentOrBuilder
Decl.IdentDeclOrBuilder getIdentOrBuilder()Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
hasFunction
boolean hasFunction()Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
- Returns:
- Whether the function field is set.
-
getFunction
Decl.FunctionDecl getFunction()Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
- Returns:
- The function.
-
getFunctionOrBuilder
Decl.FunctionDeclOrBuilder getFunctionOrBuilder()Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
getDeclKindCase
Decl.DeclKindCase getDeclKindCase()
-