Esempio n. 1
0
 /// <summary>Snippet for SearchHashes</summary>
 public void SearchHashes()
 {
     // Snippet: SearchHashes(ByteString, IEnumerable<ThreatType>, CallSettings)
     // Create client
     WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create();
     // Initialize request argument(s)
     ByteString hashPrefix = ByteString.Empty;
     IEnumerable <ThreatType> threatTypes = new ThreatType[]
     {
         ThreatType.Unspecified,
     };
     // Make the request
     SearchHashesResponse response = webRiskServiceClient.SearchHashes(hashPrefix, threatTypes);
     // End snippet
 }
Esempio n. 2
0
 /// <summary>Snippet for SearchHashes</summary>
 public void SearchHashesRequestObject()
 {
     // Snippet: SearchHashes(SearchHashesRequest, CallSettings)
     // Create client
     WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create();
     // Initialize request argument(s)
     SearchHashesRequest request = new SearchHashesRequest
     {
         HashPrefix  = ByteString.Empty,
         ThreatTypes =
         {
             ThreatType.Unspecified,
         },
     };
     // Make the request
     SearchHashesResponse response = webRiskServiceClient.SearchHashes(request);
     // End snippet
 }