Class VulnerabilityReport.Vulnerability.Details.Builder (2.22.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;

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

Returns
TypeDescription
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
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.v1.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

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

mergeFrom(VulnerabilityReport.Vulnerability.Details other)

public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(VulnerabilityReport.Vulnerability.Details other)
Parameter
NameDescription
otherVulnerabilityReport.Vulnerability.Details
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VulnerabilityReport.Vulnerability.Details.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Details.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The cve to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for cve to set.

Returns
TypeDescription
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
NameDescription
valuefloat

The cvssV2Score to set.

Returns
TypeDescription
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
NameDescription
valueCVSSv3
Returns
TypeDescription
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
NameDescription
builderForValueCVSSv3.Builder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerabilityReport.Vulnerability.Details.Reference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerabilityReport.Vulnerability.Details.Reference.Builder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The severity to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for severity to set.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Details.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder
Overrides