public final class VulnerabilityOccurrence extends GeneratedMessageV3 implements VulnerabilityOccurrenceOrBuilder
An occurrence of a severity vulnerability on a resource.
Protobuf type grafeas.v1.VulnerabilityOccurrence
Fields
CVSS_SCORE_FIELD_NUMBER
public static final int CVSS_SCORE_FIELD_NUMBER
Field Value
EFFECTIVE_SEVERITY_FIELD_NUMBER
public static final int EFFECTIVE_SEVERITY_FIELD_NUMBER
Field Value
FIX_AVAILABLE_FIELD_NUMBER
public static final int FIX_AVAILABLE_FIELD_NUMBER
Field Value
LONG_DESCRIPTION_FIELD_NUMBER
public static final int LONG_DESCRIPTION_FIELD_NUMBER
Field Value
PACKAGE_ISSUE_FIELD_NUMBER
public static final int PACKAGE_ISSUE_FIELD_NUMBER
Field Value
public static final int RELATED_URLS_FIELD_NUMBER
Field Value
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
Field Value
SHORT_DESCRIPTION_FIELD_NUMBER
public static final int SHORT_DESCRIPTION_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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 |
float | The cvssScore.
|
getDefaultInstance()
public static VulnerabilityOccurrence getDefaultInstance()
Returns
getDefaultInstanceForType()
public VulnerabilityOccurrence getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getEffectiveSeverity()
public Severity getEffectiveSeverity()
The distro assigned severity for this vulnerability when it is available,
otherwise this is the note provider assigned severity.
.grafeas.v1.Severity effective_severity = 8;
Returns
Type | Description |
Severity | 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.
.grafeas.v1.Severity effective_severity = 8;
Returns
Type | Description |
int | The enum numeric value on the wire for effectiveSeverity.
|
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 |
boolean | The fixAvailable.
|
getLongDescription()
public String getLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;
Returns
Type | Description |
String | The longDescription.
|
getLongDescriptionBytes()
public ByteString getLongDescriptionBytes()
Output only. A detailed description of this vulnerability.
string long_description = 6;
Returns
Type | Description |
ByteString | 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
Returns
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
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
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
Returns
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
Overrides
public RelatedUrl getRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter
Returns
public int getRelatedUrlsCount()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns
public List<RelatedUrl> getRelatedUrlsList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns
public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter
Returns
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
Overrides
getSeverity()
public Severity getSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
Returns
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 |
String | The shortDescription.
|
getShortDescriptionBytes()
public ByteString getShortDescriptionBytes()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
Returns
Type | Description |
ByteString | The bytes for shortDescription.
|
getType()
The type of package; whether native or non native (e.g., ruby gems, node.js
packages, etc.).
string type = 1;
Returns
Type | Description |
String | 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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static VulnerabilityOccurrence.Builder newBuilder()
Returns
newBuilder(VulnerabilityOccurrence prototype)
public static VulnerabilityOccurrence.Builder newBuilder(VulnerabilityOccurrence prototype)
Parameter
Returns
newBuilderForType()
public VulnerabilityOccurrence.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VulnerabilityOccurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static VulnerabilityOccurrence parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static VulnerabilityOccurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static VulnerabilityOccurrence parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VulnerabilityOccurrence parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static VulnerabilityOccurrence parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VulnerabilityOccurrence parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static VulnerabilityOccurrence parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static VulnerabilityOccurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static VulnerabilityOccurrence parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static VulnerabilityOccurrence parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static VulnerabilityOccurrence parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VulnerabilityOccurrence parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<VulnerabilityOccurrence> parser()
Returns
toBuilder()
public VulnerabilityOccurrence.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions