Class VulnerabilityNote.Builder (2.9.0)

public static final class VulnerabilityNote.Builder extends GeneratedMessageV3.Builder<VulnerabilityNote.Builder> implements VulnerabilityNoteOrBuilder

A security vulnerability that can be found in resources.

Protobuf type grafeas.v1.VulnerabilityNote

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

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

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.VulnerabilityNote.Detail>
Returns
TypeDescription
VulnerabilityNote.Builder

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

public VulnerabilityNote.Builder addAllWindowsDetails(Iterable<? extends VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.VulnerabilityNote.WindowsDetail>
Returns
TypeDescription
VulnerabilityNote.Builder

addDetails(int index, VulnerabilityNote.Detail value)

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameters
NameDescription
indexint
valueVulnerabilityNote.Detail
Returns
TypeDescription
VulnerabilityNote.Builder

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

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameters
NameDescription
indexint
builderForValueVulnerabilityNote.Detail.Builder
Returns
TypeDescription
VulnerabilityNote.Builder

addDetails(VulnerabilityNote.Detail value)

public VulnerabilityNote.Builder addDetails(VulnerabilityNote.Detail value)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
valueVulnerabilityNote.Detail
Returns
TypeDescription
VulnerabilityNote.Builder

addDetails(VulnerabilityNote.Detail.Builder builderForValue)

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
builderForValueVulnerabilityNote.Detail.Builder
Returns
TypeDescription
VulnerabilityNote.Builder

addDetailsBuilder()

public VulnerabilityNote.Detail.Builder addDetailsBuilder()

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
TypeDescription
VulnerabilityNote.Detail.Builder

addDetailsBuilder(int index)

public VulnerabilityNote.Detail.Builder addDetailsBuilder(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.Detail.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWindowsDetails(int index, VulnerabilityNote.WindowsDetail value)

public VulnerabilityNote.Builder addWindowsDetails(int index, VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameters
NameDescription
indexint
valueVulnerabilityNote.WindowsDetail
Returns
TypeDescription
VulnerabilityNote.Builder

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

public VulnerabilityNote.Builder addWindowsDetails(int index, VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameters
NameDescription
indexint
builderForValueVulnerabilityNote.WindowsDetail.Builder
Returns
TypeDescription
VulnerabilityNote.Builder

addWindowsDetails(VulnerabilityNote.WindowsDetail value)

public VulnerabilityNote.Builder addWindowsDetails(VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
valueVulnerabilityNote.WindowsDetail
Returns
TypeDescription
VulnerabilityNote.Builder

addWindowsDetails(VulnerabilityNote.WindowsDetail.Builder builderForValue)

public VulnerabilityNote.Builder addWindowsDetails(VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
builderForValueVulnerabilityNote.WindowsDetail.Builder
Returns
TypeDescription
VulnerabilityNote.Builder

addWindowsDetailsBuilder()

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
TypeDescription
VulnerabilityNote.WindowsDetail.Builder

addWindowsDetailsBuilder(int index)

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.WindowsDetail.Builder

build()

public VulnerabilityNote build()
Returns
TypeDescription
VulnerabilityNote

buildPartial()

public VulnerabilityNote buildPartial()
Returns
TypeDescription
VulnerabilityNote

clear()

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

clearCvssScore()

public VulnerabilityNote.Builder clearCvssScore()

The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 1;

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

clearCvssV3()

public VulnerabilityNote.Builder clearCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypeDescription
VulnerabilityNote.Builder

clearCvssVersion()

public VulnerabilityNote.Builder clearCvssVersion()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

clearDetails()

public VulnerabilityNote.Builder clearDetails()

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
TypeDescription
VulnerabilityNote.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSeverity()

public VulnerabilityNote.Builder clearSeverity()

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

clearSourceUpdateTime()

public VulnerabilityNote.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
VulnerabilityNote.Builder

clearWindowsDetails()

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
TypeDescription
VulnerabilityNote.Builder

clone()

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

getCvssScore()

public float getCvssScore()

The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 1;

Returns
TypeDescription
float

The cvssScore.

getCvssV3()

public CVSSv3 getCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypeDescription
CVSSv3

The cvssV3.

getCvssV3Builder()

public CVSSv3.Builder getCvssV3Builder()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypeDescription
CVSSv3.Builder

getCvssV3OrBuilder()

public CVSSv3OrBuilder getCvssV3OrBuilder()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Returns
TypeDescription
CVSSv3OrBuilder

getCvssVersion()

public CVSSVersion getCvssVersion()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypeDescription
CVSSVersion

The cvssVersion.

getCvssVersionValue()

public int getCvssVersionValue()

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for cvssVersion.

getDefaultInstanceForType()

public VulnerabilityNote getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityNote

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails(int index)

public VulnerabilityNote.Detail getDetails(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.Detail

getDetailsBuilder(int index)

public VulnerabilityNote.Detail.Builder getDetailsBuilder(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.Detail.Builder

getDetailsBuilderList()

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
TypeDescription
List<Builder>

getDetailsCount()

public int getDetailsCount()

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
TypeDescription
int

getDetailsList()

public List<VulnerabilityNote.Detail> getDetailsList()

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
TypeDescription
List<Detail>

getDetailsOrBuilder(int index)

public VulnerabilityNote.DetailOrBuilder getDetailsOrBuilder(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.DetailOrBuilder

getDetailsOrBuilderList()

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Returns
TypeDescription
List<? extends io.grafeas.v1.VulnerabilityNote.DetailOrBuilder>

getSeverity()

public Severity getSeverity()

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Returns
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The note provider assigned severity of this vulnerability.

.grafeas.v1.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 VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.WindowsDetail

getWindowsDetailsBuilder(int index)

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.WindowsDetail.Builder

getWindowsDetailsBuilderList()

public List<VulnerabilityNote.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.v1.VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
TypeDescription
int

getWindowsDetailsList()

public List<VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
TypeDescription
List<WindowsDetail>

getWindowsDetailsOrBuilder(int index)

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.WindowsDetailOrBuilder

getWindowsDetailsOrBuilderList()

public List<? extends VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Returns
TypeDescription
List<? extends io.grafeas.v1.VulnerabilityNote.WindowsDetailOrBuilder>

hasCvssV3()

public boolean hasCvssV3()

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.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 VulnerabilityNote.Builder mergeCvssV3(CVSSv3 value)

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Parameter
NameDescription
valueCVSSv3
Returns
TypeDescription
VulnerabilityNote.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(VulnerabilityNote other)

public VulnerabilityNote.Builder mergeFrom(VulnerabilityNote other)
Parameter
NameDescription
otherVulnerabilityNote
Returns
TypeDescription
VulnerabilityNote.Builder

mergeSourceUpdateTime(Timestamp value)

public VulnerabilityNote.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
VulnerabilityNote.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityNote.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityNote.Builder
Overrides

removeDetails(int index)

public VulnerabilityNote.Builder removeDetails(int index)

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.Builder

removeWindowsDetails(int index)

public VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityNote.Builder

setCvssScore(float value)

public VulnerabilityNote.Builder setCvssScore(float value)

The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 1;

Parameter
NameDescription
valuefloat

The cvssScore to set.

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

setCvssV3(CVSSv3 value)

public VulnerabilityNote.Builder setCvssV3(CVSSv3 value)

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Parameter
NameDescription
valueCVSSv3
Returns
TypeDescription
VulnerabilityNote.Builder

setCvssV3(CVSSv3.Builder builderForValue)

public VulnerabilityNote.Builder setCvssV3(CVSSv3.Builder builderForValue)

The full description of the CVSSv3 for this vulnerability.

.grafeas.v1.CVSSv3 cvss_v3 = 4;

Parameter
NameDescription
builderForValueCVSSv3.Builder
Returns
TypeDescription
VulnerabilityNote.Builder

setCvssVersion(CVSSVersion value)

public VulnerabilityNote.Builder setCvssVersion(CVSSVersion value)

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Parameter
NameDescription
valueCVSSVersion

The cvssVersion to set.

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

setCvssVersionValue(int value)

public VulnerabilityNote.Builder setCvssVersionValue(int value)

CVSS version used to populate cvss_score and severity.

.grafeas.v1.CVSSVersion cvss_version = 7;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

setDetails(int index, VulnerabilityNote.Detail value)

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameters
NameDescription
indexint
valueVulnerabilityNote.Detail
Returns
TypeDescription
VulnerabilityNote.Builder

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

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

Details of all known distros and packages affected by this vulnerability.

repeated .grafeas.v1.VulnerabilityNote.Detail details = 3;

Parameters
NameDescription
indexint
builderForValueVulnerabilityNote.Detail.Builder
Returns
TypeDescription
VulnerabilityNote.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public VulnerabilityNote.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VulnerabilityNote.Builder
Overrides

setSeverity(Severity value)

public VulnerabilityNote.Builder setSeverity(Severity value)

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Parameter
NameDescription
valueSeverity

The severity to set.

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

setSeverityValue(int value)

public VulnerabilityNote.Builder setSeverityValue(int value)

The note provider assigned severity of this vulnerability.

.grafeas.v1.Severity severity = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
VulnerabilityNote.Builder

This builder for chaining.

setSourceUpdateTime(Timestamp value)

public VulnerabilityNote.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
VulnerabilityNote.Builder

setSourceUpdateTime(Timestamp.Builder builderForValue)

public VulnerabilityNote.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
VulnerabilityNote.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityNote.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityNote.Builder
Overrides

setWindowsDetails(int index, VulnerabilityNote.WindowsDetail value)

public VulnerabilityNote.Builder setWindowsDetails(int index, VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameters
NameDescription
indexint
valueVulnerabilityNote.WindowsDetail
Returns
TypeDescription
VulnerabilityNote.Builder

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

public VulnerabilityNote.Builder setWindowsDetails(int index, VulnerabilityNote.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.v1.VulnerabilityNote.WindowsDetail windows_details = 5;

Parameters
NameDescription
indexint
builderForValueVulnerabilityNote.WindowsDetail.Builder
Returns
TypeDescription
VulnerabilityNote.Builder