Class VulnerabilityReport.Vulnerability.Details (2.53.0)

public static final class VulnerabilityReport.Vulnerability.Details extends GeneratedMessageV3 implements VulnerabilityReport.Vulnerability.DetailsOrBuilder

Contains metadata information for the vulnerability. This information is collected from the upstream feed of the operating system.

Protobuf type google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > VulnerabilityReport.Vulnerability.Details

Static Fields

CVE_FIELD_NUMBER

public static final int CVE_FIELD_NUMBER
Field Value
Type Description
int

CVSS_V2_SCORE_FIELD_NUMBER

public static final int CVSS_V2_SCORE_FIELD_NUMBER
Field Value
Type Description
int

CVSS_V3_FIELD_NUMBER

public static final int CVSS_V3_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

REFERENCES_FIELD_NUMBER

public static final int REFERENCES_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VulnerabilityReport.Vulnerability.Details getDefaultInstance()
Returns
Type Description
VulnerabilityReport.Vulnerability.Details

getDescriptor()

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

newBuilder()

public static VulnerabilityReport.Vulnerability.Details.Builder newBuilder()
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

newBuilder(VulnerabilityReport.Vulnerability.Details prototype)

public static VulnerabilityReport.Vulnerability.Details.Builder newBuilder(VulnerabilityReport.Vulnerability.Details prototype)
Parameter
Name Description
prototype VulnerabilityReport.Vulnerability.Details
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

parseDelimitedFrom(InputStream input)

public static VulnerabilityReport.Vulnerability.Details parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VulnerabilityReport.Vulnerability.Details parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VulnerabilityReport.Vulnerability.Details parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VulnerabilityReport.Vulnerability.Details parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VulnerabilityReport.Vulnerability.Details parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VulnerabilityReport.Vulnerability.Details parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VulnerabilityReport.Vulnerability.Details parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VulnerabilityReport.Vulnerability.Details parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VulnerabilityReport.Vulnerability.Details parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VulnerabilityReport.Vulnerability.Details parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VulnerabilityReport.Vulnerability.Details parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VulnerabilityReport.Vulnerability.Details parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VulnerabilityReport.Vulnerability.Details> parser()
Returns
Type Description
Parser<Details>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCve()

public String getCve()

The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.

string cve = 1;

Returns
Type Description
String

The cve.

getCveBytes()

public ByteString getCveBytes()

The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.

string cve = 1;

Returns
Type Description
ByteString

The bytes for cve.

getCvssV2Score()

public float getCvssV2Score()

The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

float cvss_v2_score = 2;

Returns
Type Description
float

The cvssV2Score.

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3 for this vulnerability from NVD.

.google.cloud.osconfig.v1.CVSSv3 cvss_v3 = 3;

Returns
Type Description
CVSSv3

The cvssV3.

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3 for this vulnerability from NVD.

.google.cloud.osconfig.v1.CVSSv3 cvss_v3 = 3;

Returns
Type Description
CVSSv3OrBuilder

getDefaultInstanceForType()

public VulnerabilityReport.Vulnerability.Details getDefaultInstanceForType()
Returns
Type Description
VulnerabilityReport.Vulnerability.Details

getDescription()

public String getDescription()

The note or description describing the vulnerability from the distro.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The note or description describing the vulnerability from the distro.

string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getParserForType()

public Parser<VulnerabilityReport.Vulnerability.Details> getParserForType()
Returns
Type Description
Parser<Details>
Overrides

getReferences(int index)

public VulnerabilityReport.Vulnerability.Details.Reference getReferences(int index)

Corresponds to the references attached to the VulnerabilityDetails.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Reference

getReferencesCount()

public int getReferencesCount()

Corresponds to the references attached to the VulnerabilityDetails.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Returns
Type Description
int

getReferencesList()

public List<VulnerabilityReport.Vulnerability.Details.Reference> getReferencesList()

Corresponds to the references attached to the VulnerabilityDetails.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Returns
Type Description
List<Reference>

getReferencesOrBuilder(int index)

public VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder getReferencesOrBuilder(int index)

Corresponds to the references attached to the VulnerabilityDetails.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder

getReferencesOrBuilderList()

public List<? extends VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder> getReferencesOrBuilderList()

Corresponds to the references attached to the VulnerabilityDetails.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverity()

public String getSeverity()

Assigned severity/impact ranking from the distro.

string severity = 4;

Returns
Type Description
String

The severity.

getSeverityBytes()

public ByteString getSeverityBytes()

Assigned severity/impact ranking from the distro.

string severity = 4;

Returns
Type Description
ByteString

The bytes for severity.

hasCvssV3()

public boolean hasCvssV3()

The full description of the CVSSv3 for this vulnerability from NVD.

.google.cloud.osconfig.v1.CVSSv3 cvss_v3 = 3;

Returns
Type Description
boolean

Whether the cvssV3 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 VulnerabilityReport.Vulnerability.Details.Builder newBuilderForType()
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VulnerabilityReport.Vulnerability.Details.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public VulnerabilityReport.Vulnerability.Details.Builder toBuilder()
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

writeTo(CodedOutputStream output)

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