Class Vulnerability.Builder (2.47.0)

public static final class Vulnerability.Builder extends GeneratedMessageV3.Builder<Vulnerability.Builder> implements VulnerabilityOrBuilder

Vulnerability provides metadata about a security vulnerability in a Note.

Protobuf type grafeas.v1beta1.vulnerability.Vulnerability

Static Methods

getDescriptor()

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

Methods

addAllDetails(Iterable<? extends Vulnerability.Detail> values)

public Vulnerability.Builder addAllDetails(Iterable<? extends Vulnerability.Detail> values)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.Detail>
Returns
Type Description
Vulnerability.Builder

addAllWindowsDetails(Iterable<? extends Vulnerability.WindowsDetail> values)

public Vulnerability.Builder addAllWindowsDetails(Iterable<? extends Vulnerability.WindowsDetail> values)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
Returns
Type Description
Vulnerability.Builder

addDetails(int index, Vulnerability.Detail value)

public Vulnerability.Builder addDetails(int index, Vulnerability.Detail value)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameters
Name Description
index int
value Vulnerability.Detail
Returns
Type Description
Vulnerability.Builder

addDetails(int index, Vulnerability.Detail.Builder builderForValue)

public Vulnerability.Builder addDetails(int index, Vulnerability.Detail.Builder builderForValue)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameters
Name Description
index int
builderForValue Vulnerability.Detail.Builder
Returns
Type Description
Vulnerability.Builder

addDetails(Vulnerability.Detail value)

public Vulnerability.Builder addDetails(Vulnerability.Detail value)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
value Vulnerability.Detail
Returns
Type Description
Vulnerability.Builder

addDetails(Vulnerability.Detail.Builder builderForValue)

public Vulnerability.Builder addDetails(Vulnerability.Detail.Builder builderForValue)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
builderForValue Vulnerability.Detail.Builder
Returns
Type Description
Vulnerability.Builder

addDetailsBuilder()

public Vulnerability.Detail.Builder addDetailsBuilder()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
Vulnerability.Detail.Builder

addDetailsBuilder(int index)

public Vulnerability.Detail.Builder addDetailsBuilder(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.Detail.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWindowsDetails(int index, Vulnerability.WindowsDetail value)

public Vulnerability.Builder addWindowsDetails(int index, Vulnerability.WindowsDetail value)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameters
Name Description
index int
value Vulnerability.WindowsDetail
Returns
Type Description
Vulnerability.Builder

addWindowsDetails(int index, Vulnerability.WindowsDetail.Builder builderForValue)

public Vulnerability.Builder addWindowsDetails(int index, Vulnerability.WindowsDetail.Builder builderForValue)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameters
Name Description
index int
builderForValue Vulnerability.WindowsDetail.Builder
Returns
Type Description
Vulnerability.Builder

addWindowsDetails(Vulnerability.WindowsDetail value)

public Vulnerability.Builder addWindowsDetails(Vulnerability.WindowsDetail value)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
value Vulnerability.WindowsDetail
Returns
Type Description
Vulnerability.Builder

addWindowsDetails(Vulnerability.WindowsDetail.Builder builderForValue)

public Vulnerability.Builder addWindowsDetails(Vulnerability.WindowsDetail.Builder builderForValue)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
builderForValue Vulnerability.WindowsDetail.Builder
Returns
Type Description
Vulnerability.Builder

addWindowsDetailsBuilder()

public Vulnerability.WindowsDetail.Builder addWindowsDetailsBuilder()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
Vulnerability.WindowsDetail.Builder

addWindowsDetailsBuilder(int index)

public Vulnerability.WindowsDetail.Builder addWindowsDetailsBuilder(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.WindowsDetail.Builder

build()

public Vulnerability build()
Returns
Type Description
Vulnerability

buildPartial()

public Vulnerability buildPartial()
Returns
Type Description
Vulnerability

clear()

public Vulnerability.Builder clear()
Returns
Type Description
Vulnerability.Builder
Overrides

clearCvssScore()

public Vulnerability.Builder clearCvssScore()

The CVSS score for this vulnerability.

float cvss_score = 1;

Returns
Type Description
Vulnerability.Builder

This builder for chaining.

clearCvssV3()

public Vulnerability.Builder clearCvssV3()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
Vulnerability.Builder

clearDetails()

public Vulnerability.Builder clearDetails()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
Vulnerability.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSeverity()

public Vulnerability.Builder clearSeverity()

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
Type Description
Vulnerability.Builder

This builder for chaining.

clearSourceUpdateTime()

public Vulnerability.Builder clearSourceUpdateTime()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
Vulnerability.Builder

clearWindowsDetails()

public Vulnerability.Builder clearWindowsDetails()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
Vulnerability.Builder

clone()

public Vulnerability.Builder clone()
Returns
Type Description
Vulnerability.Builder
Overrides

getCvssScore()

public float getCvssScore()

The CVSS score for this vulnerability.

float cvss_score = 1;

Returns
Type Description
float

The cvssScore.

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3

The cvssV3.

getCvssV3Builder()

public CVSSv3.Builder getCvssV3Builder()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3.Builder

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
CVSSv3OrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
Type Description
Vulnerability

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetails(int index)

public Vulnerability.Detail getDetails(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.Detail

getDetailsBuilder(int index)

public Vulnerability.Detail.Builder getDetailsBuilder(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.Detail.Builder

getDetailsBuilderList()

public List<Vulnerability.Detail.Builder> getDetailsBuilderList()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
List<Builder>

getDetailsCount()

public int getDetailsCount()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
int

getDetailsList()

public List<Vulnerability.Detail> getDetailsList()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
List<Detail>

getDetailsOrBuilder(int index)

public Vulnerability.DetailOrBuilder getDetailsOrBuilder(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.DetailOrBuilder

getDetailsOrBuilderList()

public List<? extends Vulnerability.DetailOrBuilder> getDetailsOrBuilderList()

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Returns
Type Description
List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.DetailOrBuilder>

getSeverity()

public Severity getSeverity()

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
Type Description
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getSourceUpdateTime()

public Timestamp getSourceUpdateTime()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
Timestamp

The sourceUpdateTime.

getSourceUpdateTimeBuilder()

public Timestamp.Builder getSourceUpdateTimeBuilder()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
Builder

getSourceUpdateTimeOrBuilder()

public TimestampOrBuilder getSourceUpdateTimeOrBuilder()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
TimestampOrBuilder

getWindowsDetails(int index)

public Vulnerability.WindowsDetail getWindowsDetails(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.WindowsDetail

getWindowsDetailsBuilder(int index)

public Vulnerability.WindowsDetail.Builder getWindowsDetailsBuilder(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.WindowsDetail.Builder

getWindowsDetailsBuilderList()

public List<Vulnerability.WindowsDetail.Builder> getWindowsDetailsBuilderList()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
List<Builder>

getWindowsDetailsCount()

public int getWindowsDetailsCount()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
int

getWindowsDetailsList()

public List<Vulnerability.WindowsDetail> getWindowsDetailsList()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
List<WindowsDetail>

getWindowsDetailsOrBuilder(int index)

public Vulnerability.WindowsDetailOrBuilder getWindowsDetailsOrBuilder(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.WindowsDetailOrBuilder

getWindowsDetailsOrBuilderList()

public List<? extends Vulnerability.WindowsDetailOrBuilder> getWindowsDetailsOrBuilderList()

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Returns
Type Description
List<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailOrBuilder>

hasCvssV3()

public boolean hasCvssV3()

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Returns
Type Description
boolean

Whether the cvssV3 field is set.

hasSourceUpdateTime()

public boolean hasSourceUpdateTime()

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Returns
Type Description
boolean

Whether the sourceUpdateTime 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 Vulnerability.Builder mergeCvssV3(CVSSv3 value)

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Parameter
Name Description
value CVSSv3
Returns
Type Description
Vulnerability.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Vulnerability other)

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

mergeSourceUpdateTime(Timestamp value)

public Vulnerability.Builder mergeSourceUpdateTime(Timestamp value)

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Vulnerability.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDetails(int index)

public Vulnerability.Builder removeDetails(int index)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.Builder

removeWindowsDetails(int index)

public Vulnerability.Builder removeWindowsDetails(int index)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameter
Name Description
index int
Returns
Type Description
Vulnerability.Builder

setCvssScore(float value)

public Vulnerability.Builder setCvssScore(float value)

The CVSS score for this vulnerability.

float cvss_score = 1;

Parameter
Name Description
value float

The cvssScore to set.

Returns
Type Description
Vulnerability.Builder

This builder for chaining.

setCvssV3(CVSSv3 value)

public Vulnerability.Builder setCvssV3(CVSSv3 value)

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

Parameter
Name Description
value CVSSv3
Returns
Type Description
Vulnerability.Builder

setCvssV3(CVSSv3.Builder builderForValue)

public Vulnerability.Builder setCvssV3(CVSSv3.Builder builderForValue)

The full description of the CVSSv3.

.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;

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

setDetails(int index, Vulnerability.Detail value)

public Vulnerability.Builder setDetails(int index, Vulnerability.Detail value)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameters
Name Description
index int
value Vulnerability.Detail
Returns
Type Description
Vulnerability.Builder

setDetails(int index, Vulnerability.Detail.Builder builderForValue)

public Vulnerability.Builder setDetails(int index, Vulnerability.Detail.Builder builderForValue)

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;

Parameters
Name Description
index int
builderForValue Vulnerability.Detail.Builder
Returns
Type Description
Vulnerability.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSeverity(Severity value)

public Vulnerability.Builder setSeverity(Severity value)

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Parameter
Name Description
value Severity

The severity to set.

Returns
Type Description
Vulnerability.Builder

This builder for chaining.

setSeverityValue(int value)

public Vulnerability.Builder setSeverityValue(int value)

Note provider assigned impact of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
Vulnerability.Builder

This builder for chaining.

setSourceUpdateTime(Timestamp value)

public Vulnerability.Builder setSourceUpdateTime(Timestamp value)

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Vulnerability.Builder

setSourceUpdateTime(Timestamp.Builder builderForValue)

public Vulnerability.Builder setSourceUpdateTime(Timestamp.Builder builderForValue)

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

.google.protobuf.Timestamp source_update_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Vulnerability.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWindowsDetails(int index, Vulnerability.WindowsDetail value)

public Vulnerability.Builder setWindowsDetails(int index, Vulnerability.WindowsDetail value)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameters
Name Description
index int
value Vulnerability.WindowsDetail
Returns
Type Description
Vulnerability.Builder

setWindowsDetails(int index, Vulnerability.WindowsDetail.Builder builderForValue)

public Vulnerability.Builder setWindowsDetails(int index, Vulnerability.WindowsDetail.Builder builderForValue)

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;

Parameters
Name Description
index int
builderForValue Vulnerability.WindowsDetail.Builder
Returns
Type Description
Vulnerability.Builder