// 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
	// 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 {
	// Output only.
	// 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"`
	// 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_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{
	// 432 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcb, 0x6e, 0x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