momo-jun commented on pull request #14746: URL: https://github.com/apache/pulsar/pull/14746#issuecomment-1073576421
> > BTW, the TypedMessageBuilder item is an interface rather than a component of a message. Can it be moved to https://pulsar.apache.org/docs/en/next/client-libraries-java/#configure-messages or somewhere else? @codelipenghui > > @momo-jun Yes, correct. It's not a component of a message, it's a builder for building message instances, and in most case users do not need to use it directly, instead, users should use `producer.newMessage()` to create messages. > > I think we can remove it from the above table first. And looks like the table also missed some components of a message, such as https://github.com/apache/pulsar/blob/master/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java#L175. @codelipenghui Seems there were quite a few advanced and optional components added in the latest releases. And it will be a dynamic and long list if we keep adding more features in the coming releases. Does it make sense to maintain a minimum list of mandatory components in the doc? For example, add `SchemaVersion` but skip `RedeliveryCount` (because it is only available when msg redelivery is turned on). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
