spring-framework / org.springframework.http.converter.protobuf / ProtobufJsonFormatHttpMessageConverter / <init>

<init>

ProtobufJsonFormatHttpMessageConverter()

Construct a new ProtobufJsonFormatHttpMessageConverter with default JsonFormat.Parser and JsonFormat.Printer configuration.

ProtobufJsonFormatHttpMessageConverter(@Nullable parser: Parser, @Nullable printer: Printer)

Construct a new ProtobufJsonFormatHttpMessageConverter with the given JsonFormat.Parser and JsonFormat.Printer configuration.

Parameters

parser - the JSON parser configuration

printer - the JSON printer configuration

ProtobufJsonFormatHttpMessageConverter(@Nullable parser: Parser, @Nullable printer: Printer, @Nullable registryInitializer: ExtensionRegistryInitializer)

Construct a new ProtobufJsonFormatHttpMessageConverter with the given JsonFormat.Parser and JsonFormat.Printer configuration, also accepting an initializer that allows the registration of message extensions

Parameters

parser - the JSON parser configuration

printer - the JSON printer configuration

registryInitializer - an initializer for message extensions