Package dev.cel.expr
Class Expr.CreateStruct.Entry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Expr.CreateStruct.Entry.Builder>
com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
dev.cel.expr.Expr.CreateStruct.Entry.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Expr.CreateStruct.EntryOrBuilder,Cloneable
- Enclosing class:
Expr.CreateStruct.Entry
public static final class Expr.CreateStruct.Entry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
implements Expr.CreateStruct.EntryOrBuilder
Represents an entry.Protobuf type
cel.expr.Expr.CreateStruct.Entry-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate longprivate Objectprivate intprivate com.google.protobuf.SingleFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> private booleanprivate Exprprivate com.google.protobuf.SingleFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Expr.CreateStruct.Entry result) private voidclear()The field key for a message creator statement.clearId()Required.The key expression for a map creation statement.Whether the key-value pair is optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe field key for a message creator statement.com.google.protobuf.ByteStringThe field key for a message creator statement.longgetId()Required.The key expression for a map creation statement.The key expression for a map creation statement.The key expression for a map creation statement.booleanWhether the key-value pair is optional.getValue()Required.Required.Required.booleanThe field key for a message creator statement.booleanThe key expression for a map creation statement.booleanhasValue()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> The key expression for a map creation statement.private com.google.protobuf.SingleFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> Required.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Expr.CreateStruct.Entry other) mergeMapKey(Expr value) The key expression for a map creation statement.mergeValue(Expr value) Required.setFieldKey(String value) The field key for a message creator statement.setFieldKeyBytes(com.google.protobuf.ByteString value) The field key for a message creator statement.setId(long value) Required.The key expression for a map creation statement.setMapKey(Expr.Builder builderForValue) The key expression for a map creation statement.setOptionalEntry(boolean value) Whether the key-value pair is optional.Required.setValue(Expr.Builder builderForValue) Required.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
-
keyKindCase_
private int keyKindCase_ -
keyKind_
-
bitField0_
private int bitField0_ -
id_
private long id_ -
mapKeyBuilder_
-
value_
-
valueBuilder_
-
optionalEntry_
private boolean optionalEntry_
-
-
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<Expr.CreateStruct.Entry.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<Expr.CreateStruct.Entry.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<Expr.CreateStruct.Entry.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
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.CreateStruct.Entry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
-
mergeFrom
public Expr.CreateStruct.Entry.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<Expr.CreateStruct.Entry.Builder>- Throws:
IOException
-
getKeyKindCase
- Specified by:
getKeyKindCasein interfaceExpr.CreateStruct.EntryOrBuilder
-
clearKeyKind
-
getId
public long getId()Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
int64 id = 1;- Specified by:
getIdin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- The id.
-
setId
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
int64 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
int64 id = 1;- Returns:
- This builder for chaining.
-
hasFieldKey
public boolean hasFieldKey()The field key for a message creator statement.
string field_key = 2;- Specified by:
hasFieldKeyin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- Whether the fieldKey field is set.
-
getFieldKey
The field key for a message creator statement.
string field_key = 2;- Specified by:
getFieldKeyin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- The fieldKey.
-
getFieldKeyBytes
public com.google.protobuf.ByteString getFieldKeyBytes()The field key for a message creator statement.
string field_key = 2;- Specified by:
getFieldKeyBytesin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- The bytes for fieldKey.
-
setFieldKey
The field key for a message creator statement.
string field_key = 2;- Parameters:
value- The fieldKey to set.- Returns:
- This builder for chaining.
-
clearFieldKey
The field key for a message creator statement.
string field_key = 2;- Returns:
- This builder for chaining.
-
setFieldKeyBytes
The field key for a message creator statement.
string field_key = 2;- Parameters:
value- The bytes for fieldKey to set.- Returns:
- This builder for chaining.
-
hasMapKey
public boolean hasMapKey()The key expression for a map creation statement.
.cel.expr.Expr map_key = 3;- Specified by:
hasMapKeyin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- Whether the mapKey field is set.
-
getMapKey
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3;- Specified by:
getMapKeyin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- The mapKey.
-
setMapKey
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3; -
setMapKey
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3; -
mergeMapKey
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3; -
clearMapKey
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3; -
getMapKeyBuilder
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3; -
getMapKeyOrBuilder
The key expression for a map creation statement.
.cel.expr.Expr map_key = 3;- Specified by:
getMapKeyOrBuilderin interfaceExpr.CreateStruct.EntryOrBuilder
-
internalGetMapKeyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder, internalGetMapKeyFieldBuilder()ExprOrBuilder> The key expression for a map creation statement.
.cel.expr.Expr map_key = 3; -
hasValue
public boolean hasValue()Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4;- Specified by:
hasValuein interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- Whether the value field is set.
-
getValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4;- Specified by:
getValuein interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- The value.
-
setValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4; -
setValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4; -
mergeValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4; -
clearValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4; -
getValueBuilder
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4; -
getValueOrBuilder
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4;- Specified by:
getValueOrBuilderin interfaceExpr.CreateStruct.EntryOrBuilder
-
internalGetValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder, internalGetValueFieldBuilder()ExprOrBuilder> Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.cel.expr.Expr value = 4; -
getOptionalEntry
public boolean getOptionalEntry()Whether the key-value pair is optional.
bool optional_entry = 5;- Specified by:
getOptionalEntryin interfaceExpr.CreateStruct.EntryOrBuilder- Returns:
- The optionalEntry.
-
setOptionalEntry
Whether the key-value pair is optional.
bool optional_entry = 5;- Parameters:
value- The optionalEntry to set.- Returns:
- This builder for chaining.
-
clearOptionalEntry
Whether the key-value pair is optional.
bool optional_entry = 5;- Returns:
- This builder for chaining.
-