Package dev.cel.runtime
Interface MessageFactory
-
- All Known Implementing Classes:
DynamicMessageFactory,MessageFactory.CombinedMessageFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Immutable @FunctionalInterface @Deprecated public interface MessageFactoryDeprecated.Do not use. Internally,ProtoMessageFactoryshould be used.TheMessageFactoryprovides a method to create a protobuf builder objects by name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMessageFactory.CombinedMessageFactoryDeprecated.TheCombinedMessageFactorytakes one or moreMessageFactoryinstances and attempts to create aMessage.Builderinstance for a givenmessageNameby calling eachMessageFactoryin the order that they are provided to the constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @Nullable Message.BuildernewBuilder(java.lang.String messageName)Deprecated.Create aMessage.Builderinstance for the protobuf bymessageName.default ProtoMessageFactorytoProtoMessageFactory()Deprecated.Exists only to maintain FunctionalInterface requirement and to make legacy Dynamic/Linked message factories compatible with the new ProtoMessageFactory.
-
-
-
Method Detail
-
newBuilder
@Nullable Message.Builder newBuilder(java.lang.String messageName)
Deprecated.Create aMessage.Builderinstance for the protobuf bymessageName.Returns
nullif the builder could not be created.
-
toProtoMessageFactory
default ProtoMessageFactory toProtoMessageFactory()
Deprecated.Exists only to maintain FunctionalInterface requirement and to make legacy Dynamic/Linked message factories compatible with the new ProtoMessageFactory.
-
-