Class VulnerabilityOccurrence (2.74.0)

  public 
  
 final 
  
 class 
 VulnerabilityOccurrence 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 VulnerabilityOccurrenceOrBuilder 
 

An occurrence of a severity vulnerability on a resource.

Protobuf type grafeas.v1.VulnerabilityOccurrence

Static Fields

CVSSV3_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CVSSV3_FIELD_NUMBER 
 
Field Value
Type
Description
int

CVSS_SCORE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CVSS_SCORE_FIELD_NUMBER 
 
Field Value
Type
Description
int

CVSS_V2_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CVSS_V2_FIELD_NUMBER 
 
Field Value
Type
Description
int

CVSS_VERSION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CVSS_VERSION_FIELD_NUMBER 
 
Field Value
Type
Description
int

EFFECTIVE_SEVERITY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 EFFECTIVE_SEVERITY_FIELD_NUMBER 
 
Field Value
Type
Description
int

EXTRA_DETAILS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 EXTRA_DETAILS_FIELD_NUMBER 
 
Field Value
Type
Description
int

FIX_AVAILABLE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 FIX_AVAILABLE_FIELD_NUMBER 
 
Field Value
Type
Description
int

LONG_DESCRIPTION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LONG_DESCRIPTION_FIELD_NUMBER 
 
Field Value
Type
Description
int

PACKAGE_ISSUE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PACKAGE_ISSUE_FIELD_NUMBER 
 
Field Value
Type
Description
int
  public 
  
 static 
  
 final 
  
 int 
  
 RELATED_URLS_FIELD_NUMBER 
 
Field Value
Type
Description
int

SEVERITY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 SEVERITY_FIELD_NUMBER 
 
Field Value
Type
Description
int

SHORT_DESCRIPTION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 SHORT_DESCRIPTION_FIELD_NUMBER 
 
Field Value
Type
Description
int

TYPE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TYPE_FIELD_NUMBER 
 
Field Value
Type
Description
int

VEX_ASSESSMENT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 VEX_ASSESSMENT_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 VulnerabilityOccurrence 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(VulnerabilityOccurrence prototype)

  public 
  
 static 
  
 VulnerabilityOccurrence 
 . 
 Builder 
  
 newBuilder 
 ( 
 VulnerabilityOccurrence 
  
 prototype 
 ) 
 
Parameter
Name
Description
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 VulnerabilityOccurrence 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<VulnerabilityOccurrence> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

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;

Returns
Type
Description

The cvssScore.

getCvssV2()

  public 
  
 CVSS 
  
 getCvssV2 
 () 
 

The cvss v2 score for the vulnerability.

.grafeas.v1.CVSS cvss_v2 = 12;

Returns
Type
Description

The cvssV2.

getCvssV2OrBuilder()

  public 
  
 CVSSOrBuilder 
  
 getCvssV2OrBuilder 
 () 
 

The cvss v2 score for the vulnerability.

.grafeas.v1.CVSS cvss_v2 = 12;

Returns
Type
Description

getCvssVersion()

  public 
  
 CVSSVersion 
  
 getCvssVersion 
 () 
 

Output only. CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 11;

Returns
Type
Description

The cvssVersion.

getCvssVersionValue()

  public 
  
 int 
  
 getCvssVersionValue 
 () 
 

Output only. CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 11;

Returns
Type
Description
int

The enum numeric value on the wire for cvssVersion.

getCvssv3()

  public 
  
 CVSS 
  
 getCvssv3 
 () 
 

The cvss v3 score for the vulnerability.

.grafeas.v1.CVSS cvssv3 = 10;

Returns
Type
Description

The cvssv3.

getCvssv3OrBuilder()

  public 
  
 CVSSOrBuilder 
  
 getCvssv3OrBuilder 
 () 
 

The cvss v3 score for the vulnerability.

.grafeas.v1.CVSS cvssv3 = 10;

Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 VulnerabilityOccurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

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;

Returns
Type
Description

The effectiveSeverity.

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;

Returns
Type
Description
int

The enum numeric value on the wire for effectiveSeverity.

getExtraDetails()

  public 
  
 String 
  
 getExtraDetails 
 () 
 

Occurrence-specific extra details about the vulnerability.

string extra_details = 14;

Returns
Type
Description

The extraDetails.

getExtraDetailsBytes()

  public 
  
 ByteString 
  
 getExtraDetailsBytes 
 () 
 

Occurrence-specific extra details about the vulnerability.

string extra_details = 14;

Returns
Type
Description

The bytes for extraDetails.

getFixAvailable()

  public 
  
 boolean 
  
 getFixAvailable 
 () 
 

Output only. Whether at least one of the affected packages has a fix available.

bool fix_available = 9;

Returns
Type
Description

The fixAvailable.

getLongDescription()

  public 
  
 String 
  
 getLongDescription 
 () 
 

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
Type
Description

The longDescription.

getLongDescriptionBytes()

  public 
  
 ByteString 
  
 getLongDescriptionBytes 
 () 
 

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
Type
Description

The bytes for longDescription.

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;

Parameter
Name
Description
index
int
Returns
Type
Description

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;

Returns
Type
Description
int

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;

Returns
Type
Description

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;

Parameter
Name
Description
index
int

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;

Returns
Type
Description
List < ? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder >

getParserForType()

  public 
  
 Parser<VulnerabilityOccurrence> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Overrides

getRelatedUrls(int index)

  public 
  
 RelatedUrl 
  
 getRelatedUrls 
 ( 
 int 
  
 index 
 ) 
 

Output only. URLs related to this vulnerability.

repeated .grafeas.v1.RelatedUrl related_urls = 7;

Parameter
Name
Description
index
int
Returns
Type
Description

getRelatedUrlsCount()

  public 
  
 int 
  
 getRelatedUrlsCount 
 () 
 

Output only. URLs related to this vulnerability.

repeated .grafeas.v1.RelatedUrl related_urls = 7;

Returns
Type
Description
int

getRelatedUrlsList()

  public 
  
 List<RelatedUrl> 
  
 getRelatedUrlsList 
 () 
 

Output only. URLs related to this vulnerability.

repeated .grafeas.v1.RelatedUrl related_urls = 7;

Returns
Type
Description

getRelatedUrlsOrBuilder(int index)

  public 
  
 RelatedUrlOrBuilder 
  
 getRelatedUrlsOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

Output only. URLs related to this vulnerability.

repeated .grafeas.v1.RelatedUrl related_urls = 7;

Parameter
Name
Description
index
int
Returns
Type
Description

getRelatedUrlsOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 RelatedUrlOrBuilder 
>  
 getRelatedUrlsOrBuilderList 
 () 
 

Output only. URLs related to this vulnerability.

repeated .grafeas.v1.RelatedUrl related_urls = 7;

Returns
Type
Description
List < ? extends io.grafeas.v1.RelatedUrlOrBuilder >

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getSeverity()

  public 
  
 Severity 
  
 getSeverity 
 () 
 

Output only. The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
Type
Description

The severity.

getSeverityValue()

  public 
  
 int 
  
 getSeverityValue 
 () 
 

Output only. The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
Type
Description
int

The enum numeric value on the wire for severity.

getShortDescription()

  public 
  
 String 
  
 getShortDescription 
 () 
 

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
Type
Description

The shortDescription.

getShortDescriptionBytes()

  public 
  
 ByteString 
  
 getShortDescriptionBytes 
 () 
 

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
Type
Description

The bytes for shortDescription.

getType()

  public 
  
 String 
  
 getType 
 () 
 

The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

string type = 1;

Returns
Type
Description

The type.

getTypeBytes()

  public 
  
 ByteString 
  
 getTypeBytes 
 () 
 

The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

string type = 1;

Returns
Type
Description

The bytes for type.

getVexAssessment()

  public 
  
 VulnerabilityOccurrence 
 . 
 VexAssessment 
  
 getVexAssessment 
 () 
 

.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;

Returns
Type
Description

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;

Returns
Type
Description

Whether the cvssV2 field is set.

hasCvssv3()

  public 
  
 boolean 
  
 hasCvssv3 
 () 
 

The cvss v3 score for the vulnerability.

.grafeas.v1.CVSS cvssv3 = 10;

Returns
Type
Description

Whether the cvssv3 field is set.

hasVexAssessment()

  public 
  
 boolean 
  
 hasVexAssessment 
 () 
 

.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;

Returns
Type
Description

Whether the vexAssessment field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 VulnerabilityOccurrence 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 VulnerabilityOccurrence 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 VulnerabilityOccurrence 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: