Class Vulnerability (2.15.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
TypeDescription
int

CVSS_V3_FIELD_NUMBER

public static final int CVSS_V3_FIELD_NUMBER
Field Value
TypeDescription
int

DETAILS_FIELD_NUMBER

public static final int DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_UPDATE_TIME_FIELD_NUMBER

public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

WINDOWS_DETAILS_FIELD_NUMBER

public static final int WINDOWS_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Vulnerability getDefaultInstance()
Returns
TypeDescription
Vulnerability

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Vulnerability.Builder newBuilder()
Returns
TypeDescription
Vulnerability.Builder

newBuilder(Vulnerability prototype)

public static Vulnerability.Builder newBuilder(Vulnerability prototype)
Parameter
NameDescription
prototypeVulnerability
Returns
TypeDescription
Vulnerability.Builder

parseDelimitedFrom(InputStream input)

public static Vulnerability parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Vulnerability parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Vulnerability parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Vulnerability parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Vulnerability parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Vulnerability parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Vulnerability> parser()
Returns
TypeDescription
Parser<Vulnerability>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCvssScore()

public float getCvssScore()

The CVSS score for this vulnerability.

float cvss_score = 1;

Returns
TypeDescription
float

The cvssScore.

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3.

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

Returns
TypeDescription
CVSSv3

The cvssV3.

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3.

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

Returns
TypeDescription
CVSSv3OrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder>

getParserForType()

public Parser<Vulnerability> getParserForType()
Returns
TypeDescription
Parser<Vulnerability>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSeverity()

public Severity getSeverity()

Note provider assigned impact of the vulnerability.

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

Returns
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Note provider assigned impact of the vulnerability.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sourceUpdateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Vulnerability.Builder newBuilderForType()
Returns
TypeDescription
Vulnerability.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Vulnerability.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Vulnerability.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Vulnerability.Builder toBuilder()
Returns
TypeDescription
Vulnerability.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException