Class VulnerabilityReport.Vulnerability.Details.Builder (2.45.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference>
Returns
Type Description
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
Name Description
value VulnerabilityReport.Vulnerability.Details.Reference
Returns
Type Description
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
Name Description
builderForValue VulnerabilityReport.Vulnerability.Details.Reference.Builder
Returns
Type Description
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
Name Description
index int
value VulnerabilityReport.Vulnerability.Details.Reference
Returns
Type Description
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
Name Description
index int
builderForValue VulnerabilityReport.Vulnerability.Details.Reference.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Reference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityReport.Vulnerability.Details.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

build()

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

buildPartial()

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

clear()

public VulnerabilityReport.Vulnerability.Details.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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.v1.CVSSv3 cvss_v3 = 3;

Returns
Type Description
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
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityReport.Vulnerability.Details.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityReport.Vulnerability.Details.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

clearReferences()

public VulnerabilityReport.Vulnerability.Details.Builder clearReferences()

Corresponds to the references attached to the VulnerabilityDetails.

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

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

clearSeverity()

public VulnerabilityReport.Vulnerability.Details.Builder clearSeverity()

Assigned severity/impact ranking from the distro.

string severity = 4;

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

clone()

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

getCvssV3Builder()

public CVSSv3.Builder getCvssV3Builder()

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

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

Returns
Type Description
CVSSv3.Builder

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Parameter
Name Description
index int
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Parameter
Name Description
index int
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6;

Returns
Type Description
List<Builder>

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>

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCvssV3(CVSSv3 value)

public VulnerabilityReport.Vulnerability.Details.Builder mergeCvssV3(CVSSv3 value)

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

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

Parameter
Name Description
value CVSSv3
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

mergeFrom(VulnerabilityReport.Vulnerability.Details other)

public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(VulnerabilityReport.Vulnerability.Details other)
Parameter
Name Description
other VulnerabilityReport.Vulnerability.Details
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Details.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

removeReferences(int index)

public VulnerabilityReport.Vulnerability.Details.Builder removeReferences(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.Builder

setCve(String value)

public VulnerabilityReport.Vulnerability.Details.Builder setCve(String value)

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;

Parameter
Name Description
value String

The cve to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setCveBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Details.Builder setCveBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for cve to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setCvssV2Score(float value)

public VulnerabilityReport.Vulnerability.Details.Builder setCvssV2Score(float value)

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;

Parameter
Name Description
value float

The cvssV2Score to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setCvssV3(CVSSv3 value)

public VulnerabilityReport.Vulnerability.Details.Builder setCvssV3(CVSSv3 value)

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

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

Parameter
Name Description
value CVSSv3
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

setCvssV3(CVSSv3.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Details.Builder setCvssV3(CVSSv3.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue CVSSv3.Builder
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

setDescription(String value)

public VulnerabilityReport.Vulnerability.Details.Builder setDescription(String value)

The note or description describing the vulnerability from the distro.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Details.Builder setDescriptionBytes(ByteString value)

The note or description describing the vulnerability from the distro.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityReport.Vulnerability.Details.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

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

public VulnerabilityReport.Vulnerability.Details.Builder setReferences(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
Name Description
index int
value VulnerabilityReport.Vulnerability.Details.Reference
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

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

public VulnerabilityReport.Vulnerability.Details.Builder setReferences(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
Name Description
index int
builderForValue VulnerabilityReport.Vulnerability.Details.Reference.Builder
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VulnerabilityReport.Vulnerability.Details.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

setSeverity(String value)

public VulnerabilityReport.Vulnerability.Details.Builder setSeverity(String value)

Assigned severity/impact ranking from the distro.

string severity = 4;

Parameter
Name Description
value String

The severity to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setSeverityBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Details.Builder setSeverityBytes(ByteString value)

Assigned severity/impact ranking from the distro.

string severity = 4;

Parameter
Name Description
value ByteString

The bytes for severity to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Details.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VulnerabilityReport.Vulnerability.Details.Builder
Overrides