Package dev.cel.expr
Class Expr.CreateStruct.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Expr.CreateStruct.Builder>
com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Builder>
dev.cel.expr.Expr.CreateStruct.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Expr.CreateStructOrBuilder,Cloneable
- Enclosing class:
Expr.CreateStruct
public static final class Expr.CreateStruct.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Builder>
implements Expr.CreateStructOrBuilder
A map or message creation expression.
Maps are constructed as `{'key_name': 'value'}`. Message construction is
similar, but prefixed with a type name and composed of field ids:
`types.MyType{field_id: 'value'}`.
Protobuf type cel.expr.Expr.CreateStruct-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate List<Expr.CreateStruct.Entry> private com.google.protobuf.RepeatedFieldBuilder<Expr.CreateStruct.Entry, Expr.CreateStruct.Entry.Builder, Expr.CreateStruct.EntryOrBuilder> private Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllEntries(Iterable<? extends Expr.CreateStruct.Entry> values) The entries in the creation expression.addEntries(int index, Expr.CreateStruct.Entry value) The entries in the creation expression.addEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.The entries in the creation expression.addEntries(Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.The entries in the creation expression.addEntriesBuilder(int index) The entries in the creation expression.build()private voidbuildPartial0(Expr.CreateStruct result) private voidclear()The entries in the creation expression.The type name of the message to be created, empty when creating map literals.private voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEntries(int index) The entries in the creation expression.getEntriesBuilder(int index) The entries in the creation expression.The entries in the creation expression.intThe entries in the creation expression.private com.google.protobuf.RepeatedFieldBuilder<Expr.CreateStruct.Entry, Expr.CreateStruct.Entry.Builder, Expr.CreateStruct.EntryOrBuilder> The entries in the creation expression.getEntriesOrBuilder(int index) The entries in the creation expression.List<? extends Expr.CreateStruct.EntryOrBuilder> The entries in the creation expression.The type name of the message to be created, empty when creating map literals.com.google.protobuf.ByteStringThe type name of the message to be created, empty when creating map literals.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Expr.CreateStruct other) removeEntries(int index) The entries in the creation expression.setEntries(int index, Expr.CreateStruct.Entry value) The entries in the creation expression.setEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.setMessageName(String value) The type name of the message to be created, empty when creating map literals.setMessageNameBytes(com.google.protobuf.ByteString value) The type name of the message to be created, empty when creating map literals.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_ -
messageName_
-
entries_
-
entriesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Expr.CreateStruct.Entry,Expr.CreateStruct.Entry.Builder, entriesBuilder_Expr.CreateStruct.EntryOrBuilder>
-
-
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.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<Expr.CreateStruct.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.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
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.CreateStruct.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Builder>
-
mergeFrom
public Expr.CreateStruct.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.Builder>- Throws:
IOException
-
getMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1;- Specified by:
getMessageNamein interfaceExpr.CreateStructOrBuilder- Returns:
- The messageName.
-
getMessageNameBytes
public com.google.protobuf.ByteString getMessageNameBytes()The type name of the message to be created, empty when creating map literals.
string message_name = 1;- Specified by:
getMessageNameBytesin interfaceExpr.CreateStructOrBuilder- Returns:
- The bytes for messageName.
-
setMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1;- Parameters:
value- The messageName to set.- Returns:
- This builder for chaining.
-
clearMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1;- Returns:
- This builder for chaining.
-
setMessageNameBytes
The type name of the message to be created, empty when creating map literals.
string message_name = 1;- Parameters:
value- The bytes for messageName to set.- Returns:
- This builder for chaining.
-
ensureEntriesIsMutable
private void ensureEntriesIsMutable() -
getEntriesList
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2;- Specified by:
getEntriesListin interfaceExpr.CreateStructOrBuilder
-
getEntriesCount
public int getEntriesCount()The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2;- Specified by:
getEntriesCountin interfaceExpr.CreateStructOrBuilder
-
getEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2;- Specified by:
getEntriesin interfaceExpr.CreateStructOrBuilder
-
setEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
setEntries
public Expr.CreateStruct.Builder setEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
addEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
addEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
addEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
addEntries
public Expr.CreateStruct.Builder addEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
addAllEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
clearEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
removeEntries
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
getEntriesBuilder
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
getEntriesOrBuilder
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2;- Specified by:
getEntriesOrBuilderin interfaceExpr.CreateStructOrBuilder
-
getEntriesOrBuilderList
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2;- Specified by:
getEntriesOrBuilderListin interfaceExpr.CreateStructOrBuilder
-
addEntriesBuilder
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
addEntriesBuilder
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
getEntriesBuilderList
The entries in the creation expression.
repeated .cel.expr.Expr.CreateStruct.Entry entries = 2; -
getEntriesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Expr.CreateStruct.Entry,Expr.CreateStruct.Entry.Builder, getEntriesFieldBuilder()Expr.CreateStruct.EntryOrBuilder>
-