1// Copyright 2019 Google LLC. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15 16syntax = "proto3"; 17 18package google.cloud.websecurityscanner.v1beta; 19 20option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; 21option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; 22option java_multiple_files = true; 23option java_outer_classname = "ScanRunWarningTraceProto"; 24option java_package = "com.google.cloud.websecurityscanner.v1beta"; 25option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; 26option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; 27 28// Output only. 29// Defines a warning trace message for ScanRun. Warning traces provide customers 30// with useful information that helps make the scanning process more effective. 31message ScanRunWarningTrace { 32 // Output only. 33 // Defines a warning message code. 34 // Next id: 6 35 enum Code { 36 // Default value is never used. 37 CODE_UNSPECIFIED = 0; 38 39 // Indicates that a scan discovered an unexpectedly low number of URLs. This 40 // is sometimes caused by complex navigation features or by using a single 41 // URL for numerous pages. 42 INSUFFICIENT_CRAWL_RESULTS = 1; 43 44 // Indicates that a scan discovered too many URLs to test, or excessive 45 // redundant URLs. 46 TOO_MANY_CRAWL_RESULTS = 2; 47 48 // Indicates that too many tests have been generated for the scan. Customer 49 // should try reducing the number of starting URLs, increasing the QPS rate, 50 // or narrowing down the scope of the scan using the excluded patterns. 51 TOO_MANY_FUZZ_TASKS = 3; 52 53 // Indicates that a scan is blocked by IAP. 54 BLOCKED_BY_IAP = 4; 55 } 56 57 // Indicates the warning code. 58 Code code = 1; 59} 60