One note before addressing your question:
Record has been recently deprecated in favor of the identical
DamlRecord to avoid clashing with the recently introduced built-in
java.lang.Record (see the release notes for Daml 1.15.0).
To your question, all the classes provided as part of
com.daml.ledger.javaapi.data are not Protobuf-based, but rather convenience data classes for developers to use alongside our bindings that provide a more idiomatic experience when building Java applications that interact with the ledger. However, what they do is providing you the infrastructure to convert objects of this type to and from Protobuf. What you could do is invoke
toProto on the object of type
Record and then feed it into the