public MessageProtocol withCharset ( String charset ) { return new MessageProtocol ( contentType , Optional . ofNullable ( charset ) , version ) ; }
Return a copy of this message protocol with the charset set to the given charset .