Class VulnerabilityReport.Vulnerability.Details.Builder (2.4.3)

public static final class VulnerabilityReport.Vulnerability.Details.Builder extends GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Details.Builder> 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.v1alpha.VulnerabilityReport.Vulnerability.Details

Static Methods

getDescriptor()

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

Methods

addAllReferences(Iterable<? extends VulnerabilityReport.Vulnerability.Details.Reference> values)

public VulnerabilityReport.Vulnerability.Details.Builder addAllReferences(Iterable<? extends VulnerabilityReport.Vulnerability.Details.Reference> values)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference>
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

addReferences(VulnerabilityReport.Vulnerability.Details.Reference value)

public VulnerabilityReport.Vulnerability.Details.Builder addReferences(VulnerabilityReport.Vulnerability.Details.Reference value)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameter
NameDescription
valueVulnerabilityReport.Vulnerability.Details.Reference
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

addReferences(VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Details.Builder addReferences(VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameter
NameDescription
builderForValueVulnerabilityReport.Vulnerability.Details.Reference.Builder
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference value)

public VulnerabilityReport.Vulnerability.Details.Builder addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference value)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameters
NameDescription
indexint
valueVulnerabilityReport.Vulnerability.Details.Reference
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Details.Builder addReferences(int index, VulnerabilityReport.Vulnerability.Details.Reference.Builder builderForValue)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameters
NameDescription
indexint
builderForValueVulnerabilityReport.Vulnerability.Details.Reference.Builder
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

addReferencesBuilder()

public VulnerabilityReport.Vulnerability.Details.Reference.Builder addReferencesBuilder()

Corresponds to the references attached to the VulnerabilityDetails.

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

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Reference.Builder

addReferencesBuilder(int index)

public VulnerabilityReport.Vulnerability.Details.Reference.Builder addReferencesBuilder(int index)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Reference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityReport.Vulnerability.Details.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

build()

public VulnerabilityReport.Vulnerability.Details build()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details

buildPartial()

public VulnerabilityReport.Vulnerability.Details buildPartial()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details

clear()

public VulnerabilityReport.Vulnerability.Details.Builder clear()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

clearCve()

public VulnerabilityReport.Vulnerability.Details.Builder clearCve()

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
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

clearCvssV2Score()

public VulnerabilityReport.Vulnerability.Details.Builder clearCvssV2Score()

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
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

clearCvssV3()

public VulnerabilityReport.Vulnerability.Details.Builder clearCvssV3()

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

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

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

clearDescription()

public VulnerabilityReport.Vulnerability.Details.Builder clearDescription()

The note or description describing the vulnerability from the distro.

string description = 5;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityReport.Vulnerability.Details.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityReport.Vulnerability.Details.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

clearReferences()

public VulnerabilityReport.Vulnerability.Details.Builder clearReferences()

Corresponds to the references attached to the VulnerabilityDetails.

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

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

clearSeverity()

public VulnerabilityReport.Vulnerability.Details.Builder clearSeverity()

Assigned severity/impact ranking from the distro.

string severity = 4;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

clone()

public VulnerabilityReport.Vulnerability.Details.Builder clone()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
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
TypeDescription
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
TypeDescription
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
TypeDescription
float

The cvssV2Score.

getCvssV3()

public CVSSv3 getCvssV3()

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

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

Returns
TypeDescription
CVSSv3

The cvssV3.

getCvssV3Builder()

public CVSSv3.Builder getCvssV3Builder()

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

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

Returns
TypeDescription
CVSSv3.Builder

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

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

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

Returns
TypeDescription
CVSSv3OrBuilder

getDefaultInstanceForType()

public VulnerabilityReport.Vulnerability.Details getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details

getDescription()

public String getDescription()

The note or description describing the vulnerability from the distro.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The note or description describing the vulnerability from the distro.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReferences(int index)

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

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Reference

getReferencesBuilder(int index)

public VulnerabilityReport.Vulnerability.Details.Reference.Builder getReferencesBuilder(int index)

Corresponds to the references attached to the VulnerabilityDetails.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Reference.Builder

getReferencesBuilderList()

public List<VulnerabilityReport.Vulnerability.Details.Reference.Builder> getReferencesBuilderList()

Corresponds to the references attached to the VulnerabilityDetails.

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

Returns
TypeDescription
List<Builder>

getReferencesCount()

public int getReferencesCount()

Corresponds to the references attached to the VulnerabilityDetails.

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

Returns
TypeDescription
int

getReferencesList()

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

Corresponds to the references attached to the VulnerabilityDetails.

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

Returns
TypeDescription
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.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.ReferenceOrBuilder>

getSeverity()

public String getSeverity()

Assigned severity/impact ranking from the distro.

string severity = 4;

Returns
TypeDescription
String

The severity.

getSeverityBytes()

public ByteString getSeverityBytes()

Assigned severity/impact ranking from the distro.

string severity = 4;

Returns
TypeDescription
ByteString

The bytes for severity.

hasCvssV3()

public boolean hasCvssV3()

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

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

Returns
TypeDescription
boolean

Whether the cvssV3 field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides