Class Vulnerability.Builder (2.4.10)

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
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.Detail>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail>
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerability.Detail
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerability.Detail.Builder
Returns
TypeDescription
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
NameDescription
valueVulnerability.Detail
Returns
TypeDescription
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
NameDescription
builderForValueVulnerability.Detail.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Vulnerability.Detail.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Vulnerability.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerability.WindowsDetail
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerability.WindowsDetail.Builder
Returns
TypeDescription
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
NameDescription
valueVulnerability.WindowsDetail
Returns
TypeDescription
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
NameDescription
builderForValueVulnerability.WindowsDetail.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Vulnerability.WindowsDetail.Builder

build()

public Vulnerability build()
Returns
TypeDescription
Vulnerability

buildPartial()

public Vulnerability buildPartial()
Returns
TypeDescription
Vulnerability

clear()

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

clearCvssScore()

public Vulnerability.Builder clearCvssScore()

The CVSS score for this vulnerability.

float cvss_score = 1;

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSeverity()

public Vulnerability.Builder clearSeverity()

Note provider assigned impact of the vulnerability.

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

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

clone()

public Vulnerability.Builder clone()
Returns
TypeDescription
Vulnerability.Builder
Overrides

getCvssScore()

public float getCvssScore()

The CVSS score for this vulnerability.

float cvss_score = 1;

Returns
TypeDescription
float

The cvssScore.

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3.

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

Returns
TypeDescription
CVSSv3

The cvssV3.

getCvssV3Builder()

public CVSSv3.Builder getCvssV3Builder()

The full description of the CVSSv3.

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

Returns
TypeDescription
CVSSv3.Builder

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3.

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

Returns
TypeDescription
CVSSv3OrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
TypeDescription
Vulnerability

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Note provider assigned impact of the vulnerability.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

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

The full description of the CVSSv3.

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

Parameter
NameDescription
valueCVSSv3
Returns
TypeDescription
Vulnerability.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Vulnerability other)

public Vulnerability.Builder mergeFrom(Vulnerability other)
Parameter
NameDescription
otherVulnerability
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Vulnerability.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCvssScore(float value)

public Vulnerability.Builder setCvssScore(float value)

The CVSS score for this vulnerability.

float cvss_score = 1;

Parameter
NameDescription
valuefloat

The cvssScore to set.

Returns
TypeDescription
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
NameDescription
valueCVSSv3
Returns
TypeDescription
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
NameDescription
builderForValueCVSSv3.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerability.Detail
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerability.Detail.Builder
Returns
TypeDescription
Vulnerability.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Vulnerability.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSeverity

The severity to set.

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

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Vulnerability.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Vulnerability.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerability.WindowsDetail
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerability.WindowsDetail.Builder
Returns
TypeDescription
Vulnerability.Builder