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.
 
 
 

613 lines
27 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
  3. package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Note provider-assigned severity/impact ranking
  18. type VulnerabilityType_Severity int32
  19. const (
  20. // Unknown Impact
  21. VulnerabilityType_SEVERITY_UNSPECIFIED VulnerabilityType_Severity = 0
  22. // Minimal Impact
  23. VulnerabilityType_MINIMAL VulnerabilityType_Severity = 1
  24. // Low Impact
  25. VulnerabilityType_LOW VulnerabilityType_Severity = 2
  26. // Medium Impact
  27. VulnerabilityType_MEDIUM VulnerabilityType_Severity = 3
  28. // High Impact
  29. VulnerabilityType_HIGH VulnerabilityType_Severity = 4
  30. // Critical Impact
  31. VulnerabilityType_CRITICAL VulnerabilityType_Severity = 5
  32. )
  33. var VulnerabilityType_Severity_name = map[int32]string{
  34. 0: "SEVERITY_UNSPECIFIED",
  35. 1: "MINIMAL",
  36. 2: "LOW",
  37. 3: "MEDIUM",
  38. 4: "HIGH",
  39. 5: "CRITICAL",
  40. }
  41. var VulnerabilityType_Severity_value = map[string]int32{
  42. "SEVERITY_UNSPECIFIED": 0,
  43. "MINIMAL": 1,
  44. "LOW": 2,
  45. "MEDIUM": 3,
  46. "HIGH": 4,
  47. "CRITICAL": 5,
  48. }
  49. func (x VulnerabilityType_Severity) String() string {
  50. return proto.EnumName(VulnerabilityType_Severity_name, int32(x))
  51. }
  52. func (VulnerabilityType_Severity) EnumDescriptor() ([]byte, []int) {
  53. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 0}
  54. }
  55. // Whether this is an ordinary package version or a
  56. // sentinel MIN/MAX version.
  57. type VulnerabilityType_Version_VersionKind int32
  58. const (
  59. // A standard package version, defined by the other fields.
  60. VulnerabilityType_Version_NORMAL VulnerabilityType_Version_VersionKind = 0
  61. // A special version representing negative infinity,
  62. // other fields are ignored.
  63. VulnerabilityType_Version_MINIMUM VulnerabilityType_Version_VersionKind = 1
  64. // A special version representing positive infinity,
  65. // other fields are ignored.
  66. VulnerabilityType_Version_MAXIMUM VulnerabilityType_Version_VersionKind = 2
  67. )
  68. var VulnerabilityType_Version_VersionKind_name = map[int32]string{
  69. 0: "NORMAL",
  70. 1: "MINIMUM",
  71. 2: "MAXIMUM",
  72. }
  73. var VulnerabilityType_Version_VersionKind_value = map[string]int32{
  74. "NORMAL": 0,
  75. "MINIMUM": 1,
  76. "MAXIMUM": 2,
  77. }
  78. func (x VulnerabilityType_Version_VersionKind) String() string {
  79. return proto.EnumName(VulnerabilityType_Version_VersionKind_name, int32(x))
  80. }
  81. func (VulnerabilityType_Version_VersionKind) EnumDescriptor() ([]byte, []int) {
  82. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 0, 0}
  83. }
  84. // VulnerabilityType provides metadata about a security vulnerability.
  85. type VulnerabilityType struct {
  86. // The CVSS score for this Vulnerability.
  87. CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
  88. // Note provider assigned impact of the vulnerability
  89. Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
  90. // All information about the package to specifically identify this
  91. // vulnerability. One entry per (version range and cpe_uri) the
  92. // package vulnerability has manifested in.
  93. Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
  94. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  95. XXX_unrecognized []byte `json:"-"`
  96. XXX_sizecache int32 `json:"-"`
  97. }
  98. func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
  99. func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
  100. func (*VulnerabilityType) ProtoMessage() {}
  101. func (*VulnerabilityType) Descriptor() ([]byte, []int) {
  102. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0}
  103. }
  104. func (m *VulnerabilityType) XXX_Unmarshal(b []byte) error {
  105. return xxx_messageInfo_VulnerabilityType.Unmarshal(m, b)
  106. }
  107. func (m *VulnerabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  108. return xxx_messageInfo_VulnerabilityType.Marshal(b, m, deterministic)
  109. }
  110. func (dst *VulnerabilityType) XXX_Merge(src proto.Message) {
  111. xxx_messageInfo_VulnerabilityType.Merge(dst, src)
  112. }
  113. func (m *VulnerabilityType) XXX_Size() int {
  114. return xxx_messageInfo_VulnerabilityType.Size(m)
  115. }
  116. func (m *VulnerabilityType) XXX_DiscardUnknown() {
  117. xxx_messageInfo_VulnerabilityType.DiscardUnknown(m)
  118. }
  119. var xxx_messageInfo_VulnerabilityType proto.InternalMessageInfo
  120. func (m *VulnerabilityType) GetCvssScore() float32 {
  121. if m != nil {
  122. return m.CvssScore
  123. }
  124. return 0
  125. }
  126. func (m *VulnerabilityType) GetSeverity() VulnerabilityType_Severity {
  127. if m != nil {
  128. return m.Severity
  129. }
  130. return VulnerabilityType_SEVERITY_UNSPECIFIED
  131. }
  132. func (m *VulnerabilityType) GetDetails() []*VulnerabilityType_Detail {
  133. if m != nil {
  134. return m.Details
  135. }
  136. return nil
  137. }
  138. // Version contains structured information about the version of the package.
  139. // For a discussion of this in Debian/Ubuntu:
  140. // http://serverfault.com/questions/604541/debian-packages-version-convention
  141. // For a discussion of this in Redhat/Fedora/Centos:
  142. // http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
  143. type VulnerabilityType_Version struct {
  144. // Used to correct mistakes in the version numbering scheme.
  145. Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
  146. // The main part of the version name.
  147. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  148. // The iteration of the package build from the above version.
  149. Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
  150. // Distinguish between sentinel MIN/MAX versions and normal versions.
  151. // If kind is not NORMAL, then the other fields are ignored.
  152. Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
  153. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  154. XXX_unrecognized []byte `json:"-"`
  155. XXX_sizecache int32 `json:"-"`
  156. }
  157. func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
  158. func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
  159. func (*VulnerabilityType_Version) ProtoMessage() {}
  160. func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) {
  161. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 0}
  162. }
  163. func (m *VulnerabilityType_Version) XXX_Unmarshal(b []byte) error {
  164. return xxx_messageInfo_VulnerabilityType_Version.Unmarshal(m, b)
  165. }
  166. func (m *VulnerabilityType_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  167. return xxx_messageInfo_VulnerabilityType_Version.Marshal(b, m, deterministic)
  168. }
  169. func (dst *VulnerabilityType_Version) XXX_Merge(src proto.Message) {
  170. xxx_messageInfo_VulnerabilityType_Version.Merge(dst, src)
  171. }
  172. func (m *VulnerabilityType_Version) XXX_Size() int {
  173. return xxx_messageInfo_VulnerabilityType_Version.Size(m)
  174. }
  175. func (m *VulnerabilityType_Version) XXX_DiscardUnknown() {
  176. xxx_messageInfo_VulnerabilityType_Version.DiscardUnknown(m)
  177. }
  178. var xxx_messageInfo_VulnerabilityType_Version proto.InternalMessageInfo
  179. func (m *VulnerabilityType_Version) GetEpoch() int32 {
  180. if m != nil {
  181. return m.Epoch
  182. }
  183. return 0
  184. }
  185. func (m *VulnerabilityType_Version) GetName() string {
  186. if m != nil {
  187. return m.Name
  188. }
  189. return ""
  190. }
  191. func (m *VulnerabilityType_Version) GetRevision() string {
  192. if m != nil {
  193. return m.Revision
  194. }
  195. return ""
  196. }
  197. func (m *VulnerabilityType_Version) GetKind() VulnerabilityType_Version_VersionKind {
  198. if m != nil {
  199. return m.Kind
  200. }
  201. return VulnerabilityType_Version_NORMAL
  202. }
  203. // Identifies all occurrences of this vulnerability in the package for a
  204. // specific distro/location
  205. // For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
  206. type VulnerabilityType_Detail struct {
  207. // The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
  208. // which the vulnerability manifests. Examples include distro or storage
  209. // location for vulnerable jar.
  210. // This field can be used as a filter in list requests.
  211. CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
  212. // The name of the package where the vulnerability was found.
  213. // This field can be used as a filter in list requests.
  214. Package string `protobuf:"bytes,8,opt,name=package,proto3" json:"package,omitempty"`
  215. // The min version of the package in which the vulnerability exists.
  216. MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion,proto3" json:"min_affected_version,omitempty"`
  217. // The max version of the package in which the vulnerability exists.
  218. // This field can be used as a filter in list requests.
  219. MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion,proto3" json:"max_affected_version,omitempty"`
  220. // The severity (eg: distro assigned severity) for this vulnerability.
  221. SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
  222. // A vendor-specific description of this note.
  223. Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
  224. // The fix for this specific package version.
  225. FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
  226. // The type of package; whether native or non native(ruby gems,
  227. // node.js packages etc)
  228. PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
  229. // Whether this Detail is obsolete. Occurrences are expected not to point to
  230. // obsolete details.
  231. IsObsolete bool `protobuf:"varint,11,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
  232. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  233. XXX_unrecognized []byte `json:"-"`
  234. XXX_sizecache int32 `json:"-"`
  235. }
  236. func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
  237. func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
  238. func (*VulnerabilityType_Detail) ProtoMessage() {}
  239. func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) {
  240. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 1}
  241. }
  242. func (m *VulnerabilityType_Detail) XXX_Unmarshal(b []byte) error {
  243. return xxx_messageInfo_VulnerabilityType_Detail.Unmarshal(m, b)
  244. }
  245. func (m *VulnerabilityType_Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  246. return xxx_messageInfo_VulnerabilityType_Detail.Marshal(b, m, deterministic)
  247. }
  248. func (dst *VulnerabilityType_Detail) XXX_Merge(src proto.Message) {
  249. xxx_messageInfo_VulnerabilityType_Detail.Merge(dst, src)
  250. }
  251. func (m *VulnerabilityType_Detail) XXX_Size() int {
  252. return xxx_messageInfo_VulnerabilityType_Detail.Size(m)
  253. }
  254. func (m *VulnerabilityType_Detail) XXX_DiscardUnknown() {
  255. xxx_messageInfo_VulnerabilityType_Detail.DiscardUnknown(m)
  256. }
  257. var xxx_messageInfo_VulnerabilityType_Detail proto.InternalMessageInfo
  258. func (m *VulnerabilityType_Detail) GetCpeUri() string {
  259. if m != nil {
  260. return m.CpeUri
  261. }
  262. return ""
  263. }
  264. func (m *VulnerabilityType_Detail) GetPackage() string {
  265. if m != nil {
  266. return m.Package
  267. }
  268. return ""
  269. }
  270. func (m *VulnerabilityType_Detail) GetMinAffectedVersion() *VulnerabilityType_Version {
  271. if m != nil {
  272. return m.MinAffectedVersion
  273. }
  274. return nil
  275. }
  276. func (m *VulnerabilityType_Detail) GetMaxAffectedVersion() *VulnerabilityType_Version {
  277. if m != nil {
  278. return m.MaxAffectedVersion
  279. }
  280. return nil
  281. }
  282. func (m *VulnerabilityType_Detail) GetSeverityName() string {
  283. if m != nil {
  284. return m.SeverityName
  285. }
  286. return ""
  287. }
  288. func (m *VulnerabilityType_Detail) GetDescription() string {
  289. if m != nil {
  290. return m.Description
  291. }
  292. return ""
  293. }
  294. func (m *VulnerabilityType_Detail) GetFixedLocation() *VulnerabilityType_VulnerabilityLocation {
  295. if m != nil {
  296. return m.FixedLocation
  297. }
  298. return nil
  299. }
  300. func (m *VulnerabilityType_Detail) GetPackageType() string {
  301. if m != nil {
  302. return m.PackageType
  303. }
  304. return ""
  305. }
  306. func (m *VulnerabilityType_Detail) GetIsObsolete() bool {
  307. if m != nil {
  308. return m.IsObsolete
  309. }
  310. return false
  311. }
  312. // Used by Occurrence to point to where the vulnerability exists and how
  313. // to fix it.
  314. type VulnerabilityType_VulnerabilityDetails struct {
  315. // The type of package; whether native or non native(ruby gems,
  316. // node.js packages etc)
  317. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  318. // Output only. The note provider assigned Severity of the vulnerability.
  319. Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
  320. // Output only. The CVSS score of this vulnerability. CVSS score is on a
  321. // scale of 0-10 where 0 indicates low severity and 10 indicates high
  322. // severity.
  323. CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
  324. // The set of affected locations and their fixes (if available) within
  325. // the associated resource.
  326. PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
  327. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  328. XXX_unrecognized []byte `json:"-"`
  329. XXX_sizecache int32 `json:"-"`
  330. }
  331. func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
  332. *m = VulnerabilityType_VulnerabilityDetails{}
  333. }
  334. func (m *VulnerabilityType_VulnerabilityDetails) String() string { return proto.CompactTextString(m) }
  335. func (*VulnerabilityType_VulnerabilityDetails) ProtoMessage() {}
  336. func (*VulnerabilityType_VulnerabilityDetails) Descriptor() ([]byte, []int) {
  337. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 2}
  338. }
  339. func (m *VulnerabilityType_VulnerabilityDetails) XXX_Unmarshal(b []byte) error {
  340. return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Unmarshal(m, b)
  341. }
  342. func (m *VulnerabilityType_VulnerabilityDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  343. return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Marshal(b, m, deterministic)
  344. }
  345. func (dst *VulnerabilityType_VulnerabilityDetails) XXX_Merge(src proto.Message) {
  346. xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Merge(dst, src)
  347. }
  348. func (m *VulnerabilityType_VulnerabilityDetails) XXX_Size() int {
  349. return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Size(m)
  350. }
  351. func (m *VulnerabilityType_VulnerabilityDetails) XXX_DiscardUnknown() {
  352. xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.DiscardUnknown(m)
  353. }
  354. var xxx_messageInfo_VulnerabilityType_VulnerabilityDetails proto.InternalMessageInfo
  355. func (m *VulnerabilityType_VulnerabilityDetails) GetType() string {
  356. if m != nil {
  357. return m.Type
  358. }
  359. return ""
  360. }
  361. func (m *VulnerabilityType_VulnerabilityDetails) GetSeverity() VulnerabilityType_Severity {
  362. if m != nil {
  363. return m.Severity
  364. }
  365. return VulnerabilityType_SEVERITY_UNSPECIFIED
  366. }
  367. func (m *VulnerabilityType_VulnerabilityDetails) GetCvssScore() float32 {
  368. if m != nil {
  369. return m.CvssScore
  370. }
  371. return 0
  372. }
  373. func (m *VulnerabilityType_VulnerabilityDetails) GetPackageIssue() []*VulnerabilityType_PackageIssue {
  374. if m != nil {
  375. return m.PackageIssue
  376. }
  377. return nil
  378. }
  379. // This message wraps a location affected by a vulnerability and its
  380. // associated fix (if one is available).
  381. type VulnerabilityType_PackageIssue struct {
  382. // The location of the vulnerability.
  383. AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation,proto3" json:"affected_location,omitempty"`
  384. // The location of the available fix for vulnerability.
  385. FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
  386. // The severity (eg: distro assigned severity) for this vulnerability.
  387. SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
  388. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  389. XXX_unrecognized []byte `json:"-"`
  390. XXX_sizecache int32 `json:"-"`
  391. }
  392. func (m *VulnerabilityType_PackageIssue) Reset() { *m = VulnerabilityType_PackageIssue{} }
  393. func (m *VulnerabilityType_PackageIssue) String() string { return proto.CompactTextString(m) }
  394. func (*VulnerabilityType_PackageIssue) ProtoMessage() {}
  395. func (*VulnerabilityType_PackageIssue) Descriptor() ([]byte, []int) {
  396. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 3}
  397. }
  398. func (m *VulnerabilityType_PackageIssue) XXX_Unmarshal(b []byte) error {
  399. return xxx_messageInfo_VulnerabilityType_PackageIssue.Unmarshal(m, b)
  400. }
  401. func (m *VulnerabilityType_PackageIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  402. return xxx_messageInfo_VulnerabilityType_PackageIssue.Marshal(b, m, deterministic)
  403. }
  404. func (dst *VulnerabilityType_PackageIssue) XXX_Merge(src proto.Message) {
  405. xxx_messageInfo_VulnerabilityType_PackageIssue.Merge(dst, src)
  406. }
  407. func (m *VulnerabilityType_PackageIssue) XXX_Size() int {
  408. return xxx_messageInfo_VulnerabilityType_PackageIssue.Size(m)
  409. }
  410. func (m *VulnerabilityType_PackageIssue) XXX_DiscardUnknown() {
  411. xxx_messageInfo_VulnerabilityType_PackageIssue.DiscardUnknown(m)
  412. }
  413. var xxx_messageInfo_VulnerabilityType_PackageIssue proto.InternalMessageInfo
  414. func (m *VulnerabilityType_PackageIssue) GetAffectedLocation() *VulnerabilityType_VulnerabilityLocation {
  415. if m != nil {
  416. return m.AffectedLocation
  417. }
  418. return nil
  419. }
  420. func (m *VulnerabilityType_PackageIssue) GetFixedLocation() *VulnerabilityType_VulnerabilityLocation {
  421. if m != nil {
  422. return m.FixedLocation
  423. }
  424. return nil
  425. }
  426. func (m *VulnerabilityType_PackageIssue) GetSeverityName() string {
  427. if m != nil {
  428. return m.SeverityName
  429. }
  430. return ""
  431. }
  432. // The location of the vulnerability
  433. type VulnerabilityType_VulnerabilityLocation struct {
  434. // The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
  435. // format. Examples include distro or storage location for vulnerable jar.
  436. // This field can be used as a filter in list requests.
  437. CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
  438. // The package being described.
  439. Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
  440. // The version of the package being described.
  441. // This field can be used as a filter in list requests.
  442. Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
  443. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  444. XXX_unrecognized []byte `json:"-"`
  445. XXX_sizecache int32 `json:"-"`
  446. }
  447. func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
  448. *m = VulnerabilityType_VulnerabilityLocation{}
  449. }
  450. func (m *VulnerabilityType_VulnerabilityLocation) String() string { return proto.CompactTextString(m) }
  451. func (*VulnerabilityType_VulnerabilityLocation) ProtoMessage() {}
  452. func (*VulnerabilityType_VulnerabilityLocation) Descriptor() ([]byte, []int) {
  453. return fileDescriptor_package_vulnerability_51e0d089db6fffe5, []int{0, 4}
  454. }
  455. func (m *VulnerabilityType_VulnerabilityLocation) XXX_Unmarshal(b []byte) error {
  456. return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Unmarshal(m, b)
  457. }
  458. func (m *VulnerabilityType_VulnerabilityLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  459. return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Marshal(b, m, deterministic)
  460. }
  461. func (dst *VulnerabilityType_VulnerabilityLocation) XXX_Merge(src proto.Message) {
  462. xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Merge(dst, src)
  463. }
  464. func (m *VulnerabilityType_VulnerabilityLocation) XXX_Size() int {
  465. return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Size(m)
  466. }
  467. func (m *VulnerabilityType_VulnerabilityLocation) XXX_DiscardUnknown() {
  468. xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.DiscardUnknown(m)
  469. }
  470. var xxx_messageInfo_VulnerabilityType_VulnerabilityLocation proto.InternalMessageInfo
  471. func (m *VulnerabilityType_VulnerabilityLocation) GetCpeUri() string {
  472. if m != nil {
  473. return m.CpeUri
  474. }
  475. return ""
  476. }
  477. func (m *VulnerabilityType_VulnerabilityLocation) GetPackage() string {
  478. if m != nil {
  479. return m.Package
  480. }
  481. return ""
  482. }
  483. func (m *VulnerabilityType_VulnerabilityLocation) GetVersion() *VulnerabilityType_Version {
  484. if m != nil {
  485. return m.Version
  486. }
  487. return nil
  488. }
  489. func init() {
  490. proto.RegisterType((*VulnerabilityType)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType")
  491. proto.RegisterType((*VulnerabilityType_Version)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Version")
  492. proto.RegisterType((*VulnerabilityType_Detail)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Detail")
  493. proto.RegisterType((*VulnerabilityType_VulnerabilityDetails)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityDetails")
  494. proto.RegisterType((*VulnerabilityType_PackageIssue)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.PackageIssue")
  495. proto.RegisterType((*VulnerabilityType_VulnerabilityLocation)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityLocation")
  496. proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity", VulnerabilityType_Severity_name, VulnerabilityType_Severity_value)
  497. proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind", VulnerabilityType_Version_VersionKind_name, VulnerabilityType_Version_VersionKind_value)
  498. }
  499. func init() {
  500. proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor_package_vulnerability_51e0d089db6fffe5)
  501. }
  502. var fileDescriptor_package_vulnerability_51e0d089db6fffe5 = []byte{
  503. // 769 bytes of a gzipped FileDescriptorProto
  504. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xfa, 0x46,
  505. 0x10, 0xae, 0x8d, 0xc1, 0x30, 0x26, 0x91, 0xb3, 0xa2, 0xaa, 0x85, 0x5a, 0x95, 0xa6, 0xaa, 0x84,
  506. 0x7a, 0x30, 0x0a, 0x39, 0xf6, 0x44, 0x81, 0x24, 0x6e, 0x81, 0xa4, 0x26, 0xa4, 0xff, 0xa4, 0x58,
  507. 0x8b, 0xd9, 0x90, 0x55, 0x8c, 0xd7, 0xf2, 0x3a, 0x34, 0xf4, 0xd4, 0x07, 0xe8, 0x33, 0xf4, 0xd0,
  508. 0x6b, 0x6f, 0x55, 0xdf, 0xaa, 0x0f, 0xd1, 0xca, 0x6b, 0x2f, 0x82, 0xd0, 0x4a, 0x91, 0x48, 0x7e,
  509. 0x27, 0x3c, 0x33, 0xe6, 0xfb, 0x66, 0x76, 0xbf, 0xf9, 0x00, 0xce, 0xe6, 0x8c, 0xcd, 0x03, 0xd2,
  510. 0x9a, 0x91, 0x65, 0xc2, 0x58, 0xc0, 0x5b, 0x3e, 0x0b, 0x13, 0x4c, 0x43, 0x12, 0xe3, 0x10, 0x07,
  511. 0x2b, 0x4e, 0x79, 0x6b, 0x79, 0x82, 0x83, 0xe8, 0x1e, 0x9f, 0xb4, 0x22, 0xec, 0x3f, 0xe0, 0x39,
  512. 0xf1, 0x96, 0x8f, 0x41, 0x5a, 0x9f, 0xd2, 0x80, 0x26, 0x2b, 0x3b, 0x8a, 0x59, 0xc2, 0xd0, 0xe7,
  513. 0x19, 0x8e, 0x2d, 0x71, 0xec, 0x1d, 0x1c, 0x5b, 0xe2, 0xd4, 0x3f, 0xcc, 0x39, 0x71, 0x44, 0x5b,
  514. 0x38, 0x0c, 0x59, 0x82, 0x13, 0xca, 0x42, 0x9e, 0x21, 0x1d, 0xff, 0x73, 0x08, 0x47, 0x37, 0x9b,
  515. 0x0c, 0xd7, 0xab, 0x88, 0xa0, 0x8f, 0x00, 0xfc, 0x25, 0xe7, 0x1e, 0xf7, 0x59, 0x4c, 0x2c, 0xb5,
  516. 0xa1, 0x34, 0x55, 0xb7, 0x92, 0x66, 0xc6, 0x69, 0x02, 0x4d, 0xa1, 0xcc, 0xc9, 0x92, 0xc4, 0x34,
  517. 0x59, 0x59, 0x85, 0x86, 0xd2, 0x3c, 0x6c, 0x9f, 0xd9, 0x2f, 0xef, 0xc8, 0xde, 0xe1, 0xb3, 0xc7,
  518. 0x39, 0x9a, 0xbb, 0xc6, 0x45, 0xb7, 0xa0, 0xcf, 0x48, 0x82, 0x69, 0xc0, 0x2d, 0xad, 0x51, 0x68,
  519. 0x1a, 0xed, 0xde, 0x7e, 0x14, 0x3d, 0x01, 0xe6, 0x4a, 0xd0, 0xfa, 0xdf, 0x0a, 0xe8, 0x37, 0x24,
  520. 0xe6, 0x94, 0x85, 0xa8, 0x06, 0x45, 0x12, 0x31, 0xff, 0xde, 0x52, 0x1a, 0x4a, 0xb3, 0xe8, 0x66,
  521. 0x01, 0x42, 0xa0, 0x85, 0x78, 0x91, 0x8d, 0x5f, 0x71, 0xc5, 0x33, 0xaa, 0x43, 0x39, 0x26, 0x4b,
  522. 0x9a, 0x7e, 0x4b, 0x4c, 0x5e, 0x71, 0xd7, 0x31, 0x22, 0xa0, 0x3d, 0xd0, 0x70, 0x66, 0x15, 0xc5,
  523. 0x89, 0x7c, 0xb3, 0x5f, 0xbb, 0x79, 0x6b, 0xf2, 0xf3, 0x6b, 0x1a, 0xce, 0x5c, 0x01, 0x7f, 0x7c,
  524. 0x0a, 0xc6, 0x46, 0x12, 0x01, 0x94, 0x46, 0x97, 0xee, 0xb0, 0x33, 0x30, 0xdf, 0x43, 0x06, 0xe8,
  525. 0x43, 0x67, 0xe4, 0x0c, 0x27, 0x43, 0x53, 0x11, 0x41, 0xe7, 0x3b, 0x11, 0xa8, 0xf5, 0xbf, 0x34,
  526. 0x28, 0x65, 0x27, 0x80, 0x3e, 0x00, 0xdd, 0x8f, 0x88, 0xf7, 0x18, 0x53, 0x31, 0x6e, 0xc5, 0x2d,
  527. 0xf9, 0x11, 0x99, 0xc4, 0x14, 0x59, 0xa0, 0xe7, 0x9a, 0xb3, 0xca, 0xa2, 0x20, 0x43, 0xf4, 0x13,
  528. 0xd4, 0x16, 0x34, 0xf4, 0xf0, 0xdd, 0x1d, 0xf1, 0x13, 0x32, 0xf3, 0x96, 0x19, 0xbf, 0x55, 0x6a,
  529. 0x28, 0x4d, 0xa3, 0xdd, 0x7f, 0x95, 0x49, 0x5d, 0xb4, 0xa0, 0x61, 0x27, 0x67, 0x90, 0x17, 0x93,
  530. 0x12, 0xe3, 0xa7, 0x5d, 0x62, 0xfd, 0x75, 0x89, 0xf1, 0xd3, 0x73, 0xe2, 0x4f, 0xe1, 0x40, 0x2a,
  531. 0xd1, 0x13, 0x22, 0xd0, 0xc4, 0x89, 0x54, 0x65, 0x72, 0x94, 0x8a, 0xa1, 0x01, 0xc6, 0x8c, 0x70,
  532. 0x3f, 0xa6, 0x51, 0xba, 0x51, 0x56, 0x45, 0xbc, 0xb2, 0x99, 0x42, 0x3f, 0xc3, 0xe1, 0x1d, 0x7d,
  533. 0x22, 0x33, 0x2f, 0x60, 0xbe, 0x58, 0x3b, 0x21, 0x0e, 0xa3, 0x3d, 0xde, 0xb3, 0xf3, 0xcd, 0xcc,
  534. 0x20, 0x87, 0x76, 0x0f, 0x04, 0x95, 0x0c, 0xd1, 0x27, 0x50, 0x95, 0x16, 0x92, 0xac, 0x22, 0x62,
  535. 0x41, 0xd6, 0x5e, 0x9e, 0x13, 0x6b, 0xfe, 0x31, 0x18, 0x94, 0x7b, 0x6c, 0xca, 0x59, 0x40, 0x12,
  536. 0x62, 0x19, 0x0d, 0xa5, 0x59, 0x76, 0x81, 0xf2, 0xcb, 0x3c, 0x53, 0xff, 0x4d, 0x85, 0xda, 0x16,
  537. 0x59, 0xa6, 0x21, 0x9e, 0xee, 0x86, 0x00, 0xcd, 0x76, 0x40, 0x3c, 0x6f, 0xb9, 0x82, 0xf6, 0x46,
  538. 0xae, 0xb0, 0x6d, 0x4c, 0xc5, 0xe7, 0xc6, 0xc4, 0xe0, 0x40, 0xce, 0x4c, 0x39, 0x7f, 0x24, 0x56,
  539. 0x49, 0x58, 0xc7, 0x57, 0xfb, 0xf5, 0x71, 0x95, 0x41, 0x3a, 0x29, 0xa2, 0x2b, 0x0f, 0x55, 0x44,
  540. 0xf5, 0x3f, 0x55, 0xa8, 0x6e, 0x96, 0xd1, 0x2f, 0x0a, 0x1c, 0xad, 0xe5, 0xba, 0xbe, 0x75, 0xe5,
  541. 0xed, 0x6e, 0xdd, 0x94, 0x6c, 0xeb, 0x8b, 0xdf, 0x15, 0x9d, 0xfa, 0xce, 0x44, 0xb7, 0xb3, 0x37,
  542. 0x85, 0xdd, 0xbd, 0xa9, 0xff, 0xa1, 0xc0, 0xfb, 0xff, 0x89, 0xf6, 0x22, 0x6f, 0x52, 0xb7, 0xbd,
  543. 0xc9, 0x03, 0x5d, 0xba, 0x82, 0xf6, 0x9a, 0xae, 0x20, 0x51, 0x8f, 0x6f, 0xa1, 0x2c, 0x85, 0x88,
  544. 0x2c, 0xa8, 0x8d, 0xfb, 0x37, 0x7d, 0xd7, 0xb9, 0xfe, 0xde, 0x9b, 0x8c, 0xc6, 0x57, 0xfd, 0xae,
  545. 0x73, 0xe6, 0xf4, 0x7b, 0x1b, 0xd6, 0xdb, 0x19, 0x98, 0x0a, 0xd2, 0xa1, 0x30, 0xb8, 0xfc, 0xd6,
  546. 0x54, 0x53, 0x73, 0x1e, 0xf6, 0x7b, 0xce, 0x64, 0x68, 0x16, 0x50, 0x19, 0xb4, 0x0b, 0xe7, 0xfc,
  547. 0xc2, 0xd4, 0x50, 0x15, 0xca, 0x5d, 0xd7, 0xb9, 0x76, 0xba, 0x9d, 0x81, 0x59, 0xfc, 0xf2, 0x57,
  548. 0x05, 0x3e, 0xf3, 0xd9, 0x42, 0x76, 0xfd, 0xff, 0xcd, 0x5e, 0x29, 0x3f, 0xfc, 0x98, 0xbf, 0x34,
  549. 0x67, 0x01, 0x0e, 0xe7, 0x36, 0x8b, 0xe7, 0xad, 0x39, 0x09, 0xc5, 0x2f, 0x79, 0x2b, 0x2b, 0xe1,
  550. 0x88, 0xf2, 0x97, 0xfc, 0xbd, 0xf8, 0x62, 0xa7, 0xf4, 0xbb, 0x5a, 0x38, 0xef, 0x76, 0xa6, 0x25,
  551. 0x81, 0x76, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xf8, 0xb7, 0x2f, 0xab, 0x08, 0x00,
  552. 0x00,
  553. }