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
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private java.lang.Object
declKind_
private int
declKindCase_
private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder,Decl.FunctionDeclOrBuilder>
functionBuilder_
private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder,Decl.IdentDeclOrBuilder>
identBuilder_
private java.lang.Object
name_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Decl
build()
Decl
buildPartial()
private void
buildPartial0(Decl result)
private void
buildPartialOneofs(Decl result)
Decl.Builder
clear()
Decl.Builder
clearDeclKind()
Decl.Builder
clearFunction()
Function declaration.Decl.Builder
clearIdent()
Identifier declaration.Decl.Builder
clearName()
The fully qualified name of the declaration.Decl.DeclKindCase
getDeclKindCase()
Decl
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Decl.FunctionDecl
getFunction()
Function declaration.Decl.FunctionDecl.Builder
getFunctionBuilder()
Function declaration.private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder,Decl.FunctionDeclOrBuilder>
getFunctionFieldBuilder()
Function declaration.Decl.FunctionDeclOrBuilder
getFunctionOrBuilder()
Function declaration.Decl.IdentDecl
getIdent()
Identifier declaration.Decl.IdentDecl.Builder
getIdentBuilder()
Identifier declaration.private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder,Decl.IdentDeclOrBuilder>
getIdentFieldBuilder()
Identifier declaration.Decl.IdentDeclOrBuilder
getIdentOrBuilder()
Identifier declaration.java.lang.String
getName()
The fully qualified name of the declaration.com.google.protobuf.ByteString
getNameBytes()
The fully qualified name of the declaration.boolean
hasFunction()
Function declaration.boolean
hasIdent()
Identifier declaration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Decl.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Decl.Builder
mergeFrom(com.google.protobuf.Message other)
Decl.Builder
mergeFrom(Decl other)
Decl.Builder
mergeFunction(Decl.FunctionDecl value)
Function declaration.Decl.Builder
mergeIdent(Decl.IdentDecl value)
Identifier declaration.Decl.Builder
setFunction(Decl.FunctionDecl value)
Function declaration.Decl.Builder
setFunction(Decl.FunctionDecl.Builder builderForValue)
Function declaration.Decl.Builder
setIdent(Decl.IdentDecl value)
Identifier declaration.Decl.Builder
setIdent(Decl.IdentDecl.Builder builderForValue)
Identifier declaration.Decl.Builder
setName(java.lang.String value)
The fully qualified name of the declaration.Decl.Builder
setNameBytes(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
-
-
-
-
Field Detail
-
declKindCase_
private int declKindCase_
-
declKind_
private java.lang.Object declKind_
-
bitField0_
private int bitField0_
-
name_
private java.lang.Object name_
-
identBuilder_
private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder,Decl.IdentDeclOrBuilder> identBuilder_
-
functionBuilder_
private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder,Decl.FunctionDeclOrBuilder> functionBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
clear
public Decl.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
getDefaultInstanceForType
public Decl getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Decl build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Decl buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Decl result)
-
buildPartialOneofs
private void buildPartialOneofs(Decl result)
-
mergeFrom
public Decl.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>
-
mergeFrom
public Decl.Builder mergeFrom(Decl other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>
- Throws:
java.io.IOException
-
getDeclKindCase
public Decl.DeclKindCase getDeclKindCase()
- Specified by:
getDeclKindCase
in 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:
getName
in 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:
getNameBytes
in 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:
hasIdent
in interfaceDeclOrBuilder
- Returns:
- Whether the ident field is set.
-
getIdent
public Decl.IdentDecl getIdent()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
- Specified by:
getIdent
in 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:
getIdentOrBuilder
in interfaceDeclOrBuilder
-
getIdentFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder,Decl.IdentDeclOrBuilder> getIdentFieldBuilder()
Identifier declaration.
.cel.expr.Decl.IdentDecl ident = 2;
-
hasFunction
public boolean hasFunction()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
- Specified by:
hasFunction
in interfaceDeclOrBuilder
- Returns:
- Whether the function field is set.
-
getFunction
public Decl.FunctionDecl getFunction()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
- Specified by:
getFunction
in 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:
getFunctionOrBuilder
in interfaceDeclOrBuilder
-
getFunctionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder,Decl.FunctionDeclOrBuilder> getFunctionFieldBuilder()
Function declaration.
.cel.expr.Decl.FunctionDecl function = 3;
-
-