Class Vulnerability (2.53.0)

public final class Vulnerability extends GeneratedMessageV3 implements VulnerabilityOrBuilder

Vulnerability provides metadata about a security vulnerability in a Note.

Protobuf type grafeas.v1beta1.vulnerability.Vulnerability

Static Fields

CVSS_SCORE_FIELD_NUMBER

public static final int CVSS_SCORE_FIELD_NUMBER
Field Value
Type Description
int

CVSS_V3_FIELD_NUMBER

public static final int CVSS_V3_FIELD_NUMBER
Field Value
Type Description
int

DETAILS_FIELD_NUMBER

public static final int DETAILS_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_UPDATE_TIME_FIELD_NUMBER

public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

WINDOWS_DETAILS_FIELD_NUMBER

public static final int WINDOWS_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Vulnerability getDefaultInstance()
Returns
Type Description
Vulnerability

getDescriptor()

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

newBuilder()

public static Vulnerability.Builder newBuilder()
Returns
Type Description
Vulnerability.Builder

newBuilder(Vulnerability prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCvssScore()

public float getCvssScore()

The CVSS score for this vulnerability.

float cvss_score = 1;

Returns
Type Description
float

The cvssScore.

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3

The cvssV3.

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3OrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
Type Description
Vulnerability

getDetails(int index)

public Vulnerability.Detail getDetails(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.Detail

getDetailsCount()

public int getDetailsCount()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
int

getDetailsList()

public List<Vulnerability.Detail> getDetailsList()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
List<Detail>

getDetailsOrBuilder(int index)

public Vulnerability.DetailOrBuilder getDetailsOrBuilder(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.DetailOrBuilder

getDetailsOrBuilderList()

public List<? extends Vulnerability.DetailOrBuilder> getDetailsOrBuilderList()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverity()

public Severity getSeverity()

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
Type Description
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getSourceUpdateTime()

public Timestamp getSourceUpdateTime()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
Timestamp

The sourceUpdateTime.

getSourceUpdateTimeOrBuilder()

public TimestampOrBuilder getSourceUpdateTimeOrBuilder()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
TimestampOrBuilder

getWindowsDetails(int index)

public Vulnerability.WindowsDetail getWindowsDetails(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.WindowsDetail

getWindowsDetailsCount()

public int getWindowsDetailsCount()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
int

getWindowsDetailsList()

public List<Vulnerability.WindowsDetail> getWindowsDetailsList()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
List<WindowsDetail>

getWindowsDetailsOrBuilder(int index)

public Vulnerability.WindowsDetailOrBuilder getWindowsDetailsOrBuilder(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.WindowsDetailOrBuilder

getWindowsDetailsOrBuilderList()

public List<? extends Vulnerability.WindowsDetailOrBuilder> getWindowsDetailsOrBuilderList()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>

hasCvssV3()

public boolean hasCvssV3()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
boolean

Whether the cvssV3 field is set.

hasSourceUpdateTime()

public boolean hasSourceUpdateTime()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
boolean

Whether the sourceUpdateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Vulnerability.Builder newBuilderForType()
Returns
Type Description
Vulnerability.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Vulnerability.Builder toBuilder()
Returns
Type Description
Vulnerability.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException