DiffResult diffMessages ( Message actual , Message expected ) { checkNotNull ( actual ) ; checkNotNull ( expected ) ; checkArgument ( actual . getDescriptorForType ( ) == expected . getDescriptorForType ( ) , "The actual [%s] and expected [%s] message descriptors do not match." , actual . getDescriptorForType ( ) , expected . getDescriptorForType ( ) ) ; return diffMessages ( actual , expected , rootConfig ) ; }
Compare the two non - null messages and return a detailed comparison report .