Class VulnerabilityNote (2.48.0)

public final class VulnerabilityNote extends GeneratedMessageV3 implements VulnerabilityNoteOrBuilder

A security vulnerability that can be found in resources.

Protobuf type grafeas.v1.VulnerabilityNote

Static Fields

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_V3_FIELD_NUMBER

public static final int CVSS_V3_FIELD_NUMBER
Field Value
Type Description
int

CVSS_VERSION_FIELD_NUMBER

public static final int CVSS_VERSION_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 VulnerabilityNote getDefaultInstance()
Returns
Type Description
VulnerabilityNote

getDescriptor()

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

newBuilder()

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

newBuilder(VulnerabilityNote prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 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 = 1;

Returns
Type Description
float

The cvssScore.

getCvssV2()

public CVSS getCvssV2()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
Type Description
CVSS

The cvssV2.

getCvssV2OrBuilder()

public CVSSOrBuilder getCvssV2OrBuilder()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
Type Description
CVSSOrBuilder

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3

The cvssV3.

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3OrBuilder

getCvssVersion()

public CVSSVersion getCvssVersion()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
Type Description
CVSSVersion

The cvssVersion.

getCvssVersionValue()

public int getCvssVersionValue()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
Type Description
int

The enum numeric value on the wire for cvssVersion.

getDefaultInstanceForType()

public VulnerabilityNote getDefaultInstanceForType()
Returns
Type Description
VulnerabilityNote

getDetails(int index)

public VulnerabilityNote.Detail getDetails(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityNote.Detail

getDetailsCount()

public int getDetailsCount()

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
Type Description
int

getDetailsList()

public List<VulnerabilityNote.Detail> getDetailsList()

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
Type Description
List<Detail>

getDetailsOrBuilder(int index)

public VulnerabilityNote.DetailOrBuilder getDetailsOrBuilder(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityNote.DetailOrBuilder

getDetailsOrBuilderList()

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverity()

public Severity getSeverity()

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
Type Description
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

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.

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 VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
Type Description
int

getWindowsDetailsList()

public List<VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
Type Description
List<WindowsDetail>

getWindowsDetailsOrBuilder(int index)

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityNote.WindowsDetailOrBuilder

getWindowsDetailsOrBuilderList()

public List<? extends VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

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

hasCvssV2()

public boolean hasCvssV2()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
Type Description
boolean

Whether the cvssV2 field is set.

hasCvssV3()

public boolean hasCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.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 VulnerabilityNote.Builder newBuilderForType()
Returns
Type Description
VulnerabilityNote.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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