Class ProtoBufSerializationProviderBuilder

    • Constructor Detail

      • ProtoBufSerializationProviderBuilder

        public ProtoBufSerializationProviderBuilder()
    • Method Detail

      • supportedMessageCodings

        public <T extends com.google.protobuf.MessageLite> ProtoBufSerializationProviderBuilder supportedMessageCodings​(java.util.List<ContentCodec> supportedCodings)
        Set the supported message encodings for the serializers and deserializers. The encodings will be advertised on the endpoint's headers and also used to validate each encoded message ContentCodings.identity() is always supported regardless of the config passed
        Type Parameters:
        T - Type of MessageLite to register.
        Parameters:
        supportedCodings - the set of allowed encodings
        Returns:
        this
      • registerMessageType

        public <T extends com.google.protobuf.MessageLite> ProtoBufSerializationProviderBuilder registerMessageType​(java.lang.Class<T> messageType,
                                                                                                                    com.google.protobuf.Parser<T> parser)
        Register the passed messageType with the provided Parser.
        Type Parameters:
        T - Type of MessageLite to register.
        Parameters:
        messageType - Class of the type of message to register.
        parser - Parser for this message type.
        Returns:
        this