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
CVSS_V3_FIELD_NUMBER
public static final int CVSS_V3_FIELD_NUMBER
Field Value
DETAILS_FIELD_NUMBER
public static final int DETAILS_FIELD_NUMBER
Field Value
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
Field Value
SOURCE_UPDATE_TIME_FIELD_NUMBER
public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
WINDOWS_DETAILS_FIELD_NUMBER
public static final int WINDOWS_DETAILS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Vulnerability getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Vulnerability.Builder newBuilder()
Returns
newBuilder(Vulnerability prototype)
public static Vulnerability.Builder newBuilder(Vulnerability prototype)
Parameter
Returns
public static Vulnerability parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Vulnerability parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Vulnerability parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Vulnerability parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Vulnerability parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Vulnerability parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Vulnerability parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Vulnerability parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Vulnerability parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Vulnerability> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getDefaultInstanceForType()
public Vulnerability getDefaultInstanceForType()
Returns
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
Returns
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
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
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
Returns
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
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSeverity()
public Severity getSeverity()
Note provider assigned impact of the vulnerability.
.grafeas.v1beta1.vulnerability.Severity severity = 2;
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Returns
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
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
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
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Vulnerability.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Vulnerability.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Vulnerability.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions