/// <summary>Snippet for ListFindingTypeStats</summary>
 public void ListFindingTypeStatsRequestObject()
 {
     // Snippet: ListFindingTypeStats(ListFindingTypeStatsRequest, CallSettings)
     // Create client
     WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
     // Initialize request argument(s)
     ListFindingTypeStatsRequest request = new ListFindingTypeStatsRequest {
         Parent = "",
     };
     // Make the request
     ListFindingTypeStatsResponse response = webSecurityScannerClient.ListFindingTypeStats(request);
     // End snippet
 }
 /// <summary>Snippet for GetScanConfig</summary>
 public void GetScanConfigRequestObject()
 {
     // Snippet: GetScanConfig(GetScanConfigRequest, CallSettings)
     // Create client
     WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
     // Initialize request argument(s)
     GetScanConfigRequest request = new GetScanConfigRequest {
         Name = "",
     };
     // Make the request
     ScanConfig response = webSecurityScannerClient.GetScanConfig(request);
     // End snippet
 }
 /// <summary>Snippet for StopScanRun</summary>
 public void StopScanRunRequestObject()
 {
     // Snippet: StopScanRun(StopScanRunRequest, CallSettings)
     // Create client
     WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
     // Initialize request argument(s)
     StopScanRunRequest request = new StopScanRunRequest {
         Name = "",
     };
     // Make the request
     ScanRun response = webSecurityScannerClient.StopScanRun(request);
     // End snippet
 }
        /// <summary>Snippet for DeleteScanConfig</summary>
        public void DeleteScanConfigRequestObject()
        {
            // Snippet: DeleteScanConfig(DeleteScanConfigRequest, CallSettings)
            // Create client
            WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
            // Initialize request argument(s)
            DeleteScanConfigRequest request = new DeleteScanConfigRequest {
                Name = "",
            };

            // Make the request
            webSecurityScannerClient.DeleteScanConfig(request);
            // End snippet
        }
 /// <summary>Snippet for CreateScanConfig</summary>
 public void CreateScanConfigRequestObject()
 {
     // Snippet: CreateScanConfig(CreateScanConfigRequest, CallSettings)
     // Create client
     WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
     // Initialize request argument(s)
     CreateScanConfigRequest request = new CreateScanConfigRequest
     {
         Parent     = "",
         ScanConfig = new ScanConfig(),
     };
     // Make the request
     ScanConfig response = webSecurityScannerClient.CreateScanConfig(request);
     // End snippet
 }
 /// <summary>Snippet for UpdateScanConfig</summary>
 public void UpdateScanConfigRequestObject()
 {
     // Snippet: UpdateScanConfig(UpdateScanConfigRequest, CallSettings)
     // Create client
     WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
     // Initialize request argument(s)
     UpdateScanConfigRequest request = new UpdateScanConfigRequest
     {
         ScanConfig = new ScanConfig(),
         UpdateMask = new FieldMask(),
     };
     // Make the request
     ScanConfig response = webSecurityScannerClient.UpdateScanConfig(request);
     // End snippet
 }
        /// <summary>Snippet for ListFindings</summary>
        public void ListFindingsRequestObject()
        {
            // Snippet: ListFindings(ListFindingsRequest, CallSettings)
            // Create client
            WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.Create();
            // Initialize request argument(s)
            ListFindingsRequest request = new ListFindingsRequest
            {
                Parent = "",
                Filter = "",
            };
            // Make the request
            PagedEnumerable <ListFindingsResponse, Finding> response = webSecurityScannerClient.ListFindings(request);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (Finding item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over pages (of server-defined size), performing one RPC per page
            foreach (ListFindingsResponse page in response.AsRawResponses())
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Finding item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            }

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int            pageSize   = 10;
            Page <Finding> singlePage = response.ReadPage(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Finding item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }