Package dev.cel.expr
Class Decl.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
- dev.cel.expr.Decl.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DeclOrBuilder,java.lang.Cloneable
- Enclosing class:
- Decl
public static final class Decl.Builder extends com.google.protobuf.GeneratedMessage.Builder<Decl.Builder> implements DeclOrBuilder
Represents a declaration of a named value or function. A declaration is part of the contract between the expression, the agent evaluating that expression, and the caller requesting evaluation.
Protobuf typecel.expr.Decl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Declbuild()DeclbuildPartial()Decl.Builderclear()Decl.BuilderclearDeclKind()Decl.BuilderclearFunction()Function declaration.Decl.BuilderclearIdent()Identifier declaration.Decl.BuilderclearName()The fully qualified name of the declaration.Decl.DeclKindCasegetDeclKindCase()DeclgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Decl.FunctionDeclgetFunction()Function declaration.Decl.FunctionDecl.BuildergetFunctionBuilder()Function declaration.Decl.FunctionDeclOrBuildergetFunctionOrBuilder()Function declaration.Decl.IdentDeclgetIdent()Identifier declaration.Decl.IdentDecl.BuildergetIdentBuilder()Identifier declaration.Decl.IdentDeclOrBuildergetIdentOrBuilder()Identifier declaration.java.lang.StringgetName()The fully qualified name of the declaration.com.google.protobuf.ByteStringgetNameBytes()The fully qualified name of the declaration.booleanhasFunction()Function declaration.booleanhasIdent()Identifier declaration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Decl.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Decl.BuildermergeFrom(com.google.protobuf.Message other)Decl.BuildermergeFrom(Decl other)Decl.BuildermergeFunction(Decl.FunctionDecl value)Function declaration.Decl.BuildermergeIdent(Decl.IdentDecl value)Identifier declaration.Decl.BuildersetFunction(Decl.FunctionDecl value)Function declaration.Decl.BuildersetFunction(Decl.FunctionDecl.Builder builderForValue)Function declaration.Decl.BuildersetIdent(Decl.IdentDecl value)Identifier declaration.Decl.BuildersetIdent(Decl.IdentDecl.Builder builderForValue)Identifier declaration.Decl.BuildersetName(java.lang.String value)The fully qualified name of the declaration.Decl.BuildersetNameBytes(com.google.protobuf.ByteString value)The fully qualified name of the declaration.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
clear
public Decl.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
getDefaultInstanceForType
public Decl getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Decl build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Decl buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Decl.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>
-
mergeFrom
public Decl.Builder mergeFrom(Decl other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
mergeFrom
public Decl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>- Throws:
java.io.IOException
-
getDeclKindCase
public Decl.DeclKindCase getDeclKindCase()
- Specified by:
getDeclKindCasein interfaceDeclOrBuilder
-
clearDeclKind
public Decl.Builder clearDeclKind()
-
getName
public 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;- Specified by:
getNamein interfaceDeclOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceDeclOrBuilder- Returns:
- The bytes for name.
-
setName
public Decl.Builder setName(java.lang.String value)
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Decl.Builder clearName()
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:
- This builder for chaining.
-
setNameBytes
public Decl.Builder setNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasIdent
public boolean hasIdent()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;- Specified by:
hasIdentin interfaceDeclOrBuilder- Returns:
- Whether the ident field is set.
-
getIdent
public Decl.IdentDecl getIdent()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;- Specified by:
getIdentin interfaceDeclOrBuilder- Returns:
- The ident.
-
setIdent
public Decl.Builder setIdent(Decl.IdentDecl value)
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
setIdent
public Decl.Builder setIdent(Decl.IdentDecl.Builder builderForValue)
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
mergeIdent
public Decl.Builder mergeIdent(Decl.IdentDecl value)
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
clearIdent
public Decl.Builder clearIdent()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
getIdentBuilder
public Decl.IdentDecl.Builder getIdentBuilder()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
getIdentOrBuilder
public Decl.IdentDeclOrBuilder getIdentOrBuilder()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;- Specified by:
getIdentOrBuilderin interfaceDeclOrBuilder
-
hasFunction
public boolean hasFunction()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;- Specified by:
hasFunctionin interfaceDeclOrBuilder- Returns:
- Whether the function field is set.
-
getFunction
public Decl.FunctionDecl getFunction()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;- Specified by:
getFunctionin interfaceDeclOrBuilder- Returns:
- The function.
-
setFunction
public Decl.Builder setFunction(Decl.FunctionDecl value)
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
setFunction
public Decl.Builder setFunction(Decl.FunctionDecl.Builder builderForValue)
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
mergeFunction
public Decl.Builder mergeFunction(Decl.FunctionDecl value)
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
clearFunction
public Decl.Builder clearFunction()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
getFunctionBuilder
public Decl.FunctionDecl.Builder getFunctionBuilder()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
getFunctionOrBuilder
public Decl.FunctionDeclOrBuilder getFunctionOrBuilder()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;- Specified by:
getFunctionOrBuilderin interfaceDeclOrBuilder
-
-