Only use ClientRcp and ServerRpc types that are interfaces (#13056)

Change-Id: I73b062628052ec545d5f53314a0cc479806ee89d