Add Util function that generates a MonitoringKeysetInfo from a PrimitiveSet.

Also, remove the primary key id validation in MonitoringKeysetInfo. It is not the right place to do this validation. getMonitoringKeysetInfo should not throw validation errors, otherwise we force the user to check for these errors in a weird place.

PiperOrigin-RevId: 455390500
Change-Id: I52c65899d7e874725e5f809dc338ca3896b24a8b
4 files changed