Class MessageFactory.CombinedMessageFactory

  • All Implemented Interfaces:
    MessageFactory
    Enclosing interface:
    MessageFactory

    @Immutable
    public static final class MessageFactory.CombinedMessageFactory
    extends java.lang.Object
    implements MessageFactory
    The CombinedMessageFactory takes one or more MessageFactory instances and attempts to create a Message.Builder instance for a given messageName by calling each MessageFactory in the order that they are provided to the constructor.
    • 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: MessageFactory
        Create a Message.Builder instance for the protobuf by messageName.

        Returns null if the builder could not be created.

        Specified by:
        newBuilder in interface MessageFactory