// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1beta/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_7b7ccbd97c6273c4, []int{0, 0}
}

// Output only.
// Defines an error trace message for a ScanRun.
type ScanRunErrorTrace struct {
	// Indicates the error reason code.
	Code ScanRunErrorTrace_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace_Code" json:"code,omitempty"`
	// 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"`
	// 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_7b7ccbd97c6273c4, []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.v1beta.ScanRunErrorTrace_Code", ScanRunErrorTrace_Code_name, ScanRunErrorTrace_Code_value)
	proto.RegisterType((*ScanRunErrorTrace)(nil), "google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace")
}

func init() {
	proto.RegisterFile("google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto", fileDescriptor_7b7ccbd97c6273c4)
}

var fileDescriptor_7b7ccbd97c6273c4 = []byte{
	// 453 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x6f, 0xd3, 0x30,
	0x1c, 0xc5, 0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