/// <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 WebRiskServiceV1Beta1Client webRiskServiceV1Beta1Client = await WebRiskServiceV1Beta1Client.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 webRiskServiceV1Beta1Client.ComputeThreatListDiffAsync(threatType, versionToken, constraints); // End snippet }
/// <summary>Snippet for ComputeThreatListDiffAsync</summary> public async Task ComputeThreatListDiffAsync_RequestObject() { // Snippet: ComputeThreatListDiffAsync(ComputeThreatListDiffRequest,CallSettings) // Additional: ComputeThreatListDiffAsync(ComputeThreatListDiffRequest,CancellationToken) // Create client WebRiskServiceV1Beta1Client webRiskServiceV1Beta1Client = await WebRiskServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) ComputeThreatListDiffRequest request = new ComputeThreatListDiffRequest { ThreatType = ThreatType.Unspecified, Constraints = new ComputeThreatListDiffRequest.Types.Constraints(), }; // Make the request ComputeThreatListDiffResponse response = await webRiskServiceV1Beta1Client.ComputeThreatListDiffAsync(request); // End snippet }