Package dev.cel.expr
Interface DeclOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
Decl,Decl.Builder
public interface DeclOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Decl.DeclKindCasegetDeclKindCase()Decl.FunctionDeclgetFunction()Function declaration.Decl.FunctionDeclOrBuildergetFunctionOrBuilder()Function declaration.Decl.IdentDeclgetIdent()Identifier declaration.Decl.IdentDeclOrBuildergetIdentOrBuilder()Identifier declaration.java.lang.StringgetName()The fully qualified name of the declaration.ByteStringgetNameBytes()The fully qualified name of the declaration.booleanhasFunction()Function declaration.booleanhasIdent()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 Detail
-
getName
java.lang.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
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()
-
-