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

CVSS_V2_FIELD_NUMBER

public static final int CVSS_V2_FIELD_NUMBER
Field Value
TypeDescription
int

CVSS_V3_FIELD_NUMBER

public static final int CVSS_V3_FIELD_NUMBER
Field Value
TypeDescription
int

CVSS_VERSION_FIELD_NUMBER

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

getDescriptor()

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

newBuilder()

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

newBuilder(VulnerabilityNote prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

The cvssScore.

getCvssV2()

public CVSS getCvssV2()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
TypeDescription
CVSS

The cvssV2.

getCvssV2OrBuilder()

public CVSSOrBuilder getCvssV2OrBuilder()

The full description of the v2 CVSS for this vulnerability.

.grafeas.v1.CVSS cvss_v2 = 8;

Returns
TypeDescription
CVSSOrBuilder

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypeDescription
CVSSv3

The cvssV3.

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypeDescription
CVSSv3OrBuilder

getCvssVersion()

public CVSSVersion getCvssVersion()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypeDescription
CVSSVersion

The cvssVersion.

getCvssVersionValue()

public int getCvssVersionValue()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for cvssVersion.

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSeverity()

public Severity getSeverity()

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The note provider assigned severity of this vulnerability.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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