We raise an error instead of logging a warning because client/server mismatch is likely to cause hangs or other failures that will be easier to debug if the user gets a direct error message instead of needing to discover the warning in their logs.
PiperOrigin-RevId: 357863794
Change-Id: Ie5cc0d7906b10c404b1df47f8a5544f95cbe5e33