Package dev.cel.runtime
Class MessageFactory.CombinedMessageFactory
- java.lang.Object
-
- dev.cel.runtime.MessageFactory.CombinedMessageFactory
-
- All Implemented Interfaces:
MessageFactory
- Enclosing interface:
- MessageFactory
@Immutable public static final class MessageFactory.CombinedMessageFactory extends java.lang.Object implements MessageFactory
TheCombinedMessageFactorytakes one or moreMessageFactoryinstances and attempts to create aMessage.Builderinstance for a givenmessageNameby calling eachMessageFactoryin the order that they are provided to the constructor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.cel.runtime.MessageFactory
MessageFactory.CombinedMessageFactory
-
-
Constructor Summary
Constructors Constructor Description CombinedMessageFactory(java.lang.Iterable<MessageFactory> messageFactories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Message.BuildernewBuilder(java.lang.String messageName)Create aMessage.Builderinstance for the protobuf bymessageName.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.cel.runtime.MessageFactory
toProtoMessageFactory
-
-
-
-
Constructor Detail
-
CombinedMessageFactory
public CombinedMessageFactory(java.lang.Iterable<MessageFactory> messageFactories)
-
-
Method Detail
-
newBuilder
public @Nullable Message.Builder newBuilder(java.lang.String messageName)
Description copied from interface:MessageFactoryCreate aMessage.Builderinstance for the protobuf bymessageName.Returns
nullif the builder could not be created.- Specified by:
newBuilderin interfaceMessageFactory
-
-