public final SearchHashesResponse searchHashes ( ByteString hashPrefix , List < ThreatType > threatTypes ) { SearchHashesRequest request = SearchHashesRequest . newBuilder ( ) . setHashPrefix ( hashPrefix ) . addAllThreatTypes ( threatTypes ) . build ( ) ; return searchHashes ( request ) ; }
Gets the full hashes that match the requested hash prefix . This is used after a hash prefix is looked up in a threatList and there is a match . The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat .