Package dev.cel.expr
Class Decl.IdentDecl.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Decl.IdentDecl.Builder>
com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
dev.cel.expr.Decl.IdentDecl.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Decl.IdentDeclOrBuilder,Cloneable
- Enclosing class:
Decl.IdentDecl
public static final class Decl.IdentDecl.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
implements Decl.IdentDeclOrBuilder
Identifier declaration which specifies its type and optional `Expr` value. An identifier without a value is a declaration that must be provided at evaluation time. An identifier with a value should resolve to a constant, but may be used in conjunction with other identifiers bound at evaluation time.Protobuf type
cel.expr.Decl.IdentDecl-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate Typeprivate com.google.protobuf.SingleFieldBuilder<Type, Type.Builder, TypeOrBuilder> private Constantprivate com.google.protobuf.SingleFieldBuilder<Constant, Constant.Builder, ConstantOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Decl.IdentDecl result) clear()clearDoc()Documentation string for the identifier.Required.The constant value of the identifier.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDoc()Documentation string for the identifier.com.google.protobuf.ByteStringDocumentation string for the identifier.getType()Required.Required.private com.google.protobuf.SingleFieldBuilder<Type, Type.Builder, TypeOrBuilder> Required.Required.getValue()The constant value of the identifier.The constant value of the identifier.private com.google.protobuf.SingleFieldBuilder<Constant, Constant.Builder, ConstantOrBuilder> The constant value of the identifier.The constant value of the identifier.booleanhasType()Required.booleanhasValue()The constant value of the identifier.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Decl.IdentDecl other) Required.mergeValue(Constant value) The constant value of the identifier.Documentation string for the identifier.setDocBytes(com.google.protobuf.ByteString value) Documentation string for the identifier.Required.setType(Type.Builder builderForValue) Required.The constant value of the identifier.setValue(Constant.Builder builderForValue) The constant value of the identifier.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
type_
-
typeBuilder_
-
value_
-
valueBuilder_
private com.google.protobuf.SingleFieldBuilder<Constant,Constant.Builder, valueBuilder_ConstantOrBuilder> -
doc_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
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.IdentDecl.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
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.IdentDecl.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.IdentDecl.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.IdentDecl.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
-
mergeFrom
public Decl.IdentDecl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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.IdentDecl.Builder>- Throws:
IOException
-
hasType
public boolean hasType()Required. The type of the identifier.
.cel.expr.Type type = 1;- Specified by:
hasTypein interfaceDecl.IdentDeclOrBuilder- Returns:
- Whether the type field is set.
-
getType
Required. The type of the identifier.
.cel.expr.Type type = 1;- Specified by:
getTypein interfaceDecl.IdentDeclOrBuilder- Returns:
- The type.
-
setType
Required. The type of the identifier.
.cel.expr.Type type = 1; -
setType
Required. The type of the identifier.
.cel.expr.Type type = 1; -
mergeType
Required. The type of the identifier.
.cel.expr.Type type = 1; -
clearType
Required. The type of the identifier.
.cel.expr.Type type = 1; -
getTypeBuilder
Required. The type of the identifier.
.cel.expr.Type type = 1; -
getTypeOrBuilder
Required. The type of the identifier.
.cel.expr.Type type = 1;- Specified by:
getTypeOrBuilderin interfaceDecl.IdentDeclOrBuilder
-
getTypeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Type,Type.Builder, getTypeFieldBuilder()TypeOrBuilder> Required. The type of the identifier.
.cel.expr.Type type = 1; -
hasValue
public boolean hasValue()The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2;- Specified by:
hasValuein interfaceDecl.IdentDeclOrBuilder- Returns:
- Whether the value field is set.
-
getValue
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2;- Specified by:
getValuein interfaceDecl.IdentDeclOrBuilder- Returns:
- The value.
-
setValue
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2; -
setValue
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2; -
mergeValue
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2; -
clearValue
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2; -
getValueBuilder
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2; -
getValueOrBuilder
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2;- Specified by:
getValueOrBuilderin interfaceDecl.IdentDeclOrBuilder
-
getValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Constant,Constant.Builder, getValueFieldBuilder()ConstantOrBuilder> The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.cel.expr.Constant value = 2; -
getDoc
Documentation string for the identifier.
string doc = 3;- Specified by:
getDocin interfaceDecl.IdentDeclOrBuilder- Returns:
- The doc.
-
getDocBytes
public com.google.protobuf.ByteString getDocBytes()Documentation string for the identifier.
string doc = 3;- Specified by:
getDocBytesin interfaceDecl.IdentDeclOrBuilder- Returns:
- The bytes for doc.
-
setDoc
Documentation string for the identifier.
string doc = 3;- Parameters:
value- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
Documentation string for the identifier.
string doc = 3;- Returns:
- This builder for chaining.
-
setDocBytes
Documentation string for the identifier.
string doc = 3;- Parameters:
value- The bytes for doc to set.- Returns:
- This builder for chaining.
-