- 2.74.0 (latest)
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.5
- 2.3.1
- 2.2.3
- 2.1.3
public
final
class
VulnerabilityOccurrence
extends
GeneratedMessageV3
implements
VulnerabilityOccurrenceOrBuilder
An occurrence of a severity vulnerability on a resource.
Protobuf type grafeas.v1.VulnerabilityOccurrence
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > VulnerabilityOccurrenceImplements
VulnerabilityOccurrenceOrBuilderStatic Fields
CVSSV3_FIELD_NUMBER
public
static
final
int
CVSSV3_FIELD_NUMBER
CVSS_SCORE_FIELD_NUMBER
public
static
final
int
CVSS_SCORE_FIELD_NUMBER
CVSS_V2_FIELD_NUMBER
public
static
final
int
CVSS_V2_FIELD_NUMBER
CVSS_VERSION_FIELD_NUMBER
public
static
final
int
CVSS_VERSION_FIELD_NUMBER
EFFECTIVE_SEVERITY_FIELD_NUMBER
public
static
final
int
EFFECTIVE_SEVERITY_FIELD_NUMBER
EXTRA_DETAILS_FIELD_NUMBER
public
static
final
int
EXTRA_DETAILS_FIELD_NUMBER
FIX_AVAILABLE_FIELD_NUMBER
public
static
final
int
FIX_AVAILABLE_FIELD_NUMBER
LONG_DESCRIPTION_FIELD_NUMBER
public
static
final
int
LONG_DESCRIPTION_FIELD_NUMBER
PACKAGE_ISSUE_FIELD_NUMBER
public
static
final
int
PACKAGE_ISSUE_FIELD_NUMBER
RELATED_URLS_FIELD_NUMBER
public
static
final
int
RELATED_URLS_FIELD_NUMBER
SEVERITY_FIELD_NUMBER
public
static
final
int
SEVERITY_FIELD_NUMBER
SHORT_DESCRIPTION_FIELD_NUMBER
public
static
final
int
SHORT_DESCRIPTION_FIELD_NUMBER
TYPE_FIELD_NUMBER
public
static
final
int
TYPE_FIELD_NUMBER
VEX_ASSESSMENT_FIELD_NUMBER
public
static
final
int
VEX_ASSESSMENT_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
VulnerabilityOccurrence
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
VulnerabilityOccurrence
.
Builder
newBuilder
()
newBuilder(VulnerabilityOccurrence prototype)
public
static
VulnerabilityOccurrence
.
Builder
newBuilder
(
VulnerabilityOccurrence
prototype
)
parseDelimitedFrom(InputStream input)
public
static
VulnerabilityOccurrence
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
VulnerabilityOccurrence
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
VulnerabilityOccurrence
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
VulnerabilityOccurrence
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
VulnerabilityOccurrence
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
VulnerabilityOccurrence
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
VulnerabilityOccurrence
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
VulnerabilityOccurrence
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
VulnerabilityOccurrence
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
VulnerabilityOccurrence
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
VulnerabilityOccurrence
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
VulnerabilityOccurrence
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<VulnerabilityOccurrence>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getCvssScore()
public
float
getCvssScore
()
Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
float cvss_score = 3;
getCvssV2()
public
CVSS
getCvssV2
()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
getCvssV2OrBuilder()
public
CVSSOrBuilder
getCvssV2OrBuilder
()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
getCvssVersion()
public
CVSSVersion
getCvssVersion
()
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
getCvssVersionValue()
public
int
getCvssVersionValue
()
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
getCvssv3()
public
CVSS
getCvssv3
()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
getCvssv3OrBuilder()
public
CVSSOrBuilder
getCvssv3OrBuilder
()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
getDefaultInstanceForType()
public
VulnerabilityOccurrence
getDefaultInstanceForType
()
getEffectiveSeverity()
public
Severity
getEffectiveSeverity
()
The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.
When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
.grafeas.v1.Severity effective_severity = 8;
getEffectiveSeverityValue()
public
int
getEffectiveSeverityValue
()
The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.
When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
.grafeas.v1.Severity effective_severity = 8;
getExtraDetails()
public
String
getExtraDetails
()
Occurrence-specific extra details about the vulnerability.
string extra_details = 14;
getExtraDetailsBytes()
public
ByteString
getExtraDetailsBytes
()
Occurrence-specific extra details about the vulnerability.
string extra_details = 14;
getFixAvailable()
public
boolean
getFixAvailable
()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;
getLongDescription()
public
String
getLongDescription
()
Output only. A detailed description of this vulnerability.
string long_description = 6;
getLongDescriptionBytes()
public
ByteString
getLongDescriptionBytes
()
Output only. A detailed description of this vulnerability.
string long_description = 6;
getPackageIssue(int index)
public
VulnerabilityOccurrence
.
PackageIssue
getPackageIssue
(
int
index
)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueCount()
public
int
getPackageIssueCount
()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueList()
public
List<VulnerabilityOccurrence
.
PackageIssue
>
getPackageIssueList
()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueOrBuilder(int index)
public
VulnerabilityOccurrence
.
PackageIssueOrBuilder
getPackageIssueOrBuilder
(
int
index
)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueOrBuilderList()
public
List
< ?
extends
VulnerabilityOccurrence
.
PackageIssueOrBuilder
>
getPackageIssueOrBuilderList
()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
List
< ? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder
>
getParserForType()
public
Parser<VulnerabilityOccurrence>
getParserForType
()
getRelatedUrls(int index)
public
RelatedUrl
getRelatedUrls
(
int
index
)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsCount()
public
int
getRelatedUrlsCount
()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsList()
public
List<RelatedUrl>
getRelatedUrlsList
()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsOrBuilder(int index)
public
RelatedUrlOrBuilder
getRelatedUrlsOrBuilder
(
int
index
)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsOrBuilderList()
public
List
< ?
extends
RelatedUrlOrBuilder
>
getRelatedUrlsOrBuilderList
()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getSerializedSize()
public
int
getSerializedSize
()
getSeverity()
public
Severity
getSeverity
()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
getSeverityValue()
public
int
getSeverityValue
()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
getShortDescription()
public
String
getShortDescription
()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
getShortDescriptionBytes()
public
ByteString
getShortDescriptionBytes
()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
getType()
public
String
getType
()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
getTypeBytes()
public
ByteString
getTypeBytes
()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
getVexAssessment()
public
VulnerabilityOccurrence
.
VexAssessment
getVexAssessment
()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
getVexAssessmentOrBuilder()
public
VulnerabilityOccurrence
.
VexAssessmentOrBuilder
getVexAssessmentOrBuilder
()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
hasCvssV2()
public
boolean
hasCvssV2
()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
hasCvssv3()
public
boolean
hasCvssv3
()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
hasVexAssessment()
public
boolean
hasVexAssessment
()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
VulnerabilityOccurrence
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
VulnerabilityOccurrence
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
VulnerabilityOccurrence
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)