Class VulnerabilityReport.Vulnerability.Details.Builder (2.29.0)

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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;