You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

273 lines
11 KiB

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