1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/websecurityscanner/v1beta/scan_run.proto
3
4package websecurityscanner
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	timestamp "github.com/golang/protobuf/ptypes/timestamp"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// Types of ScanRun execution state.
27type ScanRun_ExecutionState int32
28
29const (
30	// Represents an invalid state caused by internal server error. This value
31	// should never be returned.
32	ScanRun_EXECUTION_STATE_UNSPECIFIED ScanRun_ExecutionState = 0
33	// The scan is waiting in the queue.
34	ScanRun_QUEUED ScanRun_ExecutionState = 1
35	// The scan is in progress.
36	ScanRun_SCANNING ScanRun_ExecutionState = 2
37	// The scan is either finished or stopped by user.
38	ScanRun_FINISHED ScanRun_ExecutionState = 3
39)
40
41var ScanRun_ExecutionState_name = map[int32]string{
42	0: "EXECUTION_STATE_UNSPECIFIED",
43	1: "QUEUED",
44	2: "SCANNING",
45	3: "FINISHED",
46}
47
48var ScanRun_ExecutionState_value = map[string]int32{
49	"EXECUTION_STATE_UNSPECIFIED": 0,
50	"QUEUED":                      1,
51	"SCANNING":                    2,
52	"FINISHED":                    3,
53}
54
55func (x ScanRun_ExecutionState) String() string {
56	return proto.EnumName(ScanRun_ExecutionState_name, int32(x))
57}
58
59func (ScanRun_ExecutionState) EnumDescriptor() ([]byte, []int) {
60	return fileDescriptor_2eb36166aad58bfe, []int{0, 0}
61}
62
63// Types of ScanRun result state.
64type ScanRun_ResultState int32
65
66const (
67	// Default value. This value is returned when the ScanRun is not yet
68	// finished.
69	ScanRun_RESULT_STATE_UNSPECIFIED ScanRun_ResultState = 0
70	// The scan finished without errors.
71	ScanRun_SUCCESS ScanRun_ResultState = 1
72	// The scan finished with errors.
73	ScanRun_ERROR ScanRun_ResultState = 2
74	// The scan was terminated by user.
75	ScanRun_KILLED ScanRun_ResultState = 3
76)
77
78var ScanRun_ResultState_name = map[int32]string{
79	0: "RESULT_STATE_UNSPECIFIED",
80	1: "SUCCESS",
81	2: "ERROR",
82	3: "KILLED",
83}
84
85var ScanRun_ResultState_value = map[string]int32{
86	"RESULT_STATE_UNSPECIFIED": 0,
87	"SUCCESS":                  1,
88	"ERROR":                    2,
89	"KILLED":                   3,
90}
91
92func (x ScanRun_ResultState) String() string {
93	return proto.EnumName(ScanRun_ResultState_name, int32(x))
94}
95
96func (ScanRun_ResultState) EnumDescriptor() ([]byte, []int) {
97	return fileDescriptor_2eb36166aad58bfe, []int{0, 1}
98}
99
100// A ScanRun is a output-only resource representing an actual run of the scan.
101// Next id: 12
102type ScanRun struct {
103	// Output only.
104	// The resource name of the ScanRun. The name follows the format of
105	// 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
106	// The ScanRun IDs are generated by the system.
107	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
108	// Output only.
109	// The execution state of the ScanRun.
110	ExecutionState ScanRun_ExecutionState `protobuf:"varint,2,opt,name=execution_state,json=executionState,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanRun_ExecutionState" json:"execution_state,omitempty"`
111	// Output only.
112	// The result state of the ScanRun. This field is only available after the
113	// execution state reaches "FINISHED".
114	ResultState ScanRun_ResultState `protobuf:"varint,3,opt,name=result_state,json=resultState,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanRun_ResultState" json:"result_state,omitempty"`
115	// Output only.
116	// The time at which the ScanRun started.
117	StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
118	// Output only.
119	// The time at which the ScanRun reached termination state - that the ScanRun
120	// is either finished or stopped by user.
121	EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
122	// Output only.
123	// The number of URLs crawled during this ScanRun. If the scan is in progress,
124	// the value represents the number of URLs crawled up to now.
125	UrlsCrawledCount int64 `protobuf:"varint,6,opt,name=urls_crawled_count,json=urlsCrawledCount,proto3" json:"urls_crawled_count,omitempty"`
126	// Output only.
127	// The number of URLs tested during this ScanRun. If the scan is in progress,
128	// the value represents the number of URLs tested up to now. The number of
129	// URLs tested is usually larger than the number URLS crawled because
130	// typically a crawled URL is tested with multiple test payloads.
131	UrlsTestedCount int64 `protobuf:"varint,7,opt,name=urls_tested_count,json=urlsTestedCount,proto3" json:"urls_tested_count,omitempty"`
132	// Output only.
133	// Whether the scan run has found any vulnerabilities.
134	HasVulnerabilities bool `protobuf:"varint,8,opt,name=has_vulnerabilities,json=hasVulnerabilities,proto3" json:"has_vulnerabilities,omitempty"`
135	// Output only.
136	// The percentage of total completion ranging from 0 to 100.
137	// If the scan is in queue, the value is 0.
138	// If the scan is running, the value ranges from 0 to 100.
139	// If the scan is finished, the value is 100.
140	ProgressPercent int32 `protobuf:"varint,9,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
141	// Output only.
142	// If result_state is an ERROR, this field provides the primary reason for
143	// scan's termination and more details, if such are available.
144	ErrorTrace *ScanRunErrorTrace `protobuf:"bytes,10,opt,name=error_trace,json=errorTrace,proto3" json:"error_trace,omitempty"`
145	// Output only.
146	// A list of warnings, if such are encountered during this scan run.
147	WarningTraces        []*ScanRunWarningTrace `protobuf:"bytes,11,rep,name=warning_traces,json=warningTraces,proto3" json:"warning_traces,omitempty"`
148	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
149	XXX_unrecognized     []byte                 `json:"-"`
150	XXX_sizecache        int32                  `json:"-"`
151}
152
153func (m *ScanRun) Reset()         { *m = ScanRun{} }
154func (m *ScanRun) String() string { return proto.CompactTextString(m) }
155func (*ScanRun) ProtoMessage()    {}
156func (*ScanRun) Descriptor() ([]byte, []int) {
157	return fileDescriptor_2eb36166aad58bfe, []int{0}
158}
159
160func (m *ScanRun) XXX_Unmarshal(b []byte) error {
161	return xxx_messageInfo_ScanRun.Unmarshal(m, b)
162}
163func (m *ScanRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
164	return xxx_messageInfo_ScanRun.Marshal(b, m, deterministic)
165}
166func (m *ScanRun) XXX_Merge(src proto.Message) {
167	xxx_messageInfo_ScanRun.Merge(m, src)
168}
169func (m *ScanRun) XXX_Size() int {
170	return xxx_messageInfo_ScanRun.Size(m)
171}
172func (m *ScanRun) XXX_DiscardUnknown() {
173	xxx_messageInfo_ScanRun.DiscardUnknown(m)
174}
175
176var xxx_messageInfo_ScanRun proto.InternalMessageInfo
177
178func (m *ScanRun) GetName() string {
179	if m != nil {
180		return m.Name
181	}
182	return ""
183}
184
185func (m *ScanRun) GetExecutionState() ScanRun_ExecutionState {
186	if m != nil {
187		return m.ExecutionState
188	}
189	return ScanRun_EXECUTION_STATE_UNSPECIFIED
190}
191
192func (m *ScanRun) GetResultState() ScanRun_ResultState {
193	if m != nil {
194		return m.ResultState
195	}
196	return ScanRun_RESULT_STATE_UNSPECIFIED
197}
198
199func (m *ScanRun) GetStartTime() *timestamp.Timestamp {
200	if m != nil {
201		return m.StartTime
202	}
203	return nil
204}
205
206func (m *ScanRun) GetEndTime() *timestamp.Timestamp {
207	if m != nil {
208		return m.EndTime
209	}
210	return nil
211}
212
213func (m *ScanRun) GetUrlsCrawledCount() int64 {
214	if m != nil {
215		return m.UrlsCrawledCount
216	}
217	return 0
218}
219
220func (m *ScanRun) GetUrlsTestedCount() int64 {
221	if m != nil {
222		return m.UrlsTestedCount
223	}
224	return 0
225}
226
227func (m *ScanRun) GetHasVulnerabilities() bool {
228	if m != nil {
229		return m.HasVulnerabilities
230	}
231	return false
232}
233
234func (m *ScanRun) GetProgressPercent() int32 {
235	if m != nil {
236		return m.ProgressPercent
237	}
238	return 0
239}
240
241func (m *ScanRun) GetErrorTrace() *ScanRunErrorTrace {
242	if m != nil {
243		return m.ErrorTrace
244	}
245	return nil
246}
247
248func (m *ScanRun) GetWarningTraces() []*ScanRunWarningTrace {
249	if m != nil {
250		return m.WarningTraces
251	}
252	return nil
253}
254
255func init() {
256	proto.RegisterEnum("google.cloud.websecurityscanner.v1beta.ScanRun_ExecutionState", ScanRun_ExecutionState_name, ScanRun_ExecutionState_value)
257	proto.RegisterEnum("google.cloud.websecurityscanner.v1beta.ScanRun_ResultState", ScanRun_ResultState_name, ScanRun_ResultState_value)
258	proto.RegisterType((*ScanRun)(nil), "google.cloud.websecurityscanner.v1beta.ScanRun")
259}
260
261func init() {
262	proto.RegisterFile("google/cloud/websecurityscanner/v1beta/scan_run.proto", fileDescriptor_2eb36166aad58bfe)
263}
264
265var fileDescriptor_2eb36166aad58bfe = []byte{
266	// 638 bytes of a gzipped FileDescriptorProto
267	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x5f, 0x4b, 0xdc, 0x40,
268	0x14, 0xc5, 0x9b, 0x5d, 0xdd, 0x3f, 0x13, 0xbb, 0xa6, 0xd3, 0x97, 0x60, 0x05, 0x83, 0x0f, 0x92,
269	0x4a, 0x49, 0xa8, 0xc5, 0x07, 0x11, 0x0a, 0x1a, 0xa3, 0x0d, 0x95, 0x75, 0x9b, 0x64, 0xd5, 0x8a,
270	0x34, 0x4c, 0xb2, 0xd3, 0x18, 0xc8, 0x4e, 0x96, 0x99, 0x89, 0xdb, 0x7e, 0xba, 0xbe, 0xf7, 0x23,
271	0xf5, 0xa9, 0xcc, 0x24, 0x6b, 0x77, 0xb1, 0xa0, 0xfb, 0x96, 0x3b, 0xf7, 0x9c, 0xdf, 0x61, 0xee,
272	0x5c, 0x02, 0xf6, 0xd3, 0xa2, 0x48, 0x73, 0x6c, 0x27, 0x79, 0x51, 0x8e, 0xec, 0x29, 0x8e, 0x19,
273	0x4e, 0x4a, 0x9a, 0xf1, 0x9f, 0x2c, 0x41, 0x84, 0x60, 0x6a, 0xdf, 0xbf, 0x8f, 0x31, 0x47, 0xb6,
274	0x28, 0x23, 0x5a, 0x12, 0x6b, 0x42, 0x0b, 0x5e, 0xc0, 0x9d, 0xca, 0x66, 0x49, 0x9b, 0xf5, 0xd8,
275	0x66, 0x55, 0xb6, 0x8d, 0xcd, 0x1a, 0x8f, 0x26, 0x99, 0x8d, 0x08, 0x29, 0x38, 0xe2, 0x59, 0x41,
276	0x58, 0x45, 0xd9, 0x38, 0x5a, 0x32, 0x3c, 0xc2, 0x94, 0x16, 0x34, 0xe2, 0x14, 0x25, 0xb8, 0x46,
277	0x38, 0xcb, 0x22, 0xa6, 0x88, 0x92, 0x8c, 0xa4, 0x0b, 0x90, 0xad, 0x1a, 0x22, 0xab, 0xb8, 0xfc,
278	0x6e, 0xf3, 0x6c, 0x8c, 0x19, 0x47, 0xe3, 0x49, 0x25, 0xd8, 0xfe, 0xd3, 0x02, 0xed, 0x20, 0x41,
279	0xc4, 0x2f, 0x09, 0x84, 0x60, 0x85, 0xa0, 0x31, 0xd6, 0x15, 0x43, 0x31, 0xbb, 0xbe, 0xfc, 0x86,
280	0x29, 0x58, 0xc7, 0x3f, 0x70, 0x52, 0x8a, 0xcb, 0x45, 0x8c, 0x23, 0x8e, 0xf5, 0x86, 0xa1, 0x98,
281	0xbd, 0xbd, 0x8f, 0xd6, 0xf3, 0x06, 0x65, 0xd5, 0x74, 0xcb, 0x9d, 0x61, 0x02, 0x41, 0xf1, 0x7b,
282	0x78, 0xa1, 0x86, 0xdf, 0xc0, 0x1a, 0xc5, 0xac, 0xcc, 0x79, 0x9d, 0xd2, 0x94, 0x29, 0x87, 0xcb,
283	0xa6, 0xf8, 0x92, 0x51, 0x45, 0xa8, 0xf4, 0x5f, 0x01, 0x0f, 0x00, 0x60, 0x1c, 0x51, 0x1e, 0x89,
284	0x09, 0xe8, 0x2b, 0x86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e, 0x81, 0x37, 0xee, 0xb5, 0xeb, 0x0c, 0x43, 0xef,
296	0xa2, 0x1f, 0x05, 0xe1, 0x51, 0xe8, 0x46, 0xc3, 0x7e, 0x30, 0x70, 0x1d, 0xef, 0xd4, 0x73, 0x4f,
297	0xb4, 0x17, 0x10, 0x80, 0xd6, 0x97, 0xa1, 0x3b, 0x74, 0x4f, 0x34, 0x05, 0xae, 0x81, 0x4e, 0xe0,
298	0x1c, 0xf5, 0xfb, 0x5e, 0xff, 0x4c, 0x6b, 0x88, 0xea, 0xd4, 0xeb, 0x7b, 0xc1, 0x27, 0xf7, 0x44,
299	0x6b, 0x6e, 0x5f, 0x00, 0x75, 0x6e, 0xbd, 0xe0, 0x26, 0xd0, 0x7d, 0x37, 0x18, 0x9e, 0x87, 0xff,
300	0x85, 0xaa, 0xa0, 0x1d, 0x0c, 0x1d, 0xc7, 0x0d, 0x02, 0x4d, 0x81, 0x5d, 0xb0, 0xea, 0xfa, 0xfe,
301	0x85, 0xaf, 0x35, 0x44, 0xd8, 0x67, 0xef, 0xfc, 0x5c, 0x00, 0x8f, 0x7f, 0x29, 0x60, 0x37, 0x29,
302	0xc6, 0xcf, 0xbc, 0xfd, 0xf1, 0x5a, 0x7d, 0xfd, 0x81, 0x58, 0xba, 0x81, 0x72, 0x73, 0x5d, 0xfb,
303	0xd2, 0x22, 0x47, 0x24, 0xb5, 0x0a, 0x9a, 0xda, 0x29, 0x26, 0x72, 0x25, 0xed, 0xaa, 0x85, 0x26,
304	0x19, 0x7b, 0xea, 0x07, 0x72, 0xf8, 0xb8, 0xf3, 0xbb, 0xb1, 0x73, 0x26, 0xfd, 0xb7, 0x8e, 0xf0,
305	0xde, 0x5e, 0xe1, 0x38, 0xa8, 0x15, 0x41, 0xa5, 0xb8, 0xbd, 0x94, 0xde, 0xb8, 0x25, 0xd3, 0x3e,
306	0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x92, 0xc8, 0x16, 0xf2, 0x6d, 0x05, 0x00, 0x00,
307}
308