private void checkFieldDescriptor ( FieldDescriptor field ) { if ( field . getContainingType ( ) != metadata . descriptor ) { throw new RuntimeException ( "Wrong FieldDescriptor \"" + field . getFullName ( ) + "\" used in message \"" + metadata . descriptor . getFullName ( ) ) ; } }
Check field descriptor .