Passing schema ID in producer value object

Hello there,

We are using confluent kafka java producer and the requirement is to send the respective json schema ID also in the producer.send method . I want to know if there is any such possibility to send the schema ID as well from the client .

My understanding was, since we have the schema registry url provided in the properties object and producer object created with that property, do I need to send the schema id explicitly again in the request ? If that is possible, what is the method we need to use to pass the schema ID as well in the producer.send call ?