Class VulnerabilityNote (2.29.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
TypDescription
int

CVSS_V2_FIELD_NUMBER

public static final int CVSS_V2_FIELD_NUMBER
Field Value
TypDescription
int

CVSS_V3_FIELD_NUMBER

public static final int CVSS_V3_FIELD_NUMBER
Field Value
TypDescription
int

CVSS_VERSION_FIELD_NUMBER

public static final int CVSS_VERSION_FIELD_NUMBER
Field Value
TypDescription
int

DETAILS_FIELD_NUMBER

public static final int DETAILS_FIELD_NUMBER
Field Value
TypDescription
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
TypDescription
int

SOURCE_UPDATE_TIME_FIELD_NUMBER

public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
TypDescription
int

WINDOWS_DETAILS_FIELD_NUMBER

public static final int WINDOWS_DETAILS_FIELD_NUMBER
Field Value
TypDescription
int

Static Methods

getDefaultInstance()

public static VulnerabilityNote getDefaultInstance()
Returns
TypDescription
VulnerabilityNote

getDescriptor()

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

newBuilder()

public static VulnerabilityNote.Builder newBuilder()
Returns
TypDescription
VulnerabilityNote.Builder

newBuilder(VulnerabilityNote prototype)

public static VulnerabilityNote.Builder newBuilder(VulnerabilityNote prototype)
Parameter
NameDescription
prototypeVulnerabilityNote
Returns
TypDescription
VulnerabilityNote.Builder

parseDelimitedFrom(InputStream input)

public static VulnerabilityNote parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypDescription
VulnerabilityNote
Exceptions
TypDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

public static VulnerabilityNote parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypDescription
VulnerabilityNote
Exceptions
TypDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static VulnerabilityNote parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypDescription
VulnerabilityNote
Exceptions
TypDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static VulnerabilityNote parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypDescription
VulnerabilityNote
Exceptions
TypDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static VulnerabilityNote parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypDescription
VulnerabilityNote
Exceptions
TypDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static VulnerabilityNote parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypDescription
VulnerabilityNote
Exceptions
TypDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<VulnerabilityNote> parser()
Returns
TypDescription
Parser<VulnerabilityNote>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypDescription
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
TypDescription
float

The cvssScore.

getCvssV2()

public CVSS getCvssV2()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
TypDescription
CVSS

The cvssV2.

getCvssV2OrBuilder()

public CVSSOrBuilder getCvssV2OrBuilder()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
TypDescription
CVSSOrBuilder

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypDescription
CVSSv3

The cvssV3.

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypDescription
CVSSv3OrBuilder

getCvssVersion()

public CVSSVersion getCvssVersion()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypDescription
CVSSVersion

The cvssVersion.

getCvssVersionValue()

public int getCvssVersionValue()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypDescription
int

The enum numeric value on the wire for cvssVersion.

getDefaultInstanceForType()

public VulnerabilityNote getDefaultInstanceForType()
Returns
TypDescription
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
NameDescription
indexint
Returns
TypDescription
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
TypDescription
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
TypDescription
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
NameDescription
indexint
Returns
TypDescription
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
TypDescription
List<? extends io.grafeas.v1.VulnerabilityNote.DetailOrBuilder>

getParserForType()

public Parser<VulnerabilityNote> getParserForType()
Returns
TypDescription
Parser<VulnerabilityNote>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypDescription
int
Overrides

getSeverity()

public Severity getSeverity()

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
TypDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

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

Whether the sourceUpdateTime field is set.

hashCode()

public int hashCode()
Returns
TypDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypDescription
boolean
Overrides

newBuilderForType()

public VulnerabilityNote.Builder newBuilderForType()
Returns
TypDescription
VulnerabilityNote.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VulnerabilityNote.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypDescription
VulnerabilityNote.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public VulnerabilityNote.Builder toBuilder()
Returns
TypDescription
VulnerabilityNote.Builder

writeTo(CodedOutputStream output)

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