/// <summary>Snippet for ComputeThreatListDiffAsync</summary> public async Task ComputeThreatListDiffAsync() { // Snippet: ComputeThreatListDiffAsync(ThreatType, ByteString, ComputeThreatListDiffRequest.Types.Constraints, CallSettings) // Additional: ComputeThreatListDiffAsync(ThreatType, ByteString, ComputeThreatListDiffRequest.Types.Constraints, CancellationToken) // Create client WebRiskServiceClient webRiskServiceClient = await WebRiskServiceClient.CreateAsync(); // Initialize request argument(s) ThreatType threatType = ThreatType.Unspecified; ByteString versionToken = ByteString.Empty; ComputeThreatListDiffRequest.Types.Constraints constraints = new ComputeThreatListDiffRequest.Types.Constraints(); // Make the request ComputeThreatListDiffResponse response = await webRiskServiceClient.ComputeThreatListDiffAsync(threatType, versionToken, constraints); // End snippet }
/// <summary>Snippet for ComputeThreatListDiffAsync</summary> public async Task ComputeThreatListDiffRequestObjectAsync() { // Snippet: ComputeThreatListDiffAsync(ComputeThreatListDiffRequest, CallSettings) // Additional: ComputeThreatListDiffAsync(ComputeThreatListDiffRequest, CancellationToken) // Create client WebRiskServiceClient webRiskServiceClient = await WebRiskServiceClient.CreateAsync(); // Initialize request argument(s) ComputeThreatListDiffRequest request = new ComputeThreatListDiffRequest { ThreatType = ThreatType.Unspecified, VersionToken = ByteString.Empty, Constraints = new ComputeThreatListDiffRequest.Types.Constraints(), }; // Make the request ComputeThreatListDiffResponse response = await webRiskServiceClient.ComputeThreatListDiffAsync(request); // End snippet }