| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto |
| |
| package websecurityscanner |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Output only. |
| // Defines an error reason code. |
| // Next id: 7 |
| type ScanRunErrorTrace_Code int32 |
| |
| const ( |
| // Default value is never used. |
| ScanRunErrorTrace_CODE_UNSPECIFIED ScanRunErrorTrace_Code = 0 |
| // Indicates that the scan run failed due to an internal server error. |
| ScanRunErrorTrace_INTERNAL_ERROR ScanRunErrorTrace_Code = 1 |
| // Indicates a scan configuration error, usually due to outdated ScanConfig |
| // settings, such as starting_urls or the DNS configuration. |
| ScanRunErrorTrace_SCAN_CONFIG_ISSUE ScanRunErrorTrace_Code = 2 |
| // Indicates an authentication error, usually due to outdated ScanConfig |
| // authentication settings. |
| ScanRunErrorTrace_AUTHENTICATION_CONFIG_ISSUE ScanRunErrorTrace_Code = 3 |
| // Indicates a scan operation timeout, usually caused by a very large site. |
| ScanRunErrorTrace_TIMED_OUT_WHILE_SCANNING ScanRunErrorTrace_Code = 4 |
| // Indicates that a scan encountered excessive redirects, either to |
| // authentication or some other page outside of the scan scope. |
| ScanRunErrorTrace_TOO_MANY_REDIRECTS ScanRunErrorTrace_Code = 5 |
| // Indicates that a scan encountered numerous errors from the web site |
| // pages. When available, most_common_http_error_code field indicates the |
| // most common HTTP error code encountered during the scan. |
| ScanRunErrorTrace_TOO_MANY_HTTP_ERRORS ScanRunErrorTrace_Code = 6 |
| ) |
| |
| var ScanRunErrorTrace_Code_name = map[int32]string{ |
| 0: "CODE_UNSPECIFIED", |
| 1: "INTERNAL_ERROR", |
| 2: "SCAN_CONFIG_ISSUE", |
| 3: "AUTHENTICATION_CONFIG_ISSUE", |
| 4: "TIMED_OUT_WHILE_SCANNING", |
| 5: "TOO_MANY_REDIRECTS", |
| 6: "TOO_MANY_HTTP_ERRORS", |
| } |
| |
| var ScanRunErrorTrace_Code_value = map[string]int32{ |
| "CODE_UNSPECIFIED": 0, |
| "INTERNAL_ERROR": 1, |
| "SCAN_CONFIG_ISSUE": 2, |
| "AUTHENTICATION_CONFIG_ISSUE": 3, |
| "TIMED_OUT_WHILE_SCANNING": 4, |
| "TOO_MANY_REDIRECTS": 5, |
| "TOO_MANY_HTTP_ERRORS": 6, |
| } |
| |
| func (x ScanRunErrorTrace_Code) String() string { |
| return proto.EnumName(ScanRunErrorTrace_Code_name, int32(x)) |
| } |
| |
| func (ScanRunErrorTrace_Code) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_882cbefd62f3fea2, []int{0, 0} |
| } |
| |
| // Output only. |
| // Defines an error trace message for a ScanRun. |
| type ScanRunErrorTrace struct { |
| // Output only. Indicates the error reason code. |
| Code ScanRunErrorTrace_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.websecurityscanner.v1.ScanRunErrorTrace_Code" json:"code,omitempty"` |
| // Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error |
| // message encountered during scan configuration validation that is performed |
| // before each scan run. |
| ScanConfigError *ScanConfigError `protobuf:"bytes,2,opt,name=scan_config_error,json=scanConfigError,proto3" json:"scan_config_error,omitempty"` |
| // Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most |
| // common HTTP error code, if such is available. For example, if this code is |
| // 404, the scan has encountered too many NOT_FOUND responses. |
| MostCommonHttpErrorCode int32 `protobuf:"varint,3,opt,name=most_common_http_error_code,json=mostCommonHttpErrorCode,proto3" json:"most_common_http_error_code,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ScanRunErrorTrace) Reset() { *m = ScanRunErrorTrace{} } |
| func (m *ScanRunErrorTrace) String() string { return proto.CompactTextString(m) } |
| func (*ScanRunErrorTrace) ProtoMessage() {} |
| func (*ScanRunErrorTrace) Descriptor() ([]byte, []int) { |
| return fileDescriptor_882cbefd62f3fea2, []int{0} |
| } |
| |
| func (m *ScanRunErrorTrace) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ScanRunErrorTrace.Unmarshal(m, b) |
| } |
| func (m *ScanRunErrorTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ScanRunErrorTrace.Marshal(b, m, deterministic) |
| } |
| func (m *ScanRunErrorTrace) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ScanRunErrorTrace.Merge(m, src) |
| } |
| func (m *ScanRunErrorTrace) XXX_Size() int { |
| return xxx_messageInfo_ScanRunErrorTrace.Size(m) |
| } |
| func (m *ScanRunErrorTrace) XXX_DiscardUnknown() { |
| xxx_messageInfo_ScanRunErrorTrace.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ScanRunErrorTrace proto.InternalMessageInfo |
| |
| func (m *ScanRunErrorTrace) GetCode() ScanRunErrorTrace_Code { |
| if m != nil { |
| return m.Code |
| } |
| return ScanRunErrorTrace_CODE_UNSPECIFIED |
| } |
| |
| func (m *ScanRunErrorTrace) GetScanConfigError() *ScanConfigError { |
| if m != nil { |
| return m.ScanConfigError |
| } |
| return nil |
| } |
| |
| func (m *ScanRunErrorTrace) GetMostCommonHttpErrorCode() int32 { |
| if m != nil { |
| return m.MostCommonHttpErrorCode |
| } |
| return 0 |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.cloud.websecurityscanner.v1.ScanRunErrorTrace_Code", ScanRunErrorTrace_Code_name, ScanRunErrorTrace_Code_value) |
| proto.RegisterType((*ScanRunErrorTrace)(nil), "google.cloud.websecurityscanner.v1.ScanRunErrorTrace") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/websecurityscanner/v1/scan_run_error_trace.proto", fileDescriptor_882cbefd62f3fea2) |
| } |
| |
| var fileDescriptor_882cbefd62f3fea2 = []byte{ |
| // 426 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6f, 0xd3, 0x30, |
| 0x14, 0xc7, 0xc9, 0xda, 0xed, 0x60, 0xa4, 0x91, 0x5a, 0x63, 0x54, 0x0c, 0x89, 0xaa, 0x07, 0xd4, |
| 0x53, 0xa2, 0x6d, 0xb7, 0x01, 0x87, 0xcc, 0xf5, 0x56, 0x4b, 0x9b, 0x53, 0x39, 0xae, 0x10, 0x5c, |
| 0xac, 0xcc, 0x35, 0xa1, 0x52, 0x6b, 0x57, 0x8e, 0x33, 0xc4, 0x37, 0xe1, 0xa3, 0x70, 0xe1, 0xbb, |
| 0x21, 0x3b, 0x15, 0x12, 0x44, 0x82, 0xde, 0x9e, 0xfe, 0x79, 0xff, 0xdf, 0xfb, 0xe7, 0xf9, 0x81, |
| 0xf7, 0x95, 0x31, 0xd5, 0x5a, 0xa5, 0x72, 0x6d, 0x9a, 0x65, 0xfa, 0x55, 0x3d, 0xd4, 0x4a, 0x36, |
| 0x76, 0xe5, 0xbe, 0xd5, 0xb2, 0xd4, 0x5a, 0xd9, 0xf4, 0xf1, 0x3c, 0xf5, 0xa5, 0xb0, 0x8d, 0x16, |
| 0xca, 0x5a, 0x63, 0x85, 0xb3, 0xa5, 0x54, 0xc9, 0xd6, 0x1a, 0x67, 0xe0, 0xb8, 0xb5, 0x27, 0xc1, |
| 0x9e, 0x74, 0xed, 0xc9, 0xe3, 0xf9, 0xcb, 0xab, 0x7d, 0x47, 0x48, 0xa3, 0x3f, 0xaf, 0xaa, 0x76, |
| 0x4a, 0xcb, 0x1f, 0xff, 0xec,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